forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arm/boot/dts/am3517-evm.dts
....@@ -1,14 +1,12 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
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/
74 */
85 /dts-v1/;
96
107 #include "am3517.dtsi"
118 #include "am3517-som.dtsi"
9
+#include "am3517-evm-ui.dtsi"
1210 #include <dt-bindings/input/input.h>
1311
1412 / {
....@@ -17,6 +15,10 @@
1715
1816 aliases {
1917 display0 = &lcd0;
18
+ };
19
+
20
+ chosen {
21
+ stdout-path = &uart3;
2022 };
2123
2224 memory@80000000 {
....@@ -122,10 +124,11 @@
122124 };
123125
124126 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";
126130 label = "15";
127
- status = "okay";
128
- pinctrl-names = "default";
131
+ backlight = <&bl>;
129132 enable-gpios = <&gpio6 16 GPIO_ACTIVE_HIGH>; /* gpio176, lcd INI */
130133 vcc-supply = <&vdd_io_reg>;
131134
....@@ -133,22 +136,6 @@
133136 lcd_in: endpoint {
134137 remote-endpoint = <&dpi_out>;
135138 };
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>;
152139 };
153140 };
154141
....@@ -169,10 +156,13 @@
169156 pinctrl-0 = <&pwm_pins>;
170157 ti,timers = <&timer11>;
171158 #pwm-cells = <3>;
159
+ ti,clock-source = <0x01>;
172160 };
173161
174162 /* HS USB Host PHY on PORT 1 */
175163 hsusb1_phy: hsusb1_phy {
164
+ pinctrl-names = "default";
165
+ pinctrl-0 = <&hsusb1_rst_pins>;
176166 compatible = "usb-nop-xceiv";
177167 reset-gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; /* gpio_57 */
178168 #phy-cells = <0>;
....@@ -180,7 +170,9 @@
180170 };
181171
182172 &davinci_emac {
183
- status = "okay";
173
+ pinctrl-names = "default";
174
+ pinctrl-0 = <&ethernet_pins>;
175
+ status = "okay";
184176 };
185177
186178 &davinci_mdio {
....@@ -188,7 +180,7 @@
188180 };
189181
190182 &dss {
191
- status = "ok";
183
+ status = "okay";
192184
193185 pinctrl-names = "default";
194186 pinctrl-0 = <&dss_dpi_pins>;
....@@ -205,6 +197,8 @@
205197 };
206198
207199 &i2c2 {
200
+ pinctrl-names = "default";
201
+ pinctrl-0 = <&i2c2_pins>;
208202 clock-frequency = <400000>;
209203 /* User DIP swithes [1:8] / User LEDS [1:2] */
210204 tca6416: gpio@21 {
....@@ -217,6 +211,8 @@
217211 };
218212
219213 &i2c3 {
214
+ pinctrl-names = "default";
215
+ pinctrl-0 = <&i2c3_pins>;
220216 clock-frequency = <400000>;
221217 };
222218
....@@ -235,6 +231,8 @@
235231 };
236232
237233 &usbhshost {
234
+ pinctrl-names = "default";
235
+ pinctrl-0 = <&hsusb1_pins>;
238236 port1-mode = "ehci-phy";
239237 };
240238
....@@ -243,8 +241,35 @@
243241 };
244242
245243 &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
+ };
248273
249274 leds_pins: pinmux_leds_pins {
250275 pinctrl-single,pins = <
....@@ -312,8 +337,6 @@
312337 };
313338
314339 &omap3_pmx_core2 {
315
- pinctrl-names = "default";
316
- pinctrl-0 = <&hsusb1_pins>;
317340
318341 hsusb1_pins: pinmux_hsusb1_pins {
319342 pinctrl-single,pins = <