License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / arch / arm / boot / dts / omap3-evm-common.dtsi
CommitLineData
b2441318 1// SPDX-License-Identifier: GPL-2.0
465ce68b
TL
2/*
3 * Common support for omap3 EVM boards
4 */
5
8cf747f1 6#include <dt-bindings/input/input.h>
5992234b
TL
7#include "omap-gpmc-smsc911x.dtsi"
8
465ce68b
TL
9/ {
10 cpus {
11 cpu@0 {
12 cpu0-supply = <&vcc>;
13 };
14 };
15
05306b84
TL
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
465ce68b
TL
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 };
5992234b
TL
42
43 wl12xx_vmmc: wl12xx_vmmc {
44 compatible = "regulator-fixed";
45 regulator-name = "vwl1271";
46 regulator-min-microvolt = <1800000>;
47 regulator-max-microvolt = <1800000>;
3a637e00 48 gpio = <&gpio5 22 GPIO_ACTIVE_HIGH>; /* gpio150 */
5992234b
TL
49 startup-delay-us = <70000>;
50 enable-active-high;
51 vin-supply = <&vmmc2>;
52 };
465ce68b
TL
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"
bc10f310
TL
67#include "omap3-panel-sharp-ls037v7dw01.dtsi"
68
69&backlight0 {
70 gpios = <&twl_gpio 18 GPIO_ACTIVE_LOW>;
71};
465ce68b 72
9188883f
TL
73&twl {
74 twl_power: power {
75 compatible = "ti,twl4030-power-omap3-evm", "ti,twl4030-power-idle";
76 ti,use_poweroff;
77 };
78};
79
465ce68b
TL
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
bc10f310
TL
96&lcd_3v3 {
97 gpio = <&gpio5 25 GPIO_ACTIVE_LOW>; /* gpio153 */
bc10f310
TL
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 */
3a637e00 112 pendown-gpio = <&gpio6 15 GPIO_ACTIVE_HIGH>;
bc10f310
TL
113 };
114};
115
5992234b 116&mmc1 {
3704aae9 117 interrupts-extended = <&intc 83 &omap3_pmx_core 0x11a>;
5992234b 118 vmmc-supply = <&vmmc1>;
45ea75eb 119 vqmmc-supply = <&vsim>;
5992234b
TL
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;
99f84cae
EP
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 };
5992234b
TL
138};
139
465ce68b
TL
140&twl_gpio {
141 ti,use-leds;
142};
143
8cf747f1
TL
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
05306b84
TL
164&usbhshost {
165 port2-mode = "ehci-phy";
166};
167
168&usbhsehci {
169 phys = <0 &hsusb2_phy>;
170};
171
465ce68b
TL
172&usb_otg_hs {
173 interface-type = <0>;
174 usb-phy = <&usb2_phy>;
f9efbce6
LT
175 phys = <&usb2_phy>;
176 phy-names = "usb2-phy";
465ce68b
TL
177 mode = <3>;
178 power = <50>;
179};
5992234b
TL
180
181&gpmc {
182 ethernet@gpmc {
183 interrupt-parent = <&gpio6>;
184 interrupts = <16 8>;
185 reg = <5 0 0xff>;
186 };
187};
05306b84
TL
188
189&vaux2 {
190 regulator-name = "usb_1v8";
191 regulator-min-microvolt = <1800000>;
192 regulator-max-microvolt = <1800000>;
193 regulator-always-on;
194};