mediatek,gamma.yaml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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,gamma.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Mediatek display gamma correction
  7. maintainers:
  8. - Chun-Kuang Hu <chunkuang.hu@kernel.org>
  9. - Philipp Zabel <p.zabel@pengutronix.de>
  10. description: |
  11. Mediatek display gamma correction, namely GAMMA, provides a nonlinear
  12. operation used to adjust luminance in display system.
  13. GAMMA device node must be siblings to the central MMSYS_CONFIG node.
  14. For a description of the MMSYS_CONFIG binding, see
  15. Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.yaml
  16. for details.
  17. properties:
  18. compatible:
  19. oneOf:
  20. - enum:
  21. - mediatek,mt8173-disp-gamma
  22. - mediatek,mt8183-disp-gamma
  23. - mediatek,mt8195-disp-gamma
  24. - items:
  25. - enum:
  26. - mediatek,mt6795-disp-gamma
  27. - const: mediatek,mt8173-disp-gamma
  28. - items:
  29. - enum:
  30. - mediatek,mt8186-disp-gamma
  31. - mediatek,mt8188-disp-gamma
  32. - mediatek,mt8192-disp-gamma
  33. - mediatek,mt8195-disp-gamma
  34. - mediatek,mt8365-disp-gamma
  35. - const: mediatek,mt8183-disp-gamma
  36. - items:
  37. - enum:
  38. - mediatek,mt8188-disp-gamma
  39. - const: mediatek,mt8195-disp-gamma
  40. reg:
  41. maxItems: 1
  42. interrupts:
  43. maxItems: 1
  44. power-domains:
  45. description: A phandle and PM domain specifier as defined by bindings of
  46. the power controller specified by phandle. See
  47. Documentation/devicetree/bindings/power/power-domain.yaml for details.
  48. clocks:
  49. items:
  50. - description: GAMMA Clock
  51. mediatek,gce-client-reg:
  52. description: The register of client driver can be configured by gce with
  53. 4 arguments defined in this property, such as phandle of gce, subsys id,
  54. register offset and size. Each GCE subsys id is mapping to a client
  55. defined in the header include/dt-bindings/gce/<chip>-gce.h.
  56. $ref: /schemas/types.yaml#/definitions/phandle-array
  57. maxItems: 1
  58. required:
  59. - compatible
  60. - reg
  61. - interrupts
  62. - power-domains
  63. - clocks
  64. additionalProperties: false
  65. examples:
  66. - |
  67. #include <dt-bindings/interrupt-controller/arm-gic.h>
  68. #include <dt-bindings/clock/mt8173-clk.h>
  69. #include <dt-bindings/power/mt8173-power.h>
  70. #include <dt-bindings/gce/mt8173-gce.h>
  71. soc {
  72. #address-cells = <2>;
  73. #size-cells = <2>;
  74. gamma@14016000 {
  75. compatible = "mediatek,mt8173-disp-gamma";
  76. reg = <0 0x14016000 0 0x1000>;
  77. interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_LOW>;
  78. power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>;
  79. clocks = <&mmsys CLK_MM_DISP_GAMMA>;
  80. mediatek,gce-client-reg = <&gce SUBSYS_1401XXXX 0x6000 0x1000>;
  81. };
  82. };