Skip to contentSkip to conversation

ARM: dts: i.MX50: Add i2c, mmc and spi aliases

PATCH Applied Alexander Kurz 3 participants 7 messages Mar 15, 2019 – Mar 23, 2019

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

PATCH 1/3 ARM: dts: i.MX50: Add i2c, mmc and spi aliases

Using aliases, the devices will be enumerated properly.

---
 arch/arm/boot/dts/imx50.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm/boot/dts/imx50.dtsi +9 -0
index ee1e3e8bf4ec..82e7acd7fc2a 100644
@@ -26,11 +26,20 @@
 		gpio3 = &gpio4;
 		gpio4 = &gpio5;
 		gpio5 = &gpio6;
+		i2c0 = &i2c1;
+		i2c1 = &i2c2;
+		mmc0 = &esdhc1;
+		mmc1 = &esdhc2;
+		mmc2 = &esdhc3;
+		mmc3 = &esdhc4;
 		serial0 = &uart1;
 		serial1 = &uart2;
 		serial2 = &uart3;
 		serial3 = &uart4;
 		serial4 = &uart5;
+		spi0 = &ecspi1;
+		spi1 = &ecspi2;
+		spi2 = &cspi;
 	};
 
 	cpus {
Signature · 1 line
2.11.0
#1 lore raw

PATCH 2/3 ARM: dts: i.MX6SL: Add i2c and mmc aliases

Using aliases, the devices will be enumerated properly.

---
 arch/arm/boot/dts/imx6sl.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/imx6sl.dtsi +7 -0
index 4b4813f176cd..6caba5d0f248 100644
@@ -23,6 +23,13 @@
 		gpio2 = &gpio3;
 		gpio3 = &gpio4;
 		gpio4 = &gpio5;
+		i2c0 = &i2c1;
+		i2c1 = &i2c2;
+		i2c2 = &i2c3;
+		mmc0 = &usdhc1;
+		mmc1 = &usdhc2;
+		mmc2 = &usdhc3;
+		mmc3 = &usdhc4;
 		serial0 = &uart1;
 		serial1 = &uart2;
 		serial2 = &uart3;
Signature · 1 line
2.11.0
#2 lore raw

PATCH 3/3 ARM: dts: i.MX35: Add i2c and mmc aliases

In reply to Alexander Kurz

Using aliases, the devices will be enumerated properly.

---
 arch/arm/boot/dts/imx35.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/imx35.dtsi +6 -0
index 59cadeee23ed..9cbdc1a15cda 100644
@@ -21,6 +21,12 @@
 		gpio0 = &gpio1;
 		gpio1 = &gpio2;
 		gpio2 = &gpio3;
+		i2c0 = &i2c1;
+		i2c1 = &i2c2;
+		i2c2 = &i2c3;
+		mmc0 = &esdhc1;
+		mmc1 = &esdhc2;
+		mmc2 = &esdhc3;
 		serial0 = &uart1;
 		serial1 = &uart2;
 		serial2 = &uart3;
Signature · 1 line
2.11.0
#4 lore raw
In reply to Alexander Kurz
Quoted 12 lines · Alexander Kurz

Using aliases, the devices will be enumerated properly.

---
 arch/arm/boot/dts/imx50.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm/boot/dts/imx50.dtsi +0 -0
index ee1e3e8bf4ec..82e7acd7fc2a 100644

arch/arm/boot/dts/imx50.dtsi line 30

Quoted 5 lines
arch/arm/boot/dts/imx50.dtsi +2 -0
@@ -26,11 +26,20 @@
 		gpio3 = &gpio4;
 		gpio4 = &gpio5;
 		gpio5 = &gpio6;
+		i2c0 = &i2c1;
+		i2c1 = &i2c2;

Reminded by Jonathan's patch, i2c3 is missing here. I just fixed it up. Let's me know if you have a reason for not adding i2c3.

Shawn

Quoted 18 lines
arch/arm/boot/dts/imx50.dtsi +7 -0
+		mmc0 = &esdhc1;
+		mmc1 = &esdhc2;
+		mmc2 = &esdhc3;
+		mmc3 = &esdhc4;
 		serial0 = &uart1;
 		serial1 = &uart2;
 		serial2 = &uart3;
 		serial3 = &uart4;
 		serial4 = &uart5;
+		spi0 = &ecspi1;
+		spi1 = &ecspi2;
+		spi2 = &cspi;
 	};
 
 	cpus {
Signature · 1 line
2.11.0
#5 lore raw
Quoted 22 lines · Shawn Guo
Quoted 12 lines · Alexander Kurz

Using aliases, the devices will be enumerated properly.

---
 arch/arm/boot/dts/imx50.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm/boot/dts/imx50.dtsi +0 -0
index ee1e3e8bf4ec..82e7acd7fc2a 100644

arch/arm/boot/dts/imx50.dtsi line 30

Quoted 5 lines
arch/arm/boot/dts/imx50.dtsi +2 -0
@@ -26,11 +26,20 @@
 		gpio3 = &gpio4;
 		gpio4 = &gpio5;
 		gpio5 = &gpio6;
+		i2c0 = &i2c1;
+		i2c1 = &i2c2;

Reminded by Jonathan's patch, i2c3 is missing here. I just fixed it up. Let's me know if you have a reason for not adding i2c3.

Quoted 1 line

Shawn

Thanks. With this addition, Alexander's patch looks good to me.

Jonathan Neuschäfer

#6 lore raw
In reply to Shawn Guo
Quoted 8 lines · Shawn Guo
Quoted 7 lines · Alexander Kurz

Using aliases, the devices will be enumerated properly.

---
 arch/arm/boot/dts/imx50.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)
Quoted 13 lines

arch/arm/boot/dts/imx50.dtsi line 30

Quoted 10 lines
arch/arm/boot/dts/imx50.dtsi +2 -0
index ee1e3e8bf4ec..82e7acd7fc2a 100644
@@ -26,11 +26,20 @@
 		gpio3 = &gpio4;
 		gpio4 = &gpio5;
 		gpio5 = &gpio6;
+		i2c0 = &i2c1;
+		i2c1 = &i2c2;

Reminded by Jonathan's patch, i2c3 is missing here. I just fixed it up. Let's me know if you have a reason for not adding i2c3.

I have missed i2c3, thanks for checking and fixing it. Alexander