ARM: kirkwood: Add i2c alias so setting bus number
authorAndrew Lunn <andrew@lunn.ch>
Tue, 25 Feb 2014 17:34:00 +0000 (18:34 +0100)
committerJason Cooper <jason@lakedaemon.net>
Tue, 4 Mar 2014 02:17:58 +0000 (02:17 +0000)
When using platform_driver instantiation, the i2c bus was given bus
number 0. The kirkwood-t5325 audio driver has this bus number hard
coded for the address of the codec. However by default device tree i2c
busses are dynamically allocated a bus number, starting from 1. Thus
the kirkwood-t5325 cannot find its audio codec. By adding an alias in
the DT file we can control the bus number and set it to 0. The codec
can then be found.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/kirkwood.dtsi

index 5a86fa820e12353d0c5ddcad753c24df3b274ff7..90384587c27843c563d2c4328ce9411f4c26458b 100644 (file)
@@ -24,6 +24,7 @@
        aliases {
               gpio0 = &gpio0;
               gpio1 = &gpio1;
+              i2c0 = &i2c0;
        };
 
        mbus {
                        clocks = <&gate_clk 7>;
                };
 
-               i2c@11000 {
+               i2c0: i2c@11000 {
                        compatible = "marvell,mv64xxx-i2c";
                        reg = <0x11000 0x20>;
                        #address-cells = <1>;
This page took 0.026286 seconds and 5 git commands to generate.