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-scaler.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Samsung Exynos SoC Image Scaler |
| 8 | |
| 9 | maintainers: |
| 10 | - Inki Dae <inki.dae@samsung.com> |
| 11 | |
| 12 | properties: |
| 13 | compatible: |
| 14 | enum: |
| 15 | - samsung,exynos5420-scaler |
| 16 | - samsung,exynos5433-scaler |
| 17 | |
| 18 | reg: |
| 19 | maxItems: 1 |
| 20 | |
| 21 | interrupts: |
| 22 | maxItems: 1 |
| 23 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 24 | clocks: |
| 25 | minItems: 1 |
| 26 | maxItems: 3 |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 27 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 28 | clock-names: |
| 29 | minItems: 1 |
| 30 | maxItems: 3 |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 31 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 32 | iommus: |
| 33 | minItems: 1 |
| 34 | maxItems: 2 |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 35 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 36 | power-domains: |
| 37 | maxItems: 1 |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 38 | |
| 39 | required: |
| 40 | - compatible |
| 41 | - reg |
| 42 | - interrupts |
| 43 | - clocks |
| 44 | - clock-names |
| 45 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 46 | allOf: |
| 47 | - if: |
| 48 | properties: |
| 49 | compatible: |
| 50 | contains: |
| 51 | const: samsung,exynos5420-scaler |
| 52 | |
| 53 | then: |
| 54 | properties: |
| 55 | clocks: |
| 56 | items: |
| 57 | - description: mscl clock |
| 58 | clock-names: |
| 59 | items: |
| 60 | - const: mscl |
| 61 | iommus: |
| 62 | minItems: 2 |
| 63 | |
| 64 | else: |
| 65 | properties: |
| 66 | clocks: |
| 67 | items: |
| 68 | - description: pclk clock |
| 69 | - description: aclk clock |
| 70 | - description: aclk_xiu clock |
| 71 | clock-names: |
| 72 | items: |
| 73 | - const: pclk |
| 74 | - const: aclk |
| 75 | - const: aclk_xiu |
| 76 | iommus: |
| 77 | maxItems: 1 |
| 78 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 79 | additionalProperties: false |
| 80 | |
| 81 | examples: |
| 82 | - | |
| 83 | #include <dt-bindings/clock/exynos5420.h> |
| 84 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 85 | |
| 86 | scaler@12800000 { |
| 87 | compatible = "samsung,exynos5420-scaler"; |
| 88 | reg = <0x12800000 0x1294>; |
| 89 | interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>; |
| 90 | clocks = <&clock CLK_MSCL0>; |
| 91 | clock-names = "mscl"; |
| 92 | }; |
| 93 | |
| 94 | ... |