Skip to contentSkip to conversation

ARM: dts: aspeed: zaius: Add aliases for I2C buses

PATCH In review Xo Wang 2 participants 2 messages Jun 7, 2017 – Jun 16, 2017

Subsystems (2)
lore
Share & tools
lore

Xo Wang

author
#0 lore raw

PATCH 1/1 ARM: dts: aspeed: zaius: Add aliases for I2C buses

Make numbering for I2C buses consistent across boots by assigning aliases to all the bus blocks in the peripheral, including the ones that are currently disabled. This way, Linux reserves bus numbers for buses that are disabled, instead of filling in those number gaps with logical I2C buses from muxes.

---
 arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts +14 -0
index 68baf3288263..353613344ea9 100644
@@ -9,6 +9,20 @@
 
 	aliases {
 		serial4 = &uart5;
+		i2c0 = &i2c0;
+		i2c1 = &i2c1;
+		i2c2 = &i2c2;
+		i2c3 = &i2c3;
+		i2c4 = &i2c4;
+		i2c5 = &i2c5;
+		i2c6 = &i2c6;
+		i2c7 = &i2c7;
+		i2c8 = &i2c8;
+		i2c9 = &i2c9;
+		i2c10 = &i2c10;
+		i2c11 = &i2c11;
+		i2c12 = &i2c12;
+		i2c13 = &i2c13;
 	};
 
 	chosen {
Signature · 1 line
2.13.1.508.gb3defc5cc-goog
maintainer
#1 lore raw

Hey Xo,

For some reason I didn't get this mail from you. Luckily I saw it in patchwork.

Quoted 5 lines · Xo Wang

Make numbering for I2C buses consistent across boots by assigning aliases to all the bus blocks in the peripheral, including the ones that are currently disabled. This way, Linux reserves bus numbers for buses that are disabled, instead of filling in those number gaps with logical I2C buses from muxes.

Thanks for the change. We already set these aliases in aspeed-g5.dtsi, so you shouldn't need this patch.

Cheers,

Joel

Quoted 31 lines
---
 arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts +14 -0
index 68baf3288263..353613344ea9 100644
@@ -9,6 +9,20 @@
 
        aliases {
                serial4 = &uart5;
+               i2c0 = &i2c0;
+               i2c1 = &i2c1;
+               i2c2 = &i2c2;
+               i2c3 = &i2c3;
+               i2c4 = &i2c4;
+               i2c5 = &i2c5;
+               i2c6 = &i2c6;
+               i2c7 = &i2c7;
+               i2c8 = &i2c8;
+               i2c9 = &i2c9;
+               i2c10 = &i2c10;
+               i2c11 = &i2c11;
+               i2c12 = &i2c12;
+               i2c13 = &i2c13;
        };
 
        chosen {