xref: /linux/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml (revision 06d07429858317ded2db7986113a9e0129cd599b)
15a58252fSMaciej Falkowski# SPDX-License-Identifier: GPL-2.0
25a58252fSMaciej Falkowski%YAML 1.2
35a58252fSMaciej Falkowski---
45a58252fSMaciej Falkowski$id: http://devicetree.org/schemas/gpu/samsung-g2d.yaml#
55a58252fSMaciej Falkowski$schema: http://devicetree.org/meta-schemas/core.yaml#
65a58252fSMaciej Falkowski
75a58252fSMaciej Falkowskititle: Samsung SoC 2D Graphics Accelerator
85a58252fSMaciej Falkowski
95a58252fSMaciej Falkowskimaintainers:
105a58252fSMaciej Falkowski  - Inki Dae <inki.dae@samsung.com>
115a58252fSMaciej Falkowski
125a58252fSMaciej Falkowskiproperties:
135a58252fSMaciej Falkowski  compatible:
145a58252fSMaciej Falkowski    enum:
155a58252fSMaciej Falkowski      - samsung,s5pv210-g2d    # in S5PV210 & Exynos4210 SoC
165a58252fSMaciej Falkowski      - samsung,exynos4212-g2d # in Exynos4x12 SoCs
175a58252fSMaciej Falkowski      - samsung,exynos5250-g2d
185a58252fSMaciej Falkowski
195a58252fSMaciej Falkowski  reg:
205a58252fSMaciej Falkowski    maxItems: 1
215a58252fSMaciej Falkowski
225a58252fSMaciej Falkowski  interrupts:
235a58252fSMaciej Falkowski    maxItems: 1
245a58252fSMaciej Falkowski
25f1d797b6SKrzysztof Kozlowski  clocks:
26f1d797b6SKrzysztof Kozlowski    minItems: 1
27f1d797b6SKrzysztof Kozlowski    maxItems: 2
28f1d797b6SKrzysztof Kozlowski
29f1d797b6SKrzysztof Kozlowski  clock-names:
30f1d797b6SKrzysztof Kozlowski    minItems: 1
31f1d797b6SKrzysztof Kozlowski    maxItems: 2
32f1d797b6SKrzysztof Kozlowski
33*6ff067f3SKrzysztof Kozlowski  iommus:
34*6ff067f3SKrzysztof Kozlowski    minItems: 1
35*6ff067f3SKrzysztof Kozlowski    maxItems: 2
36*6ff067f3SKrzysztof Kozlowski
37*6ff067f3SKrzysztof Kozlowski  power-domains:
38*6ff067f3SKrzysztof Kozlowski    maxItems: 1
395a58252fSMaciej Falkowski
406b91e0eeSKrzysztof Kozlowskirequired:
416b91e0eeSKrzysztof Kozlowski  - compatible
426b91e0eeSKrzysztof Kozlowski  - reg
436b91e0eeSKrzysztof Kozlowski  - interrupts
446b91e0eeSKrzysztof Kozlowski  - clocks
456b91e0eeSKrzysztof Kozlowski  - clock-names
466b91e0eeSKrzysztof Kozlowski
476b91e0eeSKrzysztof KozlowskiallOf:
486b91e0eeSKrzysztof Kozlowski  - if:
495a58252fSMaciej Falkowski      properties:
505a58252fSMaciej Falkowski        compatible:
515a58252fSMaciej Falkowski          contains:
525a58252fSMaciej Falkowski            const: samsung,exynos5250-g2d
535a58252fSMaciej Falkowski
545a58252fSMaciej Falkowski    then:
555a58252fSMaciej Falkowski      properties:
565a58252fSMaciej Falkowski        clocks:
575a58252fSMaciej Falkowski          items:
585a58252fSMaciej Falkowski            - description: fimg2d clock
595a58252fSMaciej Falkowski        clock-names:
605a58252fSMaciej Falkowski          items:
615a58252fSMaciej Falkowski            - const: fimg2d
625a58252fSMaciej Falkowski
635a58252fSMaciej Falkowski    else:
645a58252fSMaciej Falkowski      properties:
655a58252fSMaciej Falkowski        clocks:
665a58252fSMaciej Falkowski          items:
675a58252fSMaciej Falkowski            - description: sclk_fimg2d clock
685a58252fSMaciej Falkowski            - description: fimg2d clock
695a58252fSMaciej Falkowski        clock-names:
705a58252fSMaciej Falkowski          items:
715a58252fSMaciej Falkowski            - const: sclk_fimg2d
725a58252fSMaciej Falkowski            - const: fimg2d
735a58252fSMaciej Falkowski
745a58252fSMaciej FalkowskiadditionalProperties: false
755a58252fSMaciej Falkowski
765a58252fSMaciej Falkowskiexamples:
775a58252fSMaciej Falkowski  - |
785a58252fSMaciej Falkowski    g2d@12800000 {
795a58252fSMaciej Falkowski        compatible = "samsung,s5pv210-g2d";
805a58252fSMaciej Falkowski        reg = <0x12800000 0x1000>;
815a58252fSMaciej Falkowski        interrupts = <0 89 0>;
825a58252fSMaciej Falkowski        clocks = <&clock 177>, <&clock 277>;
835a58252fSMaciej Falkowski        clock-names = "sclk_fimg2d", "fimg2d";
845a58252fSMaciej Falkowski    };
855a58252fSMaciej Falkowski
865a58252fSMaciej Falkowski...
87