blob: 13d1ad21549430f60b21812fc3ba0d4ca3e5ecb2 [file] [log] [blame]
Florian Vaussardaf3c0382014-03-07 20:22:11 +01001/*
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 };
Florian Vaussard94647a32014-03-07 20:22:14 +010032
Florian Vaussarddd4051b2014-03-07 20:22:15 +010033 /* HS USB Port 2 Power */
34 hsusb2_power: hsusb2_power_reg {
35 compatible = "regulator-fixed";
36 regulator-name = "hsusb2_vbus";
37 regulator-min-microvolt = <5000000>;
38 regulator-max-microvolt = <5000000>;
39 gpio = <&gpio6 8 0>; /* gpio_168: vbus enable */
40 startup-delay-us = <70000>;
41 enable-active-high;
42 };
43
44 /* HS USB Host PHY on PORT 2 */
45 hsusb2_phy: hsusb2_phy {
46 compatible = "usb-nop-xceiv";
47 reset-gpios = <&gpio6 23 GPIO_ACTIVE_LOW>; /* gpio_183 */
48 vcc-supply = <&hsusb2_power>;
49 };
50
Florian Vaussard94647a32014-03-07 20:22:14 +010051 /* Regulator to trigger the nPoweron signal of the Wifi module */
52 w3cbw003c_npoweron: regulator-w3cbw003c-npoweron {
53 compatible = "regulator-fixed";
54 regulator-name = "regulator-w3cbw003c-npoweron";
55 regulator-min-microvolt = <3300000>;
56 regulator-max-microvolt = <3300000>;
57 gpio = <&gpio2 22 GPIO_ACTIVE_HIGH>; /* gpio_54: nPoweron */
58 enable-active-high;
59 };
60
61 /* Regulator to trigger the nReset signal of the Wifi module */
62 w3cbw003c_wifi_nreset: regulator-w3cbw003c-wifi-nreset {
63 pinctrl-names = "default";
64 pinctrl-0 = <&w3cbw003c_pins &w3cbw003c_2_pins>;
65 compatible = "regulator-fixed";
66 regulator-name = "regulator-w3cbw003c-wifi-nreset";
67 regulator-min-microvolt = <3300000>;
68 regulator-max-microvolt = <3300000>;
69 gpio = <&gpio1 16 GPIO_ACTIVE_HIGH>; /* gpio_16: WiFi nReset */
70 startup-delay-us = <10000>;
71 };
72
73 /* Regulator to trigger the nReset signal of the Bluetooth module */
74 w3cbw003c_bt_nreset: regulator-w3cbw003c-bt-nreset {
75 compatible = "regulator-fixed";
76 regulator-name = "regulator-w3cbw003c-bt-nreset";
77 regulator-min-microvolt = <3300000>;
78 regulator-max-microvolt = <3300000>;
79 gpio = <&gpio6 4 GPIO_ACTIVE_HIGH>; /* gpio_164: BT nReset */
80 startup-delay-us = <10000>;
81 };
Florian Vaussardaf3c0382014-03-07 20:22:11 +010082};
83
Florian Vaussardfc177222014-03-07 20:22:13 +010084&omap3_pmx_core {
Florian Vaussarddd4051b2014-03-07 20:22:15 +010085 pinctrl-names = "default";
86 pinctrl-0 = <
87 &hsusb2_pins
88 >;
89
Florian Vaussard94647a32014-03-07 20:22:14 +010090 uart2_pins: pinmux_uart2_pins {
91 pinctrl-single,pins = <
92 OMAP3_CORE1_IOPAD(0x216c, PIN_INPUT | MUX_MODE1) /* mcbsp3_dx.uart2_cts */
93 OMAP3_CORE1_IOPAD(0x216e, PIN_OUTPUT | MUX_MODE1) /* mcbsp3_dr.uart2_rts */
94 OMAP3_CORE1_IOPAD(0x2170, PIN_OUTPUT | MUX_MODE1) /* mcbsp3_clk.uart2_tx */
95 OMAP3_CORE1_IOPAD(0x2172, PIN_INPUT | MUX_MODE1) /* mcbsp3_fsx.uart2_rx */
96 >;
97 };
98
Florian Vaussardfc177222014-03-07 20:22:13 +010099 uart3_pins: pinmux_uart3_pins {
100 pinctrl-single,pins = <
101 OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
102 OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */
103 >;
104 };
105
106 i2c1_pins: pinmux_i2c1_pins {
107 pinctrl-single,pins = <
108 OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0) /* i2c1_scl.i2c1_scl */
109 OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0) /* i2c1_sda.i2c1_sda */
110 >;
111 };
112
113 mmc1_pins: pinmux_mmc1_pins {
114 pinctrl-single,pins = <
115 OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
116 OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
117 OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
118 OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
119 OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
120 OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
121 >;
122 };
Florian Vaussard94647a32014-03-07 20:22:14 +0100123
124 mmc2_pins: pinmux_mmc2_pins {
125 pinctrl-single,pins = <
126 OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk.sdmmc2_clk */
127 OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd.sdmmc2_cmd */
128 OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0.sdmmc2_dat0 */
129 OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1.sdmmc2_dat1 */
130 OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2.sdmmc2_dat2 */
131 OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3.sdmmc2_dat3 */
132 >;
133 };
134
135 /* WiFi/BT combo */
136 w3cbw003c_pins: pinmux_w3cbw003c_pins {
137 pinctrl-single,pins = <
138 OMAP3_CORE1_IOPAD(0x20b4, PIN_OUTPUT | MUX_MODE4) /* gpmc_ncs3.gpio_54 */
139 OMAP3_CORE1_IOPAD(0x219c, PIN_OUTPUT | MUX_MODE4) /* uart3_rts_sd.gpio_164 */
140 >;
141 };
Florian Vaussarddd4051b2014-03-07 20:22:15 +0100142
143 hsusb2_pins: pinmux_hsusb2_pins {
144 pinctrl-single,pins = <
145 OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */
146 OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */
147 OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */
148 OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */
149 OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */
150 OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */
151 OMAP3_CORE1_IOPAD(0x21be, PIN_OUTPUT | MUX_MODE4) /* i2c2_scl.gpio_168 */
152 OMAP3_CORE1_IOPAD(0x21c0, PIN_OUTPUT | MUX_MODE4) /* i2c2_sda.gpio_183 */
153 >;
154 };
Florian Vaussardfc177222014-03-07 20:22:13 +0100155};
156
Florian Vaussardaf3c0382014-03-07 20:22:11 +0100157&i2c1 {
Florian Vaussardfc177222014-03-07 20:22:13 +0100158 pinctrl-names = "default";
159 pinctrl-0 = <&i2c1_pins>;
Florian Vaussardaf3c0382014-03-07 20:22:11 +0100160 clock-frequency = <2600000>;
161
162 twl: twl@48 {
163 reg = <0x48>;
164 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
165 interrupt-parent = <&intc>;
166
167 twl_audio: audio {
168 compatible = "ti,twl4030-audio";
169 codec {
170 };
171 };
172 };
173};
174
175#include "twl4030.dtsi"
176#include "twl4030_omap3.dtsi"
177
178/* i2c2 pins are used for gpio */
179&i2c2 {
180 status = "disabled";
181};
182
183/* on board microSD slot */
184&mmc1 {
Florian Vaussardfc177222014-03-07 20:22:13 +0100185 pinctrl-names = "default";
186 pinctrl-0 = <&mmc1_pins>;
Florian Vaussardaf3c0382014-03-07 20:22:11 +0100187 vmmc-supply = <&vmmc1>;
188 bus-width = <4>;
189};
190
191/* optional on board WiFi */
192&mmc2 {
Florian Vaussard94647a32014-03-07 20:22:14 +0100193 pinctrl-names = "default";
194 pinctrl-0 = <&mmc2_pins>;
195 vmmc-supply = <&w3cbw003c_npoweron>;
196 vqmmc-supply = <&w3cbw003c_bt_nreset>;
197 vmmc_aux-supply = <&w3cbw003c_wifi_nreset>;
Florian Vaussardaf3c0382014-03-07 20:22:11 +0100198 bus-width = <4>;
Florian Vaussard94647a32014-03-07 20:22:14 +0100199 cap-sdio-irq;
200 non-removable;
Florian Vaussardaf3c0382014-03-07 20:22:11 +0100201};
202
203&twl_gpio {
204 ti,use-leds;
205};
206
207&usb_otg_hs {
208 interface-type = <0>;
209 usb-phy = <&usb2_phy>;
210 phys = <&usb2_phy>;
211 phy-names = "usb2-phy";
212 mode = <3>;
213 power = <50>;
214};
215
Florian Vaussarddd4051b2014-03-07 20:22:15 +0100216&usbhshost {
217 port2-mode = "ehci-phy";
218};
219
220&usbhsehci {
221 phys = <0 &hsusb2_phy>;
222};
223
Florian Vaussard94647a32014-03-07 20:22:14 +0100224&uart2 {
225 pinctrl-names = "default";
226 pinctrl-0 = <&uart2_pins>;
227};
228
Florian Vaussardaf3c0382014-03-07 20:22:11 +0100229&uart3 {
230 pinctrl-names = "default";
231 pinctrl-0 = <&uart3_pins>;
232};