Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 | |
| 7 | title: Samsung SoC 2D Graphics Accelerator |
| 8 | |
| 9 | maintainers: |
| 10 | - Inki Dae <inki.dae@samsung.com> |
| 11 | |
| 12 | properties: |
| 13 | compatible: |
| 14 | enum: |
| 15 | - samsung,s5pv210-g2d # in S5PV210 & Exynos4210 SoC |
| 16 | - samsung,exynos4212-g2d # in Exynos4x12 SoCs |
| 17 | - samsung,exynos5250-g2d |
| 18 | |
| 19 | reg: |
| 20 | maxItems: 1 |
| 21 | |
| 22 | interrupts: |
| 23 | maxItems: 1 |
| 24 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 25 | clocks: |
| 26 | minItems: 1 |
| 27 | maxItems: 2 |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 28 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 29 | clock-names: |
| 30 | minItems: 1 |
| 31 | maxItems: 2 |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 32 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 33 | iommus: |
| 34 | minItems: 1 |
| 35 | maxItems: 2 |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 36 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 37 | power-domains: |
| 38 | maxItems: 1 |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 39 | |
| 40 | required: |
| 41 | - compatible |
| 42 | - reg |
| 43 | - interrupts |
| 44 | - clocks |
| 45 | - clock-names |
| 46 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 47 | allOf: |
| 48 | - if: |
| 49 | properties: |
| 50 | compatible: |
| 51 | contains: |
| 52 | const: samsung,exynos5250-g2d |
| 53 | |
| 54 | then: |
| 55 | properties: |
| 56 | clocks: |
| 57 | items: |
| 58 | - description: fimg2d clock |
| 59 | clock-names: |
| 60 | items: |
| 61 | - const: fimg2d |
| 62 | |
| 63 | else: |
| 64 | properties: |
| 65 | clocks: |
| 66 | items: |
| 67 | - description: sclk_fimg2d clock |
| 68 | - description: fimg2d clock |
| 69 | clock-names: |
| 70 | items: |
| 71 | - const: sclk_fimg2d |
| 72 | - const: fimg2d |
| 73 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 74 | additionalProperties: false |
| 75 | |
| 76 | examples: |
| 77 | - | |
| 78 | g2d@12800000 { |
| 79 | compatible = "samsung,s5pv210-g2d"; |
| 80 | reg = <0x12800000 0x1000>; |
| 81 | interrupts = <0 89 0>; |
| 82 | clocks = <&clock 177>, <&clock 277>; |
| 83 | clock-names = "sclk_fimg2d", "fimg2d"; |
| 84 | }; |
| 85 | |
| 86 | ... |