.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
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. |
---|
| 3 | + * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/ |
---|
7 | 4 | */ |
---|
8 | 5 | /dts-v1/; |
---|
9 | 6 | |
---|
10 | 7 | #include "am3517.dtsi" |
---|
11 | 8 | #include "am3517-som.dtsi" |
---|
| 9 | +#include "am3517-evm-ui.dtsi" |
---|
12 | 10 | #include <dt-bindings/input/input.h> |
---|
13 | 11 | |
---|
14 | 12 | / { |
---|
.. | .. |
---|
17 | 15 | |
---|
18 | 16 | aliases { |
---|
19 | 17 | display0 = &lcd0; |
---|
| 18 | + }; |
---|
| 19 | + |
---|
| 20 | + chosen { |
---|
| 21 | + stdout-path = &uart3; |
---|
20 | 22 | }; |
---|
21 | 23 | |
---|
22 | 24 | memory@80000000 { |
---|
.. | .. |
---|
122 | 124 | }; |
---|
123 | 125 | |
---|
124 | 126 | lcd0: display@0 { |
---|
125 | | - compatible = "panel-dpi"; |
---|
| 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"; |
---|
126 | 130 | label = "15"; |
---|
127 | | - status = "okay"; |
---|
128 | | - pinctrl-names = "default"; |
---|
| 131 | + backlight = <&bl>; |
---|
129 | 132 | enable-gpios = <&gpio6 16 GPIO_ACTIVE_HIGH>; /* gpio176, lcd INI */ |
---|
130 | 133 | vcc-supply = <&vdd_io_reg>; |
---|
131 | 134 | |
---|
.. | .. |
---|
133 | 136 | lcd_in: endpoint { |
---|
134 | 137 | remote-endpoint = <&dpi_out>; |
---|
135 | 138 | }; |
---|
136 | | - }; |
---|
137 | | - |
---|
138 | | - panel-timing { |
---|
139 | | - clock-frequency = <9000000>; |
---|
140 | | - hactive = <480>; |
---|
141 | | - vactive = <272>; |
---|
142 | | - hfront-porch = <3>; |
---|
143 | | - hback-porch = <2>; |
---|
144 | | - hsync-len = <42>; |
---|
145 | | - vback-porch = <3>; |
---|
146 | | - vfront-porch = <4>; |
---|
147 | | - vsync-len = <11>; |
---|
148 | | - hsync-active = <0>; |
---|
149 | | - vsync-active = <0>; |
---|
150 | | - de-active = <1>; |
---|
151 | | - pixelclk-active = <1>; |
---|
152 | 139 | }; |
---|
153 | 140 | }; |
---|
154 | 141 | |
---|
.. | .. |
---|
169 | 156 | pinctrl-0 = <&pwm_pins>; |
---|
170 | 157 | ti,timers = <&timer11>; |
---|
171 | 158 | #pwm-cells = <3>; |
---|
| 159 | + ti,clock-source = <0x01>; |
---|
172 | 160 | }; |
---|
173 | 161 | |
---|
174 | 162 | /* HS USB Host PHY on PORT 1 */ |
---|
175 | 163 | hsusb1_phy: hsusb1_phy { |
---|
| 164 | + pinctrl-names = "default"; |
---|
| 165 | + pinctrl-0 = <&hsusb1_rst_pins>; |
---|
176 | 166 | compatible = "usb-nop-xceiv"; |
---|
177 | 167 | reset-gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; /* gpio_57 */ |
---|
178 | 168 | #phy-cells = <0>; |
---|
.. | .. |
---|
180 | 170 | }; |
---|
181 | 171 | |
---|
182 | 172 | &davinci_emac { |
---|
183 | | - status = "okay"; |
---|
| 173 | + pinctrl-names = "default"; |
---|
| 174 | + pinctrl-0 = <ðernet_pins>; |
---|
| 175 | + status = "okay"; |
---|
184 | 176 | }; |
---|
185 | 177 | |
---|
186 | 178 | &davinci_mdio { |
---|
.. | .. |
---|
188 | 180 | }; |
---|
189 | 181 | |
---|
190 | 182 | &dss { |
---|
191 | | - status = "ok"; |
---|
| 183 | + status = "okay"; |
---|
192 | 184 | |
---|
193 | 185 | pinctrl-names = "default"; |
---|
194 | 186 | pinctrl-0 = <&dss_dpi_pins>; |
---|
.. | .. |
---|
205 | 197 | }; |
---|
206 | 198 | |
---|
207 | 199 | &i2c2 { |
---|
| 200 | + pinctrl-names = "default"; |
---|
| 201 | + pinctrl-0 = <&i2c2_pins>; |
---|
208 | 202 | clock-frequency = <400000>; |
---|
209 | 203 | /* User DIP swithes [1:8] / User LEDS [1:2] */ |
---|
210 | 204 | tca6416: gpio@21 { |
---|
.. | .. |
---|
217 | 211 | }; |
---|
218 | 212 | |
---|
219 | 213 | &i2c3 { |
---|
| 214 | + pinctrl-names = "default"; |
---|
| 215 | + pinctrl-0 = <&i2c3_pins>; |
---|
220 | 216 | clock-frequency = <400000>; |
---|
221 | 217 | }; |
---|
222 | 218 | |
---|
.. | .. |
---|
235 | 231 | }; |
---|
236 | 232 | |
---|
237 | 233 | &usbhshost { |
---|
| 234 | + pinctrl-names = "default"; |
---|
| 235 | + pinctrl-0 = <&hsusb1_pins>; |
---|
238 | 236 | port1-mode = "ehci-phy"; |
---|
239 | 237 | }; |
---|
240 | 238 | |
---|
.. | .. |
---|
243 | 241 | }; |
---|
244 | 242 | |
---|
245 | 243 | &omap3_pmx_core { |
---|
246 | | - pinctrl-names = "default"; |
---|
247 | | - pinctrl-0 = <&hsusb1_rst_pins>; |
---|
| 244 | + |
---|
| 245 | + ethernet_pins: pinmux_ethernet_pins { |
---|
| 246 | + pinctrl-single,pins = < |
---|
| 247 | + OMAP3_CORE1_IOPAD(0x21fe, PIN_INPUT | MUX_MODE0) /* rmii_mdio_data */ |
---|
| 248 | + OMAP3_CORE1_IOPAD(0x2200, MUX_MODE0) /* rmii_mdio_clk */ |
---|
| 249 | + OMAP3_CORE1_IOPAD(0x2202, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_rxd0 */ |
---|
| 250 | + OMAP3_CORE1_IOPAD(0x2204, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_rxd1 */ |
---|
| 251 | + OMAP3_CORE1_IOPAD(0x2206, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_crs_dv */ |
---|
| 252 | + OMAP3_CORE1_IOPAD(0x2208, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* rmii_rxer */ |
---|
| 253 | + OMAP3_CORE1_IOPAD(0x220a, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* rmii_txd0 */ |
---|
| 254 | + OMAP3_CORE1_IOPAD(0x220c, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* rmii_txd1 */ |
---|
| 255 | + OMAP3_CORE1_IOPAD(0x220e, PIN_OUTPUT_PULLDOWN |MUX_MODE0) /* rmii_txen */ |
---|
| 256 | + OMAP3_CORE1_IOPAD(0x2210, PIN_INPUT_PULLDOWN | MUX_MODE0) /* rmii_50mhz_clk */ |
---|
| 257 | + >; |
---|
| 258 | + }; |
---|
| 259 | + |
---|
| 260 | + i2c2_pins: pinmux_i2c2_pins { |
---|
| 261 | + pinctrl-single,pins = < |
---|
| 262 | + OMAP3_CORE1_IOPAD(0x21be, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */ |
---|
| 263 | + OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */ |
---|
| 264 | + >; |
---|
| 265 | + }; |
---|
| 266 | + |
---|
| 267 | + i2c3_pins: pinmux_i2c3_pins { |
---|
| 268 | + pinctrl-single,pins = < |
---|
| 269 | + OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */ |
---|
| 270 | + OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */ |
---|
| 271 | + >; |
---|
| 272 | + }; |
---|
248 | 273 | |
---|
249 | 274 | leds_pins: pinmux_leds_pins { |
---|
250 | 275 | pinctrl-single,pins = < |
---|
.. | .. |
---|
312 | 337 | }; |
---|
313 | 338 | |
---|
314 | 339 | &omap3_pmx_core2 { |
---|
315 | | - pinctrl-names = "default"; |
---|
316 | | - pinctrl-0 = <&hsusb1_pins>; |
---|
317 | 340 | |
---|
318 | 341 | hsusb1_pins: pinmux_hsusb1_pins { |
---|
319 | 342 | pinctrl-single,pins = < |
---|