@@ -13,19 +13,19 @@ Required properties:
1313- interrupts: should contain the DSA Fabric and rcb interrupt.
1414- reg: specifies base physical address(es) and size of the device registers.
1515 The first region is external interface control register base and size(optional,
16- only be used when subctrl-syscon is not exists ). It is recommended using
16+ only used when subctrl-syscon does not exist ). It is recommended using
1717 subctrl-syscon rather than this address.
18- The second region is SerDes base register and size(optional, only be used when
19- serdes-syscon in port node is not exists . It is recommended using
18+ The second region is SerDes base register and size(optional, only used when
19+ serdes-syscon in port node does not exist) . It is recommended using
2020 serdes-syscon rather than this address.
2121 The third region is the PPE register base and size.
2222 The fourth region is dsa fabric base register and size. It is not required for
2323 single-port mode.
2424- reg-names: may be ppe-base and(or) dsaf-base. It is used to find the
2525 corresponding reg's index.
2626
27- - phy-handle: phy handle of physicl port, 0 if not any phy device. It is optional
28- attribute. If port node is exists, phy-handle in each port node will be used.
27+ - phy-handle: phy handle of physical port, 0 if not any phy device. It is optional
28+ attribute. If port node exists, phy-handle in each port node will be used.
2929 see ethernet.txt [1].
3030- subctrl-syscon: is syscon handle for external interface control register.
3131- reset-field-offset: is offset of reset field. Its value depends on the hardware
@@ -35,14 +35,12 @@ Required properties:
3535
3636- port: subnodes of dsaf. A dsaf node may contain several port nodes(Depending
3737 on mode of dsaf). Port node contain some attributes listed below:
38- - port-id : is physical port index in one dsaf.
39- - phy-handle: phy handle of physicl port. It is not required if there isn't
38+ - reg : is physical port index in one dsaf.
39+ - phy-handle: phy handle of physical port. It is not required if there isn't
4040 phy device. see ethernet.txt [1].
4141- serdes-syscon: is syscon handle for SerDes register.
42- - cpld-syscon: is syscon handle for cpld register. It is not required if there
43- isn't cpld device.
44- - cpld-ctrl-reg: is cpld register offset. It is not required if there isn't
45- cpld-syscon.
42+ - cpld-syscon: is syscon handle + register offset pair for cpld register. It is
43+ not required if there isn't cpld device.
4644- port-rst-offset: is offset of reset field for each port in dsaf. Its value
4745 depends on the hardware user manual.
4846- port-mode-offset: is offset of port mode field for each port in dsaf. Its
@@ -72,14 +70,14 @@ dsaf0: dsa@c7000000 {
7270 desc-num = <1024>;
7371 dma-coherent;
7472
75- prot @0 {
76- port-id = 0;
73+ port @0 {
74+ reg = 0;
7775 phy-handle = <&phy0>;
7876 serdes-syscon = <&serdes>;
7977 };
8078
81- prot @1 {
82- port-id = 1;
79+ port @1 {
80+ reg = 1;
8381 serdes-syscon = <&serdes>;
8482 };
8583};
0 commit comments