Skip to content

Commit 041794b

Browse files
yangbolu1991mmahadevan108
authored andcommitted
dts: arm: nxp_imx943_m33: add NETC switch node
Added NETC switch node. Signed-off-by: Yangbo Lu <[email protected]>
1 parent 2295a8e commit 041794b

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

dts/arm/nxp/nxp_imx943_m33.dtsi

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include <arm/armv8-m.dtsi>
88
#include <zephyr/dt-bindings/clock/imx943_clock.h>
9+
#include <zephyr/dt-bindings/ethernet/dsa_tag_proto.h>
910
#include <mem.h>
1011
#include <freq.h>
1112

@@ -332,6 +333,18 @@
332333
status = "disabled";
333334
};
334335

336+
/* Internal port */
337+
enetc_psi3: ethernet@4cd40000 {
338+
compatible = "nxp,imx-netc-psi";
339+
reg = <0x4cd40000 0x10000>,
340+
<0x4ca00000 0x1000>;
341+
reg-names = "port", "pfconfig";
342+
mac-index = <3>;
343+
si-index = <3>;
344+
phy-connection-type = "internal";
345+
status = "disabled";
346+
};
347+
335348
netc_ptp_clock0: ptp_clock@4cd80000 {
336349
compatible = "nxp,netc-ptp-clock";
337350
reg = <0x4cd80000 0x10000>;
@@ -363,6 +376,43 @@
363376
#size-cells = <0>;
364377
status = "disabled";
365378
};
379+
380+
netc_switch: switch {
381+
compatible = "nxp,netc-switch";
382+
status = "disabled";
383+
#address-cells = <1>;
384+
#size-cells = <0>;
385+
386+
switch_port0: switch_port@0 {
387+
compatible = "zephyr,dsa-port";
388+
reg = <0>;
389+
status = "disabled";
390+
};
391+
392+
switch_port1: switch_port@1 {
393+
compatible = "zephyr,dsa-port";
394+
reg = <1>;
395+
status = "disabled";
396+
};
397+
398+
/* Parallel interface is muxed with enetc_psi0. */
399+
switch_port2: switch_port@2 {
400+
compatible = "zephyr,dsa-port";
401+
reg = <2>;
402+
status = "disabled";
403+
};
404+
405+
/* Internal port */
406+
switch_port3: switch_port@3 {
407+
compatible = "zephyr,dsa-port";
408+
reg = <3>;
409+
ethernet = <&enetc_psi3>;
410+
phy-connection-type = "internal";
411+
dsa-tag-protocol = <DSA_TAG_PROTO_NETC>;
412+
status = "disabled";
413+
};
414+
};
415+
366416
};
367417
};
368418
};

0 commit comments

Comments
 (0)