forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arm/boot/dts/dra71-evm.dts
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
2
- * Copyright (C) 2016 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) 2016 Texas Instruments Incorporated - https://www.ti.com/
74 */
85
9
-#include "dra72-evm-common.dtsi"
6
+#include "dra71x.dtsi"
107 #include "dra7-mmc-iodelay.dtsi"
118 #include "dra72x-mmc-iodelay.dtsi"
129 #include <dt-bindings/net/ti-dp83867.h>
....@@ -18,6 +15,33 @@
1815 memory {
1916 device_type = "memory";
2017 reg = <0x0 0x80000000 0x0 0x80000000>; /* 2GB */
18
+ };
19
+
20
+ reserved-memory {
21
+ #address-cells = <2>;
22
+ #size-cells = <2>;
23
+ ranges;
24
+
25
+ ipu2_memory_region: ipu2-memory@95800000 {
26
+ compatible = "shared-dma-pool";
27
+ reg = <0x0 0x95800000 0x0 0x3800000>;
28
+ reusable;
29
+ status = "okay";
30
+ };
31
+
32
+ dsp1_memory_region: dsp1-memory@99000000 {
33
+ compatible = "shared-dma-pool";
34
+ reg = <0x0 0x99000000 0x0 0x4000000>;
35
+ reusable;
36
+ status = "okay";
37
+ };
38
+
39
+ ipu1_memory_region: ipu1-memory@9d000000 {
40
+ compatible = "shared-dma-pool";
41
+ reg = <0x0 0x9d000000 0x0 0x2000000>;
42
+ reusable;
43
+ status = "okay";
44
+ };
2145 };
2246
2347 vpo_sd_1v8_3v3: gpio-regulator-TPS74801 {
....@@ -195,26 +219,26 @@
195219 vqmmc-supply = <&evm_1v8_sw>;
196220 };
197221
198
-&mac {
222
+&mac_sw {
199223 mode-gpios = <&pcf_gpio_21 4 GPIO_ACTIVE_LOW>,
200224 <&pcf_hdmi 9 GPIO_ACTIVE_LOW>, /* P11 */
201225 <&pcf_hdmi 10 GPIO_ACTIVE_LOW>; /* P12 */
202
- dual_emac;
226
+ status = "okay";
203227 };
204228
205
-&cpsw_emac0 {
206
- phy_id = <&davinci_mdio>, <2>;
229
+&cpsw_port1 {
230
+ phy-handle = <&dp83867_0>;
207231 phy-mode = "rgmii-id";
208
- dual_emac_res_vlan = <1>;
232
+ ti,dual-emac-pvid = <1>;
209233 };
210234
211
-&cpsw_emac1 {
212
- phy_id = <&davinci_mdio>, <3>;
235
+&cpsw_port2 {
236
+ phy-handle = <&dp83867_1>;
213237 phy-mode = "rgmii-id";
214
- dual_emac_res_vlan = <2>;
238
+ ti,dual-emac-pvid = <2>;
215239 };
216240
217
-&davinci_mdio {
241
+&davinci_mdio_sw {
218242 dp83867_0: ethernet-phy@2 {
219243 reg = <2>;
220244 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
....@@ -273,3 +297,18 @@
273297 &extcon_usb2 {
274298 vbus-gpio = <&pcf_lcd 15 GPIO_ACTIVE_HIGH>;
275299 };
300
+
301
+&ipu2 {
302
+ status = "okay";
303
+ memory-region = <&ipu2_memory_region>;
304
+};
305
+
306
+&ipu1 {
307
+ status = "okay";
308
+ memory-region = <&ipu1_memory_region>;
309
+};
310
+
311
+&dsp1 {
312
+ status = "okay";
313
+ memory-region = <&dsp1_memory_region>;
314
+};