aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/omap5-evm.dts
diff options
context:
space:
mode:
authorSourav Poddar <sourav.poddar@ti.com>2013-02-13 04:28:22 -0500
committerBenoit Cousson <benoit.cousson@linaro.org>2013-04-08 18:16:55 -0400
commit9be495c426094276c15715dd6bb87c99f08266aa (patch)
treeeb3d31f4480354174d5115f06f4826c1be1a6203 /arch/arm/boot/dts/omap5-evm.dts
parent250b4e113b2b8ed14f45bad96dc6ad6fd41a7564 (diff)
ARM: dts: omap5-evm: Add I2c pinctrl data
Booting 3.8-rc6 on omap 5430evm results in the following error omap_i2c 48070000.i2c: did not get pins for i2c error: -19 [ 1.024261] omap_i2c 48070000.i2c: bus 0 rev0.12 at 100 kHz [ 1.030181] omap_i2c 48072000.i2c: did not get pins for i2c error: -19 [ 1.037384] omap_i2c 48072000.i2c: bus 1 rev0.12 at 400 kHz [ 1.043762] omap_i2c 48060000.i2c: did not get pins for i2c error: -19 [ 1.050964] omap_i2c 48060000.i2c: bus 2 rev0.12 at 100 kHz [ 1.056823] omap_i2c 4807a000.i2c: did not get pins for i2c error: -19 [ 1.064025] omap_i2c 4807a000.i2c: bus 3 rev0.12 at 400 kHz This happens because omap5 dts file is not adapted to use i2c through pinctrl framework. Populating i2c pinctrl data to get rid of the error. Tested on omap5430 evm with 3.8-rc6 kernel. Signed-off-by: Sourav Poddar <sourav.poddar@ti.com> Signed-off-by: Benoit Cousson <benoit.cousson@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/omap5-evm.dts')
-rw-r--r--arch/arm/boot/dts/omap5-evm.dts62
1 files changed, 62 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/omap5-evm.dts b/arch/arm/boot/dts/omap5-evm.dts
index 8722c15bbba2..a4784be40081 100644
--- a/arch/arm/boot/dts/omap5-evm.dts
+++ b/arch/arm/boot/dts/omap5-evm.dts
@@ -80,6 +80,41 @@
80 0x15a 0x100 /* abemcbsp2_clkx.abemcbsp2_clkx INPUT | MODE0 */ 80 0x15a 0x100 /* abemcbsp2_clkx.abemcbsp2_clkx INPUT | MODE0 */
81 >; 81 >;
82 }; 82 };
83
84 i2c1_pins: pinmux_i2c1_pins {
85 pinctrl-single,pins = <
86 0x1b2 0x118 /* i2c1_scl PULLUP | INPUTENABLE | MODE0 */
87 0x1b4 0x118 /* i2c1_sda PULLUP | INPUTENABLE | MODE0 */
88 >;
89 };
90
91 i2c2_pins: pinmux_i2c2_pins {
92 pinctrl-single,pins = <
93 0x178 0x100 /* i2c2_scl INPUTENABLE | MODE0 */
94 0x17a 0x100 /* i2c2_sda INPUTENABLE | MODE0 */
95 >;
96 };
97
98 i2c3_pins: pinmux_i2c3_pins {
99 pinctrl-single,pins = <
100 0x13a 0x100 /* i2c3_scl INPUTENABLE | MODE0 */
101 0x13c 0x100 /* i2c3_sda INPUTENABLE | MODE0 */
102 >;
103 };
104
105 i2c4_pins: pinmux_i2c4_pins {
106 pinctrl-single,pins = <
107 0xb8 0x100 /* i2c4_scl INPUTENABLE | MODE0 */
108 0xba 0x100 /* i2c4_sda INPUTENABLE | MODE0 */
109 >;
110 };
111
112 i2c5_pins: pinmux_i2c5_pins {
113 pinctrl-single,pins = <
114 0x184 0x100 /* i2c5_scl INPUTENABLE | MODE0 */
115 0x186 0x100 /* i2c5_sda INPUTENABLE | MODE0 */
116 >;
117 };
83}; 118};
84 119
85&mmc1 { 120&mmc1 {
@@ -106,7 +141,17 @@
106 status = "disabled"; 141 status = "disabled";
107}; 142};
108 143
144&i2c1 {
145 pinctrl-names = "default";
146 pinctrl-0 = <&i2c1_pins>;
147
148 clock-frequency = <400000>;
149};
150
109&i2c2 { 151&i2c2 {
152 pinctrl-names = "default";
153 pinctrl-0 = <&i2c2_pins>;
154
110 clock-frequency = <400000>; 155 clock-frequency = <400000>;
111 156
112 /* Pressure Sensor */ 157 /* Pressure Sensor */
@@ -116,7 +161,17 @@
116 }; 161 };
117}; 162};
118 163
164&i2c3 {
165 pinctrl-names = "default";
166 pinctrl-0 = <&i2c3_pins>;
167
168 clock-frequency = <400000>;
169};
170
119&i2c4 { 171&i2c4 {
172 pinctrl-names = "default";
173 pinctrl-0 = <&i2c4_pins>;
174
120 clock-frequency = <400000>; 175 clock-frequency = <400000>;
121 176
122 /* Temperature Sensor */ 177 /* Temperature Sensor */
@@ -126,6 +181,13 @@
126 }; 181 };
127}; 182};
128 183
184&i2c5 {
185 pinctrl-names = "default";
186 pinctrl-0 = <&i2c5_pins>;
187
188 clock-frequency = <400000>;
189};
190
129&keypad { 191&keypad {
130 keypad,num-rows = <8>; 192 keypad,num-rows = <8>;
131 keypad,num-columns = <8>; 193 keypad,num-columns = <8>;