brcm63xx: probe gpio controllers through DT
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / dts / bcm63268.dtsi
index bc80d70575f5790dd60874b292fa596d9d999391..0a1f8b17cfab34271477b5a3f4334065af5bd438 100644 (file)
@@ -3,6 +3,11 @@
        #size-cells = <1>;
        compatible = "brcm,bcm63268";
 
+       aliases {
+               gpio0 = &gpio0;
+               gpio1 = &gpio1;
+       };
+
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
                        interrupt-parent = <&cpu_intc>;
                        interrupts = <2>, <3>;
                };
+
+               gpio1: gpio-controller@100000c0 {
+                       compatible = "brcm,bcm6345-gpio";
+                       reg = <0x100000c0 4>, <0x100000c8 4>;
+
+                       gpio-controller;
+                       #gpio-cells = <2>;
+
+                       ngpios = <20>;
+               };
+
+               gpio0: gpio-controller@100000c4 {
+                       compatible = "brcm,bcm6345-gpio";
+                       reg = <0x100000c4 4>, <0x100000cc 4>;
+
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
        };
 };