ARM: dts: omap3-overo: Add missing pinctrl
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / omap3-overo-base.dtsi
1 /*
2  * Copyright (C) 2012 Florian Vaussard, EPFL Mobots group
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  */
8
9 /*
10  * The Gumstix Overo must be combined with an expansion board.
11  */
12
13 / {
14         pwmleds {
15                 compatible = "pwm-leds";
16
17                 overo {
18                         label = "overo:blue:COM";
19                         pwms = <&twl_pwmled 1 7812500>;
20                         max-brightness = <127>;
21                         linux,default-trigger = "mmc0";
22                 };
23         };
24
25         sound {
26                 compatible = "ti,omap-twl4030";
27                 ti,model = "overo";
28
29                 ti,mcbsp = <&mcbsp2>;
30                 ti,codec = <&twl_audio>;
31         };
32 };
33
34 &omap3_pmx_core {
35         uart3_pins: pinmux_uart3_pins {
36                 pinctrl-single,pins = <
37                         OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
38                         OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0)               /* uart3_tx_irtx.uart3_tx_irtx */
39                 >;
40         };
41
42         i2c1_pins: pinmux_i2c1_pins {
43                 pinctrl-single,pins = <
44                         OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0)                /* i2c1_scl.i2c1_scl */
45                         OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0)                /* i2c1_sda.i2c1_sda */
46                 >;
47         };
48
49         mmc1_pins: pinmux_mmc1_pins {
50                 pinctrl-single,pins = <
51                         OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc1_clk.sdmmc1_clk */
52                         OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc1_cmd.sdmmc1_cmd */
53                         OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc1_dat0.sdmmc1_dat0 */
54                         OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc1_dat1.sdmmc1_dat1 */
55                         OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc1_dat2.sdmmc1_dat2 */
56                         OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc1_dat3.sdmmc1_dat3 */
57                 >;
58         };
59 };
60
61 &i2c1 {
62         pinctrl-names = "default";
63         pinctrl-0 = <&i2c1_pins>;
64         clock-frequency = <2600000>;
65
66         twl: twl@48 {
67                 reg = <0x48>;
68                 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
69                 interrupt-parent = <&intc>;
70
71                 twl_audio: audio {
72                         compatible = "ti,twl4030-audio";
73                         codec {
74                         };
75                 };
76         };
77 };
78
79 #include "twl4030.dtsi"
80 #include "twl4030_omap3.dtsi"
81
82 /* i2c2 pins are used for gpio */
83 &i2c2 {
84         status = "disabled";
85 };
86
87 /* on board microSD slot */
88 &mmc1 {
89         pinctrl-names = "default";
90         pinctrl-0 = <&mmc1_pins>;
91         vmmc-supply = <&vmmc1>;
92         bus-width = <4>;
93 };
94
95 /* optional on board WiFi */
96 &mmc2 {
97         bus-width = <4>;
98 };
99
100 &twl_gpio {
101         ti,use-leds;
102 };
103
104 &usb_otg_hs {
105         interface-type = <0>;
106         usb-phy = <&usb2_phy>;
107         phys = <&usb2_phy>;
108         phy-names = "usb2-phy";
109         mode = <3>;
110         power = <50>;
111 };
112
113 &uart3 {
114         pinctrl-names = "default";
115         pinctrl-0 = <&uart3_pins>;
116 };