linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] dt-bindings: fsl: dspi: Add fsl,ls1088a-dspi compatible string
@ 2019-08-01  8:31 Chuanhua Han
  2019-08-01  8:31 ` [PATCH 2/3] arm64: dts: ls1088a: Add the DSPI controller node Chuanhua Han
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Chuanhua Han @ 2019-08-01  8:31 UTC (permalink / raw)
  To: broonie, robh+dt, mark.rutland, shawnguo, leoyang.li
  Cc: linux-spi, devicetree, linux-kernel, linux-arm-kernel, Chuanhua Han

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

Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com>
---
 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 dcc7eaa..162e024 100644
--- a/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt
+++ b/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt
@@ -6,6 +6,7 @@ Required properties:
 		or
 		"fsl,ls2080a-dspi" followed by "fsl,ls2085a-dspi"
 		"fsl,ls1012a-dspi" followed by "fsl,ls1021a-v1.0-dspi"
+		"fsl,ls1088a-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.9.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/3] arm64: dts: ls1088a: Add the DSPI controller node
  2019-08-01  8:31 [PATCH 1/3] dt-bindings: fsl: dspi: Add fsl,ls1088a-dspi compatible string Chuanhua Han
@ 2019-08-01  8:31 ` Chuanhua Han
  2019-08-24 18:36   ` Shawn Guo
  2019-08-01  8:31 ` [PATCH 3/3] arm64: dts: ls1088a-qds: Add the spi-flash nodes under the DSPI controller Chuanhua Han
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Chuanhua Han @ 2019-08-01  8:31 UTC (permalink / raw)
  To: broonie, robh+dt, mark.rutland, shawnguo, leoyang.li
  Cc: linux-spi, devicetree, linux-kernel, linux-arm-kernel, Chuanhua Han

This patch adds the DSPI controller node for ls1088a boards.

Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com>
---
 arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
index dacd8cf..fe8f1bd 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
@@ -252,6 +252,19 @@
 			#thermal-sensor-cells = <1>;
 		};
 
+		dspi: spi@2100000 {
+			compatible = "fsl,ls1088a-dspi",
+						"fsl,ls1021a-v1.0-dspi";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x0 0x2100000 0x0 0x10000>;
+			interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
+			clock-names = "dspi";
+			clocks = <&clockgen 4 1>;
+			spi-num-chipselects = <6>;
+			status = "disabled";
+		};
+
 		duart0: serial@21c0500 {
 			compatible = "fsl,ns16550", "ns16550a";
 			reg = <0x0 0x21c0500 0x0 0x100>;
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/3] arm64: dts: ls1088a-qds: Add the spi-flash nodes under the DSPI controller
  2019-08-01  8:31 [PATCH 1/3] dt-bindings: fsl: dspi: Add fsl,ls1088a-dspi compatible string Chuanhua Han
  2019-08-01  8:31 ` [PATCH 2/3] arm64: dts: ls1088a: Add the DSPI controller node Chuanhua Han
@ 2019-08-01  8:31 ` Chuanhua Han
  2019-08-21 18:34 ` [PATCH 1/3] dt-bindings: fsl: dspi: Add fsl,ls1088a-dspi compatible string Rob Herring
  2019-08-24 18:35 ` Shawn Guo
  3 siblings, 0 replies; 6+ messages in thread
From: Chuanhua Han @ 2019-08-01  8:31 UTC (permalink / raw)
  To: broonie, robh+dt, mark.rutland, shawnguo, leoyang.li
  Cc: linux-spi, devicetree, linux-kernel, linux-arm-kernel, Chuanhua Han

This patch adds the spi-flash nodes under the DSPI controller for
ls1088a-qds boards.

Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com>
---
 arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts | 33 +++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts
index 6f48d21..120e62d 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts
@@ -17,6 +17,39 @@
 	compatible = "fsl,ls1088a-qds", "fsl,ls1088a";
 };
 
+&dspi {
+	bus-num = <0>;
+	status = "okay";
+
+	flash@0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "jedec,spi-nor";
+		reg = <0>;
+		spi-max-frequency = <1000000>;
+	};
+
+	flash@1 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "jedec,spi-nor";
+		spi-cpol;
+		spi-cpha;
+		spi-max-frequency = <3500000>;
+		reg = <1>;
+	};
+
+	flash@2 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "jedec,spi-nor";
+		spi-cpol;
+		spi-cpha;
+		spi-max-frequency = <3500000>;
+		reg = <2>;
+	};
+};
+
 &i2c0 {
 	status = "okay";
 
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/3] dt-bindings: fsl: dspi: Add fsl,ls1088a-dspi compatible string
  2019-08-01  8:31 [PATCH 1/3] dt-bindings: fsl: dspi: Add fsl,ls1088a-dspi compatible string Chuanhua Han
  2019-08-01  8:31 ` [PATCH 2/3] arm64: dts: ls1088a: Add the DSPI controller node Chuanhua Han
  2019-08-01  8:31 ` [PATCH 3/3] arm64: dts: ls1088a-qds: Add the spi-flash nodes under the DSPI controller Chuanhua Han
@ 2019-08-21 18:34 ` Rob Herring
  2019-08-24 18:35 ` Shawn Guo
  3 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2019-08-21 18:34 UTC (permalink / raw)
  To: Chuanhua Han
  Cc: broonie, robh+dt, mark.rutland, shawnguo, leoyang.li, linux-spi,
	devicetree, linux-kernel, linux-arm-kernel, Chuanhua Han

On Thu,  1 Aug 2019 16:31:03 +0800, Chuanhua Han wrote:
> new compatible string: "fsl,ls1088a-dspi".
> 
> Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com>
> ---
>  Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt | 1 +
>  1 file changed, 1 insertion(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/3] dt-bindings: fsl: dspi: Add fsl,ls1088a-dspi compatible string
  2019-08-01  8:31 [PATCH 1/3] dt-bindings: fsl: dspi: Add fsl,ls1088a-dspi compatible string Chuanhua Han
                   ` (2 preceding siblings ...)
  2019-08-21 18:34 ` [PATCH 1/3] dt-bindings: fsl: dspi: Add fsl,ls1088a-dspi compatible string Rob Herring
@ 2019-08-24 18:35 ` Shawn Guo
  3 siblings, 0 replies; 6+ messages in thread
From: Shawn Guo @ 2019-08-24 18:35 UTC (permalink / raw)
  To: Chuanhua Han
  Cc: broonie, robh+dt, mark.rutland, leoyang.li, linux-spi,
	devicetree, linux-kernel, linux-arm-kernel

On Thu, Aug 01, 2019 at 04:31:03PM +0800, Chuanhua Han wrote:
> new compatible string: "fsl,ls1088a-dspi".
> 
> Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com>

Applied all, thanks.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/3] arm64: dts: ls1088a: Add the DSPI controller node
  2019-08-01  8:31 ` [PATCH 2/3] arm64: dts: ls1088a: Add the DSPI controller node Chuanhua Han
@ 2019-08-24 18:36   ` Shawn Guo
  0 siblings, 0 replies; 6+ messages in thread
From: Shawn Guo @ 2019-08-24 18:36 UTC (permalink / raw)
  To: Chuanhua Han
  Cc: broonie, robh+dt, mark.rutland, leoyang.li, linux-spi,
	devicetree, linux-kernel, linux-arm-kernel

On Thu, Aug 01, 2019 at 04:31:04PM +0800, Chuanhua Han wrote:
> This patch adds the DSPI controller node for ls1088a boards.
> 
> Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com>
> ---
>  arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
> index dacd8cf..fe8f1bd 100644
> --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
> +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
> @@ -252,6 +252,19 @@
>  			#thermal-sensor-cells = <1>;
>  		};
>  
> +		dspi: spi@2100000 {
> +			compatible = "fsl,ls1088a-dspi",
> +						"fsl,ls1021a-v1.0-dspi";

I fixed the indent to have two compatible strings aligned on same
column when applying.

Shawn

> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +			reg = <0x0 0x2100000 0x0 0x10000>;
> +			interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
> +			clock-names = "dspi";
> +			clocks = <&clockgen 4 1>;
> +			spi-num-chipselects = <6>;
> +			status = "disabled";
> +		};
> +
>  		duart0: serial@21c0500 {
>  			compatible = "fsl,ns16550", "ns16550a";
>  			reg = <0x0 0x21c0500 0x0 0x100>;
> -- 
> 2.9.5
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-08-24 18:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-01  8:31 [PATCH 1/3] dt-bindings: fsl: dspi: Add fsl,ls1088a-dspi compatible string Chuanhua Han
2019-08-01  8:31 ` [PATCH 2/3] arm64: dts: ls1088a: Add the DSPI controller node Chuanhua Han
2019-08-24 18:36   ` Shawn Guo
2019-08-01  8:31 ` [PATCH 3/3] arm64: dts: ls1088a-qds: Add the spi-flash nodes under the DSPI controller Chuanhua Han
2019-08-21 18:34 ` [PATCH 1/3] dt-bindings: fsl: dspi: Add fsl,ls1088a-dspi compatible string Rob Herring
2019-08-24 18:35 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).