950-0202-media-dt-bindings-media-Add-binding-for-the-Raspberr.patch 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. From 16aadd75412c2f4dc1251cb5267807d0253993b0 Mon Sep 17 00:00:00 2001
  2. From: Dave Stevenson <[email protected]>
  3. Date: Tue, 17 Mar 2020 10:53:16 +0000
  4. Subject: [PATCH] media: dt-bindings: media: Add binding for the
  5. Raspberry PI HEVC decoder
  6. Adds a binding for the HEVC decoder found on the BCM2711 / Raspberry Pi 4.
  7. Signed-off-by: Dave Stevenson <[email protected]>
  8. ---
  9. .../bindings/media/rpivid_hevc.yaml | 72 +++++++++++++++++++
  10. MAINTAINERS | 7 ++
  11. 2 files changed, 79 insertions(+)
  12. create mode 100644 Documentation/devicetree/bindings/media/rpivid_hevc.yaml
  13. --- /dev/null
  14. +++ b/Documentation/devicetree/bindings/media/rpivid_hevc.yaml
  15. @@ -0,0 +1,72 @@
  16. +# SPDX-License-Identifier: GPL-2.0-only
  17. +%YAML 1.2
  18. +---
  19. +$id: http://devicetree.org/schemas/media/rpivid_hevc.yaml#
  20. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  21. +
  22. +title: Raspberry Pi HEVC Decoder
  23. +
  24. +maintainers:
  25. + - Raspberry Pi <[email protected]>
  26. +
  27. +description: |-
  28. + The Camera Adaptation Layer (CAL) is a key component for image capture
  29. + applications. The capture module provides the system interface and the
  30. + processing capability to connect CSI2 image-sensor modules to the
  31. + DRA72x device.
  32. +
  33. +properties:
  34. + compatible:
  35. + enum:
  36. + - raspberrypi,rpivid-vid-decoder
  37. +
  38. + reg:
  39. + minItems: 2
  40. + items:
  41. + - description: The HEVC main register region
  42. + - description: The Interrupt controller register region
  43. +
  44. + reg-names:
  45. + minItems: 2
  46. + items:
  47. + - const: hevc
  48. + - const: intc
  49. +
  50. + interrupts:
  51. + maxItems: 1
  52. +
  53. + clocks:
  54. + items:
  55. + - description: The HEVC block clock
  56. +
  57. + clock-names:
  58. + items:
  59. + - const: hevc
  60. +
  61. +required:
  62. + - compatible
  63. + - reg
  64. + - reg-names
  65. + - interrupts
  66. + - clocks
  67. +
  68. +additionalProperties: false
  69. +
  70. +examples:
  71. + - |
  72. + #include <dt-bindings/interrupt-controller/arm-gic.h>
  73. +
  74. + video-codec@7eb10000 {
  75. + compatible = "raspberrypi,rpivid-vid-decoder";
  76. + reg = <0x0 0x7eb10000 0x1000>, /* INTC */
  77. + <0x0 0x7eb00000 0x10000>; /* HEVC */
  78. + reg-names = "intc",
  79. + "hevc";
  80. +
  81. + interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
  82. +
  83. + clocks = <&clk 0>;
  84. + clock-names = "hevc";
  85. + };
  86. +
  87. +...
  88. --- a/MAINTAINERS
  89. +++ b/MAINTAINERS
  90. @@ -3555,6 +3555,13 @@ N: bcm113*
  91. N: bcm216*
  92. N: kona
  93. +BROADCOM BCM2711 HEVC DECODER
  94. +M: Raspberry Pi Kernel Maintenance <[email protected]>
  95. +L: [email protected]
  96. +S: Maintained
  97. +F: Documentation/devicetree/bindings/media/rpivid_hevc.jaml
  98. +F: drivers/staging/media/rpivid
  99. +
  100. BROADCOM BCM2835 CAMERA DRIVER
  101. M: Dave Stevenson <[email protected]>
  102. L: [email protected]