st,stm32-dsi.yaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/display/st,stm32-dsi.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: STMicroelectronics STM32 DSI host controller
  7. maintainers:
  8. - Philippe Cornu <philippe.cornu@foss.st.com>
  9. - Yannick Fertre <yannick.fertre@foss.st.com>
  10. description:
  11. The STMicroelectronics STM32 DSI controller uses the Synopsys DesignWare MIPI-DSI host controller.
  12. allOf:
  13. - $ref: dsi-controller.yaml#
  14. properties:
  15. compatible:
  16. const: st,stm32-dsi
  17. reg:
  18. maxItems: 1
  19. clocks:
  20. items:
  21. - description: Module Clock
  22. - description: DSI bus clock
  23. - description: Pixel clock
  24. minItems: 2
  25. clock-names:
  26. items:
  27. - const: pclk
  28. - const: ref
  29. - const: px_clk
  30. minItems: 2
  31. resets:
  32. maxItems: 1
  33. reset-names:
  34. items:
  35. - const: apb
  36. phy-dsi-supply:
  37. description:
  38. Phandle of the regulator that provides the supply voltage.
  39. ports:
  40. $ref: /schemas/graph.yaml#/properties/ports
  41. properties:
  42. port@0:
  43. $ref: /schemas/graph.yaml#/properties/port
  44. description:
  45. DSI input port node, connected to the ltdc rgb output port.
  46. port@1:
  47. $ref: /schemas/graph.yaml#/$defs/port-base
  48. unevaluatedProperties: false
  49. description: |
  50. DSI output port node, connected to a panel or a bridge input port.
  51. properties:
  52. endpoint:
  53. $ref: /schemas/media/video-interfaces.yaml#
  54. unevaluatedProperties: false
  55. properties:
  56. data-lanes:
  57. minItems: 1
  58. items:
  59. - const: 1
  60. - const: 2
  61. required:
  62. - compatible
  63. - reg
  64. - clocks
  65. - clock-names
  66. - ports
  67. unevaluatedProperties: false
  68. examples:
  69. - |
  70. #include <dt-bindings/interrupt-controller/arm-gic.h>
  71. #include <dt-bindings/clock/stm32mp1-clks.h>
  72. #include <dt-bindings/reset/stm32mp1-resets.h>
  73. #include <dt-bindings/gpio/gpio.h>
  74. dsi: dsi@5a000000 {
  75. compatible = "st,stm32-dsi";
  76. reg = <0x5a000000 0x800>;
  77. clocks = <&rcc DSI_K>, <&clk_hse>, <&rcc DSI_PX>;
  78. clock-names = "pclk", "ref", "px_clk";
  79. resets = <&rcc DSI_R>;
  80. reset-names = "apb";
  81. phy-dsi-supply = <&reg18>;
  82. #address-cells = <1>;
  83. #size-cells = <0>;
  84. ports {
  85. #address-cells = <1>;
  86. #size-cells = <0>;
  87. port@0 {
  88. reg = <0>;
  89. dsi_in: endpoint {
  90. remote-endpoint = <&ltdc_ep1_out>;
  91. };
  92. };
  93. port@1 {
  94. reg = <1>;
  95. dsi_out: endpoint {
  96. remote-endpoint = <&panel_in>;
  97. };
  98. };
  99. };
  100. panel@0 {
  101. compatible = "orisetech,otm8009a";
  102. reg = <0>;
  103. reset-gpios = <&gpioe 4 GPIO_ACTIVE_LOW>;
  104. power-supply = <&v3v3>;
  105. port {
  106. panel_in: endpoint {
  107. remote-endpoint = <&dsi_out>;
  108. };
  109. };
  110. };
  111. };
  112. ...