ARM: dts: k3-j7200: Add wkup gpio node
authorVignesh Raghavendra <vigneshr@ti.com>
Thu, 6 Aug 2020 18:56:58 +0000 (00:26 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 11 Aug 2020 15:04:46 +0000 (20:34 +0530)
Add wkup_gpio0 node required for detecting whether board mux is set
HyperFlash.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm/dts/k3-j7200-common-proc-board.dts
arch/arm/dts/k3-j7200-mcu-wakeup.dtsi

index 969881fb83c80d8c93108da0398a5b3a8c45aad9..15ac3cb6b384a1e0f528b5c4b8c165c2ef662778 100644 (file)
                        J721E_WKUP_IOPAD(0x104, PIN_INPUT_PULLUP, 0) /* (H21) WKUP_I2C0_SDA */
                >;
        };
+
+       wkup_gpio_pins_default: wkup-gpio-pins-default {
+               pinctrl-single,pins = <
+                       J721E_WKUP_IOPAD(0xd8, PIN_INPUT, 7) /* (C14) WKUP_GPIO0_6 */
+               >;
+       };
 };
 
 &main_pmx0 {
        dr_mode = "otg";
        maximum-speed = "high-speed";
 };
+
+&wkup_gpio0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&wkup_gpio_pins_default>;
+};
index 4bcb65aace8a81b220d6231cb765bcd74932cd98..d590079382f2aec7e91adee2d103115aaaccc694 100644 (file)
                clocks = <&k3_clks 195 1>;
                power-domains = <&k3_pds 195 TI_SCI_PD_EXCLUSIVE>;
        };
+
+       wkup_gpio0: gpio@42110000 {
+               compatible = "ti,j721e-gpio", "ti,keystone-gpio";
+               reg = <0x0 0x42110000 0x0 0x100>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               ti,ngpio = <84>;
+               ti,davinci-gpio-unbanked = <0>;
+               power-domains = <&k3_pds 113 TI_SCI_PD_EXCLUSIVE>;
+               clocks = <&k3_clks 113 0>;
+               clock-names = "gpio";
+       };
 };