|
6 | 6 |
|
7 | 7 | #include <arm/armv8-m.dtsi>
|
8 | 8 | #include <zephyr/dt-bindings/clock/imx943_clock.h>
|
| 9 | +#include <zephyr/dt-bindings/ethernet/dsa_tag_proto.h> |
9 | 10 | #include <mem.h>
|
10 | 11 | #include <freq.h>
|
11 | 12 |
|
|
332 | 333 | status = "disabled";
|
333 | 334 | };
|
334 | 335 |
|
| 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 | + |
335 | 348 | netc_ptp_clock0: ptp_clock@4cd80000 {
|
336 | 349 | compatible = "nxp,netc-ptp-clock";
|
337 | 350 | reg = <0x4cd80000 0x10000>;
|
|
363 | 376 | #size-cells = <0>;
|
364 | 377 | status = "disabled";
|
365 | 378 | };
|
| 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 | + |
366 | 416 | };
|
367 | 417 | };
|
368 | 418 | };
|
|
0 commit comments