brcm63xx: probe gpio controllers through DT
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / bcm3368.dtsi
index dba73b56cce95932882daf2b640f26154372525a..ebf3d1cd08fd03e701653eed8fb66822707e2899 100644 (file)
@@ -5,6 +5,8 @@
 
        aliases {
                pflash = &pflash;
+               gpio0 = &gpio0;
+               gpio1 = &gpio1;
        };
 
        cpus {
                        interrupt-parent = <&periph_intc>;
                        interrupts = <24>, <25>, <26>, <27>;
                };
+
+               gpio1: gpio-controller@fff8c080 {
+                       compatible = "brcm,6345-gpio";
+                       reg = <0xfff8c080 4>, <0xfff8c088 4>;
+
+                       gpio-controller;
+                       #gpio-cells = <2>;
+
+                       ngpios = <8>;
+               };
+
+               gpio0: gpio-controller@fff8c084 {
+                       compatible = "brcm,6345-gpio";
+                       reg = <0xfff8c084 4>, <0xfff8c08c 4>;
+
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
        };
 };