samsung-g2d.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/gpu/samsung-g2d.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Samsung SoC 2D Graphics Accelerator
  7. maintainers:
  8. - Inki Dae <inki.dae@samsung.com>
  9. properties:
  10. compatible:
  11. enum:
  12. - samsung,s5pv210-g2d # in S5PV210 & Exynos4210 SoC
  13. - samsung,exynos4212-g2d # in Exynos4x12 SoCs
  14. - samsung,exynos5250-g2d
  15. reg:
  16. maxItems: 1
  17. interrupts:
  18. maxItems: 1
  19. clocks:
  20. minItems: 1
  21. maxItems: 2
  22. clock-names:
  23. minItems: 1
  24. maxItems: 2
  25. iommus:
  26. minItems: 1
  27. maxItems: 2
  28. power-domains:
  29. maxItems: 1
  30. required:
  31. - compatible
  32. - reg
  33. - interrupts
  34. - clocks
  35. - clock-names
  36. allOf:
  37. - if:
  38. properties:
  39. compatible:
  40. contains:
  41. const: samsung,exynos5250-g2d
  42. then:
  43. properties:
  44. clocks:
  45. items:
  46. - description: fimg2d clock
  47. clock-names:
  48. items:
  49. - const: fimg2d
  50. else:
  51. properties:
  52. clocks:
  53. items:
  54. - description: sclk_fimg2d clock
  55. - description: fimg2d clock
  56. clock-names:
  57. items:
  58. - const: sclk_fimg2d
  59. - const: fimg2d
  60. additionalProperties: false
  61. examples:
  62. - |
  63. g2d@12800000 {
  64. compatible = "samsung,s5pv210-g2d";
  65. reg = <0x12800000 0x1000>;
  66. interrupts = <0 89 0>;
  67. clocks = <&clock 177>, <&clock 277>;
  68. clock-names = "sclk_fimg2d", "fimg2d";
  69. };
  70. ...