brintos

brintos / linux-shallow public Read only

0
0
Text · 4.3 KiB · 1f1f886 Raw
149 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/phy/phy-rockchip-usbdp.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Rockchip USBDP Combo PHY with Samsung IP block8 9maintainers:10  - Frank Wang <frank.wang@rock-chips.com>11  - Zhang Yubing <yubing.zhang@rock-chips.com>12 13properties:14  compatible:15    enum:16      - rockchip,rk3588-usbdp-phy17 18  reg:19    maxItems: 120 21  "#phy-cells":22    description: |23      Cell allows setting the type of the PHY. Possible values are:24      - PHY_TYPE_USB325      - PHY_TYPE_DP26    const: 127 28  clocks:29    maxItems: 430 31  clock-names:32    items:33      - const: refclk34      - const: immortal35      - const: pclk36      - const: utmi37 38  resets:39    maxItems: 540 41  reset-names:42    items:43      - const: init44      - const: cmn45      - const: lane46      - const: pcs_apb47      - const: pma_apb48 49  rockchip,dp-lane-mux:50    $ref: /schemas/types.yaml#/definitions/uint32-array51    minItems: 252    maxItems: 453    items:54      maximum: 355    description:56      An array of physical Type-C lanes indexes. Position of an entry57      determines the DisplayPort (DP) lane index, while the value of an entry58      indicates physical Type-C lane. The supported DP lanes number are 2 or 4.59      e.g. for 2 lanes DP lanes map, we could have "rockchip,dp-lane-mux = <2,60      3>;", assuming DP lane0 on Type-C phy lane2, DP lane1 on Type-C phy61      lane3. For 4 lanes DP lanes map, we could have "rockchip,dp-lane-mux =62      <0, 1, 2, 3>;", assuming DP lane0 on Type-C phy lane0, DP lane1 on Type-C63      phy lane1, DP lane2 on Type-C phy lane2, DP lane3 on Type-C phy lane3. If64      DP lanes are mapped by DisplayPort Alt mode, this property is not needed.65 66  rockchip,u2phy-grf:67    $ref: /schemas/types.yaml#/definitions/phandle68    description:69      Phandle to the syscon managing the 'usb2 phy general register files'.70 71  rockchip,usb-grf:72    $ref: /schemas/types.yaml#/definitions/phandle73    description:74      Phandle to the syscon managing the 'usb general register files'.75 76  rockchip,usbdpphy-grf:77    $ref: /schemas/types.yaml#/definitions/phandle78    description:79      Phandle to the syscon managing the 'usbdp phy general register files'.80 81  rockchip,vo-grf:82    $ref: /schemas/types.yaml#/definitions/phandle83    description:84      Phandle to the syscon managing the 'video output general register files'.85      When select the DP lane mapping will request its phandle.86 87  sbu1-dc-gpios:88    description:89      GPIO connected to the SBU1 line of the USB-C connector via a big resistor90      (~100K) to apply a DC offset for signalling the connector orientation.91    maxItems: 192 93  sbu2-dc-gpios:94    description:95      GPIO connected to the SBU2 line of the USB-C connector via a big resistor96      (~100K) to apply a DC offset for signalling the connector orientation.97    maxItems: 198 99  orientation-switch:100    description: Flag the port as possible handler of orientation switching101    type: boolean102 103  mode-switch:104    description: Flag the port as possible handler of altmode switching105    type: boolean106 107  port:108    $ref: /schemas/graph.yaml#/properties/port109    description:110      A port node to link the PHY to a TypeC controller for the purpose of111      handling orientation switching.112 113required:114  - compatible115  - reg116  - clocks117  - clock-names118  - resets119  - reset-names120  - "#phy-cells"121 122additionalProperties: false123 124examples:125  - |126    #include <dt-bindings/clock/rockchip,rk3588-cru.h>127    #include <dt-bindings/reset/rockchip,rk3588-cru.h>128 129    usbdp_phy0: phy@fed80000 {130      compatible = "rockchip,rk3588-usbdp-phy";131      reg = <0xfed80000 0x10000>;132      #phy-cells = <1>;133      clocks = <&cru CLK_USBDPPHY_MIPIDCPPHY_REF>,134               <&cru CLK_USBDP_PHY0_IMMORTAL>,135               <&cru PCLK_USBDPPHY0>,136               <&u2phy0>;137      clock-names = "refclk", "immortal", "pclk", "utmi";138      resets = <&cru SRST_USBDP_COMBO_PHY0_INIT>,139               <&cru SRST_USBDP_COMBO_PHY0_CMN>,140               <&cru SRST_USBDP_COMBO_PHY0_LANE>,141               <&cru SRST_USBDP_COMBO_PHY0_PCS>,142               <&cru SRST_P_USBDPPHY0>;143      reset-names = "init", "cmn", "lane", "pcs_apb", "pma_apb";144      rockchip,u2phy-grf = <&usb2phy0_grf>;145      rockchip,usb-grf = <&usb_grf>;146      rockchip,usbdpphy-grf = <&usbdpphy0_grf>;147      rockchip,vo-grf = <&vo0_grf>;148    };149