rockchip-mipi-dphy-rx0.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/phy/rockchip-mipi-dphy-rx0.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Rockchip SoC MIPI RX0 D-PHY
  7. maintainers:
  8. - Helen Koike <helen.koike@collabora.com>
  9. - Ezequiel Garcia <ezequiel@collabora.com>
  10. description: |
  11. The Rockchip SoC has a MIPI D-PHY bus with an RX0 entry which connects to
  12. the ISP1 (Image Signal Processing unit v1.0) for CSI cameras.
  13. properties:
  14. compatible:
  15. const: rockchip,rk3399-mipi-dphy-rx0
  16. clocks:
  17. items:
  18. - description: MIPI D-PHY ref clock
  19. - description: MIPI D-PHY RX0 cfg clock
  20. - description: Video in/out general register file clock
  21. clock-names:
  22. items:
  23. - const: dphy-ref
  24. - const: dphy-cfg
  25. - const: grf
  26. '#phy-cells':
  27. const: 0
  28. power-domains:
  29. description: Video in/out power domain.
  30. maxItems: 1
  31. required:
  32. - compatible
  33. - clocks
  34. - clock-names
  35. - '#phy-cells'
  36. - power-domains
  37. additionalProperties: false
  38. examples:
  39. - |
  40. /*
  41. * MIPI D-PHY RX0 use registers in "general register files", it
  42. * should be a child of the GRF.
  43. *
  44. * grf: syscon@ff770000 {
  45. * compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd";
  46. * ...
  47. * };
  48. */
  49. #include <dt-bindings/clock/rk3399-cru.h>
  50. #include <dt-bindings/power/rk3399-power.h>
  51. mipi_dphy_rx0: mipi-dphy-rx0 {
  52. compatible = "rockchip,rk3399-mipi-dphy-rx0";
  53. clocks = <&cru SCLK_MIPIDPHY_REF>,
  54. <&cru SCLK_DPHY_RX0_CFG>,
  55. <&cru PCLK_VIO_GRF>;
  56. clock-names = "dphy-ref", "dphy-cfg", "grf";
  57. power-domains = <&power RK3399_PD_VIO>;
  58. #phy-cells = <0>;
  59. };