brcm,bcm2835-hvs.yaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/display/brcm,bcm2835-hvs.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Broadcom VC4 (VideoCore4) Hardware Video Scaler
  7. maintainers:
  8. - Eric Anholt <eric@anholt.net>
  9. properties:
  10. compatible:
  11. enum:
  12. - brcm,bcm2711-hvs
  13. - brcm,bcm2712-hvs
  14. - brcm,bcm2835-hvs
  15. reg:
  16. maxItems: 1
  17. interrupts:
  18. minItems: 1
  19. maxItems: 3
  20. interrupt-names:
  21. minItems: 1
  22. maxItems: 3
  23. clocks:
  24. minItems: 1
  25. maxItems: 2
  26. clock-names:
  27. minItems: 1
  28. maxItems: 2
  29. required:
  30. - compatible
  31. - reg
  32. - interrupts
  33. additionalProperties: false
  34. allOf:
  35. - if:
  36. properties:
  37. compatible:
  38. contains:
  39. const: brcm,bcm2711-hvs
  40. then:
  41. properties:
  42. clocks:
  43. items:
  44. - description: Core Clock
  45. interrupts:
  46. maxItems: 1
  47. clock-names: false
  48. interrupt-names: false
  49. required:
  50. - clocks
  51. - if:
  52. properties:
  53. compatible:
  54. contains:
  55. const: brcm,bcm2712-hvs
  56. then:
  57. properties:
  58. clocks:
  59. minItems: 2
  60. maxItems: 2
  61. clock-names:
  62. items:
  63. - const: core
  64. - const: disp
  65. interrupts:
  66. items:
  67. - description: Channel 0 End of frame
  68. - description: Channel 1 End of frame
  69. - description: Channel 2 End of frame
  70. interrupt-names:
  71. items:
  72. - const: ch0-eof
  73. - const: ch1-eof
  74. - const: ch2-eof
  75. required:
  76. - clocks
  77. - clock-names
  78. - interrupt-names
  79. - if:
  80. properties:
  81. compatible:
  82. contains:
  83. const: brcm,bcm2835-hvs
  84. then:
  85. properties:
  86. interrupts:
  87. maxItems: 1
  88. clock-names: false
  89. interrupt-names: false
  90. examples:
  91. - |
  92. hvs@7e400000 {
  93. compatible = "brcm,bcm2835-hvs";
  94. reg = <0x7e400000 0x6000>;
  95. interrupts = <2 1>;
  96. };
  97. ...