brcm63xx: add pinctrl support
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / v2110.dts
index 0721d248efdeafc56d1e0b5fdf6497e2a655e1cc..23378a4721d7a44b9faf664b19c2cf371712a33b 100644 (file)
@@ -1,11 +1,17 @@
 /dts-v1/;
 
-/include/ "bcm6348.dtsi"
+#include "bcm6348.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "BT Voyager 2110";
        compatible = "bt,v2110", "brcm,bcm6348";
 
+       chosen {
+               bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
+       };
+
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
@@ -15,8 +21,8 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio1 1 1>;
-                       linux,code = <0x198>;
+                       gpios = <&pinctrl 33 1>;
+                       linux,code = <KEY_RESTART>;
                };
        };
 
 
                power_green {
                        label = "V2110:green:power";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&pinctrl 0 1>;
                };
                power_red {
                        label = "V2110:red:power";
-                       gpios = <&gpio0 1 1>;
+                       gpios = <&pinctrl 1 1>;
                };
                adsl_green {
                        label = "V2110:green:adsl";
-                       gpios = <&gpio0 2 1>;
+                       gpios = <&pinctrl 2 1>;
                };
                ppp_green {
                        label = "V2110:green:ppp";
-                       gpios = <&gpio0 3 1>;
+                       gpios = <&pinctrl 3 1>;
                };
                wireless_green {
                        label = "V2110:green:wireless";
-                       gpios = <&gpio0 6 1>;
+                       gpios = <&pinctrl 6 1>;
                };
        };
 };
@@ -67,3 +73,8 @@
                reg = <0x3f0000 0x010000>;
        };
 };
+
+&pinctrl {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pci &pinctrl_ext_mii>;
+};