Adam Ford | a56fd94 | 2017-09-19 20:32:10 -0500 | [diff] [blame] | 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" |
Adam Ford | b8dbec5 | 2018-07-09 19:52:48 -0500 | [diff] [blame] | 11 | #include "am3517-som.dtsi" |
| 12 | #include <dt-bindings/input/input.h> |
Adam Ford | a56fd94 | 2017-09-19 20:32:10 -0500 | [diff] [blame] | 13 | |
| 14 | / { |
| 15 | model = "TI AM3517 EVM (AM3517/05 TMDSEVM3517)"; |
| 16 | compatible = "ti,am3517-evm", "ti,am3517", "ti,omap3"; |
| 17 | |
Adam Ford | b8dbec5 | 2018-07-09 19:52:48 -0500 | [diff] [blame] | 18 | aliases { |
| 19 | display0 = &lcd0; |
| 20 | }; |
| 21 | |
Adam Ford | a56fd94 | 2017-09-19 20:32:10 -0500 | [diff] [blame] | 22 | memory@80000000 { |
| 23 | device_type = "memory"; |
| 24 | reg = <0x80000000 0x10000000>; /* 256 MB */ |
| 25 | }; |
| 26 | |
| 27 | vmmc_fixed: vmmc { |
| 28 | compatible = "regulator-fixed"; |
| 29 | regulator-name = "vmmc_fixed"; |
| 30 | regulator-min-microvolt = <3300000>; |
| 31 | regulator-max-microvolt = <3300000>; |
| 32 | }; |
Adam Ford | b8dbec5 | 2018-07-09 19:52:48 -0500 | [diff] [blame] | 33 | |
| 34 | gpio-keys { |
| 35 | compatible = "gpio-keys-polled"; |
| 36 | poll-interval = <100>; |
| 37 | |
| 38 | user_pb { |
| 39 | label = "User Push Button"; |
| 40 | linux,code = <BTN_0>; |
| 41 | gpios = <&tca6416 5 GPIO_ACTIVE_LOW>; |
| 42 | }; |
| 43 | |
| 44 | user_sw_1 { |
| 45 | label = "User Switch 1"; |
| 46 | linux,code = <BTN_1>; |
| 47 | gpios = <&tca6416 8 GPIO_ACTIVE_LOW>; |
| 48 | }; |
| 49 | |
| 50 | user_sw_2 { |
| 51 | label = "User Switch 2"; |
| 52 | linux,code = <BTN_2>; |
| 53 | gpios = <&tca6416 9 GPIO_ACTIVE_LOW>; |
| 54 | }; |
| 55 | |
| 56 | user_sw_3 { |
| 57 | label = "User Switch 3"; |
| 58 | linux,code = <BTN_3>; |
| 59 | gpios = <&tca6416 10 GPIO_ACTIVE_LOW>; |
| 60 | }; |
| 61 | |
| 62 | user_sw_4 { |
| 63 | label = "User Switch 4"; |
| 64 | linux,code = <BTN_4>; |
| 65 | gpios = <&tca6416 11 GPIO_ACTIVE_LOW>; |
| 66 | }; |
| 67 | |
| 68 | user_sw_5 { |
| 69 | label = "User Switch 5"; |
| 70 | linux,code = <BTN_5>; |
| 71 | gpios = <&tca6416 12 GPIO_ACTIVE_LOW>; |
| 72 | }; |
| 73 | |
| 74 | user_sw_6 { |
| 75 | label = "User Switch 6"; |
| 76 | linux,code = <BTN_6>; |
| 77 | gpios = <&tca6416 13 GPIO_ACTIVE_LOW>; |
| 78 | }; |
| 79 | |
| 80 | user_sw_7 { |
| 81 | label = "User Switch 7"; |
| 82 | linux,code = <BTN_7>; |
| 83 | gpios = <&tca6416 14 GPIO_ACTIVE_LOW>; |
| 84 | }; |
| 85 | |
| 86 | user_sw_8 { |
| 87 | label = "User Switch 8"; |
| 88 | linux,code = <BTN_8>; |
| 89 | gpios = <&tca6416 15 GPIO_ACTIVE_LOW>; |
| 90 | }; |
| 91 | }; |
| 92 | |
| 93 | gpio-leds { |
| 94 | compatible = "gpio-leds"; |
| 95 | |
| 96 | pinctrl-names = "default"; |
| 97 | pinctrl-0 = <&leds_pins>; |
| 98 | |
| 99 | user_led_1 { |
| 100 | label = "am3517evm:green:user_led_1"; |
| 101 | gpios = <&tca6416 7 GPIO_ACTIVE_LOW>; |
| 102 | default-state = "on"; |
| 103 | }; |
| 104 | |
| 105 | user_led_2 { |
| 106 | label = "am3517evm:green:user_led_2"; |
| 107 | gpios = <&tca6416 6 GPIO_ACTIVE_LOW>; |
| 108 | default-state = "on"; |
| 109 | }; |
| 110 | |
| 111 | user_led_3 { |
| 112 | label = "am3517evm:green:user_led_3"; |
| 113 | gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; |
| 114 | linux,default-trigger = "mmc0"; /* SD/MMC card activity */ |
| 115 | }; |
| 116 | |
| 117 | user_led_4 { |
| 118 | label = "am3517evm:green:user_led_4"; |
| 119 | gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>; |
| 120 | linux,default-trigger = "heartbeat"; |
| 121 | }; |
| 122 | }; |
| 123 | |
| 124 | lcd0: display@0 { |
| 125 | compatible = "panel-dpi"; |
| 126 | label = "15"; |
| 127 | status = "okay"; |
| 128 | pinctrl-names = "default"; |
| 129 | enable-gpios = <&gpio6 16 GPIO_ACTIVE_HIGH>; /* gpio176, lcd INI */ |
| 130 | |
| 131 | port { |
| 132 | lcd_in: endpoint { |
| 133 | remote-endpoint = <&dpi_out>; |
| 134 | }; |
| 135 | }; |
| 136 | |
| 137 | panel-timing { |
| 138 | clock-frequency = <9000000>; |
| 139 | hactive = <480>; |
| 140 | vactive = <272>; |
| 141 | hfront-porch = <3>; |
| 142 | hback-porch = <2>; |
| 143 | hsync-len = <42>; |
| 144 | vback-porch = <3>; |
| 145 | vfront-porch = <4>; |
| 146 | vsync-len = <11>; |
| 147 | hsync-active = <0>; |
| 148 | vsync-active = <0>; |
| 149 | de-active = <1>; |
| 150 | pixelclk-active = <1>; |
| 151 | }; |
| 152 | }; |
| 153 | |
| 154 | bl: backlight { |
| 155 | compatible = "pwm-backlight"; |
| 156 | pinctrl-names = "default"; |
| 157 | pinctrl-0 = <&backlight_pins>; |
| 158 | pwms = <&pwm11 0 5000000 0>; |
| 159 | brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; |
| 160 | default-brightness-level = <7>; |
| 161 | enable-gpios = <&gpio6 22 GPIO_ACTIVE_HIGH>; /* gpio_182 */ |
| 162 | }; |
| 163 | |
| 164 | pwm11: dmtimer-pwm@11 { |
| 165 | compatible = "ti,omap-dmtimer-pwm"; |
| 166 | pinctrl-names = "default"; |
| 167 | pinctrl-0 = <&pwm_pins>; |
| 168 | ti,timers = <&timer11>; |
| 169 | #pwm-cells = <3>; |
| 170 | }; |
Adam Ford | a56fd94 | 2017-09-19 20:32:10 -0500 | [diff] [blame] | 171 | }; |
| 172 | |
| 173 | &davinci_emac { |
| 174 | status = "okay"; |
| 175 | }; |
| 176 | |
| 177 | &davinci_mdio { |
| 178 | status = "okay"; |
| 179 | }; |
| 180 | |
Adam Ford | b8dbec5 | 2018-07-09 19:52:48 -0500 | [diff] [blame] | 181 | &dss { |
| 182 | status = "ok"; |
| 183 | |
| 184 | pinctrl-names = "default"; |
| 185 | pinctrl-0 = <&dss_dpi_pins>; |
| 186 | |
| 187 | vdds_dsi-supply = <&vdd_io_reg>; |
| 188 | vdda_video-supply = <&vdd_io_reg>; |
| 189 | |
| 190 | port { |
| 191 | dpi_out: endpoint { |
| 192 | remote-endpoint = <&lcd_in>; |
| 193 | data-lines = <16>; |
| 194 | }; |
| 195 | }; |
Adam Ford | a56fd94 | 2017-09-19 20:32:10 -0500 | [diff] [blame] | 196 | }; |
| 197 | |
| 198 | &i2c2 { |
| 199 | clock-frequency = <400000>; |
Adam Ford | b8dbec5 | 2018-07-09 19:52:48 -0500 | [diff] [blame] | 200 | /* User DIP swithes [1:8] / User LEDS [1:2] */ |
| 201 | tca6416: gpio@21 { |
| 202 | compatible = "ti,tca6416"; |
| 203 | reg = <0x21>; |
| 204 | gpio-controller; |
| 205 | #gpio-cells = <2>; |
| 206 | }; |
Adam Ford | a56fd94 | 2017-09-19 20:32:10 -0500 | [diff] [blame] | 207 | }; |
| 208 | |
| 209 | &i2c3 { |
| 210 | clock-frequency = <400000>; |
| 211 | }; |
| 212 | |
| 213 | &mmc1 { |
Adam Ford | b8dbec5 | 2018-07-09 19:52:48 -0500 | [diff] [blame] | 214 | status = "okay"; |
| 215 | pinctrl-names = "default"; |
| 216 | pinctrl-0 = <&mmc1_pins>; |
Adam Ford | a56fd94 | 2017-09-19 20:32:10 -0500 | [diff] [blame] | 217 | vmmc-supply = <&vmmc_fixed>; |
| 218 | bus-width = <4>; |
Adam Ford | b8dbec5 | 2018-07-09 19:52:48 -0500 | [diff] [blame] | 219 | wp-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>; /* gpio_126 */ |
| 220 | cd-gpios = <&gpio4 31 GPIO_ACTIVE_HIGH>; /* gpio_127 */ |
Adam Ford | a56fd94 | 2017-09-19 20:32:10 -0500 | [diff] [blame] | 221 | }; |
| 222 | |
| 223 | &mmc2 { |
| 224 | status = "disabled"; |
| 225 | }; |
| 226 | |
| 227 | &mmc3 { |
| 228 | status = "disabled"; |
| 229 | }; |
| 230 | |
Adam Ford | b8dbec5 | 2018-07-09 19:52:48 -0500 | [diff] [blame] | 231 | &omap3_pmx_core { |
| 232 | |
| 233 | leds_pins: pinmux_leds_pins { |
| 234 | pinctrl-single,pins = < |
| 235 | OMAP3_WKUP_IOPAD(0x2a24, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu0.gpio_11 */ |
| 236 | OMAP3_WKUP_IOPAD(0x2a26, PIN_OUTPUT_PULLUP | MUX_MODE4) /* jtag_emu1.gpio_31 */ |
| 237 | >; |
| 238 | }; |
| 239 | |
| 240 | mmc1_pins: pinmux_mmc1_pins { |
| 241 | pinctrl-single,pins = < |
| 242 | OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */ |
| 243 | OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */ |
| 244 | OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */ |
| 245 | OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */ |
| 246 | OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */ |
| 247 | OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */ |
| 248 | OMAP3_CORE1_IOPAD(0x2150, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat4.gpio_126 */ |
| 249 | OMAP3_CORE1_IOPAD(0x2152, PIN_INPUT_PULLUP | MUX_MODE4) /* sdmmc1_dat5.gpio_127 */ |
| 250 | >; |
| 251 | }; |
| 252 | |
| 253 | pwm_pins: pinmux_pwm_pins { |
| 254 | pinctrl-single,pins = < |
| 255 | OMAP3_CORE1_IOPAD(0x21dc, PIN_OUTPUT | MUX_MODE1) /* mcspi2_cs0.gpt11_pwm */ |
| 256 | >; |
| 257 | }; |
| 258 | |
| 259 | backlight_pins: pinmux_backlight_pins { |
| 260 | pinctrl-single,pins = < |
| 261 | OMAP3_CORE1_IOPAD(0x21de, PIN_OUTPUT | MUX_MODE4) /* mcspi2_cs1.gpio_182 */ |
| 262 | >; |
| 263 | }; |
| 264 | |
| 265 | dss_dpi_pins: pinmux_dss_dpi_pins { |
| 266 | pinctrl-single,pins = < |
| 267 | OMAP3_CORE1_IOPAD(0x21d2, PIN_OUTPUT | MUX_MODE4) /* mcspi1_cs2.gpio_176 */ |
| 268 | OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */ |
| 269 | OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */ |
| 270 | OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */ |
| 271 | OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */ |
| 272 | OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */ |
| 273 | OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */ |
| 274 | OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */ |
| 275 | OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */ |
| 276 | OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */ |
| 277 | OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */ |
| 278 | OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */ |
| 279 | OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */ |
| 280 | OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */ |
| 281 | OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */ |
| 282 | OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */ |
| 283 | OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */ |
| 284 | OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */ |
| 285 | OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */ |
| 286 | OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */ |
| 287 | OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */ |
| 288 | >; |
| 289 | }; |
| 290 | }; |