ARM: dts: OMAP3+: Add i2c aliases
authorNishanth Menon <nm@ti.com>
Wed, 16 Oct 2013 20:21:03 +0000 (15:21 -0500)
committerBenoit Cousson <bcousson@baylibre.com>
Tue, 22 Oct 2013 09:05:33 +0000 (11:05 +0200)
Currently, on OMAP5, i2c1 and i2c5 defer probe due to pinctrl
dependencies. This changes the i2c ID each bus is registered with in
i2c-dev interface. As a result of this, many userspace tools break and
there is no consistent manner to fix the same if the i2c dev interface
have no consistent numbering.

Since this could happen for other OMAP derivatives, provide i2c alias
for all OMAP3+ SoCs to allow ordering the i2c devices correctly.

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Benoit Cousson <bcousson@baylibre.com>
arch/arm/boot/dts/dra7.dtsi
arch/arm/boot/dts/omap3.dtsi
arch/arm/boot/dts/omap4.dtsi
arch/arm/boot/dts/omap5.dtsi

index c01ef769761feeac6c9abb8d697844a299b85652..98ff6553edbc0c91b64ab85de695d54ed5b56158 100644 (file)
        interrupt-parent = <&gic>;
 
        aliases {
+               i2c0 = &i2c1;
+               i2c1 = &i2c2;
+               i2c2 = &i2c3;
+               i2c3 = &i2c4;
+               i2c4 = &i2c5;
                serial0 = &uart1;
                serial1 = &uart2;
                serial2 = &uart3;
index 16420ae1600440c8411cd0694ef5b0cfbb3a99f2..493b6d4373d116e12f7ca5001d2e7eaf283e01a4 100644 (file)
@@ -19,6 +19,9 @@
        interrupt-parent = <&intc>;
 
        aliases {
+               i2c0 = &i2c1;
+               i2c1 = &i2c2;
+               i2c2 = &i2c3;
                serial0 = &uart1;
                serial1 = &uart2;
                serial2 = &uart3;
index 6ca45b0d346bec140a1ad47ac1db454bdf2e6074..0d8fdbad43fa0f002418f585f5819936bf4f0bb2 100644 (file)
        interrupt-parent = <&gic>;
 
        aliases {
+               i2c0 = &i2c1;
+               i2c1 = &i2c2;
+               i2c2 = &i2c3;
+               i2c3 = &i2c4;
                serial0 = &uart1;
                serial1 = &uart2;
                serial2 = &uart3;
index 53686e46f4822923a2727eea0176826007afa212..2cb72ba1dd05835e80ebc27927870d364928c9a7 100644 (file)
        interrupt-parent = <&gic>;
 
        aliases {
+               i2c0 = &i2c1;
+               i2c1 = &i2c2;
+               i2c2 = &i2c3;
+               i2c3 = &i2c4;
+               i2c4 = &i2c5;
                serial0 = &uart1;
                serial1 = &uart2;
                serial2 = &uart3;