brcm63xx: add pinctrl support
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / bcm963268bu_p300.dts
index cbf63ef41ce98c1a8fd3e1c3cab00d4ed46d0f22..a96bed76128d40cf0db0c2a86f0c151bfd6904bd 100644 (file)
@@ -1,11 +1,17 @@
 /dts-v1/;
 
-/include/ "bcm63268.dtsi"
+#include "bcm63268.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
        model = "Broadcom BCM963268BU_P300 reference board";
        compatible = "brcm,bcm963268bu_p300", "brcm,bcm63268";
 
+       chosen {
+               bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
+       };
+
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
 
                reset {
                        label = "reset";
-                       gpios = <&gpio1 0 0>;
-                       linux,code = <0x198>;
+                       gpios = <&pinctrl 32 0>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio1 1 0>;
-                       linux,code = <0x211>;
+                       gpios = <&pinctrl 33 0>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
         };
 };
+
+&hsspi {
+       status = "ok";
+
+       flash@0 {
+               compatible = "jedec,spi-nor";
+               spi-max-frequency = <20000000>;
+               spi-tx-bus-width = <2>;
+               spi-rx-bus-width = <2>;
+               reg = <0>;
+
+               #address-cells = <1>;
+               #size-cells = <1>;
+
+               linux,part-probe = "bcm63xxpart";
+       };
+};