• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Common support for omap3 EVM boards
4 */
5
6#include <dt-bindings/input/input.h>
7#include "omap-gpmc-smsc911x.dtsi"
8
9/ {
10	cpus {
11		cpu@0 {
12			cpu0-supply = <&vcc>;
13		};
14	};
15
16	/* HS USB Port 2 Power */
17	hsusb2_power: hsusb2_power_reg {
18		compatible = "regulator-fixed";
19		regulator-name = "hsusb2_vbus";
20		regulator-min-microvolt = <3300000>;
21		regulator-max-microvolt = <3300000>;
22		gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>; /* gpio_22 */
23		startup-delay-us = <70000>;
24		enable-active-high;
25	};
26
27	/* HS USB Host PHY on PORT 2 */
28	hsusb2_phy: hsusb2_phy {
29		compatible = "usb-nop-xceiv";
30		reset-gpios = <&gpio1 21 GPIO_ACTIVE_LOW>; /* gpio_21 */
31		vcc-supply = <&hsusb2_power>;
32	};
33
34	leds {
35		compatible = "gpio-leds";
36		ledb {
37			label = "omap3evm::ledb";
38			gpios = <&twl_gpio 19 GPIO_ACTIVE_HIGH>; /* LEDB */
39			linux,default-trigger = "default-on";
40		};
41	};
42
43	wl12xx_vmmc: wl12xx_vmmc {
44		compatible = "regulator-fixed";
45		regulator-name = "vwl1271";
46		regulator-min-microvolt = <1800000>;
47		regulator-max-microvolt = <1800000>;
48		gpio = <&gpio5 22 GPIO_ACTIVE_HIGH>;	/* gpio150 */
49		startup-delay-us = <70000>;
50		enable-active-high;
51		vin-supply = <&vmmc2>;
52	};
53};
54
55&i2c1 {
56	clock-frequency = <2600000>;
57
58	twl: twl@48 {
59		reg = <0x48>;
60		interrupts = <7>; /* SYS_NIRQ cascaded to intc */
61		interrupt-parent = <&intc>;
62	};
63};
64
65#include "twl4030.dtsi"
66#include "twl4030_omap3.dtsi"
67#include "omap3-panel-sharp-ls037v7dw01.dtsi"
68
69&backlight0 {
70	gpios = <&twl_gpio 18 GPIO_ACTIVE_LOW>;
71};
72
73&twl {
74	twl_power: power {
75		compatible = "ti,twl4030-power-omap3-evm", "ti,twl4030-power-idle";
76		ti,use_poweroff;
77	};
78};
79
80&i2c2 {
81	clock-frequency = <400000>;
82};
83
84&i2c3 {
85	clock-frequency = <400000>;
86
87	/*
88	 * TVP5146 Video decoder-in for analog input support.
89	 */
90	tvp5146@5c {
91		compatible = "ti,tvp5146m2";
92		reg = <0x5c>;
93	};
94};
95
96&lcd_3v3 {
97	gpio = <&gpio5 25 GPIO_ACTIVE_LOW>;	/* gpio153 */
98};
99
100&lcd0 {
101	enable-gpios = <&gpio5 24 GPIO_ACTIVE_HIGH>;	/* gpio152, lcd INI */
102	reset-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>;	/* gpio155, lcd RESB */
103	mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH	/* gpio154, lcd MO */
104		      &gpio1 2 GPIO_ACTIVE_HIGH		/* gpio2, lcd LR */
105		      &gpio1 3 GPIO_ACTIVE_HIGH>;	/* gpio3, lcd UD */
106};
107
108&mcspi1 {
109	tsc2046@0 {
110		interrupt-parent = <&gpio6>;
111		interrupts = <15 0>;		/* gpio175 */
112		pendown-gpio = <&gpio6 15 GPIO_ACTIVE_HIGH>;
113	};
114};
115
116&mmc1 {
117	interrupts-extended = <&intc 83 &omap3_pmx_core 0x11a>;
118	vmmc-supply = <&vmmc1>;
119	vqmmc-supply = <&vsim>;
120	bus-width = <8>;
121};
122
123&mmc2 {
124	vmmc-supply = <&wl12xx_vmmc>;
125	non-removable;
126	bus-width = <4>;
127	cap-power-off-card;
128
129	#address-cells = <1>;
130	#size-cells = <0>;
131	wlcore: wlcore@2 {
132		compatible = "ti,wl1271";
133		reg = <2>;
134		interrupt-parent = <&gpio5>;
135		interrupts = <21 IRQ_TYPE_LEVEL_HIGH>; /* gpio 149 */
136		ref-clock-frequency = <38400000>;
137	};
138};
139
140&twl_gpio {
141	ti,use-leds;
142};
143
144&twl_keypad {
145	linux,keymap = <
146			MATRIX_KEY(2, 2, KEY_1)
147			MATRIX_KEY(1, 1, KEY_2)
148			MATRIX_KEY(0, 0, KEY_3)
149			MATRIX_KEY(3, 2, KEY_4)
150			MATRIX_KEY(2, 1, KEY_5)
151			MATRIX_KEY(1, 0, KEY_6)
152			MATRIX_KEY(1, 3, KEY_7)
153			MATRIX_KEY(3, 1, KEY_8)
154			MATRIX_KEY(2, 0, KEY_9)
155			MATRIX_KEY(2, 3, KEY_KPASTERISK)
156			MATRIX_KEY(0, 2, KEY_0)
157			MATRIX_KEY(3, 0, KEY_KPDOT)
158			/* s4 not wired */
159			MATRIX_KEY(1, 2, KEY_BACKSPACE)
160			MATRIX_KEY(0, 1, KEY_ENTER)
161			>;
162};
163
164&usbhshost {
165	port2-mode = "ehci-phy";
166};
167
168&usbhsehci {
169	phys = <0 &hsusb2_phy>;
170};
171
172&usb_otg_hs {
173	interface-type = <0>;
174	usb-phy = <&usb2_phy>;
175	phys = <&usb2_phy>;
176	phy-names = "usb2-phy";
177	mode = <3>;
178	power = <50>;
179};
180
181&gpmc {
182	ethernet@gpmc {
183		interrupt-parent = <&gpio6>;
184		interrupts = <16 8>;
185		reg = <5 0 0xff>;
186	};
187};
188
189&vaux2 {
190	regulator-name = "usb_1v8";
191	regulator-min-microvolt = <1800000>;
192	regulator-max-microvolt = <1800000>;
193	regulator-always-on;
194};
195