brcm63xx: probe SPI flash through DT
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / nb6-ser-r0.dts
index 78c17dd7993f1d52a6a058e34f13e4b11119a018..c0182f33e124d1fef177d53a62eb2a7c41674a61 100644 (file)
                realtek,extif0 = <1 5 1 1 1 1 1 1 2>;
        };
 };
+
+&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";
+
+               cfe@0 {
+                       reg = <0x000000 0x010000>;
+                       label = "cfe";
+                       read-only;
+               };
+
+               linux@10000 {
+                       reg = <0x010000 0xfe0000>;
+                       label = "linux";
+               };
+
+               nvram@ff0000 {
+                       reg = <0xff0000 0x010000>;
+                       label = "nvram";
+               };
+       };
+};