Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp7463363ybn; Mon, 30 Sep 2019 14:22:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwifQ8A5t5LS7uP/kkqWtKsky72XrWgsghC51qOU4NOJAFbcMaEW+jNg3BLHKgbmnP3eUtL X-Received: by 2002:a50:9e0a:: with SMTP id z10mr22169223ede.202.1569878551113; Mon, 30 Sep 2019 14:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569878551; cv=none; d=google.com; s=arc-20160816; b=AoldGhpWHf0t+r1N1xwoWEFg06t2SVOF83qLZDWxGZt2ZEph1VNGYwsBkXqXViZM+c 3fCefiY/+cLcCVPGVdUz06PbYjQGyXqhfeOOtmynZsqpKTPFsGoQToO2VWqDJzBo+v1e kW2sQESG8mmRPTAACVLsiJS+bfOZ7zKoakaakd2AqHe492p4r1X5pxb8SliJXw1+4Log feo+KLvnk3WTsQQr/8SCJH3f8INCEdrppsHksKmkvstyNHyEPd5wJHkz859HJ1ho7fvU Hdhq5fTtTBXNgjuuGq4sXE8k5RY5cng1bNnmoiPNbSguj2QKETUWvMZeOvwqKWSTtPbq P0Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=wMnTJIBAJVhCqXODRA2PtLsZ5Af+2J03EuNmDbT3Kfc=; b=RkCkIkDDuOukbpu7VCw9MAkA8e58FyrEJwGnA5nKl4oSxjuGEcmWZGnV04kvli8EKR OlLiB59ATG4Y445bsqkYSS3SLLqwChlFPDp22TbgEyizykKlCEkDdPIrxCewUlfccwmR w5j/w51hvOIomOZR1BIWUSUCodu4ZEWiwM1fo8iIeuBaN7uE3VsmFxDljLNrlqmdn5oY fJqz1GiLZDITu0SbkUtnnK9ENzZ8z0CQ2yrL0Mndj2xcj7HO+DP6+sCrUH8HFXQB160r HTt5fdzgZdhTIPa/r/GVSGzOMaQTLjzOQYjH1g2sUn8BPlFR66FClA0p23AT7rRUdWGS UI3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="wJQ8Kzn/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v22si7208969edq.239.2019.09.30.14.22.06; Mon, 30 Sep 2019 14:22:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="wJQ8Kzn/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732453AbfI3VUy (ORCPT + 99 others); Mon, 30 Sep 2019 17:20:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:47810 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729855AbfI3VUy (ORCPT ); Mon, 30 Sep 2019 17:20:54 -0400 Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 834CE224ED; Mon, 30 Sep 2019 18:54:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569869695; bh=nDimeaTefAJte0JkKYh0LxNPHJJjkhIW+4kgCyDLziI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=wJQ8Kzn/d79BEfVY4JQlE/ULuHR6uLx09oEVYsba9tU7oofK2UHc0aeB6nuNW6+LJ zjl9T6uDZSievxqZ+K3mOKK9MOV4PH6kgNimYWGiEcc0hIDLG8P+tvXF2BQLG60CH6 jCp4rMLdAlO9p3d5fB/+IZDV6r3H2djgiNv6CFy8= Received: by mail-qt1-f175.google.com with SMTP id r5so18428130qtd.0; Mon, 30 Sep 2019 11:54:55 -0700 (PDT) X-Gm-Message-State: APjAAAXDbZM4nBhPemoF1KTTQ/s77Ny1flMMkUPCpQWeIVj5NcQi9PGQ fgq4u/EQn1uLQe0hAOpYYw2EQnOihhNCdRGFFA== X-Received: by 2002:ac8:444f:: with SMTP id m15mr26354991qtn.110.1569869694707; Mon, 30 Sep 2019 11:54:54 -0700 (PDT) MIME-Version: 1.0 References: <20190927143306.12133-1-m.szyprowski@samsung.com> In-Reply-To: From: Rob Herring Date: Mon, 30 Sep 2019 13:54:43 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] dt-bindings: gpu: Convert Samsung Image Scaler to dt-schema To: Krzysztof Kozlowski Cc: Maciej Falkowski , devicetree@vger.kernel.org, dri-devel , "linux-kernel@vger.kernel.org" , "linux-samsung-soc@vger.kernel.org" , Mark Rutland , Inki Dae , Marek Szyprowski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 27, 2019 at 9:59 AM Krzysztof Kozlowski wrote: > > On Fri, 27 Sep 2019 at 16:33, Marek Szyprowski wrote: > > > > From: Maciej Falkowski > > > > Convert Samsung Image Scaler to newer dt-schema format. > > > > Signed-off-by: Maciej Falkowski > > Signed-off-by: Marek Szyprowski > > --- > > v3: > > - Fixed description of 'clocks' property: > > rather than 'mscl clock', 'pclk clock' > > - Added empty line within if-else statement > > - Added 'additionalProperties: false' > > - Listed all missing 'properties' in properties scope > > > > Best regards, > > Maciej Falkowski > > --- > > .../bindings/gpu/samsung-scaler.txt | 27 ------- > > .../bindings/gpu/samsung-scaler.yaml | 81 +++++++++++++++++++ > > 2 files changed, 81 insertions(+), 27 deletions(-) > > delete mode 100644 Documentation/devicetree/bindings/gpu/samsung-scaler.txt > > create mode 100644 Documentation/devicetree/bindings/gpu/samsung-scaler.yaml > > > > diff --git a/Documentation/devicetree/bindings/gpu/samsung-scaler.txt b/Documentation/devicetree/bindings/gpu/samsung-scaler.txt > > deleted file mode 100644 > > index 9c3d98105dfd..000000000000 > > --- a/Documentation/devicetree/bindings/gpu/samsung-scaler.txt > > +++ /dev/null > > @@ -1,27 +0,0 @@ > > -* 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"; > > - }; > > diff --git a/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml b/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml > > new file mode 100644 > > index 000000000000..5317ac64426a > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml > > @@ -0,0 +1,81 @@ > > +# 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 > > + > > +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 > > + #include > > + > > + scaler@12800000 { > > + compatible = "samsung,exynos5420-scaler"; > > + reg = <0x12800000 0x1294>; > > + interrupts = ; > > + clocks = <&clock CLK_MSCL0>; > > + clock-names = "mscl"; > > + }; > > + > > +... > > You have some left-overs at the end. With cleaning them: > Reviewed-by: Krzysztof Kozlowski You mean the '...'? That's the end of YAML marker. It's not strictly needed. Rob