blob: dbc3f030a16c00cf8baf4e75cbd53fa5d21dc2a0 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Tony Lindgren465ce682013-10-14 11:31:42 -07002/*
3 * Common support for omap3 EVM boards
4 */
5
Tony Lindgren8cf747f2014-11-05 09:21:23 -08006#include <dt-bindings/input/input.h>
Tony Lindgren59922342013-10-14 11:31:43 -07007#include "omap-gpmc-smsc911x.dtsi"
8
Tony Lindgren465ce682013-10-14 11:31:42 -07009/ {
10 cpus {
11 cpu@0 {
12 cpu0-supply = <&vcc>;
13 };
14 };
15
Tony Lindgren05306b82017-05-25 09:15:58 -070016 /* 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
Tony Lindgren465ce682013-10-14 11:31:42 -070034 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 };
Tony Lindgren59922342013-10-14 11:31:43 -070042
43 wl12xx_vmmc: wl12xx_vmmc {
44 compatible = "regulator-fixed";
45 regulator-name = "vwl1271";
46 regulator-min-microvolt = <1800000>;
47 regulator-max-microvolt = <1800000>;
Javier Martinez Canillas3a637e02015-10-06 11:03:39 +020048 gpio = <&gpio5 22 GPIO_ACTIVE_HIGH>; /* gpio150 */
Tony Lindgren59922342013-10-14 11:31:43 -070049 startup-delay-us = <70000>;
50 enable-active-high;
51 vin-supply = <&vmmc2>;
52 };
Tony Lindgren465ce682013-10-14 11:31:42 -070053};
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"
Tony Lindgrenbc10f312014-05-13 14:32:05 -070067#include "omap3-panel-sharp-ls037v7dw01.dtsi"
68
69&backlight0 {
70 gpios = <&twl_gpio 18 GPIO_ACTIVE_LOW>;
71};
Tony Lindgren465ce682013-10-14 11:31:42 -070072
Tony Lindgren91888832014-06-16 01:10:22 -070073&twl {
74 twl_power: power {
75 compatible = "ti,twl4030-power-omap3-evm", "ti,twl4030-power-idle";
76 ti,use_poweroff;
77 };
78};
79
Tony Lindgren465ce682013-10-14 11:31:42 -070080&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
Tony Lindgrenbc10f312014-05-13 14:32:05 -070096&lcd_3v3 {
97 gpio = <&gpio5 25 GPIO_ACTIVE_LOW>; /* gpio153 */
Tony Lindgrenbc10f312014-05-13 14:32:05 -070098};
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 */
Javier Martinez Canillas3a637e02015-10-06 11:03:39 +0200112 pendown-gpio = <&gpio6 15 GPIO_ACTIVE_HIGH>;
Tony Lindgrenbc10f312014-05-13 14:32:05 -0700113 };
114};
115
Tony Lindgren59922342013-10-14 11:31:43 -0700116&mmc1 {
Tony Lindgren3704aae2015-05-20 14:48:35 -0700117 interrupts-extended = <&intc 83 &omap3_pmx_core 0x11a>;
Tony Lindgren59922342013-10-14 11:31:43 -0700118 vmmc-supply = <&vmmc1>;
Kishon Vijay Abraham I45ea75e2017-06-09 17:38:18 +0530119 vqmmc-supply = <&vsim>;
Tony Lindgren59922342013-10-14 11:31:43 -0700120 bus-width = <8>;
121};
122
123&mmc2 {
124 vmmc-supply = <&wl12xx_vmmc>;
125 non-removable;
126 bus-width = <4>;
127 cap-power-off-card;
Eliad Peller99f84ca2015-03-18 18:38:29 +0200128
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 };
Tony Lindgren59922342013-10-14 11:31:43 -0700138};
139
Tony Lindgren465ce682013-10-14 11:31:42 -0700140&twl_gpio {
141 ti,use-leds;
142};
143
Tony Lindgren8cf747f2014-11-05 09:21:23 -0800144&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
Tony Lindgren05306b82017-05-25 09:15:58 -0700164&usbhshost {
165 port2-mode = "ehci-phy";
166};
167
168&usbhsehci {
169 phys = <0 &hsusb2_phy>;
170};
171
Tony Lindgren465ce682013-10-14 11:31:42 -0700172&usb_otg_hs {
173 interface-type = <0>;
174 usb-phy = <&usb2_phy>;
Linus Torvaldsf9efbce2013-11-11 17:34:56 +0900175 phys = <&usb2_phy>;
176 phy-names = "usb2-phy";
Tony Lindgren465ce682013-10-14 11:31:42 -0700177 mode = <3>;
178 power = <50>;
179};
Tony Lindgren59922342013-10-14 11:31:43 -0700180
181&gpmc {
182 ethernet@gpmc {
183 interrupt-parent = <&gpio6>;
184 interrupts = <16 8>;
185 reg = <5 0 0xff>;
186 };
187};
Tony Lindgren05306b82017-05-25 09:15:58 -0700188
189&vaux2 {
190 regulator-name = "usb_1v8";
191 regulator-min-microvolt = <1800000>;
192 regulator-max-microvolt = <1800000>;
193 regulator-always-on;
194};