linux 設備樹中 dwc3 節點的phys參數含義


找了好久今天找到了,記錄一下:

 

&dwc3_0 {

...

phys = <&lane3 PHY_TYPE_USB3 1 2 26000000>;

...

}

 

Required properties (port (child) nodes):
lane0:
- #phy-cells    : Should be 4
          Cell after port phandle is device type from:
            - <PHY_TYPE_PCIE 0 LANE_NUM FREQUENCY>
            - <PHY_TYPE_SATA 0 LANE_NUM FREQUENCY>
            - <PHY_TYPE_USB3 0 LANE_NUM FREQUENCY>
            - <PHY_TYPE_DP 1 LANE_NUM FREQUENCY>
            - <PHY_TYPE_SGMII 0 LANE_NUM FREQUENCY>
lane1:
- #phy-cells    : Should be 4
          Cell after port phandle is device type from:
            - <PHY_TYPE_PCIE 1 LANE_NUM FREQUENCY>
            - <PHY_TYPE_SATA 1 LANE_NUM FREQUENCY>
            - <PHY_TYPE_USB3 0 LANE_NUM FREQUENCY>
            - <PHY_TYPE_DP 0 LANE_NUM FREQUENCY>
            - <PHY_TYPE_SGMII 1 LANE_NUM FREQUENCY>
lane2:
- #phy-cells    : Should be 4
          Cell after port phandle is device type from:
            - <PHY_TYPE_PCIE 2 LANE_NUM FREQUENCY>
            - <PHY_TYPE_SATA 0 LANE_NUM FREQUENCY>
            - <PHY_TYPE_USB3 0 LANE_NUM FREQUENCY>
            - <PHY_TYPE_DP 1 LANE_NUM FREQUENC>
            - <PHY_TYPE_SGMII 2 LANE_NUM FREQUENCY>
lane3:
- #phy-cells    : Should be 4
          Cell after port phandle is device type from:
            - <PHY_TYPE_PCIE 3 LANE_NUM FREQUENCY>
            - <PHY_TYPE_SATA 1 LANE_NUM FREQUENCY>
            - <PHY_TYPE_USB3 1 LANE_NUM FREQUENCY >
            - <PHY_TYPE_DP 0 LANE_NUM FREQUENCY>
            - <PHY_TYPE_SGMII 3 LANE_NUM FREQUENCY>

Specifying phy control of devices
=================================

Device nodes should specify the configuration required in their "phys"
property, containing a phandle to the phy port node and a device type.

phys = <PHANDLE CONTOLLER_TYPE CONTROLLER_INSTANCE LANE_NUM LANE_FREQ>;

PHANDLE                 = &lane0 or &lane1 or &lane2 or &lane3
CONTROLLER_TYPE         = PHY_TYPE_PCIE or PHY_TYPE_SATA or PHY_TYPE_USB
              or PHY_TYPE_DP or PHY_TYPE_SGMII
CONTROLLER_INSTANCE     = Depends on controller type used, can be any of
                PHY_TYPE_PCIE : 0 or 1 or 2 or 3
                PHY_TYPE_SATA : 0 or 1
                PHY_TYPE_USB  : 0 or 1
                PHY_TYPE_DP   : 0 or 1
                PHY_TYPE_SGMII: 0 or 1 or 2 or 3
LANE_NUM                = Depends on which lane clock is used as ref clk, can be
              0 or 1 or 2 or 3
LANE_FREQ               = Frequency that controller can operate, can be any of
              19.2Mhz,20Mhz,24Mhz,26Mhz,27Mhz,28.4Mhz,40Mhz,52Mhz,
              100Mhz,108Mhz,125Mhz,135Mhz,150Mhz

順便告訴大家去哪里找其他的設備樹上的參數含義:

linux-xlnx-xilinx-v201x.x/Documentation/devicetree/bindings/*** 源碼下,明白了嗎?

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM