Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3555805ybn; Fri, 27 Sep 2019 08:03:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoG/1kxp164TmBwBtE6FU+T20HN0tc/lPNWDDSfq7YRcwbyngIKNKYbIsDiPNNK/CQ+s0p X-Received: by 2002:aa7:c555:: with SMTP id s21mr5077691edr.151.1569596629095; Fri, 27 Sep 2019 08:03:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569596629; cv=none; d=google.com; s=arc-20160816; b=U7T9nQ2bP9+YUHJ0XJGTKWx77qg9NaPTYkdnAnFHWxRzf+GlGB3nWlUzCFrEkPGKAH qLrKkeKiqEuN5Y58fhxnl2i95d0txnF3cANvS2E15MCTqYi8nMq4AQeU/rgB3F7OaS65 g2RqnMEhrshq/3uJGBS7dT+JkUoiILFGRJfx3m5rH7HXQLlzdAC23xKkrPPK2ukOCiCQ 1moDcKJl3vO2whHWicRt1I31BL+wLLZJuGx6LaE3cGBiJhQ3no0O5M9sBDzLreZDSuiP WQSN2XxlwN5/FQT57s5RQW1OS+go1D6Y54kT5ptJI4TgYUUOoJv2vg9c4cM8gyUdH43+ aiyw== 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=bUaeOinDY2jkTysaDg3pL+7ByRAqyKrIDsT6Sb0mM24=; b=AaKrinfns9CFWSBcUUskIpB4dhYM6F00GwT1urdqkdPrixyvkzyyerL+GlUh5XblCU kEPY/odSlONXd74y/vsrbIVJMVbIiJ7mZAUVzZW6dpmKveX2412NEEvPCdch02IoON/S 05yySPpiWZW3Loyfve/qDvDsqXuFVjUYDyN9v9cTMujX3L8SSX0TwivE7GVoIrd4/aF1 mcz2CMzuf8xXrRfVcl5/2Syrodhkd1nP8fanF1OcBNHZfEQb/O8qUOllMwVtOR8iwPE7 fFDk9c1dBis4eOFNwT7KHgu5dj6dy0pDJmjARcFbHaM2Nj3Uf/4Nut+nAFc1mgYidcha DvxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=anMo7lpQ; 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 f1si2858313ejw.217.2019.09.27.08.03.20; Fri, 27 Sep 2019 08:03:49 -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=anMo7lpQ; 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 S1727976AbfI0PCp (ORCPT + 99 others); Fri, 27 Sep 2019 11:02:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:40282 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727319AbfI0PCp (ORCPT ); Fri, 27 Sep 2019 11:02:45 -0400 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 B8D5021D56; Fri, 27 Sep 2019 15:02:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569596564; bh=PPVrg31jFsrd7Bb7WNQSWveOn6okoAYRcvr6DKHC6Rs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=anMo7lpQvcOoM8adFgciIu8hAZzGl/ACVS8D7IYkNWDzW/WQpmyh/sQAN+MObtq5Y bhaJuxSa8BgmZphQLIYj4rwRFkpZ404mO5S1dODJ1+rPfTBAmVHkpNgPgXcQaE/3ls iBK+Meh8QFWennVgtbzfwz1SUKKjE9n5IKE6m5bg= Received: by mail-lf1-f45.google.com with SMTP id q11so2155695lfc.11; Fri, 27 Sep 2019 08:02:43 -0700 (PDT) X-Gm-Message-State: APjAAAV0x5vO0oQMmBT7hsS4AwbDWzkJc0qYnu/Qs0E2+A+yHgeWpqZY Ny8nl5N5ba7aXE/WEOPwINdhuaR/UQNgy55BUc4= X-Received: by 2002:ac2:4853:: with SMTP id 19mr3073713lfy.69.1569596561915; Fri, 27 Sep 2019 08:02:41 -0700 (PDT) MIME-Version: 1.0 References: <20190927143319.12232-1-m.szyprowski@samsung.com> In-Reply-To: <20190927143319.12232-1-m.szyprowski@samsung.com> From: Krzysztof Kozlowski Date: Fri, 27 Sep 2019 17:02:30 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] dt-bindings: gpu: Convert Samsung 2D Graphics Accelerator to dt-schema To: Marek Szyprowski , Maciej Falkowski Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, "linux-kernel@vger.kernel.org" , "linux-samsung-soc@vger.kernel.org" , Rob Herring , Mark Rutland , Inki Dae 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, 27 Sep 2019 at 16:33, Marek Szyprowski wrote: > > From: Maciej Falkowski > > Convert Samsung 2D Graphics Accelerator to newer dt-schema format > > Signed-off-by: Maciej Falkowski > --- > v3: > - Merged two if-statements with single if-else statement > - Added 'additionalProperties: false' > - Listed all missing 'properties' in properties scope > > Best regards, > Maciej Falkowski > --- > .../devicetree/bindings/gpu/samsung-g2d.txt | 27 ------- > .../devicetree/bindings/gpu/samsung-g2d.yaml | 75 +++++++++++++++++++ > 2 files changed, 75 insertions(+), 27 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/gpu/samsung-g2d.txt > create mode 100644 Documentation/devicetree/bindings/gpu/samsung-g2d.yaml > > diff --git a/Documentation/devicetree/bindings/gpu/samsung-g2d.txt b/Documentation/devicetree/bindings/gpu/samsung-g2d.txt > deleted file mode 100644 > index 1e7959332dbc..000000000000 > --- a/Documentation/devicetree/bindings/gpu/samsung-g2d.txt > +++ /dev/null > @@ -1,27 +0,0 @@ > -* Samsung 2D Graphics Accelerator > - > -Required properties: > - - compatible : value should be one among the following: > - (a) "samsung,s5pv210-g2d" for G2D IP present in S5PV210 & Exynos4210 SoC > - (b) "samsung,exynos4212-g2d" for G2D IP present in Exynos4x12 SoCs > - (c) "samsung,exynos5250-g2d" for G2D IP present in Exynos5250 SoC > - > - - reg : Physical base address of the IP registers and length of memory > - mapped region. > - > - - interrupts : G2D interrupt number to the CPU. > - - clocks : from common clock binding: handle to G2D clocks. > - - clock-names : names of clocks listed in clocks property, in the same > - order, depending on SoC type: > - - for S5PV210 and Exynos4 based SoCs: "fimg2d" and > - "sclk_fimg2d" > - - for Exynos5250 SoC: "fimg2d". > - > -Example: > - g2d@12800000 { > - compatible = "samsung,s5pv210-g2d"; > - reg = <0x12800000 0x1000>; > - interrupts = <0 89 0>; > - clocks = <&clock 177>, <&clock 277>; > - clock-names = "sclk_fimg2d", "fimg2d"; > - }; > diff --git a/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml b/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml > new file mode 100644 > index 000000000000..e7daae862578 > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml > @@ -0,0 +1,75 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/gpu/samsung-g2d.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Samsung SoC 2D Graphics Accelerator > + > +maintainers: > + - Inki Dae > + > +properties: > + compatible: > + enum: > + - samsung,s5pv210-g2d # in S5PV210 & Exynos4210 SoC > + - samsung,exynos4212-g2d # in Exynos4x12 SoCs > + - samsung,exynos5250-g2d > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: {} > + clock-names: {} > + iommus: {} > + power-domains: {} > + > +if: > + properties: > + compatible: > + contains: > + const: samsung,exynos5250-g2d > + > +then: > + properties: > + clocks: > + items: > + - description: fimg2d clock > + clock-names: > + items: > + - const: fimg2d > + > +else: > + properties: > + clocks: > + items: > + - description: sclk_fimg2d clock > + - description: fimg2d clock > + clock-names: > + items: > + - const: sclk_fimg2d > + - const: fimg2d > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names > + > +additionalProperties: false > + > +examples: > + - | > + g2d@12800000 { > + compatible = "samsung,s5pv210-g2d"; > + reg = <0x12800000 0x1000>; > + interrupts = <0 89 0>; > + clocks = <&clock 177>, <&clock 277>; > + clock-names = "sclk_fimg2d", "fimg2d"; > + }; > + > +... The same trailing lines. I mentioned this already about scaler bindings. Please fix all your patches at once for the same commented issue. With this fixup: Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof