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