nvidia,tegra20-dsi.yaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/display/tegra/nvidia,tegra20-dsi.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: NVIDIA Tegra Display Serial Interface
  7. maintainers:
  8. - Thierry Reding <thierry.reding@gmail.com>
  9. - Jon Hunter <jonathanh@nvidia.com>
  10. properties:
  11. compatible:
  12. oneOf:
  13. - enum:
  14. - nvidia,tegra20-dsi
  15. - nvidia,tegra30-dsi
  16. - nvidia,tegra114-dsi
  17. - nvidia,tegra124-dsi
  18. - nvidia,tegra210-dsi
  19. - nvidia,tegra186-dsi
  20. - items:
  21. - const: nvidia,tegra132-dsi
  22. - const: nvidia,tegra124-dsi
  23. reg:
  24. maxItems: 1
  25. interrupts:
  26. maxItems: 1
  27. clocks:
  28. minItems: 2
  29. maxItems: 3
  30. clock-names:
  31. minItems: 2
  32. maxItems: 3
  33. resets:
  34. items:
  35. - description: module reset
  36. reset-names:
  37. items:
  38. - const: dsi
  39. operating-points-v2: true
  40. power-domains:
  41. maxItems: 1
  42. avdd-dsi-csi-supply:
  43. description: phandle of a supply that powers the DSI controller
  44. nvidia,mipi-calibrate:
  45. description: Should contain a phandle and a specifier specifying
  46. which pads are used by this DSI output and need to be
  47. calibrated. See nvidia,tegra114-mipi.yaml for details.
  48. $ref: /schemas/types.yaml#/definitions/phandle-array
  49. nvidia,ddc-i2c-bus:
  50. description: phandle of an I2C controller used for DDC EDID
  51. probing
  52. $ref: /schemas/types.yaml#/definitions/phandle
  53. nvidia,hpd-gpio:
  54. description: specifies a GPIO used for hotplug detection
  55. maxItems: 1
  56. nvidia,edid:
  57. description: supplies a binary EDID blob
  58. $ref: /schemas/types.yaml#/definitions/uint8-array
  59. nvidia,panel:
  60. description: phandle of a display panel
  61. $ref: /schemas/types.yaml#/definitions/phandle
  62. nvidia,ganged-mode:
  63. description: contains a phandle to a second DSI controller to
  64. gang up with in order to support up to 8 data lanes
  65. $ref: /schemas/types.yaml#/definitions/phandle
  66. allOf:
  67. - $ref: ../dsi-controller.yaml#
  68. - if:
  69. properties:
  70. compatible:
  71. contains:
  72. enum:
  73. - nvidia,tegra20-dsi
  74. - nvidia,tegra30-dsi
  75. then:
  76. properties:
  77. clocks:
  78. items:
  79. - description: DSI module clock
  80. - description: input for the pixel clock
  81. clock-names:
  82. items:
  83. - const: dsi
  84. - const: parent
  85. else:
  86. properties:
  87. clocks:
  88. items:
  89. - description: DSI module clock
  90. - description: low-power module clock
  91. - description: input for the pixel clock
  92. clock-names:
  93. items:
  94. - const: dsi
  95. - const: lp
  96. - const: parent
  97. - if:
  98. properties:
  99. compatible:
  100. contains:
  101. const: nvidia,tegra186-dsi
  102. then:
  103. required:
  104. - interrupts
  105. unevaluatedProperties: false
  106. required:
  107. - compatible
  108. - reg
  109. - clocks
  110. - clock-names
  111. - resets
  112. - reset-names
  113. examples:
  114. - |
  115. #include <dt-bindings/clock/tegra186-clock.h>
  116. #include <dt-bindings/interrupt-controller/arm-gic.h>
  117. #include <dt-bindings/power/tegra186-powergate.h>
  118. #include <dt-bindings/reset/tegra186-reset.h>
  119. dsi@15300000 {
  120. compatible = "nvidia,tegra186-dsi";
  121. reg = <0x15300000 0x10000>;
  122. interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
  123. clocks = <&bpmp TEGRA186_CLK_DSI>,
  124. <&bpmp TEGRA186_CLK_DSIA_LP>,
  125. <&bpmp TEGRA186_CLK_PLLD>;
  126. clock-names = "dsi", "lp", "parent";
  127. resets = <&bpmp TEGRA186_RESET_DSI>;
  128. reset-names = "dsi";
  129. power-domains = <&bpmp TEGRA186_POWER_DOMAIN_DISP>;
  130. };