Skip to content

Commit fd553e0

Browse files
committed
overlays: Add sc16is750-spi0
Essentially a rename of the equivalent overlay for the SC16IS752. Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent dda85fd commit fd553e0

File tree

3 files changed

+72
-0
lines changed

3 files changed

+72
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
230230
rra-digidac1-wm8741-audio.dtbo \
231231
sainsmart18.dtbo \
232232
sc16is750-i2c.dtbo \
233+
sc16is750-spi0.dtbo \
233234
sc16is752-i2c.dtbo \
234235
sc16is752-spi0.dtbo \
235236
sc16is752-spi1.dtbo \

arch/arm/boot/dts/overlays/README

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4128,6 +4128,14 @@ Params: int_pin GPIO used for IRQ (default 24)
41284128
xtal On-board crystal frequency (default 14745600)
41294129

41304130

4131+
Name: sc16is750-spi0
4132+
Info: Overlay for the NXP SC16IS750 UART with SPI Interface
4133+
Enables the chip on SPI0.
4134+
Load: dtoverlay=sc16is750-spi0,<param>=<val>
4135+
Params: int_pin GPIO used for IRQ (default 24)
4136+
xtal On-board crystal frequency (default 14745600)
4137+
4138+
41314139
Name: sc16is752-i2c
41324140
Info: Overlay for the NXP SC16IS752 dual UART with I2C Interface
41334141
Enables the chip on I2C1 at 0x48 (or the "addr" parameter value). To
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/ {
5+
compatible = "brcm,bcm2835";
6+
7+
fragment@0 {
8+
target = <&spi0>;
9+
__overlay__ {
10+
#address-cells = <1>;
11+
#size-cells = <0>;
12+
status = "okay";
13+
14+
sc16is750: sc16is750@0 {
15+
compatible = "nxp,sc16is750";
16+
reg = <0>; /* CE0 */
17+
clocks = <&sc16is750_clk>;
18+
interrupt-parent = <&gpio>;
19+
interrupts = <24 2>; /* IRQ_TYPE_EDGE_FALLING */
20+
pinctrl-0 = <&int_pins>;
21+
pinctrl-names = "default";
22+
gpio-controller;
23+
#gpio-cells = <2>;
24+
spi-max-frequency = <4000000>;
25+
};
26+
};
27+
};
28+
29+
fragment@1 {
30+
target = <&spidev0>;
31+
__overlay__ {
32+
status = "disabled";
33+
};
34+
};
35+
36+
fragment@2 {
37+
target-path = "/";
38+
__overlay__ {
39+
sc16is750_clk: sc16is750_spi0_0_clk {
40+
compatible = "fixed-clock";
41+
#clock-cells = <0>;
42+
clock-frequency = <14745600>;
43+
};
44+
};
45+
};
46+
47+
fragment@3 {
48+
target = <&gpio>;
49+
__overlay__ {
50+
int_pins: int_pins@18 {
51+
brcm,pins = <24>;
52+
brcm,function = <0>; /* in */
53+
brcm,pull = <0>; /* none */
54+
};
55+
};
56+
};
57+
58+
__overrides__ {
59+
int_pin = <&sc16is750>,"interrupts:0", <&int_pins>,"brcm,pins:0",
60+
<&int_pins>,"reg:0";
61+
xtal = <&sc16is750_clk>,"clock-frequency:0";
62+
};
63+
};

0 commit comments

Comments
 (0)