arm64: dts: ls1012a: Add QSPI support for ls1012a
PATCH 1/1 arm64: dts: ls1012a: Add QSPI support for ls1012a
QSPI support is added for kernel version greater than 5.0 and supports quad mode defined by
TX-WIDTH = <4>, RX-WIDTH = <4>
RDB/QDS has one 64MB flash from SPANSION(s25fs512s)
---
Dependency on https://patchwork.ozlabs.org/patch/1100471/
Dependency on https://patchwork.ozlabs.org/patch/1100472/
.../arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts | 15 +++++++++++++++ .../arm64/boot/dts/freescale/fsl-ls1012a-frwy.dts | 15 +++++++++++++++ arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts | 15 +++++++++++++++ arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts | 15 +++++++++++++++ arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 15 +++++++++++++++ 5 files changed, 75 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts +15 -0
@@ -61,6 +61,21 @@ status = "okay"; }; +&qspi { + status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; +}; + &i2c0 { status = "okay";
arch/arm64/boot/dts/freescale/fsl-ls1012a-frwy.dts +15 -0
@@ -20,6 +20,21 @@ status = "okay"; }; +&qspi { + status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; +}; + &i2c0 { status = "okay"; };
arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts +15 -0
@@ -90,6 +90,21 @@ }; }; +&qspi { + status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; +}; + &duart0 { status = "okay"; };
arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts +15 -0
@@ -38,3 +38,18 @@ &sata { status = "okay"; }; + +&qspi { + status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; +};
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +15 -0
@@ -350,6 +350,21 @@ status = "disabled"; }; + qspi: spi@1550000 { + compatible = "fsl,ls1021a-qspi", "fsl,ls1012a-qspi"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x1550000 0x0 0x10000>, + <0x0 0x40000000 0x0 0x10000000>; + reg-names = "QuadSPI", "QuadSPI-memory"; + interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>; + clock-names = "qspi_en", "qspi"; + clocks = <&clockgen 4 1>, <&clockgen 4 1>; + big-endian; + fsl,qspi-has-second-chip; + status = "disabled"; + }; + duart0: serial@21c0500 { compatible = "fsl,ns16550", "ns16550a"; reg = <0x00 0x21c0500 0x0 0x100>;
Signature · 1 line
2.17.1
PATCH 1/1 arm64: dts: ls1046a: Fast read m25p60
QSPI support is added for kernel version greater than 5.0 and supports quad mode defined by
TX-WIDTH = <4>, RX-WIDTH = <4>
RDB/QDS has two 64MB flash from SPANSION(s25fs512s)
--- arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts | 3 ++- arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts +2 -1
@@ -166,9 +166,10 @@ status = "okay"; qflash0: flash@0 { - compatible = "spansion,m25p80"; + compatible = "spansion,m25p80", "jedec,spi-nor"; #address-cells = <1>; #size-cells = <1>; + m25p,fast-read; spi-max-frequency = <20000000>; spi-rx-bus-width = <4>; spi-tx-bus-width = <4>;
arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts +4 -2
@@ -102,9 +102,10 @@ status = "okay"; qflash0: flash@0 { - compatible = "spansion,m25p80"; + compatible = "spansion,m25p80", "jedec,spi-nor"; #address-cells = <1>; #size-cells = <1>; + m25p,fast-read; spi-max-frequency = <20000000>; spi-rx-bus-width = <4>; spi-tx-bus-width = <4>;
@@ -112,9 +113,10 @@ }; qflash1: flash@1 { - compatible = "spansion,m25p80"; + compatible = "spansion,m25p80", "jedec,spi-nor"; #address-cells = <1>; #size-cells = <1>; + m25p,fast-read; spi-max-frequency = <20000000>; spi-rx-bus-width = <4>; spi-tx-bus-width = <4>;
Signature · 1 line
2.17.1
Re: [PATCH] arm64: dts: ls1046a: Fast read m25p60
Quoted 8 lines · Kuldeep Singh
QSPI support is added for kernel version greater than 5.0 and supports quad mode defined by
TX-WIDTH = <4>, RX-WIDTH = <4>RDB/QDS has two 64MB flash from SPANSION(s25fs512s)
Signed-off-by Ashish Kumar <[email protected]>Signed-off-by Kuldeep Singh <[email protected]>
Please do not send patch in message encoding with base64. I do not apply it.
Shawn
Quoted 52 lines
--- arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts | 3 ++- arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-)arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts +2
-1@@ -166,9 +166,10 @@ status = "okay"; qflash0: flash@0 { - compatible = "spansion,m25p80"; + compatible = "spansion,m25p80", "jedec,spi-nor"; #address-cells = <1>; #size-cells = <1>; + m25p,fast-read; spi-max-frequency = <20000000>; spi-rx-bus-width = <4>; spi-tx-bus-width = <4>;arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts +4
-2@@ -102,9 +102,10 @@ status = "okay"; qflash0: flash@0 { - compatible = "spansion,m25p80"; + compatible = "spansion,m25p80", "jedec,spi-nor"; #address-cells = <1>; #size-cells = <1>; + m25p,fast-read; spi-max-frequency = <20000000>; spi-rx-bus-width = <4>; spi-tx-bus-width = <4>;@@ -112,9 +113,10 @@ }; qflash1: flash@1 { - compatible = "spansion,m25p80"; + compatible = "spansion,m25p80", "jedec,spi-nor"; #address-cells = <1>; #size-cells = <1>; + m25p,fast-read; spi-max-frequency = <20000000>; spi-rx-bus-width = <4>; spi-tx-bus-width = <4>;Signature · 1 line
2.17.1
PATCH 1/1 arm64: dts: ls1088a: Add QSPI support
In reply to Kuldeep SinghQSPI support is added for kernel version greater than 5.0 and supports quad mode defined by
TX-WIDTH = <4>, RX-WIDTH = <4>
RDB/QDS has two 64MB flash from SPANSION(s25fs512s)
---
Dependency on https://patchwork.ozlabs.org/patch/1100471/
Dependency on https://patchwork.ozlabs.org/patch/1100472/
.../boot/dts/freescale/fsl-ls1088a-qds.dts | 26 +++++++++++++++++++ .../boot/dts/freescale/fsl-ls1088a-rdb.dts | 26 +++++++++++++++++++ .../arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 13 ++++++++++ 3 files changed, 65 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts +26 -0
@@ -98,6 +98,32 @@ }; }; +&qspi { + status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; + + qflash1: flash@1 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <1>; + }; +}; + &duart0 { status = "okay"; };
arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts +26 -0
@@ -74,6 +74,32 @@ }; }; +&qspi { + status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; + + qflash1: flash@1 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <1>; + }; +}; + &duart0 { status = "okay"; };
arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi +13 -0
@@ -318,6 +318,19 @@ status = "disabled"; }; + qspi: spi@20c0000 { + status = "disabled"; + compatible = "fsl,ls2080a-qspi", "fsl,ls1088a-qspi"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x20c0000 0x0 0x10000>, + <0x0 0x20000000 0x0 0x10000000>; + reg-names = "QuadSPI", "QuadSPI-memory"; + interrupts = <0 25 0x4>; /* Level high type */ + clocks = <&clockgen 4 3>, <&clockgen 4 3>; + clock-names = "qspi_en", "qspi"; + }; + i2c0: i2c@2000000 { compatible = "fsl,vf610-i2c"; #address-cells = <1>;
Signature · 5 lines
2.17.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
Re: [PATCH] arm64: dts: ls1088a: Add QSPI support
Quoted 11 lines · Kuldeep Singh
QSPI support is added for kernel version greater than 5.0 and supports quad mode defined by
TX-WIDTH = <4>, RX-WIDTH = <4>RDB/QDS has two 64MB flash from SPANSION(s25fs512s)
Signed-off-by Ashish Kumar <[email protected]>Signed-off-by Kuldeep Singh <[email protected]>---
Dependency on https://patchwork.ozlabs.org/patch/1100471/
Dependency on https://patchwork.ozlabs.org/patch/1100472/
Please send dts changes only after dependencies get accepted.
Shawn
Quoted 107 lines
.../boot/dts/freescale/fsl-ls1088a-qds.dts | 26 +++++++++++++++++++ .../boot/dts/freescale/fsl-ls1088a-rdb.dts | 26 +++++++++++++++++++ .../arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 13 ++++++++++ 3 files changed, 65 insertions(+)arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts +26
-0@@ -98,6 +98,32 @@ }; }; +&qspi { + status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; + + qflash1: flash@1 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <1>; + }; +}; + &duart0 { status = "okay"; };arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts +26
-0@@ -74,6 +74,32 @@ }; }; +&qspi { + status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; + + qflash1: flash@1 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <1>; + }; +}; + &duart0 { status = "okay"; };arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi +13
-0@@ -318,6 +318,19 @@ status = "disabled"; }; + qspi: spi@20c0000 { + status = "disabled"; + compatible = "fsl,ls2080a-qspi", "fsl,ls1088a-qspi"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x20c0000 0x0 0x10000>, + <0x0 0x20000000 0x0 0x10000000>; + reg-names = "QuadSPI", "QuadSPI-memory"; + interrupts = <0 25 0x4>; /* Level high type */ + clocks = <&clockgen 4 3>, <&clockgen 4 3>; + clock-names = "qspi_en", "qspi"; + }; + i2c0: i2c@2000000 { compatible = "fsl,vf610-i2c"; #address-cells = <1>;Signature · 1 line
2.17.1
PATCH 1/1 arm64: dts: ls208x: Remove non-compatible driver device from qspi node
In reply to Kuldeep SinghSince device properties are different, so remove fsl, ls1021a-qspi
---
Dependency on https://patchwork.ozlabs.org/patch/1100471/
Dependency on https://patchwork.ozlabs.org/patch/1100472/
arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi +1 -1
@@ -606,7 +606,7 @@ qspi: spi@20c0000 { status = "disabled"; - compatible = "fsl,ls2080a-qspi", "fsl,ls1021a-qspi"; + compatible = "fsl,ls2080a-qspi"; #address-cells = <1>; #size-cells = <0>; reg = <0x0 0x20c0000 0x0 0x10000>,
Signature · 5 lines
2.17.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
Quoted 24 lines · Kuldeep Singh
QSPI support is added for kernel version greater than 5.0 and supports quad mode defined by
TX-WIDTH = <4>, RX-WIDTH = <4>RDB/QDS has one 64MB flash from SPANSION(s25fs512s)
Signed-off-by Ashish Kumar <[email protected]>Signed-off-by Kuldeep Singh <[email protected]>---
Dependency on https://patchwork.ozlabs.org/patch/1100471/
Dependency on https://patchwork.ozlabs.org/patch/1100472/.../arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts | 15 +++++++++++++++ .../arm64/boot/dts/freescale/fsl-ls1012a-frwy.dts | 15 +++++++++++++++ arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts | 15 +++++++++++++++ arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts | 15 +++++++++++++++ arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 15 +++++++++++++++ 5 files changed, 75 insertions(+)arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts +0
-0
arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts line 64
Quoted 4 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts +1
-0@@ -61,6 +61,21 @@ status = "okay"; }; +&qspi {
Please sort these labeling nodes alphabetically. That said, &qspi should go after &i2c0.
Quoted 97 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts +14
-0+ status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; +}; + &i2c0 { status = "okay";arch/arm64/boot/dts/freescale/fsl-ls1012a-frwy.dts +15
-0@@ -20,6 +20,21 @@ status = "okay"; }; +&qspi { + status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; +}; + &i2c0 { status = "okay"; };arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts +15
-0@@ -90,6 +90,21 @@ }; }; +&qspi { + status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; +}; + &duart0 { status = "okay"; };arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts +15
-0@@ -38,3 +38,18 @@ &sata { status = "okay"; }; + +&qspi { + status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; +};arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +0
-0
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi line 353
Quoted 4 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +1
-0@@ -350,6 +350,21 @@ status = "disabled"; }; + qspi: spi@1550000 {
Please sort node with unit-address in that address. That said, it should go before esdhc@1560000.
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi line 364
Quoted 11 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +11
-0+ compatible = "fsl,ls1021a-qspi", "fsl,ls1012a-qspi"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x1550000 0x0 0x10000>, + <0x0 0x40000000 0x0 0x10000000>; + reg-names = "QuadSPI", "QuadSPI-memory"; + interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>; + clock-names = "qspi_en", "qspi"; + clocks = <&clockgen 4 1>, <&clockgen 4 1>; + big-endian; + fsl,qspi-has-second-chip;
Undocumented property?
Shawn
Quoted 9 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +3
-0+ status = "disabled"; + }; + duart0: serial@21c0500 { compatible = "fsl,ns16550", "ns16550a"; reg = <0x00 0x21c0500 0x0 0x100>;Signature · 1 line
2.17.1
Quoted 138 lines · Shawn Guo
Quoted 24 lines · Kuldeep Singh
QSPI support is added for kernel version greater than 5.0 and supports quad mode defined by
TX-WIDTH = <4>, RX-WIDTH = <4>RDB/QDS has one 64MB flash from SPANSION(s25fs512s)
Signed-off-by Ashish Kumar <[email protected]>Signed-off-by Kuldeep Singh <[email protected]>---
Dependency on https://patchwork.ozlabs.org/patch/1100471/
Dependency on https://patchwork.ozlabs.org/patch/1100472/.../arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts | 15 +++++++++++++++ .../arm64/boot/dts/freescale/fsl-ls1012a-frwy.dts | 15 +++++++++++++++ arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts | 15 +++++++++++++++ arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts | 15 +++++++++++++++ arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 15 +++++++++++++++ 5 files changed, 75 insertions(+)arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts +0
-0arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts line 64
Quoted 4 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts +1
-0@@ -61,6 +61,21 @@ status = "okay"; }; +&qspi {Please sort these labeling nodes alphabetically. That said, &qspi should go after &i2c0.
Quoted 97 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts +14
-0+ status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; +}; + &i2c0 { status = "okay";arch/arm64/boot/dts/freescale/fsl-ls1012a-frwy.dts +15
-0@@ -20,6 +20,21 @@ status = "okay"; }; +&qspi { + status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; +}; + &i2c0 { status = "okay"; };arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts +15
-0@@ -90,6 +90,21 @@ }; }; +&qspi { + status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; +}; + &duart0 { status = "okay"; };arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts +15
-0@@ -38,3 +38,18 @@ &sata { status = "okay"; }; + +&qspi { + status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; +};arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +0
-0arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi line 353
Quoted 4 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +1
-0@@ -350,6 +350,21 @@ status = "disabled"; }; + qspi: spi@1550000 {Please sort node with unit-address in that address. That said, it should go before esdhc@1560000.
Quoted 13 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi line 364
Quoted 11 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +11
-0+ compatible = "fsl,ls1021a-qspi", "fsl,ls1012a-qspi"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x1550000 0x0 0x10000>, + <0x0 0x40000000 0x0 0x10000000>; + reg-names = "QuadSPI", "QuadSPI-memory"; + interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>; + clock-names = "qspi_en", "qspi"; + clocks = <&clockgen 4 1>, <&clockgen 4 1>; + big-endian; + fsl,qspi-has-second-chip;Undocumented property?
Both properties, "fsl,qspi-has-second-chip" and "big-endian" are deprecated.
Hi Shawn and Frieder,
Quoted 51 lines
-----Original Message-----
From: Schrempf Frieder [mailto:[email protected]]
Sent: Thursday, May 23, 2019 2:31 PM
To: Shawn Guo <[email protected]>; Kuldeep Singh <[email protected]>
Cc: [email protected]; [email protected]; Ashish Kumar <[email protected]>; [email protected]; linux- [email protected]; [email protected]
Subject: [EXT] Re: [PATCH] arm64: dts: ls1012a: Add QSPI support for ls1012aCaution: EXT Email
Quoted 11 lines · Shawn Guo
Quoted 10 lines · Kuldeep Singh
QSPI support is added for kernel version greater than 5.0 and supports quad mode defined by TX-WIDTH = <4>, RX-WIDTH = <4>
RDB/QDS has one 64MB flash from SPANSION(s25fs512s)
Signed-off-by Ashish Kumar <[email protected]>Signed-off-by Kuldeep Singh <[email protected]>---
Dependency onhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpat
Quoted 1 line
Quoted 1 line
chwork.ozlabs.org%2Fpatch%2F1100471%2F&data=02%7C01%7Ckuldee p.sin
Quoted 1 line
Quoted 1 line
gh%40nxp.com%7C5f9556e9b9b943c5568608d6df5d2e40%7C686ea1d3bc2b4 c6fa92
Quoted 1 line
Quoted 1 line
cd99c5c301635%7C0%7C0%7C636941988633482881&sdata=Pj4XNJHmhK HtBrzg
Quoted 3 lines
Quoted 3 lines
eC%2BNA7Lkl3BDEdL1uEVqAnoPcS8%3D&reserved=0
Dependency onhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpat
Quoted 1 line
Quoted 1 line
chwork.ozlabs.org%2Fpatch%2F1100472%2F&data=02%7C01%7Ckuldee p.sin
Quoted 1 line
Quoted 1 line
gh%40nxp.com%7C5f9556e9b9b943c5568608d6df5d2e40%7C686ea1d3bc2b4 c6fa92
Quoted 1 line
Quoted 1 line
cd99c5c301635%7C0%7C0%7C636941988633482881&sdata=zZ4jCpNyxQl CL6uU
Quoted 3 lines
Quoted 3 lines
PK8LG%2BVV8jWOCBg45ZrGoqT3gnU%3D&reserved=0
.../arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts | 15+++++++++++++++
Quoted 23 lines
Quoted 1 line
Quoted 1 line
.../arm64/boot/dts/freescale/fsl-ls1012a-frwy.dts | 15+++++++++++++++
Quoted 1 line
Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts | 15+++++++++++++++
Quoted 1 line
Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts | 15+++++++++++++++
Quoted 1 line
Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 15+++++++++++++++
Quoted 15 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts line 64
Quoted 12 lines
5 files changed, 75 insertions(+)arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts +1
-0@@ -61,6 +61,21 @@ status = "okay"; }; +&qspi {Please sort these labeling nodes alphabetically. That said, &qspi should go after &i2c0.
Ok, will update in next version
Quoted 105 lines
Quoted 105 lines
Quoted 105 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts +14
-0+ status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; +}; + &i2c0 { status = "okay";arch/arm64/boot/dts/freescale/fsl-ls1012a-frwy.dts +15
-0@@ -20,6 +20,21 @@ status = "okay"; }; +&qspi { + status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; +}; + &i2c0 { status = "okay"; };arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts +15
-0@@ -90,6 +90,21 @@ }; }; +&qspi { + status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; +}; + &duart0 { status = "okay"; };arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts +15
-0@@ -38,3 +38,18 @@ &sata { status = "okay"; }; + +&qspi { + status = "okay"; + + qflash0: flash@0 { + compatible = "spansion,m25p80", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <20000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; +};arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +0
-0@@ -350,6 +350,21 @@ status = "disabled"; };
Quoted 4 lines
Quoted 4 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi line 353
Quoted 1 line
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +1
-0+ qspi: spi@1550000 {Please sort node with unit-address in that address. That said, it should go before esdhc@1560000.
Ok
Quoted 13 lines
Quoted 13 lines
Quoted 12 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +11
-0+ compatible = "fsl,ls1021a-qspi", "fsl,ls1012a-qspi"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x1550000 0x0 0x10000>, + <0x0 0x40000000 0x0 0x10000000>; + reg-names = "QuadSPI", "QuadSPI-memory"; + interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>; + clock-names = "qspi_en", "qspi"; + clocks = <&clockgen 4 1>, <&clockgen 4 1>; + big-endian; + fsl,qspi-has-second-chip;
Quoted 3 lines
Quoted 1 line
Undocumented property?
Both properties, "fsl,qspi-has-second-chip" and "big-endian" are deprecated.
Will remove both in next version
Quoted 9 lines
See:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.ke
rnel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git%2 Fcommit%2F%3Fid%3D78df30808961cd32f0517c7469886386b0680852&d ata=02%7C01%7Ckuldeep.singh%40nxp.com%7C5f9556e9b9b943c5568608d6 df5d2e40%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C6369419886 33482881&sdata=CDxhRylo%2FLO2rHtEUu5DhtFiBr%2BWFRQl0%2BJFVJ T7y%2B0%3D&reserved=0
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/