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)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 15 Feb 2021 10:43:27 +0000 (11:43 +0100)
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 ed0bf7f..950010a 100644 (file)
@@ -41,3 +41,7 @@
        clocks = <&uart_clk>;
        clock-names = "apb_pclk";
 };
+
+&gpio {
+       status = "okay";
+};
index 242f25f..17fdcbd 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>;