brcm63xx: probe gpio controllers through DT
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / bcm6328.dtsi
index 53f96ff009f4490dadda23e4f64c72e0034134f0..a0b13164234baebef38e0c682b48bab58b630ae0 100644 (file)
@@ -3,6 +3,10 @@
        #size-cells = <1>;
        compatible = "brcm,bcm6328";
 
+       aliases {
+               gpio0 = &gpio0;
+       };
+
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
                        interrupt-parent = <&cpu_intc>;
                        interrupts = <2>;
                };
+
+               gpio0: gpio-controller@10000084 {
+                       compatible = "brcm,bcm6345-gpio";
+                       reg = <0x10000084 4>, <0x1000008c 4>;
+
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
        };
 };