Skip to contentSkip to conversation

ls1028a: dts fixes and new board support

PATCH Applied Michael Walle 3 participants 12 messages Dec 9, 2019 – Feb 12, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover ls1028a: dts fixes and new board support

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/[email protected]/
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/[email protected]/
- [PATCH v2 1/2] dt-bindings: clock: document the fsl-sai driver
https://lore.kernel.org/lkml/[email protected]/

This patchseries superseeds:
- [PATCH 0/4] ls1028a: dts fixes and new board support
https://lore.kernel.org/lkml/[email protected]/
- [PATCH] arm64: dts: sl28: configure the RGMII PHY
https://lore.kernel.org/lkml/[email protected]/

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
Signature · 1 line
2.20.1
#1 lore raw

PATCH v2 1/5 arm64: dts: ls1028a: fix typo in TMU calibration data

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")
---
 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +1 -1
index 8e8a77eb596a..06082c932531 100644
@@ -584,7 +584,7 @@
 					       0x00010004 0x0000003d
 					       0x00010005 0x00000045
 					       0x00010006 0x0000004d
-					       0x00010007 0x00000045
+					       0x00010007 0x00000055
 					       0x00010008 0x0000005e
 					       0x00010009 0x00000066
 					       0x0001000a 0x0000006e
Signature · 1 line
2.20.1
Applied
#2 lore raw

Re: [PATCH v2 1/5] arm64: dts: ls1028a: fix typo in TMU calibration data

Quoted 9 lines · 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")

Applied, thanks.

#3 lore raw

PATCH v2 2/5 arm64: dts: ls1028a: add missing sai nodes

In reply to Michael Walle

The LS1028A has six SAI cores.

---
 .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 42 +++++++++++++++++++
 1 file changed, 42 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +42 -0
index 06082c932531..7a55314e9c8d 100644
@@ -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>;
Signature · 1 line
2.20.1
#5 lore raw

PATCH v2 3/5 dt-bindings: arm: fsl: add LS1028A based boards

In reply to Michael Walle

Add the Freescale LS1028A evaluation boards.

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/arm/fsl.yaml +7 -0
index b5497ae276bc..f7792fe89a00 100644
@@ -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:
Signature · 1 line
2.20.1
#8 lore raw

PATCH v2 4/5 dt-bindings: arm: fsl: add Kontron sl28 boards

In reply to Michael Walle

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

---
 .../devicetree/bindings/arm/fsl.yaml          | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
Documentation/devicetree/bindings/arm/fsl.yaml +38 -0
index f7792fe89a00..80ab4b5b68ef 100644
@@ -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:
Signature · 1 line
2.20.1
maintainer Reviewed-by on v2 4/5
#9 lore raw

Re: [PATCH v2 4/5] dt-bindings: arm: fsl: add Kontron sl28 boards

Quoted 8 lines · Michael Walle

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

---
 .../devicetree/bindings/arm/fsl.yaml          | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
#10 lore raw

PATCH v2 5/5 arm64: dts: freescale: add Kontron sl28 support

In reply to Michael Walle

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

---
 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
arch/arm64/boot/dts/freescale/Makefile +4 -0
index 38e344a2f0ff..0d36c6e64574 100644
@@ -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
arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-kbox-a-230-ls.dts new file +27 -0
new file mode 100644
index 000000000000..aaf3c04771c3
@@ -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 <[email protected]>
+ *
+ */
+
+/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>;
+	};
+};
arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var3-ads2.dts new file +106 -0

106 lines not on this page · raw message

arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var4.dts new file +50 -0

50 lines not on this page · raw message

arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts new file +174 -0

174 lines not on this page · raw message

Signature · 1 line
2.20.1
#11 lore raw
In reply to Michael Walle

Hi Shawn,

Am 2019-12-10 00:43, schrieb Michael Walle:

Quoted 20 lines

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/[email protected]/
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

Quoted 7 lines

This patchseries depends on:
- [Patch v2 1/5] arm64: dts: ls1028a: Add FlexSPI support

https://lore.kernel.org/lkml/[email protected]/
- [PATCH v2 1/2] dt-bindings: clock: document the fsl-sai driver

https://lore.kernel.org/lkml/[email protected]/

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/[email protected]/

Quoted 32 lines

This patchseries superseeds:
- [PATCH 0/4] ls1028a: dts fixes and new board support

https://lore.kernel.org/lkml/[email protected]/
- [PATCH] arm64: dts: sl28: configure the RGMII PHY

https://lore.kernel.org/lkml/[email protected]/

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