0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/
0004 */
0005 /dts-v1/;
0006
0007 #include "am3517.dtsi"
0008 #include "am3517-som.dtsi"
0009 #include "am3517-evm-ui.dtsi"
0010 #include <dt-bindings/input/input.h>
0011
0012 / {
0013 model = "TI AM3517 EVM (AM3517/05 TMDSEVM3517)";
0014 compatible = "ti,am3517-evm", "ti,am3517", "ti,omap3";
0015
0016 aliases {
0017 display0 = &lcd0;
0018 };
0019
0020 chosen {
0021 stdout-path = &uart3;
0022 };
0023
0024 memory@80000000 {
0025 device_type = "memory";
0026 reg = <0x80000000 0x10000000>; /* 256 MB */
0027 };
0028
0029 vmmc_fixed: vmmc {
0030 compatible = "regulator-fixed";
0031 regulator-name = "vmmc_fixed";
0032 regulator-min-microvolt = <3300000>;
0033 regulator-max-microvolt = <3300000>;
0034 };
0035
0036 gpio-keys {
0037 compatible = "gpio-keys-polled";
0038 poll-interval = <100>;
0039
0040 button-user {
0041 label = "User Push Button";
0042 linux,code = <BTN_0>;
0043 gpios = <&tca6416 5 GPIO_ACTIVE_LOW>;
0044 };
0045
0046 switch-1 {
0047 label = "User Switch 1";
0048 linux,code = <BTN_1>;
0049 gpios = <&tca6416 8 GPIO_ACTIVE_LOW>;
0050 };
0051
0052 switch-2 {
0053 label = "User Switch 2";
0054 linux,code = <BTN_2>;
0055 gpios = <&tca6416 9 GPIO_ACTIVE_LOW>;
0056 };
0057
0058 switch-3 {
0059 label = "User Switch 3";
0060 linux,code = <BTN_3>;
0061 gpios = <&tca6416 10 GPIO_ACTIVE_LOW>;
0062 };
0063
0064 switch-4 {
0065 label = "User Switch 4";
0066 linux,code = <BTN_4>;
0067 gpios = <&tca6416 11 GPIO_ACTIVE_LOW>;
0068 };
0069
0070 switch-5 {
0071 label = "User Switch 5";
0072 linux,code = <BTN_5>;
0073 gpios = <&tca6416 12 GPIO_ACTIVE_LOW>;
0074 };
0075
0076 switch-6 {
0077 label = "User Switch 6";
0078 linux,code = <BTN_6>;
0079 gpios = <&tca6416 13 GPIO_ACTIVE_LOW>;
0080 };
0081
0082 switch-7 {
0083 label = "User Switch 7";
0084 linux,code = <BTN_7>;
0085 gpios = <&tca6416 14 GPIO_ACTIVE_LOW>;
0086 };
0087
0088 switch-8 {
0089 label = "User Switch 8";
0090 linux,code = <BTN_8>;
0091 gpios = <&tca6416 15 GPIO_ACTIVE_LOW>;
0092 };
0093 };
0094
0095 gpio-leds {
0096 compatible = "gpio-leds";
0097
0098 pinctrl-names = "default";
0099 pinctrl-0 = <&leds_pins>;
0100
0101 user_led_1 {
0102 label = "am3517evm:green:user_led_1";
0103 gpios = <&tca6416 7 GPIO_ACTIVE_LOW>;
0104 default-state = "on";
0105 };
0106
0107 user_led_2 {
0108 label = "am3517evm:green:user_led_2";
0109 gpios = <&tca6416 6 GPIO_ACTIVE_LOW>;
0110 default-state = "on";
0111 };
0112
0113 user_led_3 {
0114 label = "am3517evm:green:user_led_3";
0115 gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
0116 linux,default-trigger = "mmc0"; /* SD/MMC card activity */
0117 };
0118
0119 user_led_4 {
0120 label = "am3517evm:green:user_led_4";
0121 gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>;
0122 linux,default-trigger = "heartbeat";
0123 };
0124 };
0125
0126 lcd0: display@0 {
0127 /* This isn't the exact LCD, but the timings meet spec */
0128 /* To make it work, set CONFIG_OMAP2_DSS_MIN_FCK_PER_PCK=4 */
0129 compatible = "newhaven,nhd-4.3-480272ef-atxl";
0130 label = "15";
0131 backlight = <&bl>;
0132 enable-gpios = <&gpio6 16 GPIO_ACTIVE_HIGH>; /* gpio176, lcd INI */
0133 vcc-supply = <&vdd_io_reg>;
0134
0135 port {
0136 lcd_in: endpoint {
0137 remote-endpoint = <&dpi_out>;
0138 };
0139 };
0140 };
0141
0142 bl: backlight {
0143 compatible = "pwm-backlight";
0144 pinctrl-names = "default";
0145 power-supply = <&vdd_io_reg>;
0146 pinctrl-0 = <&backlight_pins>;
0147 pwms = <&pwm11 0 5000000 0>;
0148 brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
0149 default-brightness-level = <7>;
0150 enable-gpios = <&gpio6 22 GPIO_ACTIVE_HIGH>; /* gpio_182 */
0151 };
0152
0153 pwm11: dmtimer-pwm@11 {
0154 compatible = "ti,omap-dmtimer-pwm";
0155 pinctrl-names = "default";
0156 pinctrl-0 = <&pwm_pins>;
0157 ti,timers = <&timer11>;
0158 #pwm-cells = <3>;
0159 ti,clock-source = <0x01>;
0160 };
0161
0162 /* HS USB Host PHY on PORT 1 */
0163 hsusb1_phy: hsusb1_phy {
0164 pinctrl-names = "default";
0165 pinctrl-0 = <&hsusb1_rst_pins>;
0166 compatible = "usb-nop-xceiv";
0167 reset-gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; /* gpio_57 */
0168 #phy-cells = <0>;
0169 };
0170 };
0171
0172 &davinci_emac {
0173 pinctrl-names = "default";
0174 pinctrl-0 = <ðernet_pins>;
0175 status = "okay";
0176 };
0177
0178 &davinci_mdio {
0179 status = "okay";
0180 };
0181
0182 &dss {
0183 status = "okay";
0184
0185 pinctrl-names = "default";
0186 pinctrl-0 = <&dss_dpi_pins>;
0187
0188 vdds_dsi-supply = <&vdd_io_reg>;
0189 vdda_video-supply = <&vdd_io_reg>;
0190
0191 port {
0192 dpi_out: endpoint {
0193 remote-endpoint = <&lcd_in>;
0194 data-lines = <16>;
0195 };
0196 };
0197 };
0198
0199 &i2c2 {
0200 pinctrl-names = "default";
0201 pinctrl-0 = <&i2c2_pins>;
0202 clock-frequency = <400000>;
0203 /* User DIP swithes [1:8] / User LEDS [1:2] */
0204 tca6416: gpio@21 {
0205 compatible = "ti,tca6416";
0206 reg = <0x21>;
0207 gpio-controller;
0208 #gpio-cells = <2>;
0209 vcc-supply = <&vdd_io_reg>;
0210 };
0211 };
0212
0213 &i2c3 {
0214 pinctrl-names = "default";
0215 pinctrl-0 = <&i2c3_pins>;
0216 clock-frequency = <400000>;
0217 };
0218
0219 &mmc1 {
0220 status = "okay";
0221 pinctrl-names = "default";
0222 pinctrl-0 = <&mmc1_pins>;
0223 vmmc-supply = <&vmmc_fixed>;
0224 bus-width = <4>;
0225 wp-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>; /* gpio_126 */
0226 cd-gpios = <&gpio4 31 GPIO_ACTIVE_LOW>; /* gpio_127 */
0227 };
0228
0229 &mmc3 {
0230 status = "disabled";
0231 };
0232
0233 &usbhshost {
0234 pinctrl-names = "default";
0235 pinctrl-0 = <&hsusb1_pins>;
0236 port1-mode = "ehci-phy";
0237 };
0238
0239 &usbhsehci {
0240 phys = <&hsusb1_phy>;
0241 };
0242
0243 &omap3_pmx_core {
0244
0245 ethernet_pins: pinmux_ethernet_pins {
0246 pinctrl-single,pins = <
0247 OMAP3_CORE1_IOPAD(0x21fe, PIN_INPUT | MUX_MODE0) /* rmii_mdio_data */
0248 OMAP3_CORE1_IOPAD(0x2200, MUX_MODE0) /* rmii_mdio_clk */
0249 OMAP3_CORE1_IOPAD(0x2202, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_rxd0 */
0250 OMAP3_CORE1_IOPAD(0x2204, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_rxd1 */
0251 OMAP3_CORE1_IOPAD(0x2206, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_crs_dv */
0252 OMAP3_CORE1_IOPAD(0x2208, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* rmii_rxer */
0253 OMAP3_CORE1_IOPAD(0x220a, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* rmii_txd0 */
0254 OMAP3_CORE1_IOPAD(0x220c, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* rmii_txd1 */
0255 OMAP3_CORE1_IOPAD(0x220e, PIN_OUTPUT_PULLDOWN |MUX_MODE0) /* rmii_txen */
0256 OMAP3_CORE1_IOPAD(0x2210, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_50mhz_clk */
0257 >;
0258 };
0259
0260 i2c2_pins: pinmux_i2c2_pins {
0261 pinctrl-single,pins = <
0262 OMAP3_CORE1_IOPAD(0x21be, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */
0263 OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */
0264 >;
0265 };
0266
0267 i2c3_pins: pinmux_i2c3_pins {
0268 pinctrl-single,pins = <
0269 OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */
0270 OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */
0271 >;
0272 };
0273
0274 leds_pins: pinmux_leds_pins {
0275 pinctrl-single,pins = <
0276 OMAP3_WKUP_IOPAD(0x2a24, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu0.gpio_11 */
0277 OMAP3_WKUP_IOPAD(0x2a26, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu1.gpio_31 */
0278 >;
0279 };
0280
0281 mmc1_pins: pinmux_mmc1_pins {
0282 pinctrl-single,pins = <
0283 OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
0284 OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
0285 OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
0286 OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
0287 OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
0288 OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
0289 OMAP3_CORE1_IOPAD(0x2150, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat4.gpio_126 */
0290 OMAP3_CORE1_IOPAD(0x2152, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat5.gpio_127 */
0291 >;
0292 };
0293
0294 pwm_pins: pinmux_pwm_pins {
0295 pinctrl-single,pins = <
0296 OMAP3_CORE1_IOPAD(0x21dc, PIN_OUTPUT | MUX_MODE1) /* mcspi2_cs0.gpt11_pwm */
0297 >;
0298 };
0299
0300 backlight_pins: pinmux_backlight_pins {
0301 pinctrl-single,pins = <
0302 OMAP3_CORE1_IOPAD(0x21de, PIN_OUTPUT | MUX_MODE4) /* mcspi2_cs1.gpio_182 */
0303 >;
0304 };
0305
0306 dss_dpi_pins: pinmux_dss_dpi_pins {
0307 pinctrl-single,pins = <
0308 OMAP3_CORE1_IOPAD(0x21d2, PIN_OUTPUT | MUX_MODE4) /* mcspi1_cs2.gpio_176 */
0309 OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
0310 OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */
0311 OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */
0312 OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */
0313 OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */
0314 OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */
0315 OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */
0316 OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */
0317 OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */
0318 OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */
0319 OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */
0320 OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */
0321 OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */
0322 OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */
0323 OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */
0324 OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */
0325 OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */
0326 OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */
0327 OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */
0328 OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */
0329 >;
0330 };
0331
0332 hsusb1_rst_pins: pinmux_hsusb1_rst_pins {
0333 pinctrl-single,pins = <
0334 OMAP3_CORE1_IOPAD(0x20ba, PIN_OUTPUT | MUX_MODE4) /* gpmc_ncs6.gpio_57 */
0335 >;
0336 };
0337 };
0338
0339 &omap3_pmx_core2 {
0340
0341 hsusb1_pins: pinmux_hsusb1_pins {
0342 pinctrl-single,pins = <
0343 OMAP3430_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE3) /* etk_clk.hsusb1_stp */
0344 OMAP3430_CORE2_IOPAD(0x25da, PIN_OUTPUT | MUX_MODE3) /* etk_ctl.hsusb1_clk */
0345 OMAP3430_CORE2_IOPAD(0x25ec, PIN_INPUT | MUX_MODE3) /* etk_d8.hsusb1_dir */
0346 OMAP3430_CORE2_IOPAD(0x25ee, PIN_INPUT | MUX_MODE3) /* etk_d9.hsusb1_nxt */
0347 OMAP3430_CORE2_IOPAD(0x25dc, PIN_INPUT | MUX_MODE3) /* etk_d0.hsusb1_data0 */
0348 OMAP3430_CORE2_IOPAD(0x25de, PIN_INPUT | MUX_MODE3) /* etk_d1.hsusb1_data1 */
0349 OMAP3430_CORE2_IOPAD(0x25e0, PIN_INPUT | MUX_MODE3) /* etk_d2.hsusb1_data2 */
0350 OMAP3430_CORE2_IOPAD(0x25ea, PIN_INPUT | MUX_MODE3) /* etk_d7.hsusb1_data3 */
0351 OMAP3430_CORE2_IOPAD(0x25e4, PIN_INPUT | MUX_MODE3) /* etk_d4.hsusb1_data4 */
0352 OMAP3430_CORE2_IOPAD(0x25e6, PIN_INPUT | MUX_MODE3) /* etk_d5.hsusb1_data5 */
0353 OMAP3430_CORE2_IOPAD(0x25e8, PIN_INPUT | MUX_MODE3) /* etk_d6.hsusb1_data6 */
0354 OMAP3430_CORE2_IOPAD(0x25e2, PIN_INPUT | MUX_MODE3) /* etk_d3.hsusb1_data7 */
0355 >;
0356 };
0357 };