blob: d21bb2ccd0f500cce3db499effb1bce2989897b8 [file] [log] [blame]
Adam Ford72ce7812022-02-26 15:17:23 -06001// SPDX-License-Identifier: GPL-2.0-only
Adam Forda56fd942017-09-19 20:32:10 -05002/*
Adam Ford72ce7812022-02-26 15:17:23 -06003 * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/
Adam Forda56fd942017-09-19 20:32:10 -05004 */
5/dts-v1/;
6
7#include "am3517.dtsi"
Adam Fordb8dbec52018-07-09 19:52:48 -05008#include "am3517-som.dtsi"
Adam Ford5792f0d2018-12-03 08:06:28 -06009#include "am3517-evm-ui.dtsi"
Adam Fordb8dbec52018-07-09 19:52:48 -050010#include <dt-bindings/input/input.h>
Adam Forda56fd942017-09-19 20:32:10 -050011
12/ {
13 model = "TI AM3517 EVM (AM3517/05 TMDSEVM3517)";
14 compatible = "ti,am3517-evm", "ti,am3517", "ti,omap3";
15
Adam Fordb8dbec52018-07-09 19:52:48 -050016 aliases {
17 display0 = &lcd0;
18 };
19
Adam Forddd5b0e22019-01-23 12:46:42 -060020 chosen {
21 stdout-path = &uart3;
22 };
23
Adam Forda56fd942017-09-19 20:32:10 -050024 memory@80000000 {
25 device_type = "memory";
26 reg = <0x80000000 0x10000000>; /* 256 MB */
27 };
28
Andrew Davis211b3d72023-04-11 13:25:05 -050029 vmmc_fixed: vmmc {
30 compatible = "regulator-fixed";
31 regulator-name = "vmmc_fixed";
32 regulator-min-microvolt = <3300000>;
33 regulator-max-microvolt = <3300000>;
34 };
Adam Fordb8dbec52018-07-09 19:52:48 -050035
36 gpio-keys {
37 compatible = "gpio-keys-polled";
38 poll-interval = <100>;
39
Andrew Davis211b3d72023-04-11 13:25:05 -050040 button-user {
Adam Fordb8dbec52018-07-09 19:52:48 -050041 label = "User Push Button";
42 linux,code = <BTN_0>;
43 gpios = <&tca6416 5 GPIO_ACTIVE_LOW>;
44 };
45
Andrew Davis211b3d72023-04-11 13:25:05 -050046 switch-1 {
Adam Fordb8dbec52018-07-09 19:52:48 -050047 label = "User Switch 1";
48 linux,code = <BTN_1>;
49 gpios = <&tca6416 8 GPIO_ACTIVE_LOW>;
50 };
51
Andrew Davis211b3d72023-04-11 13:25:05 -050052 switch-2 {
Adam Fordb8dbec52018-07-09 19:52:48 -050053 label = "User Switch 2";
54 linux,code = <BTN_2>;
55 gpios = <&tca6416 9 GPIO_ACTIVE_LOW>;
56 };
57
Andrew Davis211b3d72023-04-11 13:25:05 -050058 switch-3 {
Adam Fordb8dbec52018-07-09 19:52:48 -050059 label = "User Switch 3";
60 linux,code = <BTN_3>;
61 gpios = <&tca6416 10 GPIO_ACTIVE_LOW>;
62 };
63
Andrew Davis211b3d72023-04-11 13:25:05 -050064 switch-4 {
Adam Fordb8dbec52018-07-09 19:52:48 -050065 label = "User Switch 4";
66 linux,code = <BTN_4>;
67 gpios = <&tca6416 11 GPIO_ACTIVE_LOW>;
68 };
69
Andrew Davis211b3d72023-04-11 13:25:05 -050070 switch-5 {
Adam Fordb8dbec52018-07-09 19:52:48 -050071 label = "User Switch 5";
72 linux,code = <BTN_5>;
73 gpios = <&tca6416 12 GPIO_ACTIVE_LOW>;
74 };
75
Andrew Davis211b3d72023-04-11 13:25:05 -050076 switch-6 {
Adam Fordb8dbec52018-07-09 19:52:48 -050077 label = "User Switch 6";
78 linux,code = <BTN_6>;
79 gpios = <&tca6416 13 GPIO_ACTIVE_LOW>;
80 };
81
Andrew Davis211b3d72023-04-11 13:25:05 -050082 switch-7 {
Adam Fordb8dbec52018-07-09 19:52:48 -050083 label = "User Switch 7";
84 linux,code = <BTN_7>;
85 gpios = <&tca6416 14 GPIO_ACTIVE_LOW>;
86 };
87
Andrew Davis211b3d72023-04-11 13:25:05 -050088 switch-8 {
Adam Fordb8dbec52018-07-09 19:52:48 -050089 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 {
Adam Ford72ce7812022-02-26 15:17:23 -0600127 /* This isn't the exact LCD, but the timings meet spec */
128 /* To make it work, set CONFIG_OMAP2_DSS_MIN_FCK_PER_PCK=4 */
129 compatible = "newhaven,nhd-4.3-480272ef-atxl";
Adam Fordb8dbec52018-07-09 19:52:48 -0500130 label = "15";
Adam Ford72ce7812022-02-26 15:17:23 -0600131 backlight = <&bl>;
Adam Fordb8dbec52018-07-09 19:52:48 -0500132 enable-gpios = <&gpio6 16 GPIO_ACTIVE_HIGH>; /* gpio176, lcd INI */
Adam Fordc3b89462018-10-21 09:09:01 -0500133 vcc-supply = <&vdd_io_reg>;
Adam Fordb8dbec52018-07-09 19:52:48 -0500134
135 port {
136 lcd_in: endpoint {
137 remote-endpoint = <&dpi_out>;
138 };
139 };
Adam Fordb8dbec52018-07-09 19:52:48 -0500140 };
141
142 bl: backlight {
143 compatible = "pwm-backlight";
144 pinctrl-names = "default";
Adam Fordc3b89462018-10-21 09:09:01 -0500145 power-supply = <&vdd_io_reg>;
Adam Fordb8dbec52018-07-09 19:52:48 -0500146 pinctrl-0 = <&backlight_pins>;
147 pwms = <&pwm11 0 5000000 0>;
148 brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
149 default-brightness-level = <7>;
150 enable-gpios = <&gpio6 22 GPIO_ACTIVE_HIGH>; /* gpio_182 */
151 };
152
Andrew Davis211b3d72023-04-11 13:25:05 -0500153 pwm11: pwm-11 {
Adam Fordb8dbec52018-07-09 19:52:48 -0500154 compatible = "ti,omap-dmtimer-pwm";
155 pinctrl-names = "default";
156 pinctrl-0 = <&pwm_pins>;
157 ti,timers = <&timer11>;
158 #pwm-cells = <3>;
Adam Ford72ce7812022-02-26 15:17:23 -0600159 ti,clock-source = <0x01>;
Adam Fordb8dbec52018-07-09 19:52:48 -0500160 };
Adam Fordc3b89462018-10-21 09:09:01 -0500161
162 /* HS USB Host PHY on PORT 1 */
163 hsusb1_phy: hsusb1_phy {
Adam Ford72ce7812022-02-26 15:17:23 -0600164 pinctrl-names = "default";
165 pinctrl-0 = <&hsusb1_rst_pins>;
Adam Fordc3b89462018-10-21 09:09:01 -0500166 compatible = "usb-nop-xceiv";
167 reset-gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; /* gpio_57 */
168 #phy-cells = <0>;
169 };
Adam Forda56fd942017-09-19 20:32:10 -0500170};
171
172&davinci_emac {
Adam Ford72ce7812022-02-26 15:17:23 -0600173 pinctrl-names = "default";
174 pinctrl-0 = <&ethernet_pins>;
175 status = "okay";
Adam Forda56fd942017-09-19 20:32:10 -0500176};
177
178&davinci_mdio {
Andrew Davis211b3d72023-04-11 13:25:05 -0500179 status = "okay";
Adam Forda56fd942017-09-19 20:32:10 -0500180};
181
Adam Fordb8dbec52018-07-09 19:52:48 -0500182&dss {
Roger Quadros72f78c62021-08-24 14:07:27 +0300183 status = "okay";
Adam Fordb8dbec52018-07-09 19:52:48 -0500184
185 pinctrl-names = "default";
186 pinctrl-0 = <&dss_dpi_pins>;
187
188 vdds_dsi-supply = <&vdd_io_reg>;
189 vdda_video-supply = <&vdd_io_reg>;
190
191 port {
192 dpi_out: endpoint {
193 remote-endpoint = <&lcd_in>;
194 data-lines = <16>;
195 };
196 };
Adam Forda56fd942017-09-19 20:32:10 -0500197};
198
199&i2c2 {
200 clock-frequency = <400000>;
Adam Fordb8dbec52018-07-09 19:52:48 -0500201 /* User DIP swithes [1:8] / User LEDS [1:2] */
202 tca6416: gpio@21 {
203 compatible = "ti,tca6416";
204 reg = <0x21>;
205 gpio-controller;
206 #gpio-cells = <2>;
Adam Fordc3b89462018-10-21 09:09:01 -0500207 vcc-supply = <&vdd_io_reg>;
Adam Fordb8dbec52018-07-09 19:52:48 -0500208 };
Adam Forda56fd942017-09-19 20:32:10 -0500209};
210
211&i2c3 {
212 clock-frequency = <400000>;
213};
214
215&mmc1 {
Adam Fordb8dbec52018-07-09 19:52:48 -0500216 status = "okay";
217 pinctrl-names = "default";
218 pinctrl-0 = <&mmc1_pins>;
Adam Forda56fd942017-09-19 20:32:10 -0500219 vmmc-supply = <&vmmc_fixed>;
220 bus-width = <4>;
Adam Fordb8dbec52018-07-09 19:52:48 -0500221 wp-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>; /* gpio_126 */
Adam Ford5792f0d2018-12-03 08:06:28 -0600222 cd-gpios = <&gpio4 31 GPIO_ACTIVE_LOW>; /* gpio_127 */
Adam Forda56fd942017-09-19 20:32:10 -0500223};
224
Adam Forda56fd942017-09-19 20:32:10 -0500225&mmc3 {
Andrew Davis211b3d72023-04-11 13:25:05 -0500226 status = "disabled";
Adam Forda56fd942017-09-19 20:32:10 -0500227};
228
Adam Fordc3b89462018-10-21 09:09:01 -0500229&usbhshost {
Adam Ford72ce7812022-02-26 15:17:23 -0600230 pinctrl-names = "default";
231 pinctrl-0 = <&hsusb1_pins>;
Adam Fordc3b89462018-10-21 09:09:01 -0500232 port1-mode = "ehci-phy";
233};
234
235&usbhsehci {
236 phys = <&hsusb1_phy>;
237};
238
Adam Fordb8dbec52018-07-09 19:52:48 -0500239&omap3_pmx_core {
Adam Ford72ce7812022-02-26 15:17:23 -0600240
241 ethernet_pins: pinmux_ethernet_pins {
242 pinctrl-single,pins = <
243 OMAP3_CORE1_IOPAD(0x21fe, PIN_INPUT | MUX_MODE0) /* rmii_mdio_data */
244 OMAP3_CORE1_IOPAD(0x2200, MUX_MODE0) /* rmii_mdio_clk */
245 OMAP3_CORE1_IOPAD(0x2202, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_rxd0 */
246 OMAP3_CORE1_IOPAD(0x2204, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_rxd1 */
247 OMAP3_CORE1_IOPAD(0x2206, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_crs_dv */
248 OMAP3_CORE1_IOPAD(0x2208, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* rmii_rxer */
249 OMAP3_CORE1_IOPAD(0x220a, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* rmii_txd0 */
250 OMAP3_CORE1_IOPAD(0x220c, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* rmii_txd1 */
251 OMAP3_CORE1_IOPAD(0x220e, PIN_OUTPUT_PULLDOWN |MUX_MODE0) /* rmii_txen */
252 OMAP3_CORE1_IOPAD(0x2210, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_50mhz_clk */
253 >;
254 };
Adam Fordb8dbec52018-07-09 19:52:48 -0500255
256 leds_pins: pinmux_leds_pins {
257 pinctrl-single,pins = <
258 OMAP3_WKUP_IOPAD(0x2a24, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu0.gpio_11 */
259 OMAP3_WKUP_IOPAD(0x2a26, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu1.gpio_31 */
260 >;
261 };
262
263 mmc1_pins: pinmux_mmc1_pins {
264 pinctrl-single,pins = <
265 OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
266 OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
267 OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
268 OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
269 OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
270 OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
271 OMAP3_CORE1_IOPAD(0x2150, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat4.gpio_126 */
272 OMAP3_CORE1_IOPAD(0x2152, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat5.gpio_127 */
273 >;
274 };
275
276 pwm_pins: pinmux_pwm_pins {
277 pinctrl-single,pins = <
278 OMAP3_CORE1_IOPAD(0x21dc, PIN_OUTPUT | MUX_MODE1) /* mcspi2_cs0.gpt11_pwm */
279 >;
280 };
281
282 backlight_pins: pinmux_backlight_pins {
283 pinctrl-single,pins = <
284 OMAP3_CORE1_IOPAD(0x21de, PIN_OUTPUT | MUX_MODE4) /* mcspi2_cs1.gpio_182 */
285 >;
286 };
287
288 dss_dpi_pins: pinmux_dss_dpi_pins {
289 pinctrl-single,pins = <
290 OMAP3_CORE1_IOPAD(0x21d2, PIN_OUTPUT | MUX_MODE4) /* mcspi1_cs2.gpio_176 */
291 OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
292 OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */
293 OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */
294 OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */
295 OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */
296 OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */
297 OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */
298 OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */
299 OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */
300 OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */
301 OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */
302 OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */
303 OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */
304 OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */
305 OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */
306 OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */
307 OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */
308 OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */
309 OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */
310 OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */
311 >;
312 };
Adam Fordc3b89462018-10-21 09:09:01 -0500313
314 hsusb1_rst_pins: pinmux_hsusb1_rst_pins {
315 pinctrl-single,pins = <
316 OMAP3_CORE1_IOPAD(0x20ba, PIN_OUTPUT | MUX_MODE4) /* gpmc_ncs6.gpio_57 */
317 >;
318 };
319};
320
321&omap3_pmx_core2 {
Adam Fordc3b89462018-10-21 09:09:01 -0500322
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 };
Adam Fordb8dbec52018-07-09 19:52:48 -0500339};