Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: imx6qdl-rex: add gpio expander pca9535

The pca9535 gpio expander is present on the Rex baseboard, but missing
from the dtsi.
The pca9535 is on i2c2 bus which is common to the three SOM
variants (Basic/Pro/Ultra), thus it is activated by default.

Add also the new gpio controller and the associated interrupt line
MX6QDL_PAD_NANDF_CS3__GPIO6_IO16.

Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Gilles DOFFE and committed by
Shawn Guo
568a0a96 b780317d

+19
+19
arch/arm/boot/dts/imx6qdl-rex.dtsi
··· 132 132 pinctrl-0 = <&pinctrl_i2c2>; 133 133 status = "okay"; 134 134 135 + pca9535: gpio-expander@27 { 136 + compatible = "nxp,pca9535"; 137 + reg = <0x27>; 138 + gpio-controller; 139 + #gpio-cells = <2>; 140 + pinctrl-names = "default"; 141 + pinctrl-0 = <&pinctrl_pca9535>; 142 + interrupt-parent = <&gpio6>; 143 + interrupts = <16 IRQ_TYPE_LEVEL_LOW>; 144 + interrupt-controller; 145 + #interrupt-cells = <2>; 146 + }; 147 + 135 148 eeprom@57 { 136 149 compatible = "atmel,24c02"; 137 150 reg = <0x57>; ··· 248 235 /* user led */ 249 236 MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x80000000 250 237 >; 238 + }; 239 + 240 + pinctrl_pca9535: pca9535grp { 241 + fsl,pins = < 242 + MX6QDL_PAD_NANDF_CS3__GPIO6_IO16 0x17059 243 + >; 251 244 }; 252 245 253 246 pinctrl_uart1: uart1grp {