brcm63xx: probe gpio controllers through DT
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / bcm6338.dtsi
index c1980f40367abc4633e736f11019cd7d8ca52d89..d578a5b59b8e8118a6c9a95f73e1b6e1bf02cbd9 100644 (file)
@@ -5,6 +5,7 @@
 
        aliases {
                pflash = &pflash;
+               gpio0 = &gpio0;
        };
 
        cpus {
                        interrupt-parent = <&cpu_intc>;
                        interrupts = <3>, <4>, <5>, <6>;
                };
+
+               gpio0: gpio-controller@fffe0404 {
+                       compatible = "brcm,bcm6345-gpio";
+                       reg = <0xfffe0404 4>, <0xfffe040c 4>;
+
+                       gpio-controller;
+                       #gpio-cells = <2>;
+
+                       ngpios = <8>;
+               };
        };
 };