forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
....@@ -1,19 +1,16 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Support for CompuLab CL-SOM-AM57x System-on-Module
34 *
45 * Copyright (C) 2015 CompuLab Ltd. - http://www.compulab.co.il/
56 * Author: Dmitry Lifshitz <lifshitz@compulab.co.il>
6
- *
7
- * This program is free software; you can redistribute it and/or modify it
8
- * under the terms of the GNU General Public License version 2 as published by
9
- * the Free Software Foundation.
107 */
118
129 /dts-v1/;
1310
1411 #include <dt-bindings/gpio/gpio.h>
1512 #include <dt-bindings/interrupt-controller/irq.h>
16
-#include "dra74x.dtsi"
13
+#include "am5728.dtsi"
1714
1815 / {
1916 model = "CompuLab CL-SOM-AM57x";
....@@ -457,20 +454,20 @@
457454
458455 &mailbox5 {
459456 status = "okay";
460
- mbox_ipu1_ipc3x: mbox_ipu1_ipc3x {
457
+ mbox_ipu1_ipc3x: mbox-ipu1-ipc3x {
461458 status = "okay";
462459 };
463
- mbox_dsp1_ipc3x: mbox_dsp1_ipc3x {
460
+ mbox_dsp1_ipc3x: mbox-dsp1-ipc3x {
464461 status = "okay";
465462 };
466463 };
467464
468465 &mailbox6 {
469466 status = "okay";
470
- mbox_ipu2_ipc3x: mbox_ipu2_ipc3x {
467
+ mbox_ipu2_ipc3x: mbox-ipu2-ipc3x {
471468 status = "okay";
472469 };
473
- mbox_dsp2_ipc3x: mbox_dsp2_ipc3x {
470
+ mbox_dsp2_ipc3x: mbox-dsp2-ipc3x {
474471 status = "okay";
475472 };
476473 };
....@@ -549,30 +546,37 @@
549546 };
550547 };
551548
552
-&mac {
549
+&mac_sw {
553550 status = "okay";
554551 pinctrl-names = "default", "sleep";
555552 pinctrl-0 = <&cpsw_pins_default>;
556553 pinctrl-1 = <&cpsw_pins_sleep>;
557
- dual_emac;
558554 };
559555
560
-&cpsw_emac0 {
561
- phy_id = <&davinci_mdio>, <0>;
556
+&cpsw_port1 {
557
+ phy-handle = <&ethphy0>;
562558 phy-mode = "rgmii-txid";
563
- dual_emac_res_vlan = <0>;
559
+ ti,dual-emac-pvid = <1>;
564560 };
565561
566
-&cpsw_emac1 {
567
- phy_id = <&davinci_mdio>, <1>;
562
+&cpsw_port2 {
563
+ phy-handle = <&ethphy1>;
568564 phy-mode = "rgmii-txid";
569
- dual_emac_res_vlan = <1>;
565
+ ti,dual-emac-pvid = <2>;
570566 };
571567
572
-&davinci_mdio {
568
+&davinci_mdio_sw {
573569 pinctrl-names = "default", "sleep";
574570 pinctrl-0 = <&davinci_mdio_pins_default>;
575571 pinctrl-1 = <&davinci_mdio_pins_sleep>;
572
+
573
+ ethphy0: ethernet-phy@0 {
574
+ reg = <0>;
575
+ };
576
+
577
+ ethphy1: ethernet-phy@1 {
578
+ reg = <1>;
579
+ };
576580 };
577581
578582 &usb2_phy1 {
....@@ -606,12 +610,11 @@
606610 >;
607611 };
608612
609
-&gpio3 {
610
- status = "okay";
613
+&gpio3_target {
611614 ti,no-reset-on-init;
612615 };
613616
614
-&gpio2 {
617
+&gpio2_target {
615618 status = "okay";
616619 ti,no-reset-on-init;
617620 };