2021-12-02 14:15:56

by Vladimir Oltean

[permalink] [raw]
Subject: [PATCH 0/4] NXP LS1028A-RDB preparation for device tree sync with U-Boot

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



2021-12-02 14:16:00

by Vladimir Oltean

[permalink] [raw]
Subject: [PATCH 1/4] arm64: dts: ls1028a-rdb: sort nodes alphabetically by label

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


2021-12-02 14:16:06

by Vladimir Oltean

[permalink] [raw]
Subject: [PATCH 2/4] arm64: dts: ls1028a-rdb: add an alias for the FlexSPI controller

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

Signed-off-by: Vladimir Oltean <[email protected]>
---
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


2021-12-02 14:16:10

by Vladimir Oltean

[permalink] [raw]
Subject: [PATCH 3/4] arm64: dts: ls1028a-rdb: add aliases for the Ethernet ports

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

Signed-off-by: Vladimir Oltean <[email protected]>
---
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


2021-12-02 14:16:14

by Vladimir Oltean

[permalink] [raw]
Subject: [PATCH 4/4] arm64: dts: ls1028a-rdb: update copyright

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


2021-12-14 02:38:55

by Shawn Guo

[permalink] [raw]
Subject: Re: [PATCH 0/4] NXP LS1028A-RDB preparation for device tree sync with U-Boot

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!