Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 6ed1d7997561 ("ARM: dts: am3517-evm: Add support for UI board and Audio")
Signed-off-by: Adam Ford <aford173@gmail.com>
Message-Id: <20220226214820.747847-1-aford173@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Adam Ford and committed by
Tony Lindgren
942da3af c21a7434

+49 -5
+40 -5
arch/arm/boot/dts/am3517-evm.dts
··· 161 161 162 162 /* HS USB Host PHY on PORT 1 */ 163 163 hsusb1_phy: hsusb1_phy { 164 + pinctrl-names = "default"; 165 + pinctrl-0 = <&hsusb1_rst_pins>; 164 166 compatible = "usb-nop-xceiv"; 165 167 reset-gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; /* gpio_57 */ 166 168 #phy-cells = <0>; ··· 170 168 }; 171 169 172 170 &davinci_emac { 173 - status = "okay"; 171 + pinctrl-names = "default"; 172 + pinctrl-0 = <&ethernet_pins>; 173 + status = "okay"; 174 174 }; 175 175 176 176 &davinci_mdio { ··· 197 193 }; 198 194 199 195 &i2c2 { 196 + pinctrl-names = "default"; 197 + pinctrl-0 = <&i2c2_pins>; 200 198 clock-frequency = <400000>; 201 199 /* User DIP swithes [1:8] / User LEDS [1:2] */ 202 200 tca6416: gpio@21 { ··· 211 205 }; 212 206 213 207 &i2c3 { 208 + pinctrl-names = "default"; 209 + pinctrl-0 = <&i2c3_pins>; 214 210 clock-frequency = <400000>; 215 211 }; 216 212 ··· 231 223 }; 232 224 233 225 &usbhshost { 226 + pinctrl-names = "default"; 227 + pinctrl-0 = <&hsusb1_pins>; 234 228 port1-mode = "ehci-phy"; 235 229 }; 236 230 ··· 241 231 }; 242 232 243 233 &omap3_pmx_core { 244 - pinctrl-names = "default"; 245 - pinctrl-0 = <&hsusb1_rst_pins>; 234 + 235 + ethernet_pins: pinmux_ethernet_pins { 236 + pinctrl-single,pins = < 237 + OMAP3_CORE1_IOPAD(0x21fe, PIN_INPUT | MUX_MODE0) /* rmii_mdio_data */ 238 + OMAP3_CORE1_IOPAD(0x2200, MUX_MODE0) /* rmii_mdio_clk */ 239 + OMAP3_CORE1_IOPAD(0x2202, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_rxd0 */ 240 + OMAP3_CORE1_IOPAD(0x2204, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_rxd1 */ 241 + OMAP3_CORE1_IOPAD(0x2206, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_crs_dv */ 242 + OMAP3_CORE1_IOPAD(0x2208, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* rmii_rxer */ 243 + OMAP3_CORE1_IOPAD(0x220a, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* rmii_txd0 */ 244 + OMAP3_CORE1_IOPAD(0x220c, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* rmii_txd1 */ 245 + OMAP3_CORE1_IOPAD(0x220e, PIN_OUTPUT_PULLDOWN |MUX_MODE0) /* rmii_txen */ 246 + OMAP3_CORE1_IOPAD(0x2210, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_50mhz_clk */ 247 + >; 248 + }; 249 + 250 + i2c2_pins: pinmux_i2c2_pins { 251 + pinctrl-single,pins = < 252 + OMAP3_CORE1_IOPAD(0x21be, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */ 253 + OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */ 254 + >; 255 + }; 256 + 257 + i2c3_pins: pinmux_i2c3_pins { 258 + pinctrl-single,pins = < 259 + OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */ 260 + OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */ 261 + >; 262 + }; 246 263 247 264 leds_pins: pinmux_leds_pins { 248 265 pinctrl-single,pins = < ··· 337 300 }; 338 301 339 302 &omap3_pmx_core2 { 340 - pinctrl-names = "default"; 341 - pinctrl-0 = <&hsusb1_pins>; 342 303 343 304 hsusb1_pins: pinmux_hsusb1_pins { 344 305 pinctrl-single,pins = <
+9
arch/arm/boot/dts/am3517-som.dtsi
··· 69 69 }; 70 70 71 71 &i2c1 { 72 + pinctrl-names = "default"; 73 + pinctrl-0 = <&i2c1_pins>; 72 74 clock-frequency = <400000>; 73 75 74 76 s35390a: s35390a@30 { ··· 180 178 }; 181 179 182 180 &omap3_pmx_core { 181 + 182 + i2c1_pins: pinmux_i2c1_pins { 183 + pinctrl-single,pins = < 184 + OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */ 185 + OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */ 186 + >; 187 + }; 183 188 184 189 wl12xx_buffer_pins: pinmux_wl12xx_buffer_pins { 185 190 pinctrl-single,pins = <