mediatek,dsc.yaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/display/mediatek/mediatek,dsc.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: mediatek display DSC controller
  7. maintainers:
  8. - Chun-Kuang Hu <chunkuang.hu@kernel.org>
  9. - Philipp Zabel <p.zabel@pengutronix.de>
  10. description: |
  11. The DSC standard is a specification of the algorithms used for
  12. compressing and decompressing image display streams, including
  13. the specification of the syntax and semantics of the compressed
  14. video bit stream. DSC is designed for real-time systems with
  15. real-time compression, transmission, decompression and Display.
  16. properties:
  17. compatible:
  18. oneOf:
  19. - enum:
  20. - mediatek,mt8195-disp-dsc
  21. reg:
  22. maxItems: 1
  23. interrupts:
  24. maxItems: 1
  25. clocks:
  26. items:
  27. - description: DSC Wrapper Clock
  28. power-domains:
  29. description: A phandle and PM domain specifier as defined by bindings of
  30. the power controller specified by phandle. See
  31. Documentation/devicetree/bindings/power/power-domain.yaml for details.
  32. mediatek,gce-client-reg:
  33. description:
  34. The register of client driver can be configured by gce with 4 arguments
  35. defined in this property, such as phandle of gce, subsys id,
  36. register offset and size.
  37. Each subsys id is mapping to a base address of display function blocks
  38. register which is defined in the gce header
  39. include/dt-bindings/gce/<chip>-gce.h.
  40. $ref: /schemas/types.yaml#/definitions/phandle-array
  41. maxItems: 1
  42. required:
  43. - compatible
  44. - reg
  45. - interrupts
  46. - power-domains
  47. - clocks
  48. additionalProperties: false
  49. examples:
  50. - |
  51. #include <dt-bindings/interrupt-controller/arm-gic.h>
  52. #include <dt-bindings/clock/mt8195-clk.h>
  53. #include <dt-bindings/power/mt8195-power.h>
  54. #include <dt-bindings/gce/mt8195-gce.h>
  55. soc {
  56. #address-cells = <2>;
  57. #size-cells = <2>;
  58. dsc0: disp_dsc_wrap@1c009000 {
  59. compatible = "mediatek,mt8195-disp-dsc";
  60. reg = <0 0x1c009000 0 0x1000>;
  61. interrupts = <GIC_SPI 645 IRQ_TYPE_LEVEL_HIGH 0>;
  62. power-domains = <&spm MT8195_POWER_DOMAIN_VDOSYS0>;
  63. clocks = <&vdosys0 CLK_VDO0_DSC_WRAP0>;
  64. mediatek,gce-client-reg = <&gce1 SUBSYS_1c00XXXX 0x9000 0x1000>;
  65. };
  66. };