devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] ls1028a: dts fixes and new board support
@ 2019-12-09 23:43 Michael Walle
  2019-12-09 23:43 ` [PATCH v2 1/5] arm64: dts: ls1028a: fix typo in TMU calibration data Michael Walle
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Michael Walle @ 2019-12-09 23:43 UTC (permalink / raw)
  To: devicetree, linux-kernel, linux-arm-kernel
  Cc: Rob Herring, Mark Rutland, Shawn Guo, Li Yang, Yuantian Tang,
	Michael Walle

This series adds basic support for the Kontron SMARC-sAL28 board. It also
adds missing nodes to the ls1028a base device tree which are used by the
board.

changes since v1:
 - dropped "arm64: dts: ls1028a: add FlexSPI node" in favor of:
   https://lore.kernel.org/lkml/1575457098-18368-2-git-send-email-Ashish.Kumar@nxp.com/
   Thus, this series now depends on that patch
 - better commit message for the TMU patch
 - added fixes tag to the TMU patch
 - document the LS1028A evaluation boards compatible strings
 - document the Kontron sl28 boards compatible strings
 - fix node names of the sl28 device tree(s)
 - removed device specific compatible string of the spi flash
 - rebased the patch series
 - integrate the RGMII configuration of the AR8031 PHY since the binding is
   now already upstream

This patchseries depends on:
 - [Patch v2 1/5] arm64: dts: ls1028a: Add FlexSPI support
   https://lore.kernel.org/lkml/1575457098-18368-2-git-send-email-Ashish.Kumar@nxp.com/
 - [PATCH v2 1/2] dt-bindings: clock: document the fsl-sai driver
   https://lore.kernel.org/lkml/20191209233305.18619-1-michael@walle.cc/

This patchseries superseeds:
 - [PATCH 0/4] ls1028a: dts fixes and new board support
   https://lore.kernel.org/lkml/20191123201317.25861-1-michael@walle.cc/
 - [PATCH] arm64: dts: sl28: configure the RGMII PHY
   https://lore.kernel.org/lkml/20191123202624.28093-1-michael@walle.cc/

Michael Walle (5):
  arm64: dts: ls1028a: fix typo in TMU calibration data
  arm64: dts: ls1028a: add missing sai nodes
  dt-bindings: arm: fsl: add LS1028A based boards
  dt-bindings: arm: fsl: add Kontron sl28 boards
  arm64: dts: freescale: add Kontron sl28 support

 .../devicetree/bindings/arm/fsl.yaml          |  45 +++++
 arch/arm64/boot/dts/freescale/Makefile        |   4 +
 .../fsl-ls1028a-kontron-kbox-a-230-ls.dts     |  27 +++
 .../fsl-ls1028a-kontron-sl28-var3-ads2.dts    | 106 +++++++++++
 .../fsl-ls1028a-kontron-sl28-var4.dts         |  50 +++++
 .../freescale/fsl-ls1028a-kontron-sl28.dts    | 174 ++++++++++++++++++
 .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi |  44 ++++-
 7 files changed, 449 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-kbox-a-230-ls.dts
 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var3-ads2.dts
 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var4.dts
 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts

-- 
2.20.1


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

* [PATCH v2 1/5] arm64: dts: ls1028a: fix typo in TMU calibration data
  2019-12-09 23:43 [PATCH v2 0/5] ls1028a: dts fixes and new board support Michael Walle
@ 2019-12-09 23:43 ` Michael Walle
  2019-12-11  9:16   ` Shawn Guo
  2019-12-09 23:43 ` [PATCH v2 2/5] arm64: dts: ls1028a: add missing sai nodes Michael Walle
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 12+ messages in thread
From: Michael Walle @ 2019-12-09 23:43 UTC (permalink / raw)
  To: devicetree, linux-kernel, linux-arm-kernel
  Cc: Rob Herring, Mark Rutland, Shawn Guo, Li Yang, Yuantian Tang,
	Michael Walle

The temperature sensor may jump backwards because there is a wrong
calibration value. Both values have to be monotonically increasing.
Fix it.

This was tested on a custom board.

Fixes: 571cebfe8e2b ("arm64: dts: ls1028a: Add Thermal Monitor Unit node")
Signed-off-by: Michael Walle <michael@walle.cc>
Acked-by: Tang Yuantian <andy.tang@nxp.com>
---
 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
index 8e8a77eb596a..06082c932531 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
@@ -584,7 +584,7 @@
 					       0x00010004 0x0000003d
 					       0x00010005 0x00000045
 					       0x00010006 0x0000004d
-					       0x00010007 0x00000045
+					       0x00010007 0x00000055
 					       0x00010008 0x0000005e
 					       0x00010009 0x00000066
 					       0x0001000a 0x0000006e
-- 
2.20.1


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

* [PATCH v2 2/5] arm64: dts: ls1028a: add missing sai nodes
  2019-12-09 23:43 [PATCH v2 0/5] ls1028a: dts fixes and new board support Michael Walle
  2019-12-09 23:43 ` [PATCH v2 1/5] arm64: dts: ls1028a: fix typo in TMU calibration data Michael Walle
@ 2019-12-09 23:43 ` Michael Walle
  2019-12-11  9:16   ` Shawn Guo
  2019-12-09 23:43 ` [PATCH v2 3/5] dt-bindings: arm: fsl: add LS1028A based boards Michael Walle
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 12+ messages in thread
From: Michael Walle @ 2019-12-09 23:43 UTC (permalink / raw)
  To: devicetree, linux-kernel, linux-arm-kernel
  Cc: Rob Herring, Mark Rutland, Shawn Guo, Li Yang, Yuantian Tang,
	Michael Walle

The LS1028A has six SAI cores.

Signed-off-by: Michael Walle <michael@walle.cc>
---
 .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 42 +++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
index 06082c932531..7a55314e9c8d 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
@@ -545,6 +545,20 @@
 			status = "disabled";
 		};
 
+		sai3: audio-controller@f120000 {
+			#sound-dai-cells = <0>;
+			compatible = "fsl,vf610-sai";
+			reg = <0x0 0xf120000 0x0 0x10000>;
+			interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&clockgen 4 1>, <&clockgen 4 1>,
+				 <&clockgen 4 1>, <&clockgen 4 1>;
+			clock-names = "bus", "mclk1", "mclk2", "mclk3";
+			dma-names = "tx", "rx";
+			dmas = <&edma0 1 8>,
+			       <&edma0 1 7>;
+			status = "disabled";
+		};
+
 		sai4: audio-controller@f130000 {
 			#sound-dai-cells = <0>;
 			compatible = "fsl,vf610-sai";
@@ -559,6 +573,34 @@
 			status = "disabled";
 		};
 
+		sai5: audio-controller@f140000 {
+			#sound-dai-cells = <0>;
+			compatible = "fsl,vf610-sai";
+			reg = <0x0 0xf140000 0x0 0x10000>;
+			interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&clockgen 4 1>, <&clockgen 4 1>,
+				 <&clockgen 4 1>, <&clockgen 4 1>;
+			clock-names = "bus", "mclk1", "mclk2", "mclk3";
+			dma-names = "tx", "rx";
+			dmas = <&edma0 1 12>,
+			       <&edma0 1 11>;
+			status = "disabled";
+		};
+
+		sai6: audio-controller@f150000 {
+			#sound-dai-cells = <0>;
+			compatible = "fsl,vf610-sai";
+			reg = <0x0 0xf150000 0x0 0x10000>;
+			interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&clockgen 4 1>, <&clockgen 4 1>,
+				 <&clockgen 4 1>, <&clockgen 4 1>;
+			clock-names = "bus", "mclk1", "mclk2", "mclk3";
+			dma-names = "tx", "rx";
+			dmas = <&edma0 1 14>,
+			       <&edma0 1 13>;
+			status = "disabled";
+		};
+
 		tmu: tmu@1f80000 {
 			compatible = "fsl,qoriq-tmu";
 			reg = <0x0 0x1f80000 0x0 0x10000>;
-- 
2.20.1


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

* [PATCH v2 3/5] dt-bindings: arm: fsl: add LS1028A based boards
  2019-12-09 23:43 [PATCH v2 0/5] ls1028a: dts fixes and new board support Michael Walle
  2019-12-09 23:43 ` [PATCH v2 1/5] arm64: dts: ls1028a: fix typo in TMU calibration data Michael Walle
  2019-12-09 23:43 ` [PATCH v2 2/5] arm64: dts: ls1028a: add missing sai nodes Michael Walle
@ 2019-12-09 23:43 ` Michael Walle
  2019-12-19 19:32   ` Rob Herring
  2020-02-12  7:36   ` Shawn Guo
  2019-12-09 23:43 ` [PATCH v2 4/5] dt-bindings: arm: fsl: add Kontron sl28 boards Michael Walle
                   ` (2 subsequent siblings)
  5 siblings, 2 replies; 12+ messages in thread
From: Michael Walle @ 2019-12-09 23:43 UTC (permalink / raw)
  To: devicetree, linux-kernel, linux-arm-kernel
  Cc: Rob Herring, Mark Rutland, Shawn Guo, Li Yang, Yuantian Tang,
	Michael Walle

Add the Freescale LS1028A evaluation boards.

Signed-off-by: Michael Walle <michael@walle.cc>
---
 Documentation/devicetree/bindings/arm/fsl.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml
index b5497ae276bc..f7792fe89a00 100644
--- a/Documentation/devicetree/bindings/arm/fsl.yaml
+++ b/Documentation/devicetree/bindings/arm/fsl.yaml
@@ -351,6 +351,13 @@ properties:
               - fsl,ls1021a-twr
           - const: fsl,ls1021a
 
+      - description: LS1028A based Boards
+        items:
+          - enum:
+              - fsl,ls1028a-qds
+              - fsl,ls1028a-rdb
+          - const: fsl,ls1028a
+
       - description: LS1043A based Boards
         items:
           - enum:
-- 
2.20.1


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

* [PATCH v2 4/5] dt-bindings: arm: fsl: add Kontron sl28 boards
  2019-12-09 23:43 [PATCH v2 0/5] ls1028a: dts fixes and new board support Michael Walle
                   ` (2 preceding siblings ...)
  2019-12-09 23:43 ` [PATCH v2 3/5] dt-bindings: arm: fsl: add LS1028A based boards Michael Walle
@ 2019-12-09 23:43 ` Michael Walle
  2019-12-19 19:34   ` Rob Herring
  2019-12-09 23:43 ` [PATCH v2 5/5] arm64: dts: freescale: add Kontron sl28 support Michael Walle
  2020-01-29 16:22 ` [PATCH v2 0/5] ls1028a: dts fixes and new board support Michael Walle
  5 siblings, 1 reply; 12+ messages in thread
From: Michael Walle @ 2019-12-09 23:43 UTC (permalink / raw)
  To: devicetree, linux-kernel, linux-arm-kernel
  Cc: Rob Herring, Mark Rutland, Shawn Guo, Li Yang, Yuantian Tang,
	Michael Walle

Add the Kontron SMARC-sAL28 board, its variants and combination with
carriers.

Signed-off-by: Michael Walle <michael@walle.cc>
---
 .../devicetree/bindings/arm/fsl.yaml          | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml
index f7792fe89a00..80ab4b5b68ef 100644
--- a/Documentation/devicetree/bindings/arm/fsl.yaml
+++ b/Documentation/devicetree/bindings/arm/fsl.yaml
@@ -358,6 +358,44 @@ properties:
               - fsl,ls1028a-rdb
           - const: fsl,ls1028a
 
+      - description: Kontron KBox A-230-LS
+        items:
+          - const: kontron,kbox-a-230-ls
+          - const: kontron,sl28-var4
+          - const: kontron,sl28
+          - const: fsl,ls1028a
+      - description:
+          Kontron SMARC-sAL28 board on the SMARC Eval Carrier 2.0
+        items:
+          - enum:
+              - kontron,sl28-var2-ads2
+              - kontron,sl28-var3-ads2
+              - kontron,sl28-var4-ads2
+          - enum:
+              - kontron,sl28-var2
+              - kontron,sl28-var3
+              - kontron,sl28-var4
+          - const: kontron,sl28
+          - const: fsl,ls1028a
+
+      - description:
+          Kontron SMARC-sAL28 board (on a generic/undefined carrier)
+        items:
+          - enum:
+              - kontron,sl28-var2
+              - kontron,sl28-var3
+              - kontron,sl28-var4
+          - const: kontron,sl28
+          - const: fsl,ls1028a
+
+      - description:
+          Kontron SMARC-sAL28 board (base). This is used in the base device
+          tree which is compatible with the overlays provided by the
+          vendor.
+        items:
+          - const: kontron,sl28
+          - const: fsl,ls1028a
+
       - description: LS1043A based Boards
         items:
           - enum:
-- 
2.20.1


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

* [PATCH v2 5/5] arm64: dts: freescale: add Kontron sl28 support
  2019-12-09 23:43 [PATCH v2 0/5] ls1028a: dts fixes and new board support Michael Walle
                   ` (3 preceding siblings ...)
  2019-12-09 23:43 ` [PATCH v2 4/5] dt-bindings: arm: fsl: add Kontron sl28 boards Michael Walle
@ 2019-12-09 23:43 ` Michael Walle
  2020-01-29 16:22 ` [PATCH v2 0/5] ls1028a: dts fixes and new board support Michael Walle
  5 siblings, 0 replies; 12+ messages in thread
From: Michael Walle @ 2019-12-09 23:43 UTC (permalink / raw)
  To: devicetree, linux-kernel, linux-arm-kernel
  Cc: Rob Herring, Mark Rutland, Shawn Guo, Li Yang, Yuantian Tang,
	Michael Walle

Add device tree files for the Kontron SMARC-sAL28 board and its
carriers.

Signed-off-by: Michael Walle <michael@walle.cc>
---
 arch/arm64/boot/dts/freescale/Makefile        |   4 +
 .../fsl-ls1028a-kontron-kbox-a-230-ls.dts     |  27 +++
 .../fsl-ls1028a-kontron-sl28-var3-ads2.dts    | 106 +++++++++++
 .../fsl-ls1028a-kontron-sl28-var4.dts         |  50 +++++
 .../freescale/fsl-ls1028a-kontron-sl28.dts    | 174 ++++++++++++++++++
 5 files changed, 361 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-kbox-a-230-ls.dts
 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var3-ads2.dts
 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var4.dts
 create mode 100644 arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts

diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile
index 38e344a2f0ff..0d36c6e64574 100644
--- a/arch/arm64/boot/dts/freescale/Makefile
+++ b/arch/arm64/boot/dts/freescale/Makefile
@@ -4,6 +4,10 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-frwy.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-oxalis.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-qds.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1012a-rdb.dtb
+dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-kontron-kbox-a-230-ls.dtb
+dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-kontron-sl28.dtb
+dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-kontron-sl28-var3-ads2.dtb
+dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-kontron-sl28-var4.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-qds.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1028a-rdb.dtb
 dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls1043a-qds.dtb
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-kbox-a-230-ls.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-kbox-a-230-ls.dts
new file mode 100644
index 000000000000..aaf3c04771c3
--- /dev/null
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-kbox-a-230-ls.dts
@@ -0,0 +1,27 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Device Tree File for the Kontron KBox A-230-LS.
+ *
+ * This consists of a Kontron SMARC-sAL28 (Dual PHY) and a special
+ * carrier (s1914).
+ *
+ * Copyright (C) 2019 Michael Walle <michael@walle.cc>
+ *
+ */
+
+/dts-v1/;
+#include "fsl-ls1028a-kontron-sl28-var4.dts"
+
+/ {
+	model = "Kontron KBox A-230-LS";
+	compatible = "kontron,kbox-a-230-ls", "kontron,sl28-var4",
+		     "kontron,sl28", "fsl,ls1028a";
+};
+
+&i2c4 {
+	eeprom@50 {
+		compatible = "atmel,24c32";
+		reg = <0x50>;
+		pagesize = <32>;
+	};
+};
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var3-ads2.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var3-ads2.dts
new file mode 100644
index 000000000000..7de55f2aa7dc
--- /dev/null
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var3-ads2.dts
@@ -0,0 +1,106 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Device Tree file for the Kontron SMARC-sAL28 board on a SMARC Eval 2.0
+ * carrier (ADS2).
+ *
+ * Copyright (C) 2019 Michael Walle <michael@walle.cc>
+ *
+ */
+
+/dts-v1/;
+#include "fsl-ls1028a-kontron-sl28.dts"
+
+/ {
+	model = "Kontron SMARC-sAL28 (Single PHY) on SMARC Eval 2.0 carrier";
+	compatible = "kontron,sl28-var3-ads2", "kontron,sl28-var3",
+		     "kontron,sl28", "fsl,ls1028a";
+
+	sound {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		compatible = "simple-audio-card";
+		simple-audio-card,widgets =
+			"Headphone", "Headphone Jack",
+			"Line", "Line Out Jack",
+			"Microphone", "Microphone Jack",
+			"Line", "Line In Jack";
+		simple-audio-card,routing =
+			"Line Out Jack", "LINEOUTR",
+			"Line Out Jack", "LINEOUTL",
+			"Headphone Jack", "HPOUTR",
+			"Headphone Jack", "HPOUTL",
+			"IN1L", "Line In Jack",
+			"IN1R", "Line In Jack",
+			"Microphone Jack", "MICBIAS",
+			"IN2L", "Microphone Jack",
+			"IN2R", "Microphone Jack";
+		simple-audio-card,mclk-fs = <256>;
+
+		simple-audio-card,dai-link@0 {
+			reg = <0>;
+			bitclock-master = <&dailink0_master>;
+			frame-master = <&dailink0_master>;
+			format = "i2s";
+
+			cpu {
+				sound-dai = <&sai6>;
+			};
+
+			dailink0_master: codec {
+				sound-dai = <&wm8904>;
+			};
+		};
+
+		simple-audio-card,dai-link@1 {
+			reg = <1>;
+			bitclock-master = <&dailink1_master>;
+			frame-master = <&dailink1_master>;
+			format = "i2s";
+
+			cpu {
+				sound-dai = <&sai5>;
+			};
+
+			dailink1_master: codec {
+				sound-dai = <&wm8904>;
+			};
+		};
+	};
+};
+
+&i2c4 {
+	status = "okay";
+
+	wm8904: audio-codec@1a {
+		#sound-dai-cells = <0>;
+		compatible = "wlf,wm8904";
+		reg = <0x1a>;
+		clocks = <&mclk>;
+		clock-names = "mclk";
+		assigned-clocks = <&mclk>;
+		assigned-clock-rates = <1250000>;
+	};
+
+	eeprom@50 {
+		compatible = "atmel,24c32";
+		reg = <0x50>;
+		pagesize = <32>;
+	};
+};
+
+&sai5 {
+	status = "okay";
+};
+
+&sai6 {
+	status = "okay";
+};
+
+&soc {
+	mclk: clock-mclk@f130080 {
+		compatible = "fsl,vf610-sai-clock";
+		reg = <0x0 0xf130080 0x0 0x80>;
+		clocks = <&clockgen 4 1>;
+		#clock-cells = <0>;
+	};
+};
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var4.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var4.dts
new file mode 100644
index 000000000000..f659e89face8
--- /dev/null
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var4.dts
@@ -0,0 +1,50 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Device Tree file for the Kontron SMARC-sAL28 board.
+ *
+ * This is for the network variant 4 which has two ethernet ports. It
+ * extends the base and provides one more port connected via RGMII.
+ *
+ * Copyright (C) 2019 Michael Walle <michael@walle.cc>
+ *
+ */
+
+/dts-v1/;
+#include "fsl-ls1028a-kontron-sl28.dts"
+#include <dt-bindings/net/qca-ar803x.h>
+
+/ {
+	model = "Kontron SMARC-sAL28 (Dual PHY)";
+	compatible = "kontron,sl28-var4", "kontron,sl28", "fsl,ls1028a";
+};
+
+&enetc_port1 {
+	phy-handle = <&phy1>;
+	phy-connection-type = "rgmii-id";
+
+	mdio {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		phy1: ethernet-phy@4 {
+			reg = <0x4>;
+			eee-broken-1000t;
+			eee-broken-100tx;
+
+			qca,clk-out-frequency = <125000000>;
+			qca,clk-out-strength = <AR803X_STRENGTH_FULL>;
+
+			vddio-supply = <&vddh>;
+
+			vddio: vddio-regulator {
+				regulator-name = "VDDIO";
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+			};
+
+			vddh: vddh-regulator {
+				regulator-name = "VDDH";
+			};
+		};
+	};
+};
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts
new file mode 100644
index 000000000000..d221ed471cde
--- /dev/null
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts
@@ -0,0 +1,174 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Device Tree file for the Kontron SMARC-sAL28 board.
+ *
+ * Copyright (C) 2019 Michael Walle <michael@walle.cc>
+ *
+ */
+
+/dts-v1/;
+#include "fsl-ls1028a.dtsi"
+
+/ {
+	model = "Kontron SMARC-sAL28";
+	compatible = "kontron,sl28", "fsl,ls1028a";
+
+	aliases {
+		crypto = &crypto;
+		serial0 = &duart0;
+		serial1 = &duart1;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+};
+
+&duart0 {
+	status = "okay";
+};
+
+&duart1 {
+	status = "okay";
+};
+
+&enetc_port0 {
+	phy-handle = <&phy0>;
+	phy-connection-type = "sgmii";
+
+	mdio {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		phy0: ethernet-phy@5 {
+			reg = <0x5>;
+			eee-broken-1000t;
+			eee-broken-100tx;
+		};
+	};
+};
+
+&esdhc {
+	sd-uhs-sdr104;
+	sd-uhs-sdr50;
+	sd-uhs-sdr25;
+	sd-uhs-sdr12;
+	status = "okay";
+};
+
+&esdhc1 {
+	mmc-hs200-1_8v;
+	mmc-hs400-1_8v;
+	bus-width = <8>;
+	status = "okay";
+};
+
+&fspi {
+	status = "okay";
+
+	flash@0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "jedec,spi-nor";
+		m25p,fast-read;
+		spi-max-frequency = <133000000>;
+		reg = <0>;
+		/* The following setting enables 1-1-2 (CMD-ADDR-DATA) mode */
+		spi-rx-bus-width = <2>; /* 2 SPI Rx lines */
+		spi-tx-bus-width = <1>; /* 1 SPI Tx line */
+
+		partition@0 {
+			reg = <0x000000 0x010000>;
+			label = "rcw";
+			read-only;
+		};
+
+		partition@10000 {
+			reg = <0x010000 0x0f0000>;
+			label = "failsafe bootloader";
+			read-only;
+		};
+
+		partition@100000 {
+			reg = <0x100000 0x040000>;
+			label = "failsafe DP firmware";
+			read-only;
+		};
+
+		partition@140000 {
+			reg = <0x140000 0x0a0000>;
+			label = "failsafe trusted firmware";
+			read-only;
+		};
+
+		partition@1e0000 {
+			reg = <0x1e0000 0x020000>;
+			label = "reserved";
+			read-only;
+		};
+
+		partition@200000 {
+			reg = <0x200000 0x010000>;
+			label = "configuration store";
+		};
+
+		partition@210000 {
+			reg = <0x210000 0x0f0000>;
+			label = "bootloader";
+		};
+
+		partition@300000 {
+			reg = <0x300000 0x040000>;
+			label = "DP firmware";
+		};
+
+		partition@340000 {
+			reg = <0x340000 0x0a0000>;
+			label = "trusted firmware";
+		};
+
+		partition@3e0000 {
+			reg = <0x3e0000 0x020000>;
+			label = "bootloader environment";
+		};
+	};
+};
+
+&gpio1 {
+	gpio-line-names =
+		"", "", "", "", "", "", "", "",
+		"", "", "", "", "", "", "", "",
+		"", "", "", "", "", "", "TDO", "TCK",
+		"", "", "", "", "", "", "", "";
+};
+
+&gpio2 {
+	gpio-line-names =
+		"", "", "", "", "", "", "TMS", "TDI",
+		"", "", "", "", "", "", "", "",
+		"", "", "", "", "", "", "", "",
+		"", "", "", "", "", "", "", "";
+};
+
+&i2c0 {
+	status = "okay";
+
+	rtc@32 {
+		compatible = "microcrystal,rv8803";
+		reg = <0x32>;
+	};
+
+	eeprom@50 {
+		compatible = "atmel,24c32";
+		reg = <0x50>;
+		pagesize = <32>;
+	};
+};
+
+&i2c3 {
+	status = "okay";
+};
+
+&i2c4 {
+	status = "okay";
+};
-- 
2.20.1


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

* Re: [PATCH v2 1/5] arm64: dts: ls1028a: fix typo in TMU calibration data
  2019-12-09 23:43 ` [PATCH v2 1/5] arm64: dts: ls1028a: fix typo in TMU calibration data Michael Walle
@ 2019-12-11  9:16   ` Shawn Guo
  0 siblings, 0 replies; 12+ messages in thread
From: Shawn Guo @ 2019-12-11  9:16 UTC (permalink / raw)
  To: Michael Walle
  Cc: devicetree, linux-kernel, linux-arm-kernel, Rob Herring,
	Mark Rutland, Li Yang, Yuantian Tang

On Tue, Dec 10, 2019 at 12:43:46AM +0100, Michael Walle wrote:
> The temperature sensor may jump backwards because there is a wrong
> calibration value. Both values have to be monotonically increasing.
> Fix it.
> 
> This was tested on a custom board.
> 
> Fixes: 571cebfe8e2b ("arm64: dts: ls1028a: Add Thermal Monitor Unit node")
> Signed-off-by: Michael Walle <michael@walle.cc>
> Acked-by: Tang Yuantian <andy.tang@nxp.com>

Applied, thanks.

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

* Re: [PATCH v2 2/5] arm64: dts: ls1028a: add missing sai nodes
  2019-12-09 23:43 ` [PATCH v2 2/5] arm64: dts: ls1028a: add missing sai nodes Michael Walle
@ 2019-12-11  9:16   ` Shawn Guo
  0 siblings, 0 replies; 12+ messages in thread
From: Shawn Guo @ 2019-12-11  9:16 UTC (permalink / raw)
  To: Michael Walle
  Cc: devicetree, linux-kernel, linux-arm-kernel, Rob Herring,
	Mark Rutland, Li Yang, Yuantian Tang

On Tue, Dec 10, 2019 at 12:43:47AM +0100, Michael Walle wrote:
> The LS1028A has six SAI cores.
> 
> Signed-off-by: Michael Walle <michael@walle.cc>

Applied, thanks.

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

* Re: [PATCH v2 3/5] dt-bindings: arm: fsl: add LS1028A based boards
  2019-12-09 23:43 ` [PATCH v2 3/5] dt-bindings: arm: fsl: add LS1028A based boards Michael Walle
@ 2019-12-19 19:32   ` Rob Herring
  2020-02-12  7:36   ` Shawn Guo
  1 sibling, 0 replies; 12+ messages in thread
From: Rob Herring @ 2019-12-19 19:32 UTC (permalink / raw)
  To: Michael Walle
  Cc: devicetree, linux-kernel, linux-arm-kernel, Li Yang,
	Yuantian Tang, Michael Walle

On Tue, 10 Dec 2019 00:43:48 +0100, Michael Walle wrote:
> Add the Freescale LS1028A evaluation boards.
> 
> Signed-off-by: Michael Walle <michael@walle.cc>
> ---
>  Documentation/devicetree/bindings/arm/fsl.yaml | 7 +++++++
>  1 file changed, 7 insertions(+)
> 

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

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

* Re: [PATCH v2 4/5] dt-bindings: arm: fsl: add Kontron sl28 boards
  2019-12-09 23:43 ` [PATCH v2 4/5] dt-bindings: arm: fsl: add Kontron sl28 boards Michael Walle
@ 2019-12-19 19:34   ` Rob Herring
  0 siblings, 0 replies; 12+ messages in thread
From: Rob Herring @ 2019-12-19 19:34 UTC (permalink / raw)
  To: Michael Walle
  Cc: devicetree, linux-kernel, linux-arm-kernel, Li Yang,
	Yuantian Tang, Michael Walle

On Tue, 10 Dec 2019 00:43:49 +0100, Michael Walle wrote:
> Add the Kontron SMARC-sAL28 board, its variants and combination with
> carriers.
> 
> Signed-off-by: Michael Walle <michael@walle.cc>
> ---
>  .../devicetree/bindings/arm/fsl.yaml          | 38 +++++++++++++++++++
>  1 file changed, 38 insertions(+)
> 

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

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

* Re: [PATCH v2 0/5] ls1028a: dts fixes and new board support
  2019-12-09 23:43 [PATCH v2 0/5] ls1028a: dts fixes and new board support Michael Walle
                   ` (4 preceding siblings ...)
  2019-12-09 23:43 ` [PATCH v2 5/5] arm64: dts: freescale: add Kontron sl28 support Michael Walle
@ 2020-01-29 16:22 ` Michael Walle
  5 siblings, 0 replies; 12+ messages in thread
From: Michael Walle @ 2020-01-29 16:22 UTC (permalink / raw)
  To: devicetree, linux-kernel, linux-arm-kernel
  Cc: Rob Herring, Mark Rutland, Shawn Guo, Li Yang, Yuantian Tang

Hi Shawn,

Am 2019-12-10 00:43, schrieb Michael Walle:
> This series adds basic support for the Kontron SMARC-sAL28 board. It 
> also
> adds missing nodes to the ls1028a base device tree which are used by 
> the
> board.
> 
> changes since v1:
>  - dropped "arm64: dts: ls1028a: add FlexSPI node" in favor of:
> 
> https://lore.kernel.org/lkml/1575457098-18368-2-git-send-email-Ashish.Kumar@nxp.com/
>    Thus, this series now depends on that patch
>  - better commit message for the TMU patch
>  - added fixes tag to the TMU patch
>  - document the LS1028A evaluation boards compatible strings
>  - document the Kontron sl28 boards compatible strings
>  - fix node names of the sl28 device tree(s)
>  - removed device specific compatible string of the spi flash
>  - rebased the patch series
>  - integrate the RGMII configuration of the AR8031 PHY since the 
> binding is
>    now already upstream
> 
> This patchseries depends on:
>  - [Patch v2 1/5] arm64: dts: ls1028a: Add FlexSPI support
> 
> https://lore.kernel.org/lkml/1575457098-18368-2-git-send-email-Ashish.Kumar@nxp.com/
>  - [PATCH v2 1/2] dt-bindings: clock: document the fsl-sai driver
>    
> https://lore.kernel.org/lkml/20191209233305.18619-1-michael@walle.cc/


it seems that all the pieces are now together.

  - "arm64: dts: ls1028a: Add FlexSPI support" is pulled
  - you've already pulled the patches 1 and 2 from this series
  - Rob reviewed patch 3 and 4
  - your review remarks of patch 5 should be included
  - and last but not least, the clock driver used by the device tree 
finally
    made it into clk-next [1]


-michael

[1] 
https://lore.kernel.org/linux-clk/20200128220445.DE778207FD@mail.kernel.org/



> 
> This patchseries superseeds:
>  - [PATCH 0/4] ls1028a: dts fixes and new board support
>    
> https://lore.kernel.org/lkml/20191123201317.25861-1-michael@walle.cc/
>  - [PATCH] arm64: dts: sl28: configure the RGMII PHY
>    
> https://lore.kernel.org/lkml/20191123202624.28093-1-michael@walle.cc/
> 
> Michael Walle (5):
>   arm64: dts: ls1028a: fix typo in TMU calibration data
>   arm64: dts: ls1028a: add missing sai nodes
>   dt-bindings: arm: fsl: add LS1028A based boards
>   dt-bindings: arm: fsl: add Kontron sl28 boards
>   arm64: dts: freescale: add Kontron sl28 support
> 
>  .../devicetree/bindings/arm/fsl.yaml          |  45 +++++
>  arch/arm64/boot/dts/freescale/Makefile        |   4 +
>  .../fsl-ls1028a-kontron-kbox-a-230-ls.dts     |  27 +++
>  .../fsl-ls1028a-kontron-sl28-var3-ads2.dts    | 106 +++++++++++
>  .../fsl-ls1028a-kontron-sl28-var4.dts         |  50 +++++
>  .../freescale/fsl-ls1028a-kontron-sl28.dts    | 174 ++++++++++++++++++
>  .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi |  44 ++++-
>  7 files changed, 449 insertions(+), 1 deletion(-)
>  create mode 100644
> arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-kbox-a-230-ls.dts
>  create mode 100644
> arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var3-ads2.dts
>  create mode 100644
> arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var4.dts
>  create mode 100644 
> arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts

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

* Re: [PATCH v2 3/5] dt-bindings: arm: fsl: add LS1028A based boards
  2019-12-09 23:43 ` [PATCH v2 3/5] dt-bindings: arm: fsl: add LS1028A based boards Michael Walle
  2019-12-19 19:32   ` Rob Herring
@ 2020-02-12  7:36   ` Shawn Guo
  1 sibling, 0 replies; 12+ messages in thread
From: Shawn Guo @ 2020-02-12  7:36 UTC (permalink / raw)
  To: Michael Walle
  Cc: devicetree, linux-kernel, linux-arm-kernel, Rob Herring,
	Mark Rutland, Li Yang, Yuantian Tang

On Tue, Dec 10, 2019 at 12:43:48AM +0100, Michael Walle wrote:
> Add the Freescale LS1028A evaluation boards.
> 
> Signed-off-by: Michael Walle <michael@walle.cc>

Applied #3 ~ #5, thanks.

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

end of thread, other threads:[~2020-02-12  7:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-09 23:43 [PATCH v2 0/5] ls1028a: dts fixes and new board support Michael Walle
2019-12-09 23:43 ` [PATCH v2 1/5] arm64: dts: ls1028a: fix typo in TMU calibration data Michael Walle
2019-12-11  9:16   ` Shawn Guo
2019-12-09 23:43 ` [PATCH v2 2/5] arm64: dts: ls1028a: add missing sai nodes Michael Walle
2019-12-11  9:16   ` Shawn Guo
2019-12-09 23:43 ` [PATCH v2 3/5] dt-bindings: arm: fsl: add LS1028A based boards Michael Walle
2019-12-19 19:32   ` Rob Herring
2020-02-12  7:36   ` Shawn Guo
2019-12-09 23:43 ` [PATCH v2 4/5] dt-bindings: arm: fsl: add Kontron sl28 boards Michael Walle
2019-12-19 19:34   ` Rob Herring
2019-12-09 23:43 ` [PATCH v2 5/5] arm64: dts: freescale: add Kontron sl28 support Michael Walle
2020-01-29 16:22 ` [PATCH v2 0/5] ls1028a: dts fixes and new board support Michael Walle

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).