brcm63xx: add pinctrl support
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / magic.dts
index be1052409479b5c4499f5556ee1109d7b2fae58d..9053c26e65683130acc7cd1d133b2ae2ee8657de 100644 (file)
 
                power {
                        label = "MAGIC:green:power";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&pinctrl 0 1>;
                        default-state = "on";
                };
 
                stop {
                        label = "MAGIC:green:stop";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&pinctrl 1 1>;
                };
 
                hpna {
                        label = "MAGIC:green:hpna";
-                       gpios = <&gpio0 4 1>;
+                       gpios = <&pinctrl 4 1>;
                };
 
                status {
                        label = "MAGIC:green:adsl";
-                       gpios = <&gpio0 5 1>;
+                       gpios = <&pinctrl 5 1>;
                };
 
                voip {
                        label = "MAGIC:green:voip";
-                       gpios = <&gpio0 22 1>;
+                       gpios = <&pinctrl 22 1>;
                };
 
                wifi {
                        label = "MAGIC:green:wifi";
-                       gpios = <&gpio0 28 0>;
+                       gpios = <&pinctrl 28 0>;
                };
 
                usb {
                        label = "MAGIC:green:usb";
-                       gpios = <&gpio1 3 1>;
+                       gpios = <&pinctrl 35 1>;
                };
        };
 };
@@ -74,3 +74,8 @@
                reg = <0x3f0000 0x010000>;
        };
 };
+
+&pinctrl {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pci &pinctrl_ext_mii &pinctrl_mii_pccard>;
+};