brcm63xx: probe SPI flash through DT
[openwrt/staging/rmilecki.git] / target / linux / brcm63xx / dts / bcm963269bhr.dts
index 01a76804f8b4ffe16490ec2d33118ad5913a34cc..68c17ebabf30153c445185803a5b15b1258dd8ac 100644 (file)
@@ -8,6 +8,10 @@
        model = "Broadcom BCM963269BHR reference board";
        compatible = "brcm,bcm963269bhr", "brcm,bcm63268";
 
+       chosen {
+               bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
+       };
+
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
                };
        };
 };
+
+&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";
+       };
+};