arm64: tegra: Add AON GPIO controller on Tegra194
authorThierry Reding <treding@nvidia.com>
Wed, 28 Nov 2018 17:19:56 +0000 (18:19 +0100)
committerThierry Reding <treding@nvidia.com>
Mon, 3 Dec 2018 15:31:35 +0000 (16:31 +0100)
The AON GPIO controller is in an always-on power partition and typically
provides pins for functions that need to always work, such as the power
key for example.

Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra194.dtsi

index afb3597e05e468e6b5e0e36f653c2b9cc93f7fcb..2cc22ce8efcab6d7b3268f7a3ab39dc611c4b2d6 100644 (file)
                        status = "disabled";
                };
 
+               gpio_aon: gpio@c2f0000 {
+                       compatible = "nvidia,tegra194-gpio-aon";
+                       reg-names = "security", "gpio";
+                       reg = <0xc2f0000 0x1000>,
+                             <0xc2f1000 0x1000>;
+                       interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
+                                    <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       interrupt-controller;
+                       #interrupt-cells = <2>;
+               };
+
                pwm4: pwm@c340000 {
                        compatible = "nvidia,tegra194-pwm",
                                     "nvidia,tegra186-pwm";