Commit 4d927570 authored by Vaibhav Hiremath's avatar Vaibhav Hiremath Committed by Benoit Cousson

ARM: dts: AM33XX: Set pinmux for clkout2 pad used for clock output

xdma_event_intr1.clkout2 pad can be used to source clock
from either 32K OSC or any of the PLL (except MPU) outputs.
On the existing AM335x based boards (EVM, EVM-SK and Bone),
this pad is used to feed the clock to audio codes.

So, this patch configures the pinmux to get clkout2 on the pad.
Signed-off-by: default avatarVaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: default avatarBenoit Cousson <benoit.cousson@linaro.org>
parent 9f2fbe17
...@@ -26,7 +26,7 @@ memory { ...@@ -26,7 +26,7 @@ memory {
am33xx_pinmux: pinmux@44e10800 { am33xx_pinmux: pinmux@44e10800 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <>; pinctrl-0 = <&clkout2_pin>;
user_leds_s0: user_leds_s0 { user_leds_s0: user_leds_s0 {
pinctrl-single,pins = < pinctrl-single,pins = <
...@@ -50,6 +50,12 @@ uart0_pins: pinmux_uart0_pins { ...@@ -50,6 +50,12 @@ uart0_pins: pinmux_uart0_pins {
0x174 0x00 /* uart0_txd.uart0_txd PULLDOWN | MODE0 */ 0x174 0x00 /* uart0_txd.uart0_txd PULLDOWN | MODE0 */
>; >;
}; };
clkout2_pin: pinmux_clkout2_pin {
pinctrl-single,pins = <
0x1b4 0x03 /* xdma_event_intr1.clkout2 OMAP_MUX_MODE3 | AM33XX_PIN_OUTPUT */
>;
};
}; };
ocp { ocp {
......
...@@ -26,7 +26,7 @@ memory { ...@@ -26,7 +26,7 @@ memory {
am33xx_pinmux: pinmux@44e10800 { am33xx_pinmux: pinmux@44e10800 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&matrix_keypad_s0 &volume_keys_s0>; pinctrl-0 = <&matrix_keypad_s0 &volume_keys_s0 &clkout2_pin>;
matrix_keypad_s0: matrix_keypad_s0 { matrix_keypad_s0: matrix_keypad_s0 {
pinctrl-single,pins = < pinctrl-single,pins = <
...@@ -65,6 +65,12 @@ uart0_pins: pinmux_uart0_pins { ...@@ -65,6 +65,12 @@ uart0_pins: pinmux_uart0_pins {
0x174 0x00 /* uart0_txd.uart0_txd PULLDOWN | MODE0 */ 0x174 0x00 /* uart0_txd.uart0_txd PULLDOWN | MODE0 */
>; >;
}; };
clkout2_pin: pinmux_clkout2_pin {
pinctrl-single,pins = <
0x1b4 0x03 /* xdma_event_intr1.clkout2 OMAP_MUX_MODE3 | AM33XX_PIN_OUTPUT */
>;
};
}; };
ocp { ocp {
......
...@@ -32,7 +32,7 @@ memory { ...@@ -32,7 +32,7 @@ memory {
am33xx_pinmux: pinmux@44e10800 { am33xx_pinmux: pinmux@44e10800 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&gpio_keys_s0>; pinctrl-0 = <&gpio_keys_s0 &clkout2_pin>;
user_leds_s0: user_leds_s0 { user_leds_s0: user_leds_s0 {
pinctrl-single,pins = < pinctrl-single,pins = <
...@@ -65,6 +65,12 @@ uart0_pins: pinmux_uart0_pins { ...@@ -65,6 +65,12 @@ uart0_pins: pinmux_uart0_pins {
0x174 0x00 /* uart0_txd.uart0_txd PULLDOWN | MODE0 */ 0x174 0x00 /* uart0_txd.uart0_txd PULLDOWN | MODE0 */
>; >;
}; };
clkout2_pin: pinmux_clkout2_pin {
pinctrl-single,pins = <
0x1b4 0x03 /* xdma_event_intr1.clkout2 OMAP_MUX_MODE3 | AM33XX_PIN_OUTPUT */
>;
};
}; };
ocp { ocp {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment