Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: gpu: Convert Samsung Image Scaler to dt-schema

Convert Samsung Image Scaler to newer dt-schema format.

Signed-off-by: Maciej Falkowski <m.falkowski@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Maciej Falkowski and committed by
Rob Herring
671bc90e bce3cff3

+81 -27
-27
Documentation/devicetree/bindings/gpu/samsung-scaler.txt
··· 1 - * Samsung Exynos Image Scaler 2 - 3 - Required properties: 4 - - compatible : value should be one of the following: 5 - (a) "samsung,exynos5420-scaler" for Scaler IP in Exynos5420 6 - (b) "samsung,exynos5433-scaler" for Scaler IP in Exynos5433 7 - 8 - - reg : Physical base address of the IP registers and length of memory 9 - mapped region. 10 - 11 - - interrupts : Interrupt specifier for scaler interrupt, according to format 12 - specific to interrupt parent. 13 - 14 - - clocks : Clock specifier for scaler clock, according to generic clock 15 - bindings. (See Documentation/devicetree/bindings/clock/exynos*.txt) 16 - 17 - - clock-names : Names of clocks. For exynos scaler, it should be "mscl" 18 - on 5420 and "pclk", "aclk" and "aclk_xiu" on 5433. 19 - 20 - Example: 21 - scaler@12800000 { 22 - compatible = "samsung,exynos5420-scaler"; 23 - reg = <0x12800000 0x1294>; 24 - interrupts = <0 220 IRQ_TYPE_LEVEL_HIGH>; 25 - clocks = <&clock CLK_MSCL0>; 26 - clock-names = "mscl"; 27 - };
+81
Documentation/devicetree/bindings/gpu/samsung-scaler.yaml
··· 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 + 24 + clocks: {} 25 + clock-names: {} 26 + iommus: {} 27 + power-domains: {} 28 + 29 + if: 30 + properties: 31 + compatible: 32 + contains: 33 + const: samsung,exynos5420-scaler 34 + 35 + then: 36 + properties: 37 + clocks: 38 + items: 39 + - description: mscl clock 40 + 41 + clock-names: 42 + items: 43 + - const: mscl 44 + 45 + else: 46 + properties: 47 + clocks: 48 + items: 49 + - description: pclk clock 50 + - description: aclk clock 51 + - description: aclk_xiu clock 52 + 53 + clock-names: 54 + items: 55 + - const: pclk 56 + - const: aclk 57 + - const: aclk_xiu 58 + 59 + required: 60 + - compatible 61 + - reg 62 + - interrupts 63 + - clocks 64 + - clock-names 65 + 66 + additionalProperties: false 67 + 68 + examples: 69 + - | 70 + #include <dt-bindings/clock/exynos5420.h> 71 + #include <dt-bindings/interrupt-controller/arm-gic.h> 72 + 73 + scaler@12800000 { 74 + compatible = "samsung,exynos5420-scaler"; 75 + reg = <0x12800000 0x1294>; 76 + interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>; 77 + clocks = <&clock CLK_MSCL0>; 78 + clock-names = "mscl"; 79 + }; 80 + 81 + ...