0088-dt-bindings-phy-Add-StarFive-JH7110-PCIe-PHY.patch 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. From d57245d420a2ced6a588cc6e03e2eaacbbf1bfb2 Mon Sep 17 00:00:00 2001
  2. From: Minda Chen <[email protected]>
  3. Date: Thu, 18 May 2023 19:27:45 +0800
  4. Subject: [PATCH 088/122] dt-bindings: phy: Add StarFive JH7110 PCIe PHY
  5. Add StarFive JH7110 SoC PCIe 2.0 PHY dt-binding.
  6. PCIe PHY0 (phy@10210000) can be used as USB 3.0 PHY.
  7. Signed-off-by: Minda Chen <[email protected]>
  8. Reviewed-by: Hal Feng <[email protected]>
  9. Reviewed-by: Rob Herring <[email protected]>
  10. ---
  11. .../phy/starfive,jh7110-pcie-phy.yaml | 58 +++++++++++++++++++
  12. 1 file changed, 58 insertions(+)
  13. create mode 100644 Documentation/devicetree/bindings/phy/starfive,jh7110-pcie-phy.yaml
  14. --- /dev/null
  15. +++ b/Documentation/devicetree/bindings/phy/starfive,jh7110-pcie-phy.yaml
  16. @@ -0,0 +1,58 @@
  17. +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  18. +%YAML 1.2
  19. +---
  20. +$id: http://devicetree.org/schemas/phy/starfive,jh7110-pcie-phy.yaml#
  21. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  22. +
  23. +title: StarFive JH7110 PCIe 2.0 PHY
  24. +
  25. +maintainers:
  26. + - Minda Chen <[email protected]>
  27. +
  28. +properties:
  29. + compatible:
  30. + const: starfive,jh7110-pcie-phy
  31. +
  32. + reg:
  33. + maxItems: 1
  34. +
  35. + "#phy-cells":
  36. + const: 0
  37. +
  38. + starfive,sys-syscon:
  39. + $ref: /schemas/types.yaml#/definitions/phandle-array
  40. + items:
  41. + - items:
  42. + - description: phandle to System Register Controller sys_syscon node.
  43. + - description: PHY connect offset of SYS_SYSCONSAIF__SYSCFG register for USB PHY.
  44. + description:
  45. + The phandle to System Register Controller syscon node and the PHY connect offset
  46. + of SYS_SYSCONSAIF__SYSCFG register. Connect PHY to USB3 controller.
  47. +
  48. + starfive,stg-syscon:
  49. + $ref: /schemas/types.yaml#/definitions/phandle-array
  50. + items:
  51. + - items:
  52. + - description: phandle to System Register Controller stg_syscon node.
  53. + - description: PHY mode offset of STG_SYSCONSAIF__SYSCFG register.
  54. + - description: PHY enable for USB offset of STG_SYSCONSAIF__SYSCFG register.
  55. + description:
  56. + The phandle to System Register Controller syscon node and the offset
  57. + of STG_SYSCONSAIF__SYSCFG register for PCIe PHY. Total 2 regsisters offset.
  58. +
  59. +required:
  60. + - compatible
  61. + - reg
  62. + - "#phy-cells"
  63. +
  64. +additionalProperties: false
  65. +
  66. +examples:
  67. + - |
  68. + phy@10210000 {
  69. + compatible = "starfive,jh7110-pcie-phy";
  70. + reg = <0x10210000 0x10000>;
  71. + #phy-cells = <0>;
  72. + starfive,sys-syscon = <&sys_syscon 0x18>;
  73. + starfive,stg-syscon = <&stg_syscon 0x148 0x1f4>;
  74. + };