Skip to content

Commit 4bd1295

Browse files
6by9popcornmix
authored andcommitted
dtoverlays: Add overlay for the PCA953x family of GPIO expanders
Adds an overlay for configuring all the GPIO expanders supported by the driver under GPIO_PCA953X. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent 69a1b26 commit 4bd1295

3 files changed

Lines changed: 277 additions & 0 deletions

File tree

‎arch/arm/boot/dts/overlays/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
119119
ov7251.dtbo \
120120
ov9281.dtbo \
121121
papirus.dtbo \
122+
pca953x.dtbo \
122123
pibell.dtbo \
123124
piglow.dtbo \
124125
piscreen.dtbo \

‎arch/arm/boot/dts/overlays/README‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,6 +1873,42 @@ Params: panel Display panel (required):
18731873
speed Display SPI bus speed
18741874

18751875

1876+
Name: pca953x
1877+
Info: TI PCA953x family of I2C GPIO expanders. Default is for NXP PCA9534.
1878+
Load: dtoverlay=pca953x,<param>=<val>
1879+
Params: addr I2C address of expander. Default 0x20.
1880+
pca6416 Select the NXP PCA6416 (16 bit)
1881+
pca9505 Select the NXP PCA9505 (40 bit)
1882+
pca9535 Select the NXP PCA9535 (16 bit)
1883+
pca9536 Select the NXP PCA9536 or TI PCA9536 (4 bit)
1884+
pca9537 Select the NXP PCA9537 (4 bit)
1885+
pca9538 Select the NXP PCA9538 (8 bit)
1886+
pca9539 Select the NXP PCA9539 (16 bit)
1887+
pca9554 Select the NXP PCA9554 (8 bit)
1888+
pca9555 Select the NXP PCA9555 (16 bit)
1889+
pca9556 Select the NXP PCA9556 (8 bit)
1890+
pca9557 Select the NXP PCA9557 (8 bit)
1891+
pca9574 Select the NXP PCA9574 (8 bit)
1892+
pca9575 Select the NXP PCA9575 (16 bit)
1893+
pca9698 Select the NXP PCA9698 (40 bit)
1894+
pca16416 Select the NXP PCA16416 (16 bit)
1895+
pca16524 Select the NXP PCA16524 (24 bit)
1896+
pca19555a Select the NXP PCA19555A (16 bit)
1897+
max7310 Select the Maxim MAX7310 (8 bit)
1898+
max7312 Select the Maxim MAX7312 (16 bit)
1899+
max7313 Select the Maxim MAX7313 (16 bit)
1900+
max7315 Select the Maxim MAX7315 (8 bit)
1901+
pca6107 Select the TI PCA6107 (8 bit)
1902+
tca6408 Select the TI TCA6408 (8 bit)
1903+
tca6416 Select the TI TCA6416 (16 bit)
1904+
tca6424 Select the TI TCA6424 (24 bit)
1905+
tca9539 Select the TI TCA9539 (16 bit)
1906+
tca9554 Select the TI TCA9554 (8 bit)
1907+
cat9554 Select the Onnn CAT9554 (8 bit)
1908+
pca9654 Select the Onnn PCA9654 (8 bit)
1909+
xra1202 Select the Exar XRA1202 (8 bit)
1910+
1911+
18761912
[ The pcf2127-rtc overlay has been deleted. See i2c-rtc. ]
18771913

18781914

Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
// Definitions for NXP PCA953x family of I2C GPIO controllers on ARM I2C bus.
2+
/dts-v1/;
3+
/plugin/;
4+
5+
/{
6+
compatible = "brcm,bcm2835";
7+
8+
fragment@0 {
9+
target = <&i2c_arm>;
10+
__overlay__ {
11+
#address-cells = <1>;
12+
#size-cells = <0>;
13+
status = "okay";
14+
15+
pca: pca@20 {
16+
compatible = "nxp,pca9534";
17+
reg = <0x20>;
18+
gpio-controller;
19+
#gpio-cells = <2>;
20+
21+
status = "okay";
22+
};
23+
};
24+
};
25+
26+
fragment@1 {
27+
target = <&pca>;
28+
__dormant__ {
29+
compatible = "nxp,pca6416";
30+
};
31+
};
32+
fragment@2 {
33+
target = <&pca>;
34+
__dormant__ {
35+
compatible = "nxp,pca9505";
36+
};
37+
};
38+
fragment@3 {
39+
target = <&pca>;
40+
__dormant__ {
41+
compatible = "nxp,pca9535";
42+
};
43+
};
44+
fragment@4 {
45+
target = <&pca>;
46+
__dormant__ {
47+
compatible = "nxp,pca9536";
48+
};
49+
};
50+
fragment@5 {
51+
target = <&pca>;
52+
__dormant__ {
53+
compatible = "nxp,pca9537";
54+
};
55+
};
56+
fragment@6 {
57+
target = <&pca>;
58+
__dormant__ {
59+
compatible = "nxp,pca9538";
60+
};
61+
};
62+
fragment@7 {
63+
target = <&pca>;
64+
__dormant__ {
65+
compatible = "nxp,pca9539";
66+
};
67+
};
68+
fragment@8 {
69+
target = <&pca>;
70+
__dormant__ {
71+
compatible = "nxp,pca9554";
72+
};
73+
};
74+
fragment@9 {
75+
target = <&pca>;
76+
__dormant__ {
77+
compatible = "nxp,pca9555";
78+
};
79+
};
80+
fragment@10 {
81+
target = <&pca>;
82+
__dormant__ {
83+
compatible = "nxp,pca9556";
84+
};
85+
};
86+
fragment@11 {
87+
target = <&pca>;
88+
__dormant__ {
89+
compatible = "nxp,pca9557";
90+
};
91+
};
92+
fragment@12 {
93+
target = <&pca>;
94+
__dormant__ {
95+
compatible = "nxp,pca9574";
96+
};
97+
};
98+
fragment@13 {
99+
target = <&pca>;
100+
__dormant__ {
101+
compatible = "nxp,pca9575";
102+
};
103+
};
104+
fragment@14 {
105+
target = <&pca>;
106+
__dormant__ {
107+
compatible = "nxp,pca9698";
108+
};
109+
};
110+
fragment@15 {
111+
target = <&pca>;
112+
__dormant__ {
113+
compatible = "nxp,pca16416";
114+
};
115+
};
116+
fragment@16 {
117+
target = <&pca>;
118+
__dormant__ {
119+
compatible = "nxp,pca16524";
120+
};
121+
};
122+
fragment@17 {
123+
target = <&pca>;
124+
__dormant__ {
125+
compatible = "nxp,pca19555a";
126+
};
127+
};
128+
fragment@18 {
129+
target = <&pca>;
130+
__dormant__ {
131+
compatible = "maxim,max7310";
132+
};
133+
};
134+
fragment@19 {
135+
target = <&pca>;
136+
__dormant__ {
137+
compatible = "maxim,max7312";
138+
};
139+
};
140+
fragment@20 {
141+
target = <&pca>;
142+
__dormant__ {
143+
compatible = "maxim,max7313";
144+
};
145+
};
146+
fragment@21 {
147+
target = <&pca>;
148+
__dormant__ {
149+
compatible = "maxim,max7315";
150+
};
151+
};
152+
fragment@22 {
153+
target = <&pca>;
154+
__dormant__ {
155+
compatible = "ti,pca6107";
156+
};
157+
};
158+
fragment@23 {
159+
target = <&pca>;
160+
__dormant__ {
161+
compatible = "ti,tca6408";
162+
};
163+
};
164+
fragment@24 {
165+
target = <&pca>;
166+
__dormant__ {
167+
compatible = "ti,tca6416";
168+
};
169+
};
170+
fragment@25 {
171+
target = <&pca>;
172+
__dormant__ {
173+
compatible = "ti,tca6424";
174+
};
175+
};
176+
fragment@26 {
177+
target = <&pca>;
178+
__dormant__ {
179+
compatible = "ti,tca9539";
180+
};
181+
};
182+
fragment@27 {
183+
target = <&pca>;
184+
__dormant__ {
185+
compatible = "ti,tca9554";
186+
};
187+
};
188+
fragment@28 {
189+
target = <&pca>;
190+
__dormant__ {
191+
compatible = "onnn,cat9554";
192+
};
193+
};
194+
fragment@29 {
195+
target = <&pca>;
196+
__dormant__ {
197+
compatible = "onnn,pca9654";
198+
};
199+
};
200+
fragment@30 {
201+
target = <&pca>;
202+
__dormant__ {
203+
compatible = "exar,xra1202";
204+
};
205+
};
206+
207+
__overrides__ {
208+
addr = <&pca>,"reg:0";
209+
pca6416 = <0>, "+1";
210+
pca9505 = <0>, "+2";
211+
pca9535 = <0>, "+3";
212+
pca9536 = <0>, "+4";
213+
pca9537 = <0>, "+5";
214+
pca9538 = <0>, "+6";
215+
pca9539 = <0>, "+7";
216+
pca9554 = <0>, "+8";
217+
pca9555 = <0>, "+9";
218+
pca9556 = <0>, "+10";
219+
pca9557 = <0>, "+11";
220+
pca9574 = <0>, "+12";
221+
pca9575 = <0>, "+13";
222+
pca9698 = <0>, "+14";
223+
pca16416 = <0>, "+15";
224+
pca16524 = <0>, "+16";
225+
pca19555a = <0>, "+17";
226+
max7310 = <0>, "+18";
227+
max7312 = <0>, "+19";
228+
max7313 = <0>, "+20";
229+
max7315 = <0>, "+21";
230+
pca6107 = <0>, "+22";
231+
tca6408 = <0>, "+23";
232+
tca6416 = <0>, "+24";
233+
tca6424 = <0>, "+25";
234+
tca9539 = <0>, "+26";
235+
tca9554 = <0>, "+27";
236+
cat9554 = <0>, "+28";
237+
pca9654 = <0>, "+29";
238+
xra1202 = <0>, "+30";
239+
};
240+
};

0 commit comments

Comments
 (0)