Skip to content

Commit 942da3a

Browse files
aford173tmlind
authored andcommitted
ARM: dts: am3517-evm: Fix misc pinmuxing
The bootloader for the AM3517 has previously done much of the pin muxing, but as the bootloader is moving more and more to a model based on the device tree, it may no longer automatically mux the pins, so it is necessary to add the pinmuxing to the Linux device trees so the respective peripherals can remain functional. Fixes: 6ed1d79 ("ARM: dts: am3517-evm: Add support for UI board and Audio") Signed-off-by: Adam Ford <[email protected]> Message-Id: <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent c21a743 commit 942da3a

File tree

2 files changed

+49
-5
lines changed

2 files changed

+49
-5
lines changed

arch/arm/boot/dts/am3517-evm.dts

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,18 @@
161161

162162
/* HS USB Host PHY on PORT 1 */
163163
hsusb1_phy: hsusb1_phy {
164+
pinctrl-names = "default";
165+
pinctrl-0 = <&hsusb1_rst_pins>;
164166
compatible = "usb-nop-xceiv";
165167
reset-gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; /* gpio_57 */
166168
#phy-cells = <0>;
167169
};
168170
};
169171

170172
&davinci_emac {
171-
status = "okay";
173+
pinctrl-names = "default";
174+
pinctrl-0 = <&ethernet_pins>;
175+
status = "okay";
172176
};
173177

174178
&davinci_mdio {
@@ -193,6 +197,8 @@
193197
};
194198

195199
&i2c2 {
200+
pinctrl-names = "default";
201+
pinctrl-0 = <&i2c2_pins>;
196202
clock-frequency = <400000>;
197203
/* User DIP swithes [1:8] / User LEDS [1:2] */
198204
tca6416: gpio@21 {
@@ -205,6 +211,8 @@
205211
};
206212

207213
&i2c3 {
214+
pinctrl-names = "default";
215+
pinctrl-0 = <&i2c3_pins>;
208216
clock-frequency = <400000>;
209217
};
210218

@@ -223,6 +231,8 @@
223231
};
224232

225233
&usbhshost {
234+
pinctrl-names = "default";
235+
pinctrl-0 = <&hsusb1_pins>;
226236
port1-mode = "ehci-phy";
227237
};
228238

@@ -231,8 +241,35 @@
231241
};
232242

233243
&omap3_pmx_core {
234-
pinctrl-names = "default";
235-
pinctrl-0 = <&hsusb1_rst_pins>;
244+
245+
ethernet_pins: pinmux_ethernet_pins {
246+
pinctrl-single,pins = <
247+
OMAP3_CORE1_IOPAD(0x21fe, PIN_INPUT | MUX_MODE0) /* rmii_mdio_data */
248+
OMAP3_CORE1_IOPAD(0x2200, MUX_MODE0) /* rmii_mdio_clk */
249+
OMAP3_CORE1_IOPAD(0x2202, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_rxd0 */
250+
OMAP3_CORE1_IOPAD(0x2204, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_rxd1 */
251+
OMAP3_CORE1_IOPAD(0x2206, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_crs_dv */
252+
OMAP3_CORE1_IOPAD(0x2208, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* rmii_rxer */
253+
OMAP3_CORE1_IOPAD(0x220a, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* rmii_txd0 */
254+
OMAP3_CORE1_IOPAD(0x220c, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* rmii_txd1 */
255+
OMAP3_CORE1_IOPAD(0x220e, PIN_OUTPUT_PULLDOWN |MUX_MODE0) /* rmii_txen */
256+
OMAP3_CORE1_IOPAD(0x2210, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_50mhz_clk */
257+
>;
258+
};
259+
260+
i2c2_pins: pinmux_i2c2_pins {
261+
pinctrl-single,pins = <
262+
OMAP3_CORE1_IOPAD(0x21be, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */
263+
OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */
264+
>;
265+
};
266+
267+
i2c3_pins: pinmux_i2c3_pins {
268+
pinctrl-single,pins = <
269+
OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */
270+
OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */
271+
>;
272+
};
236273

237274
leds_pins: pinmux_leds_pins {
238275
pinctrl-single,pins = <
@@ -300,8 +337,6 @@
300337
};
301338

302339
&omap3_pmx_core2 {
303-
pinctrl-names = "default";
304-
pinctrl-0 = <&hsusb1_pins>;
305340

306341
hsusb1_pins: pinmux_hsusb1_pins {
307342
pinctrl-single,pins = <

arch/arm/boot/dts/am3517-som.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969
};
7070

7171
&i2c1 {
72+
pinctrl-names = "default";
73+
pinctrl-0 = <&i2c1_pins>;
7274
clock-frequency = <400000>;
7375

7476
s35390a: s35390a@30 {
@@ -179,6 +181,13 @@
179181

180182
&omap3_pmx_core {
181183

184+
i2c1_pins: pinmux_i2c1_pins {
185+
pinctrl-single,pins = <
186+
OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
187+
OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
188+
>;
189+
};
190+
182191
wl12xx_buffer_pins: pinmux_wl12xx_buffer_pins {
183192
pinctrl-single,pins = <
184193
OMAP3_CORE1_IOPAD(0x2156, PIN_OUTPUT | MUX_MODE4) /* mmc1_dat7.gpio_129 */

0 commit comments

Comments
 (0)