aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2014-02-25 12:34:00 -0500
committerJason Cooper <jason@lakedaemon.net>2014-03-03 21:17:58 -0500
commitcb932e12d931f7973ac3ac66004977aec8fc87c0 (patch)
tree1e69bbb47f0baa5911df0c7079e5acdf8706678a
parentb3f742cc76274644c3346e9e1af3f22f40a36dd3 (diff)
ARM: kirkwood: Add i2c alias so setting bus number
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>
-rw-r--r--arch/arm/boot/dts/kirkwood.dtsi3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/kirkwood.dtsi b/arch/arm/boot/dts/kirkwood.dtsi
index 5a86fa820e12..90384587c278 100644
--- a/arch/arm/boot/dts/kirkwood.dtsi
+++ b/arch/arm/boot/dts/kirkwood.dtsi
@@ -24,6 +24,7 @@
24 aliases { 24 aliases {
25 gpio0 = &gpio0; 25 gpio0 = &gpio0;
26 gpio1 = &gpio1; 26 gpio1 = &gpio1;
27 i2c0 = &i2c0;
27 }; 28 };
28 29
29 mbus { 30 mbus {
@@ -111,7 +112,7 @@
111 clocks = <&gate_clk 7>; 112 clocks = <&gate_clk 7>;
112 }; 113 };
113 114
114 i2c@11000 { 115 i2c0: i2c@11000 {
115 compatible = "marvell,mv64xxx-i2c"; 116 compatible = "marvell,mv64xxx-i2c";
116 reg = <0x11000 0x20>; 117 reg = <0x11000 0x20>;
117 #address-cells = <1>; 118 #address-cells = <1>;