ARM: dts: vf610-bk4: Fix qspi node description
PATCH v3 1/1 ARM: dts: vf610-bk4: Fix qspi node description
Before this change the device tree description of qspi node for second memory on BK4 board was wrong (applicable to old, removed fsl-quadspi.c driver).
As a result this memory was not recognized correctly when used with the new spi-fsl-qspi.c driver.
Quoted 1 line
From the dt-bindings:
"Required SPI slave node properties:
- reg: There are two buses (A and B) with two chip selects each.
This encodes to which bus and CS the flash is connected:
<0>: Bus A, CS 0
<1>: Bus A, CS 1
<2>: Bus B, CS 0
<3>: Bus B, CS 1"
According to above with new driver the second SPI-NOR memory shall have reg=<2> as it is connected to Bus B, CS 0.
---
Changes for v3:
- Reorder Signed-off, Suggested-by and Fixes tags
- Add Reviewed-by: Fabio Estevam <[email protected]>
Changes for v2:
- Add proper Suggested-by tag as Fabio was the one who pointed out the the issue with wrong reg number assignment for the second SPI-NOR memory
- Add Fixes: tag, so the patch could be added to LTS kernels
- Fix the subject line to more appropriate
--- arch/arm/boot/dts/vf610-bk4.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/vf610-bk4.dts +2 -2
@@ -246,13 +246,13 @@ reg = <0>; }; - n25q128a13_2: flash@1 { + n25q128a13_2: flash@2 { compatible = "n25q128a13", "jedec,spi-nor"; #address-cells = <1>; #size-cells = <1>; spi-max-frequency = <66000000>; spi-rx-bus-width = <2>; - reg = <1>; + reg = <2>; }; };
Signature · 1 line
2.11.0
Shawn Guo
AppliedQuoted 17 lines · Lukasz Majewski
Before this change the device tree description of qspi node for second memory on BK4 board was wrong (applicable to old, removed
fsl-quadspi.cdriver).As a result this memory was not recognized correctly when used with the new
spi-fsl-qspi.cdriver.From the dt-bindings:
"Required SPI slave node properties:
- reg: There are two buses (A and B) with two chip selects each.
This encodes to which bus and CS the flash is connected:
<0>: Bus A, CS 0
<1>: Bus A, CS 1
<2>: Bus B, CS 0
<3>: Bus B, CS 1"
Quoted 7 lines
According to above with new driver the second SPI-NOR memory shall have reg=<2> as it is connected to Bus B, CS 0.
Fixes a67d2c52a82f ("ARM: dts: Add support for Liebherr's BK4 device (vf610 based)")Suggested-by Fabio Estevam <[email protected]>Signed-off-by Lukasz Majewski <[email protected]>Reviewed-by Fabio Estevam <[email protected]>
Applied, thanks.