ste,mcde.yaml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/display/ste,mcde.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: ST-Ericsson Multi Channel Display Engine MCDE
  7. maintainers:
  8. - Linus Walleij <linusw@kernel.org>
  9. properties:
  10. compatible:
  11. const: ste,mcde
  12. reg:
  13. maxItems: 1
  14. interrupts:
  15. maxItems: 1
  16. clocks:
  17. description: an array of the MCDE clocks
  18. items:
  19. - description: MCDECLK (main MCDE clock)
  20. - description: LCDCLK (LCD clock)
  21. - description: PLLDSI (HDMI clock)
  22. clock-names:
  23. items:
  24. - const: mcde
  25. - const: lcd
  26. - const: hdmi
  27. resets:
  28. maxItems: 1
  29. epod-supply:
  30. description: a phandle to the EPOD regulator
  31. vana-supply:
  32. description: a phandle to the analog voltage regulator
  33. port:
  34. $ref: /schemas/graph.yaml#/properties/port
  35. description:
  36. A DPI port node
  37. "#address-cells":
  38. const: 1
  39. "#size-cells":
  40. const: 1
  41. ranges: true
  42. patternProperties:
  43. "^dsi@[0-9a-f]+$":
  44. description: subnodes for the three DSI host adapters
  45. type: object
  46. $ref: dsi-controller.yaml#
  47. properties:
  48. compatible:
  49. const: ste,mcde-dsi
  50. reg:
  51. maxItems: 1
  52. vana-supply:
  53. description: a phandle to the analog voltage regulator
  54. clocks:
  55. description: phandles to the high speed and low power (energy save) clocks
  56. the high speed clock is not present on the third (dsi2) block, so it
  57. should only have the "lp" clock
  58. minItems: 1
  59. maxItems: 2
  60. clock-names:
  61. oneOf:
  62. - items:
  63. - const: hs
  64. - const: lp
  65. - items:
  66. - const: lp
  67. required:
  68. - compatible
  69. - reg
  70. - vana-supply
  71. - clocks
  72. - clock-names
  73. unevaluatedProperties: false
  74. required:
  75. - compatible
  76. - reg
  77. - interrupts
  78. - clocks
  79. - clock-names
  80. - epod-supply
  81. - vana-supply
  82. additionalProperties: false
  83. examples:
  84. - |
  85. #include <dt-bindings/interrupt-controller/irq.h>
  86. #include <dt-bindings/interrupt-controller/arm-gic.h>
  87. #include <dt-bindings/mfd/dbx500-prcmu.h>
  88. #include <dt-bindings/gpio/gpio.h>
  89. mcde@a0350000 {
  90. compatible = "ste,mcde";
  91. reg = <0xa0350000 0x1000>;
  92. interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
  93. epod-supply = <&db8500_b2r2_mcde_reg>;
  94. vana-supply = <&ab8500_ldo_ana_reg>;
  95. clocks = <&prcmu_clk PRCMU_MCDECLK>,
  96. <&prcmu_clk PRCMU_LCDCLK>,
  97. <&prcmu_clk PRCMU_PLLDSI>;
  98. clock-names = "mcde", "lcd", "hdmi";
  99. #address-cells = <1>;
  100. #size-cells = <1>;
  101. ranges;
  102. dsi0: dsi@a0351000 {
  103. compatible = "ste,mcde-dsi";
  104. reg = <0xa0351000 0x1000>;
  105. vana-supply = <&ab8500_ldo_ana_reg>;
  106. clocks = <&prcmu_clk PRCMU_DSI0CLK>, <&prcmu_clk PRCMU_DSI0ESCCLK>;
  107. clock-names = "hs", "lp";
  108. #address-cells = <1>;
  109. #size-cells = <0>;
  110. panel@0 {
  111. compatible = "samsung,s6d16d0";
  112. reg = <0>;
  113. vdd1-supply = <&ab8500_ldo_aux1_reg>;
  114. reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
  115. };
  116. };
  117. dsi1: dsi@a0352000 {
  118. compatible = "ste,mcde-dsi";
  119. reg = <0xa0352000 0x1000>;
  120. vana-supply = <&ab8500_ldo_ana_reg>;
  121. clocks = <&prcmu_clk PRCMU_DSI1CLK>, <&prcmu_clk PRCMU_DSI1ESCCLK>;
  122. clock-names = "hs", "lp";
  123. #address-cells = <1>;
  124. #size-cells = <0>;
  125. };
  126. dsi2: dsi@a0353000 {
  127. compatible = "ste,mcde-dsi";
  128. reg = <0xa0353000 0x1000>;
  129. vana-supply = <&ab8500_ldo_ana_reg>;
  130. /* This DSI port only has the Low Power / Energy Save clock */
  131. clocks = <&prcmu_clk PRCMU_DSI2ESCCLK>;
  132. clock-names = "lp";
  133. #address-cells = <1>;
  134. #size-cells = <0>;
  135. };
  136. };
  137. ...