aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSourav Poddar <sourav.poddar@ti.com>2013-02-13 04:28:30 -0500
committerBenoit Cousson <benoit.cousson@linaro.org>2013-04-08 18:16:56 -0400
commitadb9e561a73c5665a83b6d40bd21a6b483ead889 (patch)
treefdf3eeb607b228b877200e703120cfa4ad5d5354
parent9be495c426094276c15715dd6bb87c99f08266aa (diff)
ARM: dts: omap4-panda: Add I2c pinctrl data
Booting 3.8-rc6 on omap4 panda results in the following error [ 0.444427] omap_i2c 48070000.i2c: did not get pins for i2c error: -19 [ 0.445770] omap_i2c 48070000.i2c: bus 0 rev0.11 at 400 kHz [ 0.473937] omap_i2c 48072000.i2c: did not get pins for i2c error: -19 [ 0.474670] omap_i2c 48072000.i2c: bus 1 rev0.11 at 400 kHz [ 0.474822] omap_i2c 48060000.i2c: did not get pins for i2c error: -19 [ 0.476379] omap_i2c 48060000.i2c: bus 2 rev0.11 at 100 kHz [ 0.477294] omap_i2c 48350000.i2c: did not get pins for i2c error: -19 [ 0.477996] omap_i2c 48350000.i2c: bus 3 rev0.11 at 400 kHz [ 0.483398] Switching to clocksource 32k_counter This happens because omap4 panda dts file is not adapted to use i2c through pinctrl framework. Populating i2c pinctrl data to get rid of the error. Tested on omap4460 panda with 3.8-rc6 kernel. Signed-off-by: Sourav Poddar <sourav.poddar@ti.com> Reported-by: Luciano Coelho <coelho@ti.com> Signed-off-by: Benoit Cousson <benoit.cousson@linaro.org>
-rw-r--r--arch/arm/boot/dts/omap4-panda.dts40
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/omap4-panda.dts b/arch/arm/boot/dts/omap4-panda.dts
index 4122efe31cfd..f951e6b3127e 100644
--- a/arch/arm/boot/dts/omap4-panda.dts
+++ b/arch/arm/boot/dts/omap4-panda.dts
@@ -110,9 +110,40 @@
110 0x58 0x10b /* hdmi_hpd.gpio_63 INPUT PULLDOWN | MODE3 */ 110 0x58 0x10b /* hdmi_hpd.gpio_63 INPUT PULLDOWN | MODE3 */
111 >; 111 >;
112 }; 112 };
113
114 i2c1_pins: pinmux_i2c1_pins {
115 pinctrl-single,pins = <
116 0xe2 0x118 /* i2c1_scl PULLUP | INPUTENABLE | MODE0 */
117 0xe4 0x118 /* i2c1_sda PULLUP | INPUTENABLE | MODE0 */
118 >;
119 };
120
121 i2c2_pins: pinmux_i2c2_pins {
122 pinctrl-single,pins = <
123 0xe6 0x118 /* i2c2_scl PULLUP | INPUTENABLE | MODE0 */
124 0xe8 0x118 /* i2c2_sda PULLUP | INPUTENABLE | MODE0 */
125 >;
126 };
127
128 i2c3_pins: pinmux_i2c3_pins {
129 pinctrl-single,pins = <
130 0xea 0x118 /* i2c3_scl PULLUP | INPUTENABLE | MODE0 */
131 0xec 0x118 /* i2c3_sda PULLUP | INPUTENABLE | MODE0 */
132 >;
133 };
134
135 i2c4_pins: pinmux_i2c4_pins {
136 pinctrl-single,pins = <
137 0xee 0x118 /* i2c4_scl PULLUP | INPUTENABLE | MODE0 */
138 0xf0 0x118 /* i2c4_sda PULLUP | INPUTENABLE | MODE0 */
139 >;
140 };
113}; 141};
114 142
115&i2c1 { 143&i2c1 {
144 pinctrl-names = "default";
145 pinctrl-0 = <&i2c1_pins>;
146
116 clock-frequency = <400000>; 147 clock-frequency = <400000>;
117 148
118 twl: twl@48 { 149 twl: twl@48 {
@@ -139,10 +170,16 @@
139/include/ "twl6030.dtsi" 170/include/ "twl6030.dtsi"
140 171
141&i2c2 { 172&i2c2 {
173 pinctrl-names = "default";
174 pinctrl-0 = <&i2c2_pins>;
175
142 clock-frequency = <400000>; 176 clock-frequency = <400000>;
143}; 177};
144 178
145&i2c3 { 179&i2c3 {
180 pinctrl-names = "default";
181 pinctrl-0 = <&i2c3_pins>;
182
146 clock-frequency = <100000>; 183 clock-frequency = <100000>;
147 184
148 /* 185 /*
@@ -156,6 +193,9 @@
156}; 193};
157 194
158&i2c4 { 195&i2c4 {
196 pinctrl-names = "default";
197 pinctrl-0 = <&i2c4_pins>;
198
159 clock-frequency = <400000>; 199 clock-frequency = <400000>;
160}; 200};
161 201