Skip to contentSkip to conversation

arm64: dts: imx8qxp: dtb aliases fix/update

PATCH Applied [email protected] 2 participants 5 messages Jun 23, 2020

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

v2 cover arm64: dts: imx8qxp: dtb aliases fix/update

From: Peng Fan <[email protected]>

V2:
Fix order in patch 2/3, no other changes

Minor patchset to fix and update alias for i.MX8QXP

Peng Fan (3):
arm64: dts: imx8qxp: add alias for lsio MU
arm64: dts: imx8qxp: add i2c aliases
arm64: dts: imx8qxp: Add ethernet alias

 arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
Signature · 1 line
2.16.4
#1 lore raw

PATCH v2 1/3 arm64: dts: imx8qxp: add alias for lsio MU

From: Peng Fan <[email protected]>

Add lsio mu alias for all lsio MUs that could communicate with SCU, imx_scu_enable_general_irq_channel will parse the alias to get the mu resource id, if using other MU, not MU1, the mu_resource_id is not what we expect, so add alias to fix this issue.

---
 arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/imx8qxp.dtsi +4 -0
index d1c3c98e4b39..33363c127478 100644
@@ -30,7 +30,11 @@
 		mmc0 = &usdhc1;
 		mmc1 = &usdhc2;
 		mmc2 = &usdhc3;
+		mu0 = &lsio_mu0;
 		mu1 = &lsio_mu1;
+		mu2 = &lsio_mu2;
+		mu3 = &lsio_mu3;
+		mu4 = &lsio_mu4;
 		serial0 = &adma_lpuart0;
 		serial1 = &adma_lpuart1;
 		serial2 = &adma_lpuart2;
Signature · 1 line
2.16.4
#2 lore raw

PATCH v2 2/3 arm64: dts: imx8qxp: add i2c aliases

In reply to [email protected]

From: Peng Fan <[email protected]>

The devices could be enumerated properly with aliases.

---
 arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/imx8qxp.dtsi +4 -0
index 33363c127478..3b2fada99c09 100644
@@ -27,6 +27,10 @@
 		gpio5 = &lsio_gpio5;
 		gpio6 = &lsio_gpio6;
 		gpio7 = &lsio_gpio7;
+		i2c0 = &adma_i2c0;
+		i2c1 = &adma_i2c1;
+		i2c2 = &adma_i2c2;
+		i2c3 = &adma_i2c3;
 		mmc0 = &usdhc1;
 		mmc1 = &usdhc2;
 		mmc2 = &usdhc3;
Signature · 1 line
2.16.4
#3 lore raw

PATCH v2 3/3 arm64: dts: imx8qxp: Add ethernet alias

In reply to [email protected]

From: Peng Fan <[email protected]>

Add ethernet alias, so bootloader code can use this to find the primary ethernet device, and set the MAC address.

---
 arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/freescale/imx8qxp.dtsi +2 -0
index 3b2fada99c09..e46faac1fe71 100644
@@ -19,6 +19,8 @@
 	#size-cells = <2>;
 
 	aliases {
+		ethernet0 = &fec1;
+		ethernet1 = &fec2;
 		gpio0 = &lsio_gpio0;
 		gpio1 = &lsio_gpio1;
 		gpio2 = &lsio_gpio2;
Signature · 1 line
2.16.4
Applied
#4 lore raw
In reply to [email protected]
Quoted 11 lines · On Tue, Jun 23, 2020 at 02:49:51PM +0800, [email protected] wrote:

From: Peng Fan <[email protected]>

V2:
Fix order in patch 2/3, no other changes

Minor patchset to fix and update alias for i.MX8QXP

Peng Fan (3):
arm64: dts: imx8qxp: add alias for lsio MU
arm64: dts: imx8qxp: add i2c aliases
arm64: dts: imx8qxp: Add ethernet alias

Applied, thanks.