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