treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / am3517-evm.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
4  */
5 /dts-v1/;
6
7 #include "am3517.dtsi"
8 #include "am3517-som.dtsi"
9 #include "am3517-evm-ui.dtsi"
10 #include <dt-bindings/input/input.h>
11
12 / {
13         model = "TI AM3517 EVM (AM3517/05 TMDSEVM3517)";
14         compatible = "ti,am3517-evm", "ti,am3517", "ti,omap3";
15
16         aliases {
17                 display0 = &lcd0;
18         };
19
20         chosen {
21                 stdout-path = &uart3;
22         };
23
24         memory@80000000 {
25                 device_type = "memory";
26                 reg = <0x80000000 0x10000000>; /* 256 MB */
27         };
28
29         vmmc_fixed: vmmc {
30                 compatible = "regulator-fixed";
31                 regulator-name = "vmmc_fixed";
32                 regulator-min-microvolt = <3300000>;
33                 regulator-max-microvolt = <3300000>;
34         };
35
36         gpio-keys {
37                 compatible = "gpio-keys-polled";
38                 poll-interval = <100>;
39
40                 user_pb {
41                         label = "User Push Button";
42                         linux,code = <BTN_0>;
43                         gpios = <&tca6416 5 GPIO_ACTIVE_LOW>;
44                 };
45
46                 user_sw_1 {
47                         label = "User Switch 1";
48                         linux,code = <BTN_1>;
49                         gpios = <&tca6416 8 GPIO_ACTIVE_LOW>;
50                 };
51
52                 user_sw_2 {
53                         label = "User Switch 2";
54                         linux,code = <BTN_2>;
55                         gpios = <&tca6416 9 GPIO_ACTIVE_LOW>;
56                 };
57
58                 user_sw_3 {
59                         label = "User Switch 3";
60                         linux,code = <BTN_3>;
61                         gpios = <&tca6416 10 GPIO_ACTIVE_LOW>;
62                 };
63
64                 user_sw_4 {
65                         label = "User Switch 4";
66                         linux,code = <BTN_4>;
67                         gpios = <&tca6416 11 GPIO_ACTIVE_LOW>;
68                 };
69
70                 user_sw_5 {
71                         label = "User Switch 5";
72                         linux,code = <BTN_5>;
73                         gpios = <&tca6416 12 GPIO_ACTIVE_LOW>;
74                 };
75
76                 user_sw_6 {
77                         label = "User Switch 6";
78                         linux,code = <BTN_6>;
79                         gpios = <&tca6416 13 GPIO_ACTIVE_LOW>;
80                 };
81
82                 user_sw_7 {
83                         label = "User Switch 7";
84                         linux,code = <BTN_7>;
85                         gpios = <&tca6416 14 GPIO_ACTIVE_LOW>;
86                 };
87
88                 user_sw_8 {
89                         label = "User Switch 8";
90                         linux,code = <BTN_8>;
91                         gpios = <&tca6416 15 GPIO_ACTIVE_LOW>;
92                 };
93         };
94
95         gpio-leds {
96                 compatible = "gpio-leds";
97
98                 pinctrl-names = "default";
99                 pinctrl-0 = <&leds_pins>;
100
101                 user_led_1 {
102                         label = "am3517evm:green:user_led_1";
103                         gpios = <&tca6416 7 GPIO_ACTIVE_LOW>;
104                         default-state = "on";
105                 };
106
107                 user_led_2 {
108                         label = "am3517evm:green:user_led_2";
109                         gpios = <&tca6416 6 GPIO_ACTIVE_LOW>;
110                         default-state = "on";
111                 };
112
113                 user_led_3 {
114                         label = "am3517evm:green:user_led_3";
115                         gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
116                         linux,default-trigger = "mmc0"; /* SD/MMC card activity */
117                 };
118
119                 user_led_4 {
120                         label = "am3517evm:green:user_led_4";
121                         gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>;
122                         linux,default-trigger = "heartbeat";
123                 };
124         };
125
126         lcd0: display@0 {
127                 compatible = "panel-dpi";
128                 label = "15";
129                 status = "okay";
130                 pinctrl-names = "default";
131                 enable-gpios = <&gpio6 16 GPIO_ACTIVE_HIGH>;    /* gpio176, lcd INI */
132                 vcc-supply = <&vdd_io_reg>;
133
134                 port {
135                         lcd_in: endpoint {
136                                 remote-endpoint = <&dpi_out>;
137                         };
138                 };
139
140                 panel-timing {
141                         clock-frequency = <9000000>;
142                         hactive = <480>;
143                         vactive = <272>;
144                         hfront-porch = <3>;
145                         hback-porch = <2>;
146                         hsync-len = <42>;
147                         vback-porch = <3>;
148                         vfront-porch = <4>;
149                         vsync-len = <11>;
150                         hsync-active = <0>;
151                         vsync-active = <0>;
152                         de-active = <1>;
153                         pixelclk-active = <1>;
154                 };
155         };
156
157         bl: backlight {
158                 compatible = "pwm-backlight";
159                 pinctrl-names = "default";
160                 power-supply = <&vdd_io_reg>;
161                 pinctrl-0 = <&backlight_pins>;
162                 pwms = <&pwm11 0 5000000 0>;
163                 brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
164                 default-brightness-level = <7>;
165                 enable-gpios = <&gpio6 22 GPIO_ACTIVE_HIGH>; /* gpio_182 */
166         };
167
168         pwm11: dmtimer-pwm@11 {
169                 compatible = "ti,omap-dmtimer-pwm";
170                 pinctrl-names = "default";
171                 pinctrl-0 = <&pwm_pins>;
172                 ti,timers = <&timer11>;
173                 #pwm-cells = <3>;
174         };
175
176         /* HS USB Host PHY on PORT 1 */
177         hsusb1_phy: hsusb1_phy {
178                 compatible = "usb-nop-xceiv";
179                 reset-gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; /* gpio_57 */
180                 #phy-cells = <0>;
181         };
182 };
183
184 &davinci_emac {
185              status = "okay";
186 };
187
188 &davinci_mdio {
189              status = "okay";
190 };
191
192 &dss {
193         status = "ok";
194
195         pinctrl-names = "default";
196         pinctrl-0 = <&dss_dpi_pins>;
197
198         vdds_dsi-supply = <&vdd_io_reg>;
199         vdda_video-supply = <&vdd_io_reg>;
200
201         port {
202                 dpi_out: endpoint {
203                         remote-endpoint = <&lcd_in>;
204                         data-lines = <16>;
205                 };
206         };
207 };
208
209 &i2c2 {
210         clock-frequency = <400000>;
211         /* User DIP swithes [1:8] / User LEDS [1:2] */
212         tca6416: gpio@21 {
213                 compatible = "ti,tca6416";
214                 reg = <0x21>;
215                 gpio-controller;
216                 #gpio-cells = <2>;
217                 vcc-supply = <&vdd_io_reg>;
218         };
219 };
220
221 &i2c3 {
222         clock-frequency = <400000>;
223 };
224
225 &mmc1 {
226         status = "okay";
227         pinctrl-names = "default";
228         pinctrl-0 = <&mmc1_pins>;
229         vmmc-supply = <&vmmc_fixed>;
230         bus-width = <4>;
231         wp-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>; /* gpio_126 */
232         cd-gpios = <&gpio4 31 GPIO_ACTIVE_LOW>; /* gpio_127 */
233 };
234
235 &mmc3 {
236       status = "disabled";
237 };
238
239 &usbhshost {
240         port1-mode = "ehci-phy";
241 };
242
243 &usbhsehci {
244         phys = <&hsusb1_phy>;
245 };
246
247 &omap3_pmx_core {
248         pinctrl-names = "default";
249         pinctrl-0 = <&hsusb1_rst_pins>;
250
251         leds_pins: pinmux_leds_pins {
252                 pinctrl-single,pins = <
253                         OMAP3_WKUP_IOPAD(0x2a24, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu0.gpio_11 */
254                         OMAP3_WKUP_IOPAD(0x2a26, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu1.gpio_31 */
255                 >;
256         };
257
258         mmc1_pins: pinmux_mmc1_pins {
259                 pinctrl-single,pins = <
260                         OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
261                         OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
262                         OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
263                         OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
264                         OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
265                         OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
266                         OMAP3_CORE1_IOPAD(0x2150, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat4.gpio_126 */
267                         OMAP3_CORE1_IOPAD(0x2152, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat5.gpio_127 */
268                 >;
269         };
270
271         pwm_pins: pinmux_pwm_pins {
272                 pinctrl-single,pins = <
273                         OMAP3_CORE1_IOPAD(0x21dc, PIN_OUTPUT | MUX_MODE1)       /* mcspi2_cs0.gpt11_pwm */
274                 >;
275         };
276
277         backlight_pins: pinmux_backlight_pins {
278                 pinctrl-single,pins = <
279                         OMAP3_CORE1_IOPAD(0x21de, PIN_OUTPUT | MUX_MODE4)       /* mcspi2_cs1.gpio_182 */
280                 >;
281         };
282
283         dss_dpi_pins: pinmux_dss_dpi_pins {
284                 pinctrl-single,pins = <
285                         OMAP3_CORE1_IOPAD(0x21d2, PIN_OUTPUT | MUX_MODE4)       /* mcspi1_cs2.gpio_176 */
286                         OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0)       /* dss_pclk.dss_pclk */
287                         OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0)       /* dss_hsync.dss_hsync */
288                         OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0)       /* dss_vsync.dss_vsync */
289                         OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0)       /* dss_acbias.dss_acbias */
290                         OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0)       /* dss_data0.dss_data0 */
291                         OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0)       /* dss_data1.dss_data1 */
292                         OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0)       /* dss_data2.dss_data2 */
293                         OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0)       /* dss_data3.dss_data3 */
294                         OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0)       /* dss_data4.dss_data4 */
295                         OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0)       /* dss_data5.dss_data5 */
296                         OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0)       /* dss_data6.dss_data6 */
297                         OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0)       /* dss_data7.dss_data7 */
298                         OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0)       /* dss_data8.dss_data8 */
299                         OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0)       /* dss_data9.dss_data9 */
300                         OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0)       /* dss_data10.dss_data10 */
301                         OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0)       /* dss_data11.dss_data11 */
302                         OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0)       /* dss_data12.dss_data12 */
303                         OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0)       /* dss_data13.dss_data13 */
304                         OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0)       /* dss_data14.dss_data14 */
305                         OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0)       /* dss_data15.dss_data15 */
306                 >;
307         };
308
309         hsusb1_rst_pins: pinmux_hsusb1_rst_pins {
310                 pinctrl-single,pins = <
311                         OMAP3_CORE1_IOPAD(0x20ba, PIN_OUTPUT | MUX_MODE4)       /* gpmc_ncs6.gpio_57 */
312                 >;
313         };
314 };
315
316 &omap3_pmx_core2 {
317         pinctrl-names = "default";
318         pinctrl-0 = <&hsusb1_pins>;
319
320         hsusb1_pins: pinmux_hsusb1_pins {
321                 pinctrl-single,pins = <
322                         OMAP3430_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE3)    /* etk_clk.hsusb1_stp */
323                         OMAP3430_CORE2_IOPAD(0x25da, PIN_OUTPUT | MUX_MODE3)    /* etk_ctl.hsusb1_clk */
324                         OMAP3430_CORE2_IOPAD(0x25ec, PIN_INPUT | MUX_MODE3)     /* etk_d8.hsusb1_dir */
325                         OMAP3430_CORE2_IOPAD(0x25ee, PIN_INPUT | MUX_MODE3)     /* etk_d9.hsusb1_nxt */
326                         OMAP3430_CORE2_IOPAD(0x25dc, PIN_INPUT | MUX_MODE3)     /* etk_d0.hsusb1_data0 */
327                         OMAP3430_CORE2_IOPAD(0x25de, PIN_INPUT | MUX_MODE3)     /* etk_d1.hsusb1_data1 */
328                         OMAP3430_CORE2_IOPAD(0x25e0, PIN_INPUT | MUX_MODE3)     /* etk_d2.hsusb1_data2 */
329                         OMAP3430_CORE2_IOPAD(0x25ea, PIN_INPUT | MUX_MODE3)     /* etk_d7.hsusb1_data3 */
330                         OMAP3430_CORE2_IOPAD(0x25e4, PIN_INPUT | MUX_MODE3)     /* etk_d4.hsusb1_data4 */
331                         OMAP3430_CORE2_IOPAD(0x25e6, PIN_INPUT | MUX_MODE3)     /* etk_d5.hsusb1_data5 */
332                         OMAP3430_CORE2_IOPAD(0x25e8, PIN_INPUT | MUX_MODE3)     /* etk_d6.hsusb1_data6 */
333                         OMAP3430_CORE2_IOPAD(0x25e2, PIN_INPUT | MUX_MODE3)     /* etk_d3.hsusb1_data7 */
334                 >;
335         };
336 };