arm: dts: visconti: Add DT support for Toshiba Visconti5 GPIO driver
authorNobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Thu, 17 Dec 2020 14:43:38 +0000 (23:43 +0900)
committerNobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Wed, 10 Feb 2021 17:01:16 +0000 (02:01 +0900)
Add the GPIO node in Toshiba Visconti5 SoC-specific DT file.
And enable the GPIO node in TMPV7708 RM main board's board-specific DT file.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Reviewed-by: Punit Agrawal <punit1.agrawal@toshiba.co.jp>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
arch/arm64/boot/dts/toshiba/tmpv7708-rm-mbrc.dts
arch/arm64/boot/dts/toshiba/tmpv7708.dtsi

index 37da418..2407b2d 100644 (file)
@@ -46,3 +46,7 @@
        status = "okay";
        clocks = <&wdt_clk>;
 };
+
+&gpio {
+       status = "okay";
+};
index c360e68..4264f3e 100644 (file)
                        reg = <0 0x24190000 0 0x10000>;
                };
 
+               gpio: gpio@28020000 {
+                       compatible = "toshiba,gpio-tmpv7708";
+                       reg = <0 0x28020000 0 0x1000>;
+                       #gpio-cells = <0x2>;
+                       gpio-ranges = <&pmux 0 0 32>;
+                       gpio-controller;
+                       interrupt-controller;
+                       #interrupt-cells = <2>;
+                       interrupt-parent = <&gic>;
+               };
+
                uart0: serial@28200000 {
                        compatible = "arm,pl011", "arm,primecell";
                        reg = <0 0x28200000 0 0x1000>;