Skip to contentSkip to conversation

arm64: dts: imx8qxp: dtb aliases fix/update

PATCH Applied [email protected] 2 participants 7 messages Jun 1, 2020 – Jun 23, 2020

Subsystems (2)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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

From: Peng Fan <[email protected]>

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 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 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..8ce997110cd6 100644
@@ -19,6 +19,10 @@
 	#size-cells = <2>;
 
 	aliases {
+		i2c0 = &adma_i2c0;
+		i2c1 = &adma_i2c1;
+		i2c2 = &adma_i2c2;
+		i2c3 = &adma_i2c3;
 		gpio0 = &lsio_gpio0;
 		gpio1 = &lsio_gpio1;
 		gpio2 = &lsio_gpio2;
Signature · 1 line
2.16.4
#3 lore raw

Re: [PATCH 2/3] arm64: dts: imx8qxp: add i2c aliases

Quoted 14 lines · On Mon, Jun 01, 2020 at 10:06:19AM +0800, [email protected] wrote:

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 +0 -0
index 33363c127478..8ce997110cd6 100644

arch/arm64/boot/dts/freescale/imx8qxp.dtsi line 25

Quoted 7 lines
arch/arm64/boot/dts/freescale/imx8qxp.dtsi +4 -0
@@ -19,6 +19,10 @@
 	#size-cells = <2>;
 
 	aliases {
+		i2c0 = &adma_i2c0;
+		i2c1 = &adma_i2c1;
+		i2c2 = &adma_i2c2;
+		i2c3 = &adma_i2c3;

Had a second look. It breaks alphabetical order. So dropped the series.

Shawn

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8qxp.dtsi +0 -0
 		gpio0 = &lsio_gpio0;
 		gpio1 = &lsio_gpio1;
 		gpio2 = &lsio_gpio2;
Signature · 1 line
2.16.4
author
#4 lore raw

RE: [PATCH 2/3] arm64: dts: imx8qxp: add i2c aliases

Hi Shawn,

Quoted 20 lines

Subject: Re: [PATCH 2/3] arm64: dts: imx8qxp: add i2c aliases

Quoted 17 lines · On Mon, Jun 01, 2020 at 10:06:19AM +0800, [email protected] wrote:

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 +0 -0
index 33363c127478..8ce997110cd6 100644
@@ -19,6 +19,10 @@
 	#size-cells = <2>;
 
Quoted 7 lines

arch/arm64/boot/dts/freescale/imx8qxp.dtsi line 25

Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8qxp.dtsi +4 -0
 	aliases {
+		i2c0 = &adma_i2c0;
+		i2c1 = &adma_i2c1;
+		i2c2 = &adma_i2c2;
+		i2c3 = &adma_i2c3;

Had a second look. It breaks alphabetical order. So dropped the series.

V2 has this addressed.
https://patchwork.kernel.org/cover/11619867/

Thanks,
Peng.

Quoted 9 lines

Shawn

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8qxp.dtsi +0 -1
 		gpio0 = &lsio_gpio0;
 		gpio1 = &lsio_gpio1;
 		gpio2 = &lsio_gpio2;
--

2.16.4

#5 lore raw

PATCH 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 8ce997110cd6..ff6368af7d39 100644
@@ -23,6 +23,8 @@
 		i2c1 = &adma_i2c1;
 		i2c2 = &adma_i2c2;
 		i2c3 = &adma_i2c3;
+		ethernet0 = &fec1;
+		ethernet1 = &fec2;
 		gpio0 = &lsio_gpio0;
 		gpio1 = &lsio_gpio1;
 		gpio2 = &lsio_gpio2;
Signature · 1 line
2.16.4