ARM: dts: vf610-twr: Add SPI NOR support
PATCH 1/2 ARM: dts: vf610-twr: Add SPI NOR support
vf610-twr has a s25fl129p1 SPI NOR flash connected to QuadSpi0.
Add support for it.
Signed-off-by Xiaochun Li <[email protected]>
--- arch/arm/boot/dts/vf610-twr.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
arch/arm/boot/dts/vf610-twr.dts +20 -0
@@ -55,3 +55,23 @@ pinctrl-0 = <&pinctrl_uart1_1>; status = "okay"; }; + +&qspi0 { + fsl,spi-num-chipselects = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_qspi0_1>; + status = "okay"; + + flash: s25fl129p1 at 0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "spansion,s25fl129p1"; + spi-max-frequency = <20000000>; + reg = <0>; + + partition at 0 { + label = "s25fl129p1"; + reg = <0x0 0x1000000>; + }; + }; +};
Signature · 1 line
1.8.0
PATCH 1/2 ARM: dts: vf610-twr: Add SPI NOR support
Quoted 25 lines · Xiaochun Li
vf610-twr has a s25fl129p1 SPI NOR flash connected to QuadSpi0.
Add support for it.
Signed-off-by Xiaochun Li <[email protected]>--- arch/arm/boot/dts/vf610-twr.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)arch/arm/boot/dts/vf610-twr.dts +8
-0@@ -55,3 +55,23 @@ pinctrl-0 = <&pinctrl_uart1_1>; status = "okay"; }; + +&qspi0 { + fsl,spi-num-chipselects = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_qspi0_1>; + status = "okay"; + + flash: s25fl129p1 at 0 {
arch/arm/boot/dts/vf610-twr.dts line 75
Quoted 10 lines
arch/arm/boot/dts/vf610-twr.dts +10
-0+ #address-cells = <1>; + #size-cells = <1>; + compatible = "spansion,s25fl129p1"; + spi-max-frequency = <20000000>; + reg = <0>; + + partition at 0 { + label = "s25fl129p1"; + reg = <0x0 0x1000000>; + };
We should not enforce the partition layout in the device tree, because that's not hardware specific configuration data but use case specific one. Not everyone running vf610-twr board with mainline device tree wants that partition layout. So let's remove it and leave it to boot loader to fill in.
Shawn
Quoted 6 lines
arch/arm/boot/dts/vf610-twr.dts +2
-0+ }; +};Signature · 1 line
1.8.0