mediatek,od.yaml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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,od.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Mediatek display overdirve
  7. maintainers:
  8. - Chun-Kuang Hu <chunkuang.hu@kernel.org>
  9. - Philipp Zabel <p.zabel@pengutronix.de>
  10. description: |
  11. Mediatek display overdrive, namely OD, increases the transition values
  12. of pixels between consecutive frames to make LCD rotate faster.
  13. OD 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,mt2712-disp-od
  22. - mediatek,mt8173-disp-od
  23. - items:
  24. - const: mediatek,mt6795-disp-od
  25. - const: mediatek,mt8173-disp-od
  26. reg:
  27. maxItems: 1
  28. interrupts:
  29. maxItems: 1
  30. clocks:
  31. items:
  32. - description: OD Clock
  33. ports:
  34. $ref: /schemas/graph.yaml#/properties/ports
  35. description:
  36. Input and output ports can have multiple endpoints, each of those
  37. connects to either the primary, secondary, etc, display pipeline.
  38. properties:
  39. port@0:
  40. $ref: /schemas/graph.yaml#/properties/port
  41. description: OD input port, usually from an AAL block
  42. port@1:
  43. $ref: /schemas/graph.yaml#/properties/port
  44. description:
  45. OD output to the input of the next desired component in the
  46. display pipeline, for example one of the available RDMA or
  47. other blocks.
  48. required:
  49. - port@0
  50. - port@1
  51. mediatek,gce-client-reg:
  52. $ref: /schemas/types.yaml#/definitions/phandle-array
  53. description: describes how to locate the GCE client register
  54. items:
  55. - items:
  56. - description: Phandle reference to a Mediatek GCE Mailbox
  57. - description:
  58. GCE subsys id mapping to a client defined in header
  59. include/dt-bindings/gce/<chip>-gce.h.
  60. - description: offset for the GCE register offset
  61. - description: size of the GCE register offset
  62. required:
  63. - compatible
  64. - reg
  65. - clocks
  66. additionalProperties: false
  67. examples:
  68. - |
  69. #include <dt-bindings/clock/mt8173-clk.h>
  70. #include <dt-bindings/gce/mt8173-gce.h>
  71. soc {
  72. #address-cells = <2>;
  73. #size-cells = <2>;
  74. od@14023000 {
  75. compatible = "mediatek,mt8173-disp-od";
  76. reg = <0 0x14023000 0 0x1000>;
  77. clocks = <&mmsys CLK_MM_DISP_OD>;
  78. mediatek,gce-client-reg = <&gce SUBSYS_1402XXXX 0x3000 0x1000>;
  79. };
  80. };