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

dt-bindings: gpu: Convert Samsung 2D Graphics Accelerator to dt-schema

Convert Samsung 2D Graphics Accelerator to newer dt-schema format

Signed-off-by: Maciej Falkowski <m.falkowski@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
5a58252f 671bc90e

+75 -27
-27
Documentation/devicetree/bindings/gpu/samsung-g2d.txt
··· 1 - * Samsung 2D Graphics Accelerator 2 - 3 - Required properties: 4 - - compatible : value should be one among the following: 5 - (a) "samsung,s5pv210-g2d" for G2D IP present in S5PV210 & Exynos4210 SoC 6 - (b) "samsung,exynos4212-g2d" for G2D IP present in Exynos4x12 SoCs 7 - (c) "samsung,exynos5250-g2d" for G2D IP present in Exynos5250 SoC 8 - 9 - - reg : Physical base address of the IP registers and length of memory 10 - mapped region. 11 - 12 - - interrupts : G2D interrupt number to the CPU. 13 - - clocks : from common clock binding: handle to G2D clocks. 14 - - clock-names : names of clocks listed in clocks property, in the same 15 - order, depending on SoC type: 16 - - for S5PV210 and Exynos4 based SoCs: "fimg2d" and 17 - "sclk_fimg2d" 18 - - for Exynos5250 SoC: "fimg2d". 19 - 20 - Example: 21 - g2d@12800000 { 22 - compatible = "samsung,s5pv210-g2d"; 23 - reg = <0x12800000 0x1000>; 24 - interrupts = <0 89 0>; 25 - clocks = <&clock 177>, <&clock 277>; 26 - clock-names = "sclk_fimg2d", "fimg2d"; 27 - };
+75
Documentation/devicetree/bindings/gpu/samsung-g2d.yaml
··· 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 + 25 + clocks: {} 26 + clock-names: {} 27 + iommus: {} 28 + power-domains: {} 29 + 30 + if: 31 + properties: 32 + compatible: 33 + contains: 34 + const: samsung,exynos5250-g2d 35 + 36 + then: 37 + properties: 38 + clocks: 39 + items: 40 + - description: fimg2d clock 41 + clock-names: 42 + items: 43 + - const: fimg2d 44 + 45 + else: 46 + properties: 47 + clocks: 48 + items: 49 + - description: sclk_fimg2d clock 50 + - description: fimg2d clock 51 + clock-names: 52 + items: 53 + - const: sclk_fimg2d 54 + - const: fimg2d 55 + 56 + required: 57 + - compatible 58 + - reg 59 + - interrupts 60 + - clocks 61 + - clock-names 62 + 63 + additionalProperties: false 64 + 65 + examples: 66 + - | 67 + g2d@12800000 { 68 + compatible = "samsung,s5pv210-g2d"; 69 + reg = <0x12800000 0x1000>; 70 + interrupts = <0 89 0>; 71 + clocks = <&clock 177>, <&clock 277>; 72 + clock-names = "sclk_fimg2d", "fimg2d"; 73 + }; 74 + 75 + ...