Skip to content

Commit b629c6e

Browse files
committed
overlays: added sc16is750 UART over I2C
1 parent 0a4de59 commit b629c6e

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
@@ -99,6 +99,7 @@ dtbo-$(RPI_DT_OVERLAYS) += vga666.dtbo
9999
dtbo-$(RPI_DT_OVERLAYS) += w1-gpio.dtbo
100100
dtbo-$(RPI_DT_OVERLAYS) += w1-gpio-pullup.dtbo
101101
dtbo-$(RPI_DT_OVERLAYS) += wittypi.dtbo
102+
dtbo-$(RPI_DT_OVERLAYS) += sc16is750-i2c.dtbo
102103

103104
targets += dtbs dtbs_install
104105
targets += $(dtbo-y)

arch/arm/boot/dts/overlays/README

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,16 @@ Load: dtoverlay=sc16is752-spi1,<param>=<val>
945945
Params: int_pin GPIO used for IRQ (default 24)
946946

947947

948+
Name: sc16is750-i2c
949+
Info: Overlay for the NXP SC16IS750 UART with I2C Interface
950+
Enables the chip on I2C1 at 0x48. To select another address,
951+
please refer to table 10 in reference manual.
952+
953+
Load: dtoverlay=sc16is750-i2c,<param>=<val>
954+
Params: int_pin GPIO used for IRQ (default 24)
955+
addr Address (default 0x48)
956+
957+
948958
Name: sdhost
949959
Info: Selects the bcm2835-sdhost SD/MMC driver, optionally with overclock.
950960
N.B. This overlay is designed for situations where the mmc driver is
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)