1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/
8 #include "am3517-som.dtsi"
9 #include "am3517-evm-ui.dtsi"
10 #include <dt-bindings/input/input.h>
13 model = "TI AM3517 EVM (AM3517/05 TMDSEVM3517)";
14 compatible = "ti,am3517-evm", "ti,am3517", "ti,omap3";
25 device_type = "memory";
26 reg = <0x80000000 0x10000000>; /* 256 MB */
30 compatible = "regulator-fixed";
31 regulator-name = "vmmc_fixed";
32 regulator-min-microvolt = <3300000>;
33 regulator-max-microvolt = <3300000>;
37 compatible = "gpio-keys-polled";
38 poll-interval = <100>;
41 label = "User Push Button";
43 gpios = <&tca6416 5 GPIO_ACTIVE_LOW>;
47 label = "User Switch 1";
49 gpios = <&tca6416 8 GPIO_ACTIVE_LOW>;
53 label = "User Switch 2";
55 gpios = <&tca6416 9 GPIO_ACTIVE_LOW>;
59 label = "User Switch 3";
61 gpios = <&tca6416 10 GPIO_ACTIVE_LOW>;
65 label = "User Switch 4";
67 gpios = <&tca6416 11 GPIO_ACTIVE_LOW>;
71 label = "User Switch 5";
73 gpios = <&tca6416 12 GPIO_ACTIVE_LOW>;
77 label = "User Switch 6";
79 gpios = <&tca6416 13 GPIO_ACTIVE_LOW>;
83 label = "User Switch 7";
85 gpios = <&tca6416 14 GPIO_ACTIVE_LOW>;
89 label = "User Switch 8";
91 gpios = <&tca6416 15 GPIO_ACTIVE_LOW>;
96 compatible = "gpio-leds";
98 pinctrl-names = "default";
99 pinctrl-0 = <&leds_pins>;
102 label = "am3517evm:green:user_led_1";
103 gpios = <&tca6416 7 GPIO_ACTIVE_LOW>;
104 default-state = "on";
108 label = "am3517evm:green:user_led_2";
109 gpios = <&tca6416 6 GPIO_ACTIVE_LOW>;
110 default-state = "on";
114 label = "am3517evm:green:user_led_3";
115 gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
116 linux,default-trigger = "mmc0"; /* SD/MMC card activity */
120 label = "am3517evm:green:user_led_4";
121 gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>;
122 linux,default-trigger = "heartbeat";
127 /* 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";
132 enable-gpios = <&gpio6 16 GPIO_ACTIVE_HIGH>; /* gpio176, lcd INI */
133 vcc-supply = <&vdd_io_reg>;
137 remote-endpoint = <&dpi_out>;
143 compatible = "pwm-backlight";
144 pinctrl-names = "default";
145 power-supply = <&vdd_io_reg>;
146 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 */
153 pwm11: dmtimer-pwm@11 {
154 compatible = "ti,omap-dmtimer-pwm";
155 pinctrl-names = "default";
156 pinctrl-0 = <&pwm_pins>;
157 ti,timers = <&timer11>;
159 ti,clock-source = <0x01>;
162 /* HS USB Host PHY on PORT 1 */
163 hsusb1_phy: hsusb1_phy {
164 compatible = "usb-nop-xceiv";
165 reset-gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; /* gpio_57 */
181 pinctrl-names = "default";
182 pinctrl-0 = <&dss_dpi_pins>;
184 vdds_dsi-supply = <&vdd_io_reg>;
185 vdda_video-supply = <&vdd_io_reg>;
189 remote-endpoint = <&lcd_in>;
196 clock-frequency = <400000>;
197 /* User DIP swithes [1:8] / User LEDS [1:2] */
199 compatible = "ti,tca6416";
203 vcc-supply = <&vdd_io_reg>;
208 clock-frequency = <400000>;
213 pinctrl-names = "default";
214 pinctrl-0 = <&mmc1_pins>;
215 vmmc-supply = <&vmmc_fixed>;
217 wp-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>; /* gpio_126 */
218 cd-gpios = <&gpio4 31 GPIO_ACTIVE_LOW>; /* gpio_127 */
226 port1-mode = "ehci-phy";
230 phys = <&hsusb1_phy>;
234 pinctrl-names = "default";
235 pinctrl-0 = <&hsusb1_rst_pins>;
237 leds_pins: pinmux_leds_pins {
238 pinctrl-single,pins = <
239 OMAP3_WKUP_IOPAD(0x2a24, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu0.gpio_11 */
240 OMAP3_WKUP_IOPAD(0x2a26, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu1.gpio_31 */
244 mmc1_pins: pinmux_mmc1_pins {
245 pinctrl-single,pins = <
246 OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
247 OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
248 OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
249 OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
250 OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
251 OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
252 OMAP3_CORE1_IOPAD(0x2150, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat4.gpio_126 */
253 OMAP3_CORE1_IOPAD(0x2152, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat5.gpio_127 */
257 pwm_pins: pinmux_pwm_pins {
258 pinctrl-single,pins = <
259 OMAP3_CORE1_IOPAD(0x21dc, PIN_OUTPUT | MUX_MODE1) /* mcspi2_cs0.gpt11_pwm */
263 backlight_pins: pinmux_backlight_pins {
264 pinctrl-single,pins = <
265 OMAP3_CORE1_IOPAD(0x21de, PIN_OUTPUT | MUX_MODE4) /* mcspi2_cs1.gpio_182 */
269 dss_dpi_pins: pinmux_dss_dpi_pins {
270 pinctrl-single,pins = <
271 OMAP3_CORE1_IOPAD(0x21d2, PIN_OUTPUT | MUX_MODE4) /* mcspi1_cs2.gpio_176 */
272 OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
273 OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */
274 OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */
275 OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */
276 OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */
277 OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */
278 OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */
279 OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */
280 OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */
281 OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */
282 OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */
283 OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */
284 OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */
285 OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */
286 OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */
287 OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */
288 OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */
289 OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */
290 OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */
291 OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */
295 hsusb1_rst_pins: pinmux_hsusb1_rst_pins {
296 pinctrl-single,pins = <
297 OMAP3_CORE1_IOPAD(0x20ba, PIN_OUTPUT | MUX_MODE4) /* gpmc_ncs6.gpio_57 */
303 pinctrl-names = "default";
304 pinctrl-0 = <&hsusb1_pins>;
306 hsusb1_pins: pinmux_hsusb1_pins {
307 pinctrl-single,pins = <
308 OMAP3430_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE3) /* etk_clk.hsusb1_stp */
309 OMAP3430_CORE2_IOPAD(0x25da, PIN_OUTPUT | MUX_MODE3) /* etk_ctl.hsusb1_clk */
310 OMAP3430_CORE2_IOPAD(0x25ec, PIN_INPUT | MUX_MODE3) /* etk_d8.hsusb1_dir */
311 OMAP3430_CORE2_IOPAD(0x25ee, PIN_INPUT | MUX_MODE3) /* etk_d9.hsusb1_nxt */
312 OMAP3430_CORE2_IOPAD(0x25dc, PIN_INPUT | MUX_MODE3) /* etk_d0.hsusb1_data0 */
313 OMAP3430_CORE2_IOPAD(0x25de, PIN_INPUT | MUX_MODE3) /* etk_d1.hsusb1_data1 */
314 OMAP3430_CORE2_IOPAD(0x25e0, PIN_INPUT | MUX_MODE3) /* etk_d2.hsusb1_data2 */
315 OMAP3430_CORE2_IOPAD(0x25ea, PIN_INPUT | MUX_MODE3) /* etk_d7.hsusb1_data3 */
316 OMAP3430_CORE2_IOPAD(0x25e4, PIN_INPUT | MUX_MODE3) /* etk_d4.hsusb1_data4 */
317 OMAP3430_CORE2_IOPAD(0x25e6, PIN_INPUT | MUX_MODE3) /* etk_d5.hsusb1_data5 */
318 OMAP3430_CORE2_IOPAD(0x25e8, PIN_INPUT | MUX_MODE3) /* etk_d6.hsusb1_data6 */
319 OMAP3430_CORE2_IOPAD(0x25e2, PIN_INPUT | MUX_MODE3) /* etk_d3.hsusb1_data7 */