File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed
include/zephyr/dt-bindings/ethernet Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 9
9
#include <dt-bindings/i2c/i2c.h>
10
10
#include <zephyr/dt-bindings/adc/adc.h>
11
11
#include <zephyr/dt-bindings/pwm/pwm.h>
12
+ #include <zephyr/dt-bindings/ethernet/dsa_tag_proto.h>
12
13
13
14
/ {
14
15
aliases {
663
664
#size-cells = <0>;
664
665
665
666
switch_port0: switch_port@0 {
667
+ compatible = "zephyr,dsa-port";
666
668
reg = <0>;
667
669
status = "disabled";
668
670
};
669
671
670
672
switch_port1: switch_port@1 {
673
+ compatible = "zephyr,dsa-port";
671
674
reg = <1>;
672
675
status = "disabled";
673
676
};
674
677
675
678
switch_port2: switch_port@2 {
679
+ compatible = "zephyr,dsa-port";
676
680
reg = <2>;
677
681
status = "disabled";
678
682
};
679
683
680
684
switch_port3: switch_port@3 {
685
+ compatible = "zephyr,dsa-port";
681
686
reg = <3>;
682
687
status = "disabled";
683
688
};
684
689
685
690
/* Internal port */
686
691
switch_port4: switch_port@4 {
692
+ compatible = "zephyr,dsa-port";
687
693
reg = <4>;
688
694
ethernet = <&enetc_psi1>;
689
695
phy-connection-type = "internal";
696
+ dsa-tag-protocol = <DSA_TAG_PROTO_NOTAG>;
690
697
status = "disabled";
691
698
};
692
699
};
Original file line number Diff line number Diff line change 4
4
description : DSA Device
5
5
6
6
child-binding :
7
- description : Properties of slave port
7
+ description : Properties of port
8
+
9
+ compatible : " zephyr,dsa-port"
8
10
9
11
include :
10
12
- name : pinctrl-device.yaml
@@ -25,3 +27,8 @@ child-binding:
25
27
description :
26
28
A phandle to a valid Ethernet device node. This host
27
29
device is what the switch port is connected to.
30
+ dsa-tag-protocol :
31
+ type : int
32
+ description :
33
+ Tag protocol the switch using. The <zephyr/dt-bindings/ethernet/dsa_tag_proto.h>
34
+ which provides macros should be included to use.
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2025 NXP
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+
6
+ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_DSA_TAG_PROTO_H_
7
+ #define ZEPHYR_INCLUDE_DT_BINDINGS_DSA_TAG_PROTO_H_
8
+
9
+ /* No switch tag protocol supported */
10
+ #define DSA_TAG_PROTO_NOTAG 0
11
+ /* NXP NETC switch tag protocol */
12
+ #define DSA_TAG_PROTO_NETC 1
13
+
14
+ #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_DSA_TAG_PROTO_H_ */
You can’t perform that action at this time.
0 commit comments