| 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 <[email protected]> |
| 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 |
|
| 24 |
clocks: |
| 25 |
minItems: 1 |
| 26 |
maxItems: 3 |
| 27 |
|
| 28 |
clock-names: |
| 29 |
minItems: 1 |
| 30 |
maxItems: 3 |
| 31 |
|
| 32 |
iommus: |
| 33 |
minItems: 1 |
| 34 |
maxItems: 2 |
| 35 |
|
| 36 |
power-domains: |
| 37 |
maxItems: 1 |
| 38 |
|
| 39 |
required: |
| 40 |
- compatible |
| 41 |
- reg |
| 42 |
- interrupts |
| 43 |
- clocks |
| 44 |
- clock-names |
| 45 |
|
| 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 |
|
| 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 |
... |