starfive,jh7110-pcie-phy.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/phy/starfive,jh7110-pcie-phy.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: StarFive JH7110 PCIe 2.0 PHY
  7. maintainers:
  8. - Minda Chen <minda.chen@starfivetech.com>
  9. properties:
  10. compatible:
  11. const: starfive,jh7110-pcie-phy
  12. reg:
  13. maxItems: 1
  14. "#phy-cells":
  15. const: 0
  16. starfive,sys-syscon:
  17. $ref: /schemas/types.yaml#/definitions/phandle-array
  18. items:
  19. - items:
  20. - description: phandle to System Register Controller sys_syscon node.
  21. - description: PHY connect offset of SYS_SYSCONSAIF__SYSCFG register for USB PHY.
  22. description:
  23. The phandle to System Register Controller syscon node and the PHY connect offset
  24. of SYS_SYSCONSAIF__SYSCFG register. Connect PHY to USB3 controller.
  25. starfive,stg-syscon:
  26. $ref: /schemas/types.yaml#/definitions/phandle-array
  27. items:
  28. - items:
  29. - description: phandle to System Register Controller stg_syscon node.
  30. - description: PHY mode offset of STG_SYSCONSAIF__SYSCFG register.
  31. - description: PHY enable for USB offset of STG_SYSCONSAIF__SYSCFG register.
  32. description:
  33. The phandle to System Register Controller syscon node and the offset
  34. of STG_SYSCONSAIF__SYSCFG register for PCIe PHY. Total 2 regsisters offset.
  35. required:
  36. - compatible
  37. - reg
  38. - "#phy-cells"
  39. additionalProperties: false
  40. examples:
  41. - |
  42. phy@10210000 {
  43. compatible = "starfive,jh7110-pcie-phy";
  44. reg = <0x10210000 0x10000>;
  45. #phy-cells = <0>;
  46. starfive,sys-syscon = <&sys_syscon 0x18>;
  47. starfive,stg-syscon = <&stg_syscon 0x148 0x1f4>;
  48. };