brcm63xx: probe gpio controllers through DT
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / bcm6345.dtsi
index e8e7016ff796a9557fa5ef9dcd47e7cf097a96c8..f70246860c62ad04a65fea3bb8082100181bd277 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>, <0xfffe0408 4>;
+
+                       gpio-controller;
+                       #gpio-cells = <2>;
+
+                       ngpios = <16>;
+               };
        };
 };