0074-dt-bindings-phy-Add-starfive-jh7110-dphy-rx.patch 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. From 7492ebbdd926da258f9abea5c41a9f8c4ec48631 Mon Sep 17 00:00:00 2001
  2. From: Changhuang Liang <[email protected]>
  3. Date: Mon, 29 May 2023 05:15:01 -0700
  4. Subject: [PATCH 074/122] dt-bindings: phy: Add starfive,jh7110-dphy-rx
  5. StarFive SoCs like the jh7110 use a MIPI D-PHY RX controller based on
  6. a M31 IP. Add a binding for it.
  7. Signed-off-by: Changhuang Liang <[email protected]>
  8. ---
  9. .../bindings/phy/starfive,jh7110-dphy-rx.yaml | 71 +++++++++++++++++++
  10. 1 file changed, 71 insertions(+)
  11. create mode 100644 Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-rx.yaml
  12. --- /dev/null
  13. +++ b/Documentation/devicetree/bindings/phy/starfive,jh7110-dphy-rx.yaml
  14. @@ -0,0 +1,71 @@
  15. +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  16. +%YAML 1.2
  17. +---
  18. +$id: http://devicetree.org/schemas/phy/starfive,jh7110-dphy-rx.yaml#
  19. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  20. +
  21. +title: StarFive SoC MIPI D-PHY Rx Controller
  22. +
  23. +maintainers:
  24. + - Jack Zhu <[email protected]>
  25. + - Changhuang Liang <[email protected]>
  26. +
  27. +description:
  28. + The StarFive SoC uses the MIPI CSI D-PHY based on M31 IP to transfer
  29. + CSI camera data.
  30. +
  31. +properties:
  32. + compatible:
  33. + const: starfive,jh7110-dphy-rx
  34. +
  35. + reg:
  36. + maxItems: 1
  37. +
  38. + clocks:
  39. + items:
  40. + - description: config clock
  41. + - description: reference clock
  42. + - description: escape mode transmit clock
  43. +
  44. + clock-names:
  45. + items:
  46. + - const: cfg
  47. + - const: ref
  48. + - const: tx
  49. +
  50. + resets:
  51. + items:
  52. + - description: DPHY_HW reset
  53. + - description: DPHY_B09_ALWAYS_ON reset
  54. +
  55. + power-domains:
  56. + maxItems: 1
  57. +
  58. + "#phy-cells":
  59. + const: 0
  60. +
  61. +required:
  62. + - compatible
  63. + - reg
  64. + - clocks
  65. + - clock-names
  66. + - resets
  67. + - power-domains
  68. + - "#phy-cells"
  69. +
  70. +additionalProperties: false
  71. +
  72. +examples:
  73. + - |
  74. + phy@19820000 {
  75. + compatible = "starfive,jh7110-dphy-rx";
  76. + reg = <0x19820000 0x10000>;
  77. + clocks = <&ispcrg 3>,
  78. + <&ispcrg 4>,
  79. + <&ispcrg 5>;
  80. + clock-names = "cfg", "ref", "tx";
  81. + resets = <&ispcrg 2>,
  82. + <&ispcrg 3>;
  83. + power-domains = <&dphy_pwrc 1>;
  84. + #phy-cells = <0>;
  85. + };