2017-08-30 10:29:50

by Zhiqiang Hou

[permalink] [raw]
Subject: [PATCHv2 0/3] arm64: dts: ls1012a: add the DTS node for DSPI support

From: Hou Zhiqiang <[email protected]>

Corrected the subject for 3/5 patch v1.

Yuan Yao (3):
arm64: dts: ls1012a: add the DTS node for DSPI support
Documentation: fsl: dspi: Add fsl,ls1012a-dspi compatible string
Documentation: dt: mtd: add sst25wf040b and en25s64 to the SPI NOR
support list

.../devicetree/bindings/mtd/jedec,spi-nor.txt | 2 ++
.../devicetree/bindings/spi/spi-fsl-dspi.txt | 1 +
arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts | 33 ++++++++++++++++++++++
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 13 +++++++++
4 files changed, 49 insertions(+)

--
2.14.1


2017-08-30 10:29:56

by Zhiqiang Hou

[permalink] [raw]
Subject: [PATCHv2 1/3] arm64: dts: ls1012a: add the DTS node for DSPI support

From: Yuan Yao <[email protected]>

Signed-off-by: Yuan Yao <[email protected]>
Signed-off-by: Hou Zhiqiang <[email protected]>
---
V2:
- No change

arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts | 33 +++++++++++++++++++++++
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 13 +++++++++
2 files changed, 46 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts
index 8c013b54db14..cdc4aee75227 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts
@@ -93,6 +93,39 @@
};
};

+&dspi {
+ bus-num = <0>;
+ status = "okay";
+
+ flash@0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "n25q128a11", "jedec,spi-nor";
+ reg = <0>;
+ spi-max-frequency = <10000000>;
+ };
+
+ flash@1 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "sst25wf040b", "jedec,spi-nor";
+ spi-cpol;
+ spi-cpha;
+ reg = <1>;
+ spi-max-frequency = <10000000>;
+ };
+
+ flash@2 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "en25s64", "jedec,spi-nor";
+ spi-cpol;
+ spi-cpha;
+ reg = <2>;
+ spi-max-frequency = <10000000>;
+ };
+};
+
&duart0 {
status = "okay";
};
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
index df83915d6ea6..09ce00022728 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
@@ -355,6 +355,19 @@
status = "disabled";
};

+ dspi: dspi@2100000 {
+ compatible = "fsl,ls1012a-dspi", "fsl,ls1021a-v1.0-dspi";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0x0 0x2100000 0x0 0x10000>;
+ interrupts = <0 64 IRQ_TYPE_LEVEL_HIGH>;
+ clock-names = "dspi";
+ clocks = <&clockgen 4 0>;
+ spi-num-chipselects = <5>;
+ big-endian;
+ status = "disabled";
+ };
+
duart0: serial@21c0500 {
compatible = "fsl,ns16550", "ns16550a";
reg = <0x00 0x21c0500 0x0 0x100>;
--
2.14.1

2017-08-30 10:30:02

by Zhiqiang Hou

[permalink] [raw]
Subject: [PATCHv2 3/3] Documentation: dt: mtd: add sst25wf040b and en25s64 to the SPI NOR support list

From: Yuan Yao <[email protected]>

The chip sst25wf040b and en25s64 are compatible with SPI NOR flash.

Signed-off-by: Yuan Yao <[email protected]>
Signed-off-by: Hou Zhiqiang <[email protected]>
Acked-by: Rob Herring <[email protected]>
---
V2:
- Corrected the subject.

Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt | 2 ++
1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt
index 9ce35af8507c..4cab5d85cf6f 100644
--- a/Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt
+++ b/Documentation/devicetree/bindings/mtd/jedec,spi-nor.txt
@@ -13,6 +13,7 @@ Required properties:
at25df321a
at25df641
at26df081a
+ en25s64
mr25h256
mr25h10
mr25h40
@@ -31,6 +32,7 @@ Required properties:
s25fl008k
s25fl064k
sst25vf040b
+ sst25wf040b
m25p40
m25p80
m25p16
--
2.14.1

2017-08-30 10:30:32

by Zhiqiang Hou

[permalink] [raw]
Subject: [PATCHv2 2/3] Documentation: fsl: dspi: Add fsl,ls1012a-dspi compatible string

From: Yuan Yao <[email protected]>

new compatible string: "fsl,ls1012a-dspi".

Signed-off-by: Yuan Yao <[email protected]>
Signed-off-by: Hou Zhiqiang <[email protected]>
Acked-by: Rob Herring <[email protected]>
---
V2:
- No change

Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt | 1 +
1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt b/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt
index ff5893d275a2..800c483b0076 100644
--- a/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt
+++ b/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt
@@ -5,6 +5,7 @@ Required properties:
"fsl,ls2085a-dspi"
or
"fsl,ls2080a-dspi" followed by "fsl,ls2085a-dspi"
+ "fsl,ls1012a-dspi" followed by "fsl,ls1021a-v1.0-dspi"
- reg : Offset and length of the register set for the device
- interrupts : Should contain SPI controller interrupt
- clocks: from common clock binding: handle to dspi clock.
--
2.14.1

2017-09-20 14:11:12

by Shawn Guo

[permalink] [raw]
Subject: Re: [PATCHv2 0/3] arm64: dts: ls1012a: add the DTS node for DSPI support

On Wed, Aug 30, 2017 at 06:12:35PM +0800, Zhiqiang Hou wrote:
> From: Hou Zhiqiang <[email protected]>
>
> Corrected the subject for 3/5 patch v1.
>
> Yuan Yao (3):
> arm64: dts: ls1012a: add the DTS node for DSPI support
> Documentation: fsl: dspi: Add fsl,ls1012a-dspi compatible string
> Documentation: dt: mtd: add sst25wf040b and en25s64 to the SPI NOR
> support list

I edited bindings doc patch subject a bit, and applied all.

Shawn

2017-09-21 02:47:21

by Zhiqiang Hou

[permalink] [raw]
Subject: RE: [PATCHv2 0/3] arm64: dts: ls1012a: add the DTS node for DSPI support

Hi Shawn,

> -----Original Message-----
> From: Shawn Guo [mailto:[email protected]]
> Sent: 2017??9??20?? 22:11
> To: Z.q. Hou <[email protected]>
> Cc: [email protected]; [email protected];
> [email protected]; [email protected]; [email protected];
> [email protected]; [email protected]
> Subject: Re: [PATCHv2 0/3] arm64: dts: ls1012a: add the DTS node for DSPI
> support
>
> On Wed, Aug 30, 2017 at 06:12:35PM +0800, Zhiqiang Hou wrote:
> > From: Hou Zhiqiang <[email protected]>
> >
> > Corrected the subject for 3/5 patch v1.
> >
> > Yuan Yao (3):
> > arm64: dts: ls1012a: add the DTS node for DSPI support
> > Documentation: fsl: dspi: Add fsl,ls1012a-dspi compatible string
> > Documentation: dt: mtd: add sst25wf040b and en25s64 to the SPI NOR
> > support list
>
> I edited bindings doc patch subject a bit, and applied all.

Thanks a lot!

- Zhiqiang