linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] NXP LS1028A-RDB preparation for device tree sync with U-Boot
@ 2021-12-02 14:15 Vladimir Oltean
  2021-12-02 14:15 ` [PATCH 1/4] arm64: dts: ls1028a-rdb: sort nodes alphabetically by label Vladimir Oltean
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Vladimir Oltean @ 2021-12-02 14:15 UTC (permalink / raw)
  To: devicetree, linux-kernel, linux-arm-kernel
  Cc: Rob Herring, Shawn Guo, Li Yang, Michael Walle

An effort was started for the NXP LS1028A to share device trees between
Linux and U-Boot, and so far the common SoC dtsi is shared, but
individual boards still aren't. This patch makes some minor changes to
the Linux device tree so the DT for the reference design board can be
successfully shared with U-Boot.

Vladimir Oltean (4):
  arm64: dts: ls1028a-rdb: sort nodes alphabetically by label
  arm64: dts: ls1028a-rdb: add an alias for the FlexSPI controller
  arm64: dts: ls1028a-rdb: add aliases for the Ethernet ports
  arm64: dts: ls1028a-rdb: update copyright

 .../boot/dts/freescale/fsl-ls1028a-rdb.dts    | 93 ++++++++++---------
 1 file changed, 50 insertions(+), 43 deletions(-)

-- 
2.25.1


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

* [PATCH 1/4] arm64: dts: ls1028a-rdb: sort nodes alphabetically by label
  2021-12-02 14:15 [PATCH 0/4] NXP LS1028A-RDB preparation for device tree sync with U-Boot Vladimir Oltean
@ 2021-12-02 14:15 ` Vladimir Oltean
  2021-12-02 14:15 ` [PATCH 2/4] arm64: dts: ls1028a-rdb: add an alias for the FlexSPI controller Vladimir Oltean
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Vladimir Oltean @ 2021-12-02 14:15 UTC (permalink / raw)
  To: devicetree, linux-kernel, linux-arm-kernel
  Cc: Rob Herring, Shawn Guo, Li Yang, Michael Walle

In preparation for this board's device tree synchronization with U-Boot,
we must find a common node ordering pattern. Alphabetical sounds about
right.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
 .../boot/dts/freescale/fsl-ls1028a-rdb.dts    | 84 +++++++++----------
 1 file changed, 42 insertions(+), 42 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
index 7719f44bcaed..a6f41aa9004a 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
@@ -102,6 +102,48 @@ can-transceiver {
 	};
 };
 
+&duart0 {
+	status = "okay";
+};
+
+&duart1 {
+	status = "okay";
+};
+
+&enetc_mdio_pf3 {
+	sgmii_phy0: ethernet-phy@2 {
+		reg = <0x2>;
+	};
+
+	/* VSC8514 QSGMII quad PHY */
+	qsgmii_phy0: ethernet-phy@10 {
+		reg = <0x10>;
+	};
+
+	qsgmii_phy1: ethernet-phy@11 {
+		reg = <0x11>;
+	};
+
+	qsgmii_phy2: ethernet-phy@12 {
+		reg = <0x12>;
+	};
+
+	qsgmii_phy3: ethernet-phy@13 {
+		reg = <0x13>;
+	};
+};
+
+&enetc_port0 {
+	phy-handle = <&sgmii_phy0>;
+	phy-mode = "sgmii";
+	managed = "in-band-status";
+	status = "okay";
+};
+
+&enetc_port2 {
+	status = "okay";
+};
+
 &esdhc {
 	sd-uhs-sdr104;
 	sd-uhs-sdr50;
@@ -188,48 +230,6 @@ rtc@51 {
 	};
 };
 
-&duart0 {
-	status = "okay";
-};
-
-&duart1 {
-	status = "okay";
-};
-
-&enetc_mdio_pf3 {
-	sgmii_phy0: ethernet-phy@2 {
-		reg = <0x2>;
-	};
-
-	/* VSC8514 QSGMII quad PHY */
-	qsgmii_phy0: ethernet-phy@10 {
-		reg = <0x10>;
-	};
-
-	qsgmii_phy1: ethernet-phy@11 {
-		reg = <0x11>;
-	};
-
-	qsgmii_phy2: ethernet-phy@12 {
-		reg = <0x12>;
-	};
-
-	qsgmii_phy3: ethernet-phy@13 {
-		reg = <0x13>;
-	};
-};
-
-&enetc_port0 {
-	phy-handle = <&sgmii_phy0>;
-	phy-mode = "sgmii";
-	managed = "in-band-status";
-	status = "okay";
-};
-
-&enetc_port2 {
-	status = "okay";
-};
-
 &mscc_felix {
 	status = "okay";
 };
-- 
2.25.1


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

* [PATCH 2/4] arm64: dts: ls1028a-rdb: add an alias for the FlexSPI controller
  2021-12-02 14:15 [PATCH 0/4] NXP LS1028A-RDB preparation for device tree sync with U-Boot Vladimir Oltean
  2021-12-02 14:15 ` [PATCH 1/4] arm64: dts: ls1028a-rdb: sort nodes alphabetically by label Vladimir Oltean
@ 2021-12-02 14:15 ` Vladimir Oltean
  2021-12-02 14:15 ` [PATCH 3/4] arm64: dts: ls1028a-rdb: add aliases for the Ethernet ports Vladimir Oltean
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Vladimir Oltean @ 2021-12-02 14:15 UTC (permalink / raw)
  To: devicetree, linux-kernel, linux-arm-kernel
  Cc: Rob Herring, Shawn Guo, Li Yang, Michael Walle

This is used by U-Boot and is required for keeping the device trees in
sync.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
 arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
index a6f41aa9004a..7e3faa78c706 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
@@ -22,6 +22,7 @@ aliases {
 		mmc0 = &esdhc;
 		mmc1 = &esdhc1;
 		rtc1 = &ftm_alarm0;
+		spi0 = &fspi;
 	};
 
 	chosen {
-- 
2.25.1


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

* [PATCH 3/4] arm64: dts: ls1028a-rdb: add aliases for the Ethernet ports
  2021-12-02 14:15 [PATCH 0/4] NXP LS1028A-RDB preparation for device tree sync with U-Boot Vladimir Oltean
  2021-12-02 14:15 ` [PATCH 1/4] arm64: dts: ls1028a-rdb: sort nodes alphabetically by label Vladimir Oltean
  2021-12-02 14:15 ` [PATCH 2/4] arm64: dts: ls1028a-rdb: add an alias for the FlexSPI controller Vladimir Oltean
@ 2021-12-02 14:15 ` Vladimir Oltean
  2021-12-02 14:15 ` [PATCH 4/4] arm64: dts: ls1028a-rdb: update copyright Vladimir Oltean
  2021-12-14  2:38 ` [PATCH 0/4] NXP LS1028A-RDB preparation for device tree sync with U-Boot Shawn Guo
  4 siblings, 0 replies; 6+ messages in thread
From: Vladimir Oltean @ 2021-12-02 14:15 UTC (permalink / raw)
  To: devicetree, linux-kernel, linux-arm-kernel
  Cc: Rob Herring, Shawn Guo, Li Yang, Michael Walle

These are used by U-Boot, and are required for keeping the device trees
in sync.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
 arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
index 7e3faa78c706..79d7e7cf5403 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
@@ -23,6 +23,12 @@ aliases {
 		mmc1 = &esdhc1;
 		rtc1 = &ftm_alarm0;
 		spi0 = &fspi;
+		ethernet0 = &enetc_port0;
+		ethernet1 = &enetc_port2;
+		ethernet2 = &mscc_felix_port0;
+		ethernet3 = &mscc_felix_port1;
+		ethernet4 = &mscc_felix_port2;
+		ethernet5 = &mscc_felix_port3;
 	};
 
 	chosen {
-- 
2.25.1


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

* [PATCH 4/4] arm64: dts: ls1028a-rdb: update copyright
  2021-12-02 14:15 [PATCH 0/4] NXP LS1028A-RDB preparation for device tree sync with U-Boot Vladimir Oltean
                   ` (2 preceding siblings ...)
  2021-12-02 14:15 ` [PATCH 3/4] arm64: dts: ls1028a-rdb: add aliases for the Ethernet ports Vladimir Oltean
@ 2021-12-02 14:15 ` Vladimir Oltean
  2021-12-14  2:38 ` [PATCH 0/4] NXP LS1028A-RDB preparation for device tree sync with U-Boot Shawn Guo
  4 siblings, 0 replies; 6+ messages in thread
From: Vladimir Oltean @ 2021-12-02 14:15 UTC (permalink / raw)
  To: devicetree, linux-kernel, linux-arm-kernel
  Cc: Rob Herring, Shawn Guo, Li Yang, Michael Walle

Company policy requires that copyright is updated when a file is
touched. Keeping the copyright change separate to reduce the noise in
other patches.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
 arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
index 79d7e7cf5403..639f40740d56 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts
@@ -2,7 +2,7 @@
 /*
  * Device Tree file for NXP LS1028A RDB Board.
  *
- * Copyright 2018 NXP
+ * Copyright 2018-2021 NXP
  *
  * Harninder Rai <harninder.rai@nxp.com>
  *
-- 
2.25.1


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

* Re: [PATCH 0/4] NXP LS1028A-RDB preparation for device tree sync with U-Boot
  2021-12-02 14:15 [PATCH 0/4] NXP LS1028A-RDB preparation for device tree sync with U-Boot Vladimir Oltean
                   ` (3 preceding siblings ...)
  2021-12-02 14:15 ` [PATCH 4/4] arm64: dts: ls1028a-rdb: update copyright Vladimir Oltean
@ 2021-12-14  2:38 ` Shawn Guo
  4 siblings, 0 replies; 6+ messages in thread
From: Shawn Guo @ 2021-12-14  2:38 UTC (permalink / raw)
  To: Vladimir Oltean
  Cc: devicetree, linux-kernel, linux-arm-kernel, Rob Herring, Li Yang,
	Michael Walle

On Thu, Dec 02, 2021 at 04:15:24PM +0200, Vladimir Oltean wrote:
> An effort was started for the NXP LS1028A to share device trees between
> Linux and U-Boot, and so far the common SoC dtsi is shared, but
> individual boards still aren't. This patch makes some minor changes to
> the Linux device tree so the DT for the reference design board can be
> successfully shared with U-Boot.
> 
> Vladimir Oltean (4):
>   arm64: dts: ls1028a-rdb: sort nodes alphabetically by label
>   arm64: dts: ls1028a-rdb: add an alias for the FlexSPI controller
>   arm64: dts: ls1028a-rdb: add aliases for the Ethernet ports
>   arm64: dts: ls1028a-rdb: update copyright

Applied all, thanks!

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

end of thread, other threads:[~2021-12-14  2:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-02 14:15 [PATCH 0/4] NXP LS1028A-RDB preparation for device tree sync with U-Boot Vladimir Oltean
2021-12-02 14:15 ` [PATCH 1/4] arm64: dts: ls1028a-rdb: sort nodes alphabetically by label Vladimir Oltean
2021-12-02 14:15 ` [PATCH 2/4] arm64: dts: ls1028a-rdb: add an alias for the FlexSPI controller Vladimir Oltean
2021-12-02 14:15 ` [PATCH 3/4] arm64: dts: ls1028a-rdb: add aliases for the Ethernet ports Vladimir Oltean
2021-12-02 14:15 ` [PATCH 4/4] arm64: dts: ls1028a-rdb: update copyright Vladimir Oltean
2021-12-14  2:38 ` [PATCH 0/4] NXP LS1028A-RDB preparation for device tree sync with U-Boot 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).