brcm63xx: add pinctrl support
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / homehub2a.dts
index 9e7ce2fcf6119d2d8ae178090d2b2cc167ab4fe9..0d51c870a173865be79a460606aa212093febb3d 100644 (file)
@@ -8,14 +8,18 @@
        model = "BT Home Hub 2.0 Type A";
        compatible = "thomson,homehub2a", "brcm,bcm6358";
 
+       chosen {
+               bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
+       };
+
        spi-gpio {
                #address-cells = <1>;
-               #size-cells = <1>;
+               #size-cells = <0>;
                compatible = "spi-gpio";
 
-               gpio-mosi = <&gpio0 7 0>;
-               gpio-sck = <&gpio0 6 0>;
-               cs-gpios = <&gpio0 5 0>;
+               gpio-mosi = <&pinctrl 7 0>;
+               gpio-sck = <&pinctrl 6 0>;
+               cs-gpios = <&pinctrl 5 0>;
                num-chipselects = <1>;
 
                hc595: gpio-spi-controller@0 {
 
                phone {
                        label = "phone";
-                       gpios = <&gpio0 1 1>;
-                       linux,code = <169>;
+                       gpios = <&pinctrl 1 1>;
+                       linux,code = <KEY_PHONE>;
                };
                reset {
                        label = "reset";
-                       gpios = <&gpio0 9 1>;
+                       gpios = <&pinctrl 9 1>;
                        linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wps";
-                       gpios = <&gpio0 11 1>;
+                       gpios = <&pinctrl 11 1>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };