Commit 671bc90e authored by Maciej Falkowski's avatar Maciej Falkowski Committed by Rob Herring
Browse files

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



Convert Samsung Image Scaler to newer dt-schema format.

Signed-off-by: default avatarMaciej Falkowski <m.falkowski@samsung.com>
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent bce3cff3
Loading
Loading
Loading
Loading
+0 −27
Original line number Diff line number Diff line
* Samsung Exynos Image Scaler

Required properties:
  - compatible : value should be one of the following:
	(a) "samsung,exynos5420-scaler" for Scaler IP in Exynos5420
	(b) "samsung,exynos5433-scaler" for Scaler IP in Exynos5433

  - reg : Physical base address of the IP registers and length of memory
	  mapped region.

  - interrupts : Interrupt specifier for scaler interrupt, according to format
		 specific to interrupt parent.

  - clocks : Clock specifier for scaler clock, according to generic clock
	     bindings. (See Documentation/devicetree/bindings/clock/exynos*.txt)

  - clock-names : Names of clocks. For exynos scaler, it should be "mscl"
		  on 5420 and "pclk", "aclk" and "aclk_xiu" on 5433.

Example:
	scaler@12800000 {
		compatible = "samsung,exynos5420-scaler";
		reg = <0x12800000 0x1294>;
		interrupts = <0 220 IRQ_TYPE_LEVEL_HIGH>;
		clocks = <&clock CLK_MSCL0>;
		clock-names = "mscl";
	};
+81 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: http://devicetree.org/schemas/gpu/samsung-scaler.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Samsung Exynos SoC Image Scaler

maintainers:
  - Inki Dae <inki.dae@samsung.com>

properties:
  compatible:
    enum:
      - samsung,exynos5420-scaler
      - samsung,exynos5433-scaler

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks: {}
  clock-names: {}
  iommus: {}
  power-domains: {}

if:
  properties:
    compatible:
      contains:
        const: samsung,exynos5420-scaler

then:
  properties:
    clocks:
      items:
        - description: mscl clock

    clock-names:
      items:
        - const: mscl

else:
  properties:
    clocks:
      items:
        - description: pclk clock
        - description: aclk clock
        - description: aclk_xiu clock

    clock-names:
      items:
        - const: pclk
        - const: aclk
        - const: aclk_xiu

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - clock-names

additionalProperties: false

examples:
  - |
    #include <dt-bindings/clock/exynos5420.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>

    scaler@12800000 {
        compatible = "samsung,exynos5420-scaler";
        reg = <0x12800000 0x1294>;
        interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&clock CLK_MSCL0>;
        clock-names = "mscl";
    };

...