mediatek,padding.yaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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,padding.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: MediaTek Display Padding
  7. maintainers:
  8. - Chun-Kuang Hu <chunkuang.hu@kernel.org>
  9. - Philipp Zabel <p.zabel@pengutronix.de>
  10. description:
  11. Padding provides ability to add pixels to width and height of a layer with
  12. specified colors. Due to hardware design, Mixer in VDOSYS1 requires
  13. width of a layer to be 2-pixel-align, or 4-pixel-align when ETHDR is enabled,
  14. we need Padding to deal with odd width.
  15. Please notice that even if the Padding is in bypass mode, settings in
  16. register must be cleared to 0, or undefined behaviors could happen.
  17. properties:
  18. compatible:
  19. oneOf:
  20. - enum:
  21. - mediatek,mt8188-disp-padding
  22. - mediatek,mt8195-mdp3-padding
  23. - items:
  24. - const: mediatek,mt8188-mdp3-padding
  25. - const: mediatek,mt8195-mdp3-padding
  26. reg:
  27. maxItems: 1
  28. power-domains:
  29. maxItems: 1
  30. clocks:
  31. items:
  32. - description: Padding's clocks
  33. mediatek,gce-client-reg:
  34. description:
  35. GCE (Global Command Engine) is a multi-core micro processor that helps
  36. its clients to execute commands without interrupting CPU. This property
  37. describes GCE client's information that is composed by 4 fields.
  38. 1. Phandle of the GCE (there may be several GCE processors)
  39. 2. Sub-system ID defined in the dt-binding like a user ID
  40. (Please refer to include/dt-bindings/gce/<chip>-gce.h)
  41. 3. Offset from base address of the subsys you are at
  42. 4. Size of the register the client needs
  43. $ref: /schemas/types.yaml#/definitions/phandle-array
  44. items:
  45. items:
  46. - description: Phandle of the GCE
  47. - description: Subsys ID defined in the dt-binding
  48. - description: Offset from base address of the subsys
  49. - description: Size of register
  50. maxItems: 1
  51. required:
  52. - compatible
  53. - reg
  54. - power-domains
  55. - clocks
  56. - mediatek,gce-client-reg
  57. additionalProperties: false
  58. examples:
  59. - |
  60. #include <dt-bindings/interrupt-controller/arm-gic.h>
  61. #include <dt-bindings/clock/mediatek,mt8188-clk.h>
  62. #include <dt-bindings/power/mediatek,mt8188-power.h>
  63. #include <dt-bindings/gce/mt8195-gce.h>
  64. soc {
  65. #address-cells = <2>;
  66. #size-cells = <2>;
  67. padding0: padding@1c11d000 {
  68. compatible = "mediatek,mt8188-disp-padding";
  69. reg = <0 0x1c11d000 0 0x1000>;
  70. clocks = <&vdosys1 CLK_VDO1_PADDING0>;
  71. power-domains = <&spm MT8188_POWER_DOMAIN_VDOSYS1>;
  72. mediatek,gce-client-reg = <&gce0 SUBSYS_1c11XXXX 0xd000 0x1000>;
  73. };
  74. };