From patchwork Fri Sep 27 14:33:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 174627 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp3594744ill; Fri, 27 Sep 2019 07:33:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzn3hICvf6F0421Yytfr0DXb99jYpho2JLgzU6bPhv+E10bxn/uC4guMH953YYgXzyBz1GO X-Received: by 2002:a17:906:234e:: with SMTP id m14mr7918595eja.118.1569594808418; Fri, 27 Sep 2019 07:33:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569594808; cv=none; d=google.com; s=arc-20160816; b=VoiIfFwIE7ggPkHZixTlQ5zIfpNvITpedspOMzSR20YNZXj23wVuRAeltd2kmTp8Ce eJdaYdXpuSQcigBwMN9rlY7wSK4ZkGIBSZrLUmMLkPvAbVGq57Gmwgm4ZCRhgQ96zc/F JvrezpGEazVTQonSOzk/fyNb54E/ofeLwpQ+xnUEAJRdyxGSpzuP1C0ORVO/jwdA6mMO cALSQwj7dddYMMwXVwrrGH/Bnge2SbX32AdhlMr2Y0kgXlMjkMZGvrnAEN3RllYFkKrC oFS+CTxwTSm52roZKo+Sd5UQsBh8x34+z/CMtk98/xX+oqV4CWl+ka2UCcGLJU5MLlPI 3/ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=G2Au4nqh316kn+/C2/u5KhH+/FqAvU2AUojAO78U73I=; b=YYSyTvsf6r0DHbUT8k8ZGYu/LCeqaE4GjkzlGEJS6RH3m+SfviKe33vNjfN1LLGvIy KNIN9zifoYgnwACuT6nrK+VE5i3omNW+ka757tG/24YulynjzDbIZVKDsWGJhOinMCgp h4BTYEFNpz786XdmSvvPlvwN2XlyRqke9zxsAiOqtExBleL9w8XNlZuIYjTampvjUmN6 QZl06lZfOU1Ii2DR85p+ILXsrsgN3MdhKzadaPQvEMUK3Trp1OknCYZkllJwODSmUASC YbP7O+DE/SErQGunnroV35+Kk/HhBsI6VlEWNrV9cRq0cjMXJxGPM2D+CVKXrsWAEFh4 vNOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=aSrUe4QD; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f57si1731564edb.165.2019.09.27.07.33.28; Fri, 27 Sep 2019 07:33:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-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=@samsung.com header.s=mail20170921 header.b=aSrUe4QD; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727447AbfI0Od1 (ORCPT + 3 others); Fri, 27 Sep 2019 10:33:27 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:44575 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727079AbfI0Od1 (ORCPT ); Fri, 27 Sep 2019 10:33:27 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190927143326euoutp02ffdc55b75691778aa75834a3b00c4319~IUikVRQ6d2240322403euoutp02h for ; Fri, 27 Sep 2019 14:33:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190927143326euoutp02ffdc55b75691778aa75834a3b00c4319~IUikVRQ6d2240322403euoutp02h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1569594806; bh=G2Au4nqh316kn+/C2/u5KhH+/FqAvU2AUojAO78U73I=; h=From:To:Cc:Subject:Date:References:From; b=aSrUe4QDRg4qX8rEwHOoNLFkqlXJv8D856A1o0jU0uc+5BDe7Z+WNNW+YyKv/L+sX R3zk9S947Fonynyu+0vWIRvoSZR1gcVeNlY0OUd/TBPug3w+FW/T25532mUKm+L14P WCyLbc10edEKLsOurj/idUVslycLkCdlvzBnsqeg= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190927143326eucas1p191957130d7648dee680b08c7987054a0~IUij-26UX3115431154eucas1p1q; Fri, 27 Sep 2019 14:33:26 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id C9.38.04374.6BD1E8D5; Fri, 27 Sep 2019 15:33:26 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190927143325eucas1p289cb46e8dcbb1ace0b1f80ade738c29b~IUijt1R9y0135701357eucas1p2l; Fri, 27 Sep 2019 14:33:25 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190927143325eusmtrp1e6f567178d9de4f7767a7f93ee5bb734~IUijtRLM13086830868eusmtrp1U; Fri, 27 Sep 2019 14:33:25 +0000 (GMT) X-AuditID: cbfec7f5-4ddff70000001116-85-5d8e1db64ccc Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id CD.25.04117.5BD1E8D5; Fri, 27 Sep 2019 15:33:25 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190927143325eusmtip2fc047acbf4efd1ce4281a2182177454a~IUijRlbgD0300703007eusmtip2Z; Fri, 27 Sep 2019 14:33:25 +0000 (GMT) From: Marek Szyprowski To: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Rob Herring , Mark Rutland , Inki Dae , Krzysztof Kozlowski , Maciej Falkowski Subject: [PATCH v3] dt-bindings: gpu: Convert Samsung 2D Graphics Accelerator to dt-schema Date: Fri, 27 Sep 2019 16:33:19 +0200 Message-Id: <20190927143319.12232-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrFIsWRmVeSWpSXmKPExsWy7djPc7rbZPtiDWYeZ7eYf+Qcq8WVr+/Z LCbdn8Bicf78BnaLy7vmsFnMOL+PyeJB8zo2i6XXLzJZtO49wu7A6bFm3hpGj02rOtk87ncf Z/Lo27KK0ePzJrkA1igum5TUnMyy1CJ9uwSujM+fnrEWnJOt2DnrP2sD4yzxLkZODgkBE4n2 Wa9Yuhi5OIQEVjBKtG5awgbhfGGUOL5iAzNIlZDAZ0aJfQsiYDoe37kN1bGcUWLFrjkscB3P 759hAqliEzCU6HrbBTZKRKCJUeLKzlfsIAlmgYOMEku2BYLYwgIxEpdffAeLswioSryd+RbM 5hWwlZh9djMzxDp5idUbDjCDDJIQeM4mMef1DTaIhIvEv44jUEXCEq+Ob2GHsGUkTk/uYYFo aGaUeHhuLTuE08MocblpBiNElbXE4eMXWbsYOYBO0pRYv0sfIuwo0fB0JTNIWEKAT+LGW0GI o/kkJm2bDhXmlehoE4KoVpOYdXwd3NqDFy5BneMhMXPpanZI0MVKbJuyl3ECo9wshF0LGBlX MYqnlhb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ygmHrSfTLl/mzdqYtWXF5Nqn yum/Y5muGxhOPOncGvpsr3r0stqfXeZpC2u+50bkFkQbfL57fZ8dh3Pzrs+1d2fE/l2mqcRS nJFoqMVcVJwIAPEvoU5jAgAA X-CMS-MailID: 20190927143325eucas1p289cb46e8dcbb1ace0b1f80ade738c29b X-Msg-Generator: CA X-RootMTR: 20190927143325eucas1p289cb46e8dcbb1ace0b1f80ade738c29b X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190927143325eucas1p289cb46e8dcbb1ace0b1f80ade738c29b References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org 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 -- 2.17.1 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"; + }; + +...