arm64: tegra: Add GPIO expanders on P2771
authorThierry Reding <treding@nvidia.com>
Thu, 23 Feb 2017 17:30:53 +0000 (18:30 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 10 Mar 2017 16:37:40 +0000 (17:37 +0100)
The P2771 development board expands the number of GPIOs via two I2C
chips.

Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts

index 78442ea81260d8b025d89911f8c5553b2479b618..8daadadec63a5f4470cbde4864c3986693a5d564 100644 (file)
                        compatible = "ti,ina3221";
                        reg = <0x43>;
                };
+
+               exp1: gpio@74 {
+                       compatible = "ti,tca9539";
+                       reg = <0x74>;
+
+                       interrupt-parent = <&gpio>;
+                       interrupts = <TEGRA_MAIN_GPIO(Y, 0) GPIO_ACTIVE_LOW>;
+
+                       #gpio-cells = <2>;
+                       gpio-controller;
+               };
+
+               exp2: gpio@77 {
+                       compatible = "ti,tca9539";
+                       reg = <0x77>;
+
+                       interrupt-parent = <&gpio>;
+                       interrupts = <TEGRA_MAIN_GPIO(Y, 6) GPIO_ACTIVE_LOW>;
+
+                       #gpio-cells = <2>;
+                       gpio-controller;
+               };
        };
 
        /* SDMMC1 (SD/MMC) */