Commit 64071192 authored by Jiafei Pan's avatar Jiafei Pan Committed by Henrik Brix Andersen
Browse files

dts: arm64: imx943: add dsa switch dts nodes



Added dts nodes for DSA networking switch.

Signed-off-by: default avatarJiafei Pan <Jiafei.Pan@nxp.com>
parent c10f64c9
Loading
Loading
Loading
Loading
+52 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
#include <freq.h>
#include <arm64/armv8-a.dtsi>
#include <zephyr/dt-bindings/clock/imx943_clock.h>
#include <zephyr/dt-bindings/ethernet/dsa_tag_proto.h>
#include <zephyr/dt-bindings/interrupt-controller/arm-gic.h>

/ {
@@ -401,6 +402,18 @@
				status = "disabled";
			};

			/* Internal port */
			enetc_psi3: ethernet@4cd40000 {
				compatible = "nxp,imx-netc-psi";
				reg = <0x4cd40000 0x40000>,
				      <0x4ca00000 0x1000>;
				reg-names = "port", "pfconfig";
				mac-index = <3>;
				si-index = <3>;
				phy-connection-type = "internal";
				status = "disabled";
			};

			netc_ptp_clock0: ptp_clock@4cd80000 {
				compatible = "nxp,netc-ptp-clock";
				reg = <0x4cd80000 0x10000>;
@@ -432,6 +445,45 @@
				#size-cells = <0>;
				status = "disabled";
			};

			netc_switch: switch@4cc00000 {
				compatible = "nxp,netc-switch";
				reg = <0x4cc00000 0x40000>,
					<0x4ca02000 0x1000>;
				reg-names = "base", "pfconfig";
				#address-cells = <1>;
				#size-cells = <0>;
				status = "disabled";

				switch_port0: switch_port@0 {
					compatible = "zephyr,dsa-port";
					reg = <0>;
					status = "disabled";
				};

				switch_port1: switch_port@1 {
					compatible = "zephyr,dsa-port";
					reg = <1>;
					status = "disabled";
				};

				/* Parallel interface is muxed with enetc_psi0. */
				switch_port2: switch_port@2 {
					compatible = "zephyr,dsa-port";
					reg = <2>;
					status = "disabled";
				};

				/* Internal port */
				switch_port3: switch_port@3 {
					compatible = "zephyr,dsa-port";
					reg = <3>;
					ethernet = <&enetc_psi3>;
					phy-connection-type = "internal";
					dsa-tag-protocol = <DSA_TAG_PROTO_NETC>;
					status = "disabled";
				};
			};
		};
	};
};