From 474cde61234c1191e1caeff01a41c324eda4d28d Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Tue, 7 Feb 2017 14:24:31 +0100 Subject: brcm63xx: probe SPI flash through DT Now that we support problem the SPI controllers through DT, we can also probe flash through DT. Signed-off-by: Jonas Gorski --- target/linux/brcm63xx/dts/nb6-ser-r0.dts | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'target/linux/brcm63xx/dts/nb6-ser-r0.dts') diff --git a/target/linux/brcm63xx/dts/nb6-ser-r0.dts b/target/linux/brcm63xx/dts/nb6-ser-r0.dts index 78c17dd799..c0182f33e1 100644 --- a/target/linux/brcm63xx/dts/nb6-ser-r0.dts +++ b/target/linux/brcm63xx/dts/nb6-ser-r0.dts @@ -49,3 +49,36 @@ 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"; + }; + }; +}; -- cgit v1.2.3