Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation: Bindings: Update DT binding for hns dsaf node

This patch changes property port-id to reg in dsaf port node,
removes property cpld-ctrl-reg, and fixes some typos.

Signed-off-by: Yisen Zhuang <yisen.zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Yisen.Zhuang\(Zhuangyuzeng\) and committed by
David S. Miller
a1ecde2c 0211b8fb

+13 -15
+13 -15
Documentation/devicetree/bindings/net/hisilicon-hns-dsaf.txt
··· 13 13 - interrupts: should contain the DSA Fabric and rcb interrupt. 14 14 - reg: specifies base physical address(es) and size of the device registers. 15 15 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 17 17 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 20 20 serdes-syscon rather than this address. 21 21 The third region is the PPE register base and size. 22 22 The fourth region is dsa fabric base register and size. It is not required for ··· 24 24 - reg-names: may be ppe-base and(or) dsaf-base. It is used to find the 25 25 corresponding reg's index. 26 26 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. 29 29 see ethernet.txt [1]. 30 30 - subctrl-syscon: is syscon handle for external interface control register. 31 31 - reset-field-offset: is offset of reset field. Its value depends on the hardware ··· 35 35 36 36 - port: subnodes of dsaf. A dsaf node may contain several port nodes(Depending 37 37 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 40 40 phy device. see ethernet.txt [1]. 41 41 - 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. 46 44 - port-rst-offset: is offset of reset field for each port in dsaf. Its value 47 45 depends on the hardware user manual. 48 46 - port-mode-offset: is offset of port mode field for each port in dsaf. Its ··· 70 72 desc-num = <1024>; 71 73 dma-coherent; 72 74 73 - prot@0 { 74 - port-id = 0; 75 + port@0 { 76 + reg = 0; 75 77 phy-handle = <&phy0>; 76 78 serdes-syscon = <&serdes>; 77 79 }; 78 80 79 - prot@1 { 80 - port-id = 1; 81 + port@1 { 82 + reg = 1; 81 83 serdes-syscon = <&serdes>; 82 84 }; 83 85 };