mediatek,mt8365-csi-rx.yaml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. # Copyright (c) 2023 MediaTek, BayLibre
  3. %YAML 1.2
  4. ---
  5. $id: http://devicetree.org/schemas/phy/mediatek,mt8365-csi-rx.yaml#
  6. $schema: http://devicetree.org/meta-schemas/core.yaml#
  7. title: Mediatek Sensor Interface MIPI CSI CD-PHY
  8. maintainers:
  9. - Julien Stephan <jstephan@baylibre.com>
  10. - Andy Hsieh <andy.hsieh@mediatek.com>
  11. description:
  12. The SENINF CD-PHY is a set of CD-PHY connected to the SENINF CSI-2
  13. receivers. The number of PHYs depends on the SoC model.
  14. Depending on the SoC model, each PHYs can be either CD-PHY or D-PHY only
  15. capable.
  16. properties:
  17. compatible:
  18. enum:
  19. - mediatek,mt8365-csi-rx
  20. reg:
  21. maxItems: 1
  22. num-lanes:
  23. enum: [2, 3, 4]
  24. '#phy-cells':
  25. enum: [0, 1]
  26. description: |
  27. If the PHY doesn't support mode selection then #phy-cells must be 0 and
  28. PHY mode is described using phy-type property.
  29. If the PHY supports mode selection, then #phy-cells must be 1 and mode
  30. is set in the PHY cells. Supported modes are:
  31. - PHY_TYPE_DPHY
  32. - PHY_TYPE_CPHY
  33. See include/dt-bindings/phy/phy.h for constants.
  34. phy-type:
  35. description:
  36. If the PHY doesn't support mode selection then this set the operating mode.
  37. See include/dt-bindings/phy/phy.h for constants.
  38. const: 10
  39. $ref: /schemas/types.yaml#/definitions/uint32
  40. required:
  41. - compatible
  42. - reg
  43. - num-lanes
  44. - '#phy-cells'
  45. additionalProperties: false
  46. examples:
  47. - |
  48. #include <dt-bindings/phy/phy.h>
  49. soc {
  50. #address-cells = <2>;
  51. #size-cells = <2>;
  52. csi0_rx: phy@11c10000 {
  53. compatible = "mediatek,mt8365-csi-rx";
  54. reg = <0 0x11c10000 0 0x2000>;
  55. num-lanes = <2>;
  56. #phy-cells = <1>;
  57. };
  58. csi1_rx: phy@11c12000 {
  59. compatible = "mediatek,mt8365-csi-rx";
  60. reg = <0 0x11c12000 0 0x2000>;
  61. phy-type = <PHY_TYPE_DPHY>;
  62. num-lanes = <2>;
  63. #phy-cells = <0>;
  64. };
  65. };
  66. ...