1 From 5a7c48622a4f7665039211414c9fe4a1914ae3eb Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Mon, 17 Aug 2020 18:11:47 +0100
4 Subject: [PATCH] dtoverlays: Add overlay for the PCA953x family of
7 Adds an overlay for configuring all the GPIO expanders supported
8 by the driver under GPIO_PCA953X.
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 arch/arm/boot/dts/overlays/Makefile | 1 +
13 arch/arm/boot/dts/overlays/README | 36 +++
14 .../arm/boot/dts/overlays/pca953x-overlay.dts | 240 ++++++++++++++++++
15 3 files changed, 277 insertions(+)
16 create mode 100644 arch/arm/boot/dts/overlays/pca953x-overlay.dts
18 --- a/arch/arm/boot/dts/overlays/Makefile
19 +++ b/arch/arm/boot/dts/overlays/Makefile
20 @@ -119,6 +119,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
28 --- a/arch/arm/boot/dts/overlays/README
29 +++ b/arch/arm/boot/dts/overlays/README
30 @@ -1873,6 +1873,42 @@ Params: panel Display
31 speed Display SPI bus speed
35 +Info: TI PCA953x family of I2C GPIO expanders. Default is for NXP PCA9534.
36 +Load: dtoverlay=pca953x,<param>=<val>
37 +Params: addr I2C address of expander. Default 0x20.
38 + pca6416 Select the NXP PCA6416 (16 bit)
39 + pca9505 Select the NXP PCA9505 (40 bit)
40 + pca9535 Select the NXP PCA9535 (16 bit)
41 + pca9536 Select the NXP PCA9536 or TI PCA9536 (4 bit)
42 + pca9537 Select the NXP PCA9537 (4 bit)
43 + pca9538 Select the NXP PCA9538 (8 bit)
44 + pca9539 Select the NXP PCA9539 (16 bit)
45 + pca9554 Select the NXP PCA9554 (8 bit)
46 + pca9555 Select the NXP PCA9555 (16 bit)
47 + pca9556 Select the NXP PCA9556 (8 bit)
48 + pca9557 Select the NXP PCA9557 (8 bit)
49 + pca9574 Select the NXP PCA9574 (8 bit)
50 + pca9575 Select the NXP PCA9575 (16 bit)
51 + pca9698 Select the NXP PCA9698 (40 bit)
52 + pca16416 Select the NXP PCA16416 (16 bit)
53 + pca16524 Select the NXP PCA16524 (24 bit)
54 + pca19555a Select the NXP PCA19555A (16 bit)
55 + max7310 Select the Maxim MAX7310 (8 bit)
56 + max7312 Select the Maxim MAX7312 (16 bit)
57 + max7313 Select the Maxim MAX7313 (16 bit)
58 + max7315 Select the Maxim MAX7315 (8 bit)
59 + pca6107 Select the TI PCA6107 (8 bit)
60 + tca6408 Select the TI TCA6408 (8 bit)
61 + tca6416 Select the TI TCA6416 (16 bit)
62 + tca6424 Select the TI TCA6424 (24 bit)
63 + tca9539 Select the TI TCA9539 (16 bit)
64 + tca9554 Select the TI TCA9554 (8 bit)
65 + cat9554 Select the Onnn CAT9554 (8 bit)
66 + pca9654 Select the Onnn PCA9654 (8 bit)
67 + xra1202 Select the Exar XRA1202 (8 bit)
70 [ The pcf2127-rtc overlay has been deleted. See i2c-rtc. ]
74 +++ b/arch/arm/boot/dts/overlays/pca953x-overlay.dts
76 +// Definitions for NXP PCA953x family of I2C GPIO controllers on ARM I2C bus.
81 + compatible = "brcm,bcm2835";
84 + target = <&i2c_arm>;
86 + #address-cells = <1>;
91 + compatible = "nxp,pca9534";
104 + compatible = "nxp,pca6416";
110 + compatible = "nxp,pca9505";
116 + compatible = "nxp,pca9535";
122 + compatible = "nxp,pca9536";
128 + compatible = "nxp,pca9537";
134 + compatible = "nxp,pca9538";
140 + compatible = "nxp,pca9539";
146 + compatible = "nxp,pca9554";
152 + compatible = "nxp,pca9555";
158 + compatible = "nxp,pca9556";
164 + compatible = "nxp,pca9557";
170 + compatible = "nxp,pca9574";
176 + compatible = "nxp,pca9575";
182 + compatible = "nxp,pca9698";
188 + compatible = "nxp,pca16416";
194 + compatible = "nxp,pca16524";
200 + compatible = "nxp,pca19555a";
206 + compatible = "maxim,max7310";
212 + compatible = "maxim,max7312";
218 + compatible = "maxim,max7313";
224 + compatible = "maxim,max7315";
230 + compatible = "ti,pca6107";
236 + compatible = "ti,tca6408";
242 + compatible = "ti,tca6416";
248 + compatible = "ti,tca6424";
254 + compatible = "ti,tca9539";
260 + compatible = "ti,tca9554";
266 + compatible = "onnn,cat9554";
272 + compatible = "onnn,pca9654";
278 + compatible = "exar,xra1202";
283 + addr = <&pca>,"reg:0";
284 + pca6416 = <0>, "+1";
285 + pca9505 = <0>, "+2";
286 + pca9535 = <0>, "+3";
287 + pca9536 = <0>, "+4";
288 + pca9537 = <0>, "+5";
289 + pca9538 = <0>, "+6";
290 + pca9539 = <0>, "+7";
291 + pca9554 = <0>, "+8";
292 + pca9555 = <0>, "+9";
293 + pca9556 = <0>, "+10";
294 + pca9557 = <0>, "+11";
295 + pca9574 = <0>, "+12";
296 + pca9575 = <0>, "+13";
297 + pca9698 = <0>, "+14";
298 + pca16416 = <0>, "+15";
299 + pca16524 = <0>, "+16";
300 + pca19555a = <0>, "+17";
301 + max7310 = <0>, "+18";
302 + max7312 = <0>, "+19";
303 + max7313 = <0>, "+20";
304 + max7315 = <0>, "+21";
305 + pca6107 = <0>, "+22";
306 + tca6408 = <0>, "+23";
307 + tca6416 = <0>, "+24";
308 + tca6424 = <0>, "+25";
309 + tca9539 = <0>, "+26";
310 + tca9554 = <0>, "+27";
311 + cat9554 = <0>, "+28";
312 + pca9654 = <0>, "+29";
313 + xra1202 = <0>, "+30";