Skip to contentSkip to conversation

arm64: dts: imx8m: dtb aliases update

PATCH Applied [email protected] 3 participants 7 messages May 20, 2020 – Jun 18, 2020

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

cover arm64: dts: imx8m: dtb aliases update

From: Peng Fan <[email protected]>

Minor patchset to update device tree aliases

Peng Fan (4):
arm64: dts: imx8mq: Add mmc aliases
arm64: dts: imx8mq: Add ethernet alias
arm64: dts: imx8mm: sort the aliases
arm64: dts: imx8mp: add i2c aliases

 arch/arm64/boot/dts/freescale/imx8mm.dtsi | 16 ++++++++--------
 arch/arm64/boot/dts/freescale/imx8mp.dtsi |  6 ++++++
 arch/arm64/boot/dts/freescale/imx8mq.dtsi |  3 +++
 3 files changed, 17 insertions(+), 8 deletions(-)
Signature · 1 line
2.16.4
#1 lore raw

PATCH 1/4 arm64: dts: imx8mq: Add mmc aliases

From: Peng Fan <[email protected]>

Add mmc aliases for kernel usage

---
 arch/arm64/boot/dts/freescale/imx8mq.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/freescale/imx8mq.dtsi +2 -0
index bab88369be1b..9d3c9693d713 100644
@@ -29,6 +29,8 @@
 		i2c1 = &i2c2;
 		i2c2 = &i2c3;
 		i2c3 = &i2c4;
+		mmc0 = &usdhc1;
+		mmc1 = &usdhc2;
 		serial0 = &uart1;
 		serial1 = &uart2;
 		serial2 = &uart3;
Signature · 1 line
2.16.4
#2 lore raw

PATCH 2/4 arm64: dts: imx8mq: 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/imx8mq.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/freescale/imx8mq.dtsi +1 -0
index 9d3c9693d713..1d15680a4962 100644
@@ -20,6 +20,7 @@
 	#size-cells = <2>;
 
 	aliases {
+		ethernet0 = &fec1;
 		gpio0 = &gpio1;
 		gpio1 = &gpio2;
 		gpio2 = &gpio3;
Signature · 1 line
2.16.4
#3 lore raw

PATCH 3/4 arm64: dts: imx8mm: sort the aliases

In reply to [email protected]

From: Peng Fan <[email protected]>

Sort the aliases alphabetically.

---
 arch/arm64/boot/dts/freescale/imx8mm.dtsi | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
arch/arm64/boot/dts/freescale/imx8mm.dtsi +8 -8
index c63685ae80ee..f3bbefe3e59f 100644
@@ -18,10 +18,18 @@
 
 	aliases {
 		ethernet0 = &fec1;
+		gpio0 = &gpio1;
+		gpio1 = &gpio2;
+		gpio2 = &gpio3;
+		gpio3 = &gpio4;
+		gpio4 = &gpio5;
 		i2c0 = &i2c1;
 		i2c1 = &i2c2;
 		i2c2 = &i2c3;
 		i2c3 = &i2c4;
+		mmc0 = &usdhc1;
+		mmc1 = &usdhc2;
+		mmc2 = &usdhc3;
 		serial0 = &uart1;
 		serial1 = &uart2;
 		serial2 = &uart3;
@@ -29,14 +37,6 @@
 		spi0 = &ecspi1;
 		spi1 = &ecspi2;
 		spi2 = &ecspi3;
-		mmc0 = &usdhc1;
-		mmc1 = &usdhc2;
-		mmc2 = &usdhc3;
-		gpio0 = &gpio1;
-		gpio1 = &gpio2;
-		gpio2 = &gpio3;
-		gpio3 = &gpio4;
-		gpio4 = &gpio5;
 	};
 
 	cpus {
Signature · 1 line
2.16.4
#4 lore raw

PATCH 4/4 arm64: dts: imx8mp: 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/imx8mp.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp.dtsi +6 -0
index 014205fc24f6..73535601261e 100644
@@ -23,6 +23,12 @@
 		gpio2 = &gpio3;
 		gpio3 = &gpio4;
 		gpio4 = &gpio5;
+		i2c0 = &i2c1;
+		i2c1 = &i2c2;
+		i2c2 = &i2c3;
+		i2c3 = &i2c4;
+		i2c4 = &i2c5;
+		i2c5 = &i2c6;
 		mmc0 = &usdhc1;
 		mmc1 = &usdhc2;
 		mmc2 = &usdhc3;
Signature · 1 line
2.16.4
Applied
#6 lore raw
In reply to [email protected]
Quoted 9 lines · On Wed, May 20, 2020 at 10:02:42AM +0800, [email protected] wrote:

From: Peng Fan <[email protected]>

Minor patchset to update device tree aliases

Peng Fan (4):
arm64: dts: imx8mq: Add mmc aliases
arm64: dts: imx8mq: Add ethernet alias
arm64: dts: imx8mm: sort the aliases
arm64: dts: imx8mp: add i2c aliases

Applied all, thanks.