Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/*
2 * Copyright (C) 2014 Joachim Eastwood <manabian@gmail.com>
3 * Copyright (C) 2012 Variscite Ltd. - http://www.variscite.com
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 */
9#include "omap4460.dtsi"
10#include "omap4-mcpdm.dtsi"
11
12/ {
13 model = "Variscite VAR-SOM-OM44";
14 compatible = "variscite,var-som-om44", "ti,omap4460", "ti,omap4";
15
16 memory@80000000 {
17 device_type = "memory";
18 reg = <0x80000000 0x40000000>; /* 1 GB */
19 };
20
21 sound: sound {
22 compatible = "ti,abe-twl6040";
23 ti,model = "VAR-SOM-OM44";
24
25 ti,mclk-freq = <38400000>;
26 ti,mcpdm = <&mcpdm>;
27 ti,twl6040 = <&twl6040>;
28
29 /* Audio routing */
30 ti,audio-routing =
31 "Headset Stereophone", "HSOL",
32 "Headset Stereophone", "HSOR",
33 "AFML", "Line In",
34 "AFMR", "Line In";
35 };
36
37 /* HS USB Host PHY on PORT 1 */
38 hsusb1_phy: hsusb1_phy {
39 compatible = "usb-nop-xceiv";
40 pinctrl-names = "default";
41 pinctrl-0 = <
42 &hsusbb1_phy_clk_pins
43 &hsusbb1_phy_rst_pins
44 >;
45
46 reset-gpios = <&gpio6 17 GPIO_ACTIVE_LOW>; /* gpio 177 */
47 vcc-supply = <&vbat>;
48 #phy-cells = <0>;
49
50 clocks = <&auxclk3_ck>;
51 clock-names = "main_clk";
52 clock-frequency = <19200000>;
53 };
54
55 vbat: fixedregulator-vbat {
56 compatible = "regulator-fixed";
57 regulator-name = "VBAT";
58 regulator-min-microvolt = <3300000>;
59 regulator-max-microvolt = <3300000>;
60 regulator-always-on;
61 regulator-boot-on;
62 };
63};
64
65&omap4_pmx_core {
66 pinctrl-names = "default";
67 pinctrl-0 = <
68 &hsusbb1_pins
69 >;
70
71 twl6040_pins: pinmux_twl6040_pins {
72 pinctrl-single,pins = <
73 OMAP4_IOPAD(0x19c, PIN_OUTPUT | MUX_MODE3) /* fref_clk2_out.gpio_182 */
74 OMAP4_IOPAD(0x1a0, PIN_INPUT | MUX_MODE0) /* sys_nirq2.sys_nirq2 */
75 >;
76 };
77
78 tsc2004_pins: pinmux_tsc2004_pins {
79 pinctrl-single,pins = <
80 OMAP4_IOPAD(0x090, PIN_INPUT | MUX_MODE3) /* gpmc_ncs4.gpio_101 (irq) */
81 OMAP4_IOPAD(0x092, PIN_OUTPUT | MUX_MODE3) /* gpmc_ncs5.gpio_102 (rst) */
82 >;
83 };
84
85 uart3_pins: pinmux_uart3_pins {
86 pinctrl-single,pins = <
87 OMAP4_IOPAD(0x140, PIN_INPUT_PULLUP | MUX_MODE0) /* uart3_cts_rctx.uart3_cts_rctx */
88 OMAP4_IOPAD(0x142, PIN_OUTPUT | MUX_MODE0) /* uart3_rts_sd.uart3_rts_sd */
89 OMAP4_IOPAD(0x144, PIN_INPUT | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
90 OMAP4_IOPAD(0x146, PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */
91 >;
92 };
93
94 hsusbb1_pins: pinmux_hsusbb1_pins {
95 pinctrl-single,pins = <
96 OMAP4_IOPAD(0x0c2, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_clk.usbb1_ulpiphy_clk */
97 OMAP4_IOPAD(0x0c4, PIN_OUTPUT | MUX_MODE4) /* usbb1_ulpitll_stp.usbb1_ulpiphy_stp */
98 OMAP4_IOPAD(0x0c6, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dir.usbb1_ulpiphy_dir */
99 OMAP4_IOPAD(0x0c8, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_nxt.usbb1_ulpiphy_nxt */
100 OMAP4_IOPAD(0x0ca, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat0.usbb1_ulpiphy_dat0 */
101 OMAP4_IOPAD(0x0cc, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat1.usbb1_ulpiphy_dat1 */
102 OMAP4_IOPAD(0x0ce, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat2.usbb1_ulpiphy_dat2 */
103 OMAP4_IOPAD(0x0d0, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat3.usbb1_ulpiphy_dat3 */
104 OMAP4_IOPAD(0x0d2, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat4.usbb1_ulpiphy_dat4 */
105 OMAP4_IOPAD(0x0d4, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat5.usbb1_ulpiphy_dat5 */
106 OMAP4_IOPAD(0x0d6, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat6.usbb1_ulpiphy_dat6 */
107 OMAP4_IOPAD(0x0d8, PIN_INPUT_PULLDOWN | MUX_MODE4) /* usbb1_ulpitll_dat7.usbb1_ulpiphy_dat7 */
108 >;
109 };
110
111 hsusbb1_phy_rst_pins: pinmux_hsusbb1_phy_rst_pins {
112 pinctrl-single,pins = <
113 OMAP4_IOPAD(0x18c, PIN_OUTPUT | MUX_MODE3) /* kpd_row2.gpio_177 */
114 >;
115 };
116
117 i2c1_pins: pinmux_i2c1_pins {
118 pinctrl-single,pins = <
119 OMAP4_IOPAD(0x122, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
120 OMAP4_IOPAD(0x124, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
121 >;
122 };
123
124 i2c3_pins: pinmux_i2c3_pins {
125 pinctrl-single,pins = <
126 OMAP4_IOPAD(0x12a, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */
127 OMAP4_IOPAD(0x12c, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */
128 >;
129 };
130
131 mmc1_pins: pinmux_mmc1_pins {
132 pinctrl-single,pins = <
133 OMAP4_IOPAD(0x0e2, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
134 OMAP4_IOPAD(0x0e4, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
135 OMAP4_IOPAD(0x0e6, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
136 OMAP4_IOPAD(0x0e8, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
137 OMAP4_IOPAD(0x0ea, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
138 OMAP4_IOPAD(0x0ec, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
139 >;
140 };
141};
142
143&omap4_pmx_wkup {
144 pinctrl-names = "default";
145 pinctrl-0 = <
146 &hsusbb1_hub_rst_pins
147 &lan7500_rst_pins
148 >;
149
150 hsusbb1_phy_clk_pins: pinmux_hsusbb1_phy_clk_pins {
151 pinctrl-single,pins = <
152 OMAP4_IOPAD(0x058, PIN_OUTPUT | MUX_MODE0) /* fref_clk3_out */
153 >;
154 };
155
156 hsusbb1_hub_rst_pins: pinmux_hsusbb1_hub_rst_pins {
157 pinctrl-single,pins = <
158 OMAP4_IOPAD(0x042, PIN_OUTPUT | MUX_MODE3) /* gpio_wk1 */
159 >;
160 };
161
162 lan7500_rst_pins: pinmux_lan7500_rst_pins {
163 pinctrl-single,pins = <
164 OMAP4_IOPAD(0x040, PIN_OUTPUT | MUX_MODE3) /* gpio_wk0 */
165 >;
166 };
167};
168
169&i2c1 {
170 pinctrl-names = "default";
171 pinctrl-0 = <&i2c1_pins>;
172 status = "okay";
173
174 clock-frequency = <400000>;
175
176 twl: twl@48 {
177 reg = <0x48>;
178 /* SPI = 0, IRQ# = 7, 4 = active high level-sensitive */
179 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_1N cascaded to gic */
180 };
181
182 twl6040: twl@4b {
183 compatible = "ti,twl6040";
184 #clock-cells = <0>;
185 reg = <0x4b>;
186
187 pinctrl-names = "default";
188 pinctrl-0 = <&twl6040_pins>;
189
190 /* SPI = 0, IRQ# = 119, 4 = active high level-sensitive */
191 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_2N cascaded to gic */
192 ti,audpwron-gpio = <&gpio6 22 GPIO_ACTIVE_HIGH>; /* gpio 182 */
193
194 vio-supply = <&v1v8>;
195 v2v1-supply = <&v2v1>;
196 enable-active-high;
197 };
198};
199
200#include "twl6030.dtsi"
201#include "twl6030_omap4.dtsi"
202
203&vusim {
204 regulator-min-microvolt = <3000000>;
205 regulator-max-microvolt = <3000000>;
206 regulator-always-on;
207};
208
209&i2c2 {
210 status = "disabled";
211};
212
213&i2c3 {
214 pinctrl-names = "default";
215 pinctrl-0 = <&i2c3_pins>;
216 status = "okay";
217
218 clock-frequency = <400000>;
219
220 touchscreen: tsc2004@48 {
221 compatible = "ti,tsc2004";
222 reg = <0x48>;
223 pinctrl-names = "default";
224 pinctrl-0 = <&tsc2004_pins>;
225 interrupt-parent = <&gpio4>;
226 interrupts = <5 IRQ_TYPE_LEVEL_LOW>; /* gpio 101 */
227 status = "disabled";
228 };
229
230 tmp105@49 {
231 compatible = "ti,tmp105";
232 reg = <0x49>;
233 };
234
235 eeprom@50 {
236 compatible = "microchip,24c32", "atmel,24c32";
237 reg = <0x50>;
238 };
239};
240
241&i2c4 {
242 status = "disabled";
243};
244
245&gpmc {
246 status = "disabled";
247};
248
249&mcspi1 {
250 status = "disabled";
251};
252
253&mcspi2 {
254 status = "disabled";
255};
256
257&mcspi3 {
258 status = "disabled";
259};
260
261&mcspi4 {
262 status = "disabled";
263};
264
265&mmc1 {
266 pinctrl-names = "default";
267 pinctrl-0 = <&mmc1_pins>;
268 vmmc-supply = <&vmmc>;
269 bus-width = <4>;
270 ti,non-removable;
271 status = "okay";
272};
273
274&mmc2 {
275 status = "disabled";
276};
277
278&mmc3 {
279 status = "disabled";
280};
281
282&mmc4 {
283 status = "disabled";
284};
285
286&mmc5 {
287 status = "disabled";
288};
289
290&uart1 {
291 status = "disabled";
292};
293
294&uart2 {
295 status = "disabled";
296};
297
298&uart3 {
299 pinctrl-names = "default";
300 pinctrl-0 = <&uart3_pins>;
301 status = "okay";
302};
303
304&uart4 {
305 status = "disabled";
306};
307
308&keypad {
309 status = "disabled";
310};
311
312&twl_usb_comparator {
313 usb-supply = <&vusb>;
314};
315
316&usb_otg_hs {
317 interface-type = <1>;
318 mode = <3>;
319 power = <50>;
320};
321
322&usbhshost {
323 port1-mode = "ehci-phy";
324};
325
326&usbhsehci {
327 phys = <&hsusb1_phy>;
328};