From patchwork Tue Sep 24 11:31:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 174265 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp4014330ill; Tue, 24 Sep 2019 04:32:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyuDx3DxmACL91miACnPlViBPXtibkFvODm+3EgCUkpWrrIBZxXB6T2nvDye9ndrrAJgKS/ X-Received: by 2002:a50:8a21:: with SMTP id i30mr2058520edi.229.1569324749012; Tue, 24 Sep 2019 04:32:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569324749; cv=none; d=google.com; s=arc-20160816; b=f8Mic3dmdMdxG7VI9nhHpwuElNXZL6ZheduzOITw7NY1gusuPxFjRyg2DpmkEujuG0 GdvXEG9dxnUyfiengwIYqMN54TGVctysXhffCBMvZLdnF14lUbk9BJjwYxzOlXFRSVDe ui2FNhuvWXEdp8qAS+Jdd1XzuDTaj/6vCxLOWBWy8jlgIxLATAsgwc7cCJkLSgAaQEXJ 1bp+ukU3DnwzRfFU3k52ym2CqDYQyQQE6rNCA7gwsYW9vuaBkwJ2VVYf6OsgDyQUp0ou 3sw+OiaDUGGS4HMqobiNulRHX3VUmY33ggQ9mxYD/DhIGP4FMM7kBDDIx7h8XUbA8Iim RwRw== 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=JPDQtgLHmeZoXEVwTjgfaqO3O0YNINhi8WqO+zseF40=; b=AHNEbhL0eCK2wg0Uv4yORbDBexxCVJRe+ZOAN3horvyiNHohu7k+YeEaVyp67LZi+Z A5DddZGFzFq3W93JOvCDybGVYTUjnL3EQU9tjKPBibUCwPN98mobjJJBystVhY356bNo +jlIYzAAFAbcv7+Hvvmn5wCH5wyCEY7UyWhM3soiejFIg+rBV/6kJ+3Id7AorS5039uX HnE3STY2WKHncFchsj31HG0/BUQ1NuhG3MuJhK+POzQu2G8jORfQTDdrfJXR/mB1sIXk Un/8PRARUPlDzSXoODTmW/lV1gPrSY2nPr4+Rso6pxEfPPxRFQYAR7Nde4DqZ+vP8LqS hdLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=NAcqmYRk; 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 s4si641037eju.265.2019.09.24.04.32.28; Tue, 24 Sep 2019 04:32: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=NAcqmYRk; 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 S2436665AbfIXLc2 (ORCPT + 3 others); Tue, 24 Sep 2019 07:32:28 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:42803 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405853AbfIXLc2 (ORCPT ); Tue, 24 Sep 2019 07:32:28 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190924113226euoutp0215cc29df76f5fdd9172416aca5c051da~HXIrdePYe1702017020euoutp02N for ; Tue, 24 Sep 2019 11:32:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190924113226euoutp0215cc29df76f5fdd9172416aca5c051da~HXIrdePYe1702017020euoutp02N DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1569324746; bh=JPDQtgLHmeZoXEVwTjgfaqO3O0YNINhi8WqO+zseF40=; h=From:To:Cc:Subject:Date:References:From; b=NAcqmYRku0pMBvmCKpVNTG97Nj1Dzskfn71CRW/CUdXLOo6VvH+PtqCwe0YkSn8Wh ydwpO9MzXJCvKNizX9rNARsMSRVEDDYxhJb8etQzmRm/2jvD4nAi3fvBFcO+yETUV6 Ze+txS5b8jzulFtTTlzF7jTusgPcHACsRvO6qIcM= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190924113226eucas1p2ba616fbd0d9ad41dc7394065f63087a7~HXIrBdiDr2078720787eucas1p2z; Tue, 24 Sep 2019 11:32:26 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 0A.7A.04374.ACEF98D5; Tue, 24 Sep 2019 12:32:26 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190924113225eucas1p131429c7f7e0d520693b89bb2a7d9e211~HXIqqUcku1757117571eucas1p1P; Tue, 24 Sep 2019 11:32:25 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190924113225eusmtrp119d863657d9cb73388343609c65ee94d~HXIqpXan32716827168eusmtrp1z; Tue, 24 Sep 2019 11:32:25 +0000 (GMT) X-AuditID: cbfec7f5-4ddff70000001116-ef-5d89feca3d10 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id A3.E5.04117.9CEF98D5; Tue, 24 Sep 2019 12:32:25 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190924113225eusmtip1b1a6f986d87223bb532d624e17a7e97a~HXIqJJDrv1091910919eusmtip16; Tue, 24 Sep 2019 11:32: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 , Marek Szyprowski Subject: [PATCH] dt-bindings: gpu: Convert Samsung 2D Graphics Accelerator to dt-schema Date: Tue, 24 Sep 2019 13:31:59 +0200 Message-Id: <20190924113159.24873-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA0VSXUhTcRz1v3t373V44zYH/jOxWGkkpJmFF7RPephEWA8+aCy76U1FN23X WbOX6VLcFNMJfowyITLxm03mFCZujQZKOlMrlFDpIfxi4kcRDGvbTXs75/zO+Z/z8CcQsVYY SRQoS1mVkimSYiLU+uH31LmJfb38fNs8Sr92TQnpuT0vRhuXGlB6enoQp2dHX2J06/SYgF7W 9WN0n+sbTr/9MiOgq+wu/JpI1tveC2Tmbj0mW6p1C2T1Q91AtmOOviPMEqXmskUFZawq4coD UX6naRst8R17OlDVhWqBR2IAoQSkLsKFfi9mACJCTHUBOOIyCHmyC2Bj4wTgyY6fWLaRg0hF 7biAP7wD0Ktz4ocR74AdDbgwKhEaNg3BhyVUJYBzI2tBF0JtAeiwtGMBVziVCR2rFkEAo1QM fLU56tcJgqQuQ70hiq87AXsGx5FAFlLrGGxdPNhxE9a0NQh5HA7X3EM4j6PgZFMdygd0AK5M 9eE8qQNwtrIV8K4U+N49Iwy0IdRZODCawMvX4UqFNTgCUkfg182jARnxQ6O1BeFl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XkNCrMe6/LXBsYrumibrtubWa65KFo14v7PmT q2wal353e0aQBuexmf/UhL/O9J19duoc/c8nGrcc9BARy5f1SZcK3KOUsNQxZ3X+Dz5Vgbt5 bEosxRmJhlrMRcWJAC26ZfhoAgAA X-CMS-MailID: 20190924113225eucas1p131429c7f7e0d520693b89bb2a7d9e211 X-Msg-Generator: CA X-RootMTR: 20190924113225eucas1p131429c7f7e0d520693b89bb2a7d9e211 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190924113225eucas1p131429c7f7e0d520693b89bb2a7d9e211 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 --- .../devicetree/bindings/gpu/samsung-g2d.txt | 27 ---------- .../devicetree/bindings/gpu/samsung-g2d.yaml | 53 +++++++++++++++++++ 2 files changed, 53 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..bb0a4bf168cc --- /dev/null +++ b/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml @@ -0,0 +1,53 @@ +# 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: + minItems: 1 + maxItems: 2 + + clock-names: + oneOf: + - items: # for Exynos5250 SoC + - const: fimg2d + - items: # for S5PV210 and Exynos4 based SoCs + - 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"; + }; +