Skip to content

Commit ecac9a4

Browse files
staroselskiipopcornmix
authored andcommitted
overlays: added sc16is750 UART over I2C (#1617)
1 parent 7e4af2f commit ecac9a4

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ dtbo-$(RPI_DT_OVERLAYS) += rpi-ft5406.dtbo
7474
dtbo-$(RPI_DT_OVERLAYS) += rpi-proto.dtbo
7575
dtbo-$(RPI_DT_OVERLAYS) += rpi-sense.dtbo
7676
dtbo-$(RPI_DT_OVERLAYS) += rra-digidac1-wm8741-audio.dtbo
77+
dtbo-$(RPI_DT_OVERLAYS) += sc16is750-i2c.dtbo
7778
dtbo-$(RPI_DT_OVERLAYS) += sc16is752-spi1.dtbo
7879
dtbo-$(RPI_DT_OVERLAYS) += sdhost.dtbo
7980
dtbo-$(RPI_DT_OVERLAYS) += sdio.dtbo

arch/arm/boot/dts/overlays/README

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,16 @@ Load: dtoverlay=rra-digidac1-wm8741-audio
927927
Params: <None>
928928

929929

930+
Name: sc16is750-i2c
931+
Info: Overlay for the NXP SC16IS750 UART with I2C Interface
932+
Enables the chip on I2C1 at 0x48. To select another address,
933+
please refer to table 10 in reference manual.
934+
935+
Load: dtoverlay=sc16is750-i2c,<param>=<val>
936+
Params: int_pin GPIO used for IRQ (default 24)
937+
addr Address (default 0x48)
938+
939+
930940
Name: sc16is752-spi1
931941
Info: Overlay for the NXP SC16IS752 Dual UART with SPI Interface
932942
Enables the chip on SPI1.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/ {
5+
compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
6+
7+
fragment@0 {
8+
target = <&i2c_arm>;
9+
__overlay__ {
10+
#address-cells = <1>;
11+
#size-cells = <0>;
12+
status = "okay";
13+
14+
sc16is750: sc16is750@48 {
15+
compatible = "nxp,sc16is750";
16+
reg = <0x48>; /* address */
17+
clocks = <&sc16is750_clk>;
18+
interrupt-parent = <&gpio>;
19+
interrupts = <24 2>; /* IRQ_TYPE_EDGE_FALLING */
20+
#gpio-cells = <2>;
21+
22+
sc16is750_clk: sc16is750_clk {
23+
compatible = "fixed-clock";
24+
#clock-cells = <0>;
25+
clock-frequency = <14745600>;
26+
};
27+
};
28+
};
29+
};
30+
31+
32+
__overrides__ {
33+
int_pin = <&sc16is750>,"interrupts:0";
34+
addr = <&sc16is750>,"reg:0";
35+
};
36+
37+
};

0 commit comments

Comments
 (0)