1279377Simp/*
2279377Simp * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
3279377Simp *
4279377Simp * This program is free software; you can redistribute it and/or modify
5279377Simp * it under the terms of the GNU General Public License version 2 as
6279377Simp * published by the Free Software Foundation.
7279377Simp */
8279377Simp
9279377Simp/*
10279377Simp * AM335x Starter Kit
11279377Simp * http://www.ti.com/tool/tmdssk3358
12279377Simp */
13279377Simp
14279377Simp/dts-v1/;
15279377Simp
16279377Simp#include "am33xx.dtsi"
17279377Simp#include <dt-bindings/pwm/pwm.h>
18279377Simp
19279377Simp/ {
20279377Simp	model = "TI AM335x EVM-SK";
21279377Simp	compatible = "ti,am335x-evmsk", "ti,am33xx";
22279377Simp
23279377Simp	cpus {
24279377Simp		cpu@0 {
25279377Simp			cpu0-supply = <&vdd1_reg>;
26279377Simp		};
27279377Simp	};
28279377Simp
29279377Simp	memory {
30279377Simp		device_type = "memory";
31279377Simp		reg = <0x80000000 0x10000000>; /* 256 MB */
32279377Simp	};
33279377Simp
34279377Simp	vbat: fixedregulator@0 {
35279377Simp		compatible = "regulator-fixed";
36279377Simp		regulator-name = "vbat";
37279377Simp		regulator-min-microvolt = <5000000>;
38279377Simp		regulator-max-microvolt = <5000000>;
39279377Simp		regulator-boot-on;
40279377Simp	};
41279377Simp
42279377Simp	lis3_reg: fixedregulator@1 {
43279377Simp		compatible = "regulator-fixed";
44279377Simp		regulator-name = "lis3_reg";
45279377Simp		regulator-boot-on;
46279377Simp	};
47279377Simp
48279377Simp	wl12xx_vmmc: fixedregulator@2 {
49279377Simp		pinctrl-names = "default";
50279377Simp		pinctrl-0 = <&wl12xx_gpio>;
51279377Simp		compatible = "regulator-fixed";
52279377Simp		regulator-name = "vwl1271";
53279377Simp		regulator-min-microvolt = <1800000>;
54279377Simp		regulator-max-microvolt = <1800000>;
55279377Simp		gpio = <&gpio1 29 0>;
56279377Simp		startup-delay-us = <70000>;
57279377Simp		enable-active-high;
58279377Simp	};
59279377Simp
60279377Simp	vtt_fixed: fixedregulator@3 {
61279377Simp		compatible = "regulator-fixed";
62279377Simp		regulator-name = "vtt";
63279377Simp		regulator-min-microvolt = <1500000>;
64279377Simp		regulator-max-microvolt = <1500000>;
65279377Simp		gpio = <&gpio0 7 GPIO_ACTIVE_HIGH>;
66279377Simp		regulator-always-on;
67279377Simp		regulator-boot-on;
68279377Simp		enable-active-high;
69279377Simp	};
70279377Simp
71279377Simp	leds {
72279377Simp		pinctrl-names = "default";
73279377Simp		pinctrl-0 = <&user_leds_s0>;
74279377Simp
75279377Simp		compatible = "gpio-leds";
76279377Simp
77279377Simp		led@1 {
78279377Simp			label = "evmsk:green:usr0";
79279377Simp			gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
80279377Simp			default-state = "off";
81279377Simp		};
82279377Simp
83279377Simp		led@2 {
84279377Simp			label = "evmsk:green:usr1";
85279377Simp			gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
86279377Simp			default-state = "off";
87279377Simp		};
88279377Simp
89279377Simp		led@3 {
90279377Simp			label = "evmsk:green:mmc0";
91279377Simp			gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
92279377Simp			linux,default-trigger = "mmc0";
93279377Simp			default-state = "off";
94279377Simp		};
95279377Simp
96279377Simp		led@4 {
97279377Simp			label = "evmsk:green:heartbeat";
98279377Simp			gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
99279377Simp			linux,default-trigger = "heartbeat";
100279377Simp			default-state = "off";
101279377Simp		};
102279377Simp	};
103279377Simp
104279377Simp	gpio_buttons: gpio_buttons@0 {
105279377Simp		compatible = "gpio-keys";
106279377Simp		#address-cells = <1>;
107279377Simp		#size-cells = <0>;
108279377Simp
109279377Simp		switch@1 {
110279377Simp			label = "button0";
111279377Simp			linux,code = <0x100>;
112279377Simp			gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
113279377Simp		};
114279377Simp
115279377Simp		switch@2 {
116279377Simp			label = "button1";
117279377Simp			linux,code = <0x101>;
118279377Simp			gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
119279377Simp		};
120279377Simp
121279377Simp		switch@3 {
122279377Simp			label = "button2";
123279377Simp			linux,code = <0x102>;
124279377Simp			gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
125279377Simp			gpio-key,wakeup;
126279377Simp		};
127279377Simp
128279377Simp		switch@4 {
129279377Simp			label = "button3";
130279377Simp			linux,code = <0x103>;
131279377Simp			gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
132279377Simp		};
133279377Simp	};
134279377Simp
135279377Simp	backlight {
136279377Simp		compatible = "pwm-backlight";
137279377Simp		pwms = <&ecap2 0 50000 PWM_POLARITY_INVERTED>;
138279377Simp		brightness-levels = <0 58 61 66 75 90 125 170 255>;
139279377Simp		default-brightness-level = <8>;
140279377Simp	};
141279377Simp
142279377Simp	sound {
143279377Simp		compatible = "ti,da830-evm-audio";
144279377Simp		ti,model = "AM335x-EVMSK";
145279377Simp		ti,audio-codec = <&tlv320aic3106>;
146279377Simp		ti,mcasp-controller = <&mcasp1>;
147279377Simp		ti,codec-clock-rate = <24000000>;
148279377Simp		ti,audio-routing =
149279377Simp			"Headphone Jack",       "HPLOUT",
150279377Simp			"Headphone Jack",       "HPROUT";
151279377Simp	};
152279377Simp
153279377Simp	panel {
154279377Simp		compatible = "ti,tilcdc,panel";
155279377Simp		pinctrl-names = "default", "sleep";
156279377Simp		pinctrl-0 = <&lcd_pins_default>;
157279377Simp		pinctrl-1 = <&lcd_pins_sleep>;
158279377Simp		status = "okay";
159279377Simp		panel-info {
160279377Simp			ac-bias           = <255>;
161279377Simp			ac-bias-intrpt    = <0>;
162279377Simp			dma-burst-sz      = <16>;
163279377Simp			bpp               = <32>;
164279377Simp			fdd               = <0x80>;
165279377Simp			sync-edge         = <0>;
166279377Simp			sync-ctrl         = <1>;
167279377Simp			raster-order      = <0>;
168279377Simp			fifo-th           = <0>;
169279377Simp		};
170279377Simp		display-timings {
171279377Simp			480x272 {
172279377Simp				hactive         = <480>;
173279377Simp				vactive         = <272>;
174279377Simp				hback-porch     = <43>;
175279377Simp				hfront-porch    = <8>;
176279377Simp				hsync-len       = <4>;
177279377Simp				vback-porch     = <12>;
178279377Simp				vfront-porch    = <4>;
179279377Simp				vsync-len       = <10>;
180279377Simp				clock-frequency = <9000000>;
181279377Simp				hsync-active    = <0>;
182279377Simp				vsync-active    = <0>;
183279377Simp			};
184279377Simp		};
185279377Simp	};
186279377Simp};
187279377Simp
188279377Simp&am33xx_pinmux {
189279377Simp	pinctrl-names = "default";
190279377Simp	pinctrl-0 = <&gpio_keys_s0 &clkout2_pin>;
191279377Simp
192279377Simp	lcd_pins_default: lcd_pins_default {
193279377Simp		pinctrl-single,pins = <
194279377Simp			0x20 (PIN_OUTPUT | MUX_MODE1)	/* gpmc_ad8.lcd_data23 */
195279377Simp			0x24 (PIN_OUTPUT | MUX_MODE1)	/* gpmc_ad9.lcd_data22 */
196279377Simp			0x28 (PIN_OUTPUT | MUX_MODE1)	/* gpmc_ad10.lcd_data21 */
197279377Simp			0x2c (PIN_OUTPUT | MUX_MODE1)	/* gpmc_ad11.lcd_data20 */
198279377Simp			0x30 (PIN_OUTPUT | MUX_MODE1)	/* gpmc_ad12.lcd_data19 */
199279377Simp			0x34 (PIN_OUTPUT | MUX_MODE1)	/* gpmc_ad13.lcd_data18 */
200279377Simp			0x38 (PIN_OUTPUT | MUX_MODE1)	/* gpmc_ad14.lcd_data17 */
201279377Simp			0x3c (PIN_OUTPUT | MUX_MODE1)	/* gpmc_ad15.lcd_data16 */
202279377Simp			0xa0 (PIN_OUTPUT | MUX_MODE0)	/* lcd_data0.lcd_data0 */
203279377Simp			0xa4 (PIN_OUTPUT | MUX_MODE0)	/* lcd_data1.lcd_data1 */
204279377Simp			0xa8 (PIN_OUTPUT | MUX_MODE0)	/* lcd_data2.lcd_data2 */
205279377Simp			0xac (PIN_OUTPUT | MUX_MODE0)	/* lcd_data3.lcd_data3 */
206279377Simp			0xb0 (PIN_OUTPUT | MUX_MODE0)	/* lcd_data4.lcd_data4 */
207279377Simp			0xb4 (PIN_OUTPUT | MUX_MODE0)	/* lcd_data5.lcd_data5 */
208279377Simp			0xb8 (PIN_OUTPUT | MUX_MODE0)	/* lcd_data6.lcd_data6 */
209279377Simp			0xbc (PIN_OUTPUT | MUX_MODE0)	/* lcd_data7.lcd_data7 */
210279377Simp			0xc0 (PIN_OUTPUT | MUX_MODE0)	/* lcd_data8.lcd_data8 */
211279377Simp			0xc4 (PIN_OUTPUT | MUX_MODE0)	/* lcd_data9.lcd_data9 */
212279377Simp			0xc8 (PIN_OUTPUT | MUX_MODE0)	/* lcd_data10.lcd_data10 */
213279377Simp			0xcc (PIN_OUTPUT | MUX_MODE0)	/* lcd_data11.lcd_data11 */
214279377Simp			0xd0 (PIN_OUTPUT | MUX_MODE0)	/* lcd_data12.lcd_data12 */
215279377Simp			0xd4 (PIN_OUTPUT | MUX_MODE0)	/* lcd_data13.lcd_data13 */
216279377Simp			0xd8 (PIN_OUTPUT | MUX_MODE0)	/* lcd_data14.lcd_data14 */
217279377Simp			0xdc (PIN_OUTPUT | MUX_MODE0)	/* lcd_data15.lcd_data15 */
218279377Simp			0xe0 (PIN_OUTPUT | MUX_MODE0)	/* lcd_vsync.lcd_vsync */
219279377Simp			0xe4 (PIN_OUTPUT | MUX_MODE0)	/* lcd_hsync.lcd_hsync */
220279377Simp			0xe8 (PIN_OUTPUT | MUX_MODE0)	/* lcd_pclk.lcd_pclk */
221279377Simp			0xec (PIN_OUTPUT | MUX_MODE0)	/* lcd_ac_bias_en.lcd_ac_bias_en */
222279377Simp		>;
223279377Simp	};
224279377Simp
225279377Simp	lcd_pins_sleep: lcd_pins_sleep {
226279377Simp		pinctrl-single,pins = <
227279377Simp			0x20 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad8.lcd_data23 */
228279377Simp			0x24 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad9.lcd_data22 */
229279377Simp			0x28 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad10.lcd_data21 */
230279377Simp			0x2c (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad11.lcd_data20 */
231279377Simp			0x30 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad12.lcd_data19 */
232279377Simp			0x34 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad13.lcd_data18 */
233279377Simp			0x38 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad14.lcd_data17 */
234279377Simp			0x3c (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad15.lcd_data16 */
235279377Simp			0xa0 (PULL_DISABLE | MUX_MODE7)	/* lcd_data0.lcd_data0 */
236279377Simp			0xa4 (PULL_DISABLE | MUX_MODE7)	/* lcd_data1.lcd_data1 */
237279377Simp			0xa8 (PULL_DISABLE | MUX_MODE7)	/* lcd_data2.lcd_data2 */
238279377Simp			0xac (PULL_DISABLE | MUX_MODE7)	/* lcd_data3.lcd_data3 */
239279377Simp			0xb0 (PULL_DISABLE | MUX_MODE7)	/* lcd_data4.lcd_data4 */
240279377Simp			0xb4 (PULL_DISABLE | MUX_MODE7)	/* lcd_data5.lcd_data5 */
241279377Simp			0xb8 (PULL_DISABLE | MUX_MODE7)	/* lcd_data6.lcd_data6 */
242279377Simp			0xbc (PULL_DISABLE | MUX_MODE7)	/* lcd_data7.lcd_data7 */
243279377Simp			0xc0 (PULL_DISABLE | MUX_MODE7)	/* lcd_data8.lcd_data8 */
244279377Simp			0xc4 (PULL_DISABLE | MUX_MODE7)	/* lcd_data9.lcd_data9 */
245279377Simp			0xc8 (PULL_DISABLE | MUX_MODE7)	/* lcd_data10.lcd_data10 */
246279377Simp			0xcc (PULL_DISABLE | MUX_MODE7)	/* lcd_data11.lcd_data11 */
247279377Simp			0xd0 (PULL_DISABLE | MUX_MODE7)	/* lcd_data12.lcd_data12 */
248279377Simp			0xd4 (PULL_DISABLE | MUX_MODE7)	/* lcd_data13.lcd_data13 */
249279377Simp			0xd8 (PULL_DISABLE | MUX_MODE7)	/* lcd_data14.lcd_data14 */
250279377Simp			0xdc (PULL_DISABLE | MUX_MODE7)	/* lcd_data15.lcd_data15 */
251279377Simp			0xe0 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* lcd_vsync.lcd_vsync */
252279377Simp			0xe4 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* lcd_hsync.lcd_hsync */
253279377Simp			0xe8 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* lcd_pclk.lcd_pclk */
254279377Simp			0xec (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* lcd_ac_bias_en.lcd_ac_bias_en */
255279377Simp		>;
256279377Simp	};
257279377Simp
258279377Simp
259279377Simp	user_leds_s0: user_leds_s0 {
260279377Simp		pinctrl-single,pins = <
261279377Simp			0x10 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad4.gpio1_4 */
262279377Simp			0x14 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad5.gpio1_5 */
263279377Simp			0x18 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad6.gpio1_6 */
264279377Simp			0x1c (PIN_OUTPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad7.gpio1_7 */
265279377Simp		>;
266279377Simp	};
267279377Simp
268279377Simp	gpio_keys_s0: gpio_keys_s0 {
269279377Simp		pinctrl-single,pins = <
270279377Simp			0x94 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_oen_ren.gpio2_3 */
271279377Simp			0x90 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_advn_ale.gpio2_2 */
272279377Simp			0x70 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_wait0.gpio0_30 */
273279377Simp			0x9c (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ben0_cle.gpio2_5 */
274279377Simp		>;
275279377Simp	};
276279377Simp
277279377Simp	i2c0_pins: pinmux_i2c0_pins {
278279377Simp		pinctrl-single,pins = <
279279377Simp			0x188 (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c0_sda.i2c0_sda */
280279377Simp			0x18c (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c0_scl.i2c0_scl */
281279377Simp		>;
282279377Simp	};
283279377Simp
284279377Simp	uart0_pins: pinmux_uart0_pins {
285279377Simp		pinctrl-single,pins = <
286279377Simp			0x170 (PIN_INPUT_PULLUP | MUX_MODE0)	/* uart0_rxd.uart0_rxd */
287279377Simp			0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0)		/* uart0_txd.uart0_txd */
288279377Simp		>;
289279377Simp	};
290279377Simp
291279377Simp	clkout2_pin: pinmux_clkout2_pin {
292279377Simp		pinctrl-single,pins = <
293279377Simp			0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3)		/* xdma_event_intr1.clkout2 */
294279377Simp		>;
295279377Simp	};
296279377Simp
297279377Simp	ecap2_pins: backlight_pins {
298279377Simp		pinctrl-single,pins = <
299279377Simp			0x19c 0x4	/* mcasp0_ahclkr.ecap2_in_pwm2_out MODE4 */
300279377Simp		>;
301279377Simp	};
302279377Simp
303279377Simp	cpsw_default: cpsw_default {
304279377Simp		pinctrl-single,pins = <
305279377Simp			/* Slave 1 */
306279377Simp			0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txen.rgmii1_tctl */
307279377Simp			0x118 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxdv.rgmii1_rctl */
308279377Simp			0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd3.rgmii1_td3 */
309279377Simp			0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd2.rgmii1_td2 */
310279377Simp			0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd1.rgmii1_td1 */
311279377Simp			0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd0.rgmii1_td0 */
312279377Simp			0x12c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txclk.rgmii1_tclk */
313279377Simp			0x130 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxclk.rgmii1_rclk */
314279377Simp			0x134 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd3.rgmii1_rd3 */
315279377Simp			0x138 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd2.rgmii1_rd2 */
316279377Simp			0x13c (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd1.rgmii1_rd1 */
317279377Simp			0x140 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd0.rgmii1_rd0 */
318279377Simp
319279377Simp			/* Slave 2 */
320279377Simp			0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a0.rgmii2_tctl */
321279377Simp			0x44 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a1.rgmii2_rctl */
322279377Simp			0x48 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a2.rgmii2_td3 */
323279377Simp			0x4c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a3.rgmii2_td2 */
324279377Simp			0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a4.rgmii2_td1 */
325279377Simp			0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a5.rgmii2_td0 */
326279377Simp			0x58 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a6.rgmii2_tclk */
327279377Simp			0x5c (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a7.rgmii2_rclk */
328279377Simp			0x60 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a8.rgmii2_rd3 */
329279377Simp			0x64 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a9.rgmii2_rd2 */
330279377Simp			0x68 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a10.rgmii2_rd1 */
331279377Simp			0x6c (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* gpmc_a11.rgmii2_rd0 */
332279377Simp		>;
333279377Simp	};
334279377Simp
335279377Simp	cpsw_sleep: cpsw_sleep {
336279377Simp		pinctrl-single,pins = <
337279377Simp			/* Slave 1 reset value */
338279377Simp			0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
339279377Simp			0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
340279377Simp			0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
341279377Simp			0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
342279377Simp			0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
343279377Simp			0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
344279377Simp			0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
345279377Simp			0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
346279377Simp			0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
347279377Simp			0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
348279377Simp			0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
349279377Simp			0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
350279377Simp
351279377Simp			/* Slave 2 reset value*/
352279377Simp			0x40 (PIN_INPUT_PULLDOWN | MUX_MODE7)
353279377Simp			0x44 (PIN_INPUT_PULLDOWN | MUX_MODE7)
354279377Simp			0x48 (PIN_INPUT_PULLDOWN | MUX_MODE7)
355279377Simp			0x4c (PIN_INPUT_PULLDOWN | MUX_MODE7)
356279377Simp			0x50 (PIN_INPUT_PULLDOWN | MUX_MODE7)
357279377Simp			0x54 (PIN_INPUT_PULLDOWN | MUX_MODE7)
358279377Simp			0x58 (PIN_INPUT_PULLDOWN | MUX_MODE7)
359279377Simp			0x5c (PIN_INPUT_PULLDOWN | MUX_MODE7)
360279377Simp			0x60 (PIN_INPUT_PULLDOWN | MUX_MODE7)
361279377Simp			0x64 (PIN_INPUT_PULLDOWN | MUX_MODE7)
362279377Simp			0x68 (PIN_INPUT_PULLDOWN | MUX_MODE7)
363279377Simp			0x6c (PIN_INPUT_PULLDOWN | MUX_MODE7)
364279377Simp		>;
365279377Simp	};
366279377Simp
367279377Simp	davinci_mdio_default: davinci_mdio_default {
368279377Simp		pinctrl-single,pins = <
369279377Simp			/* MDIO */
370279377Simp			0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)	/* mdio_data.mdio_data */
371279377Simp			0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0)			/* mdio_clk.mdio_clk */
372279377Simp		>;
373279377Simp	};
374279377Simp
375279377Simp	davinci_mdio_sleep: davinci_mdio_sleep {
376279377Simp		pinctrl-single,pins = <
377279377Simp			/* MDIO reset value */
378279377Simp			0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
379279377Simp			0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
380279377Simp		>;
381279377Simp	};
382279377Simp
383279377Simp	mmc1_pins: pinmux_mmc1_pins {
384279377Simp		pinctrl-single,pins = <
385279377Simp			0x160 (PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */
386279377Simp		>;
387279377Simp	};
388279377Simp
389279377Simp	mcasp1_pins: mcasp1_pins {
390279377Simp		pinctrl-single,pins = <
391279377Simp			0x10c (PIN_INPUT_PULLDOWN | MUX_MODE4) /* mii1_crs.mcasp1_aclkx */
392279377Simp			0x110 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* mii1_rxerr.mcasp1_fsx */
393279377Simp			0x108 (PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* mii1_col.mcasp1_axr2 */
394279377Simp			0x144 (PIN_INPUT_PULLDOWN | MUX_MODE4) /* rmii1_ref_clk.mcasp1_axr3 */
395279377Simp		>;
396279377Simp	};
397279377Simp
398279377Simp	mmc2_pins: pinmux_mmc2_pins {
399279377Simp		pinctrl-single,pins = <
400279377Simp			0x74 (PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpio0_31 */
401279377Simp			0x80 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
402279377Simp			0x84 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
403279377Simp			0x00 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
404279377Simp			0x04 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
405279377Simp			0x08 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
406279377Simp			0x0c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
407279377Simp		>;
408279377Simp	};
409279377Simp
410279377Simp	wl12xx_gpio: pinmux_wl12xx_gpio {
411279377Simp		pinctrl-single,pins = <
412279377Simp			0x7c (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_csn0.gpio1_29 */
413279377Simp		>;
414279377Simp	};
415279377Simp};
416279377Simp
417279377Simp&uart0 {
418279377Simp	pinctrl-names = "default";
419279377Simp	pinctrl-0 = <&uart0_pins>;
420279377Simp
421279377Simp	status = "okay";
422279377Simp};
423279377Simp
424279377Simp&i2c0 {
425279377Simp	pinctrl-names = "default";
426279377Simp	pinctrl-0 = <&i2c0_pins>;
427279377Simp
428279377Simp	status = "okay";
429279377Simp	clock-frequency = <400000>;
430279377Simp
431279377Simp	tps: tps@2d {
432279377Simp		reg = <0x2d>;
433279377Simp	};
434279377Simp
435279377Simp	lis331dlh: lis331dlh@18 {
436279377Simp		compatible = "st,lis331dlh", "st,lis3lv02d";
437279377Simp		reg = <0x18>;
438279377Simp		Vdd-supply = <&lis3_reg>;
439279377Simp		Vdd_IO-supply = <&lis3_reg>;
440279377Simp
441279377Simp		st,click-single-x;
442279377Simp		st,click-single-y;
443279377Simp		st,click-single-z;
444279377Simp		st,click-thresh-x = <10>;
445279377Simp		st,click-thresh-y = <10>;
446279377Simp		st,click-thresh-z = <10>;
447279377Simp		st,irq1-click;
448279377Simp		st,irq2-click;
449279377Simp		st,wakeup-x-lo;
450279377Simp		st,wakeup-x-hi;
451279377Simp		st,wakeup-y-lo;
452279377Simp		st,wakeup-y-hi;
453279377Simp		st,wakeup-z-lo;
454279377Simp		st,wakeup-z-hi;
455279377Simp		st,min-limit-x = <120>;
456279377Simp		st,min-limit-y = <120>;
457279377Simp		st,min-limit-z = <140>;
458279377Simp		st,max-limit-x = <550>;
459279377Simp		st,max-limit-y = <550>;
460279377Simp		st,max-limit-z = <750>;
461279377Simp	};
462279377Simp
463279377Simp	tlv320aic3106: tlv320aic3106@1b {
464279377Simp		compatible = "ti,tlv320aic3106";
465279377Simp		reg = <0x1b>;
466279377Simp		status = "okay";
467279377Simp
468279377Simp		/* Regulators */
469279377Simp		AVDD-supply = <&vaux2_reg>;
470279377Simp		IOVDD-supply = <&vaux2_reg>;
471279377Simp		DRVDD-supply = <&vaux2_reg>;
472279377Simp		DVDD-supply = <&vbat>;
473279377Simp	};
474279377Simp};
475279377Simp
476279377Simp&usb {
477279377Simp	status = "okay";
478279377Simp};
479279377Simp
480279377Simp&usb_ctrl_mod {
481279377Simp	status = "okay";
482279377Simp};
483279377Simp
484279377Simp&usb0_phy {
485279377Simp	status = "okay";
486279377Simp};
487279377Simp
488279377Simp&usb1_phy {
489279377Simp	status = "okay";
490279377Simp};
491279377Simp
492279377Simp&usb0 {
493279377Simp	status = "okay";
494279377Simp};
495279377Simp
496279377Simp&usb1 {
497279377Simp	status = "okay";
498279377Simp	dr_mode = "host";
499279377Simp};
500279377Simp
501279377Simp&cppi41dma  {
502279377Simp	status = "okay";
503279377Simp};
504279377Simp
505279377Simp&epwmss2 {
506279377Simp	status = "okay";
507279377Simp
508279377Simp	ecap2: ecap@48304100 {
509279377Simp		status = "okay";
510279377Simp		pinctrl-names = "default";
511279377Simp		pinctrl-0 = <&ecap2_pins>;
512279377Simp	};
513279377Simp};
514279377Simp
515279377Simp#include "tps65910.dtsi"
516279377Simp
517279377Simp&tps {
518279377Simp	vcc1-supply = <&vbat>;
519279377Simp	vcc2-supply = <&vbat>;
520279377Simp	vcc3-supply = <&vbat>;
521279377Simp	vcc4-supply = <&vbat>;
522279377Simp	vcc5-supply = <&vbat>;
523279377Simp	vcc6-supply = <&vbat>;
524279377Simp	vcc7-supply = <&vbat>;
525279377Simp	vccio-supply = <&vbat>;
526279377Simp
527279377Simp	regulators {
528279377Simp		vrtc_reg: regulator@0 {
529279377Simp			regulator-always-on;
530279377Simp		};
531279377Simp
532279377Simp		vio_reg: regulator@1 {
533279377Simp			regulator-always-on;
534279377Simp		};
535279377Simp
536279377Simp		vdd1_reg: regulator@2 {
537279377Simp			/* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
538279377Simp			regulator-name = "vdd_mpu";
539279377Simp			regulator-min-microvolt = <912500>;
540279377Simp			regulator-max-microvolt = <1312500>;
541279377Simp			regulator-boot-on;
542279377Simp			regulator-always-on;
543279377Simp		};
544279377Simp
545279377Simp		vdd2_reg: regulator@3 {
546279377Simp			/* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
547279377Simp			regulator-name = "vdd_core";
548279377Simp			regulator-min-microvolt = <912500>;
549279377Simp			regulator-max-microvolt = <1150000>;
550279377Simp			regulator-boot-on;
551279377Simp			regulator-always-on;
552279377Simp		};
553279377Simp
554279377Simp		vdd3_reg: regulator@4 {
555279377Simp			regulator-always-on;
556279377Simp		};
557279377Simp
558279377Simp		vdig1_reg: regulator@5 {
559279377Simp			regulator-always-on;
560279377Simp		};
561279377Simp
562279377Simp		vdig2_reg: regulator@6 {
563279377Simp			regulator-always-on;
564279377Simp		};
565279377Simp
566279377Simp		vpll_reg: regulator@7 {
567279377Simp			regulator-always-on;
568279377Simp		};
569279377Simp
570279377Simp		vdac_reg: regulator@8 {
571279377Simp			regulator-always-on;
572279377Simp		};
573279377Simp
574279377Simp		vaux1_reg: regulator@9 {
575279377Simp			regulator-always-on;
576279377Simp		};
577279377Simp
578279377Simp		vaux2_reg: regulator@10 {
579279377Simp			regulator-always-on;
580279377Simp		};
581279377Simp
582279377Simp		vaux33_reg: regulator@11 {
583279377Simp			regulator-always-on;
584279377Simp		};
585279377Simp
586279377Simp		vmmc_reg: regulator@12 {
587279377Simp			regulator-min-microvolt = <1800000>;
588279377Simp			regulator-max-microvolt = <3300000>;
589279377Simp			regulator-always-on;
590279377Simp		};
591279377Simp	};
592279377Simp};
593279377Simp
594279377Simp&mac {
595279377Simp	pinctrl-names = "default", "sleep";
596279377Simp	pinctrl-0 = <&cpsw_default>;
597279377Simp	pinctrl-1 = <&cpsw_sleep>;
598279377Simp	dual_emac = <1>;
599279377Simp	status = "okay";
600279377Simp};
601279377Simp
602279377Simp&davinci_mdio {
603279377Simp	pinctrl-names = "default", "sleep";
604279377Simp	pinctrl-0 = <&davinci_mdio_default>;
605279377Simp	pinctrl-1 = <&davinci_mdio_sleep>;
606279377Simp	status = "okay";
607279377Simp};
608279377Simp
609279377Simp&cpsw_emac0 {
610279377Simp	phy_id = <&davinci_mdio>, <0>;
611279377Simp	phy-mode = "rgmii-txid";
612279377Simp	dual_emac_res_vlan = <1>;
613279377Simp};
614279377Simp
615279377Simp&cpsw_emac1 {
616279377Simp	phy_id = <&davinci_mdio>, <1>;
617279377Simp	phy-mode = "rgmii-txid";
618279377Simp	dual_emac_res_vlan = <2>;
619279377Simp};
620279377Simp
621279377Simp&mmc1 {
622279377Simp	status = "okay";
623279377Simp	vmmc-supply = <&vmmc_reg>;
624279377Simp	bus-width = <4>;
625279377Simp	pinctrl-names = "default";
626279377Simp	pinctrl-0 = <&mmc1_pins>;
627279377Simp	cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
628279377Simp};
629279377Simp
630279377Simp&sham {
631279377Simp	status = "okay";
632279377Simp};
633279377Simp
634279377Simp&aes {
635279377Simp	status = "okay";
636279377Simp};
637279377Simp
638279377Simp&gpio0 {
639279377Simp	ti,no-reset-on-init;
640279377Simp};
641279377Simp
642279377Simp&mmc2 {
643279377Simp	status = "okay";
644279377Simp	vmmc-supply = <&wl12xx_vmmc>;
645279377Simp	ti,non-removable;
646279377Simp	bus-width = <4>;
647279377Simp	cap-power-off-card;
648279377Simp	pinctrl-names = "default";
649279377Simp	pinctrl-0 = <&mmc2_pins>;
650279377Simp};
651279377Simp
652279377Simp&mcasp1 {
653279377Simp		pinctrl-names = "default";
654279377Simp		pinctrl-0 = <&mcasp1_pins>;
655279377Simp
656279377Simp		status = "okay";
657279377Simp
658279377Simp		op-mode = <0>;          /* MCASP_IIS_MODE */
659279377Simp		tdm-slots = <2>;
660279377Simp		/* 4 serializers */
661279377Simp		serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
662279377Simp			0 0 1 2
663279377Simp		>;
664279377Simp		tx-num-evt = <32>;
665279377Simp		rx-num-evt = <32>;
666279377Simp};
667279377Simp
668279377Simp&tscadc {
669279377Simp	status = "okay";
670279377Simp	tsc {
671279377Simp		ti,wires = <4>;
672279377Simp		ti,x-plate-resistance = <200>;
673279377Simp		ti,coordinate-readouts = <5>;
674279377Simp		ti,wire-config = <0x00 0x11 0x22 0x33>;
675279377Simp	};
676279377Simp};
677279377Simp
678279377Simp&lcdc {
679279377Simp      status = "okay";
680279377Simp};
681