From patchwork Tue Sep 24 13:46:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 174277 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp4173373ill; Tue, 24 Sep 2019 06:46:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyM9aZDAVwoj9FAKk6kiijygix+ppNLUpGR+YjvjSwOOKpXQNCC0JBR1OinyViHlMM0F+Y X-Received: by 2002:a17:906:4a11:: with SMTP id w17mr2465864eju.21.1569332793958; Tue, 24 Sep 2019 06:46:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569332793; cv=none; d=google.com; s=arc-20160816; b=fjKcTqvyLbIfw2eCpjohkE4vghPe/GLcFbxb9eSGr1scMU0x0YgyS9Z6iD0H1Mj9sE 2znLG+L9+Sxo/0hTKMYTdUvkmCZpXjzc1BjF3d4WGIJekPGwUtDKqIXeNfay5xr6+Y3o 0n0/L9zBBpJpnBIpbxCUhqAZrU/Y+dDtesOpmnz715igAPoLi9yxgD1e8ENHVTGPh7IS eVoTiDcLHThf/sZ1d8hvylVh7EZhiYIXpa+94xyJNCEnhGeUUqHINRHH/lamn9VqwwVm G7QYNupEmCTp3HDchCxeviA4Uu+V26gA65dwyQzn2IEvisZV77BfU7GSYhG5XZuRGgWP ThLA== 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=hjG7mIhqoiOETo/vBYiUdDrKZ8xHLwwvqLJb2beAL28=; b=JbBtWaMBLxA3ASSkSVlYnbXGkgYMDsEJyTp2Bfs7RpQOU8XQaA3Kat6cMqXt2PjLG1 YNOE6+wJNHWGgWyo8xlMbvHW9NBUGNci1jtolM8Bn7Cg3lXqjy9QAcsB5JWDHRKI9lOz rzXz9td9Ac0cOqhPUFR3IdaC5gFEQ5uY3EA1813VBBB/uql7UHFtOjehN1gYDu8gIk7B m7i6upAT1pQHK20Z/zLEPlZ/Iq1ePTV0q4Goe2y+9QEDl04k+UXPgUZR+hQnHtPIGl0s HxeBpzcNDp4v7JXrLpATEt7AdoP8qarNlNCu2n3FQwk8gjYDLnNPKDdN2TZbX8BU31f9 fz+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Y49yQLmR; 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 k7si846902eja.377.2019.09.24.06.46.33; Tue, 24 Sep 2019 06:46:33 -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=Y49yQLmR; 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 S2392219AbfIXNqb (ORCPT + 3 others); Tue, 24 Sep 2019 09:46:31 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:60724 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390474AbfIXNqa (ORCPT ); Tue, 24 Sep 2019 09:46:30 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190924134629euoutp012a2f380fc227eb952f9712e44cf04aca~HY9tz0n4F0314703147euoutp01- for ; Tue, 24 Sep 2019 13:46:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190924134629euoutp012a2f380fc227eb952f9712e44cf04aca~HY9tz0n4F0314703147euoutp01- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1569332789; bh=hjG7mIhqoiOETo/vBYiUdDrKZ8xHLwwvqLJb2beAL28=; h=From:To:Cc:Subject:Date:References:From; b=Y49yQLmRhXpcDp+Z/DI64yse89omla7BI9frg6hfkBSFKJORfItP2jDpzinY66yH/ 6e+RhD0a9t0FnhrxO8YUUEo7+IQqJDzyk0LnvpyvpgUY9eRjim79zZyZItgBpVfwIX MhJDb1v246CVPP3a5E8xBJdIMDLwBUd+hMIhZgA8= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190924134628eucas1p2bd276c27a6f10a9c22fe01ee96c1191e~HY9tYCT0k1167611676eucas1p2s; Tue, 24 Sep 2019 13:46:28 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 13.A0.04309.43E1A8D5; Tue, 24 Sep 2019 14:46:28 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190924134628eucas1p1586ca3285dac6b5d5cd1026ea78c436e~HY9tBJLQ02098520985eucas1p1C; Tue, 24 Sep 2019 13:46:28 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190924134628eusmtrp251cfad991c9cd03ca569a4a2329fdbfb~HY9s9tNxH0218002180eusmtrp2Z; Tue, 24 Sep 2019 13:46:28 +0000 (GMT) X-AuditID: cbfec7f4-ae1ff700000010d5-17-5d8a1e34e9f8 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 66.A8.04117.43E1A8D5; Tue, 24 Sep 2019 14:46:28 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190924134627eusmtip1dd6609f10e2c9112831705383be71907~HY9sg53nY2427224272eusmtip1j; Tue, 24 Sep 2019 13:46:27 +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 , Marek Szyprowski Subject: [PATCH v2] dt-bindings: gpu: Convert Samsung 2D Graphics Accelerator to dt-schema Date: Tue, 24 Sep 2019 15:46:14 +0200 Message-Id: <20190924134614.13371-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA0VSa0hTYRju29m5OJycpuWXyqJBQuElQ+JAFhqF56eU/imHHvO0edmUHbW0 CHN0cVrpCBwmzglleUen6KqVNt2PbGtpJaFsEiVow/ISBqJtO5r/nve5vM/Lx0cgkko0gshT l7AaNVMow0TCwfG/jthEqU5+zOJIoIw2B0pNrS1hlN5dJ6Sczl6cmrQ0YZTBaRVQHm03RnXZ ZnHqyReXgLr9yoYni+jO5k5A97VXY7S7xi6gH5jbAb3SJ01DL4qSctnCvDJWE386W6Q0TU7j xbPSazVuG6gEj8N1IIiAZCJ8blkT6oCIkJDPAByxLiL8sArgC5sD87sk5AqA61rFTqL26e/t RBuArbUN+G5CO4z6XRiZAHVeHeYXwsgqAKeGFwIuhPzlK+lvDuwNJTPhjyYH4sdC8jB8bXgU wGLyFGxZeYjxfQdhR++bwFGQXMTgrT89KC+chfUTLsDjULhgN+M8joJbw0YBH9ACOOfowvmh FsDJKsN24iR8a3f5NhG+m47AHks8T6dAx/J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w/aHxh/6VU2cuu3s8L/DTvcm/udcUbmWZfjnE8nps07ynmuvlQ95mMiq9 uP2IN0Huqsr89An/znE75Zt1vDpRLXrhpG29yO569lU9qsd8NyeKn5W4U6v4rqS1miXtmo0S S3FGoqEWc1FxIgDgf4sLaQIAAA== X-CMS-MailID: 20190924134628eucas1p1586ca3285dac6b5d5cd1026ea78c436e X-Msg-Generator: CA X-RootMTR: 20190924134628eucas1p1586ca3285dac6b5d5cd1026ea78c436e X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190924134628eucas1p1586ca3285dac6b5d5cd1026ea78c436e 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 Signed-off-by: Marek Szyprowski --- v2: - Added if-then statements for 'clocks' and 'clock-names' properties. Best regards, Maciej Falkowski --- .../devicetree/bindings/gpu/samsung-g2d.txt | 27 ------- .../devicetree/bindings/gpu/samsung-g2d.yaml | 76 +++++++++++++++++++ 2 files changed, 76 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..5e05e8ccc83f --- /dev/null +++ b/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml @@ -0,0 +1,76 @@ +# 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 + +allOf: + - if: + properties: + compatible: + contains: + const: samsung,exynos5250-g2d + + then: + properties: + clocks: + items: + - description: fimg2d clock + clock-names: + items: + - const: fimg2d + + - if: + properties: + compatible: + contains: + enum: + - samsung,s5pv210-g2d + - samsung,exynos4212-g2d + + then: + 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 + +examples: + - | + g2d@12800000 { + compatible = "samsung,s5pv210-g2d"; + reg = <0x12800000 0x1000>; + interrupts = <0 89 0>; + clocks = <&clock 177>, <&clock 277>; + clock-names = "sclk_fimg2d", "fimg2d"; + }; +