From patchwork Fri Sep 27 14:33:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 174626 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp3594474ill; Fri, 27 Sep 2019 07:33:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGcVxySgjFj4FhIjUvAYIHZXaLJHGIztYyYHeMf6Dbz3OY8Joh/FXdHXTUC3u0eSZV5xAy X-Received: by 2002:a05:6402:2cb:: with SMTP id b11mr4929995edx.285.1569594797803; Fri, 27 Sep 2019 07:33:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569594797; cv=none; d=google.com; s=arc-20160816; b=M18MyRQoXim5qtAJyTuRg2wA/dtm7tlEXbn931pJBpKJsIKo2bu7iGWdszkkkDrVrB ed5eciArkIsQ3dnIBRowen6X715sDIQbDb6NG23N9BRIvgcNcR/8uQg796wFj11cfUzN RxFvzQO3VwSysFJrtkaO5S9RicIW3WgcTaAZcsHT9wFtmEqEDleDN6zxYAWNCOan3hUT 5go4wu/QqTZiakUlOuiW0vXrOFsk1TsZCs3f/KsISlrW9tTNRyLW1ki2DDPEXxiO5aIO AsGCDK6o1IBGYSi+i5BJ4T3DVzdNxL+ELvKdagUtibsj58PjIlyTY+5Jkl9BJ6/dvKo7 aEKg== 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=hiJbO/O5KGuNuMhqp/5c2SuOZIf79Yix8ZcvFieL2Mg=; b=kwjmLh7Eca0hZ0VP+RZI4ge6TNq+QPPlG03JbRVviV4HeiScyzxh/LB4/Riqer4Qe+ +HtWjwnKcABZZT7gSFUXmkmdMROVMFf48gpvaJi0EMrR+BXk8H9vG4G/fCFMWmTByNHP wqjPcUq6zbOW5jzREqnb7MCChoQ+2qnxH2vHAjRfe8SL5tslrrOheJ4ItHgImLwU7v4f 86b9F6O6kKa43WijixqKevouQ/Afpte5H7IFjXKTJ6Ozi13p+MOtkYlZZnvuSUjObctp 4cOiAWa04mvegt2IT1/6N2NUNOqrVXIK+BGw+ELEVOXNVJKN+zR5oIgQs0DY7p2+lFZK 5B8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=XZUDnnFn; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 bq16si2787646ejb.221.2019.09.27.07.33.17; Fri, 27 Sep 2019 07:33:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=XZUDnnFn; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1727140AbfI0OdR (ORCPT + 8 others); Fri, 27 Sep 2019 10:33:17 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:44524 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727124AbfI0OdQ (ORCPT ); Fri, 27 Sep 2019 10:33:16 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190927143314euoutp025b0f98ae4d43faad63725b3afbb243b5~IUiZeb-9i2294722947euoutp02x for ; Fri, 27 Sep 2019 14:33:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190927143314euoutp025b0f98ae4d43faad63725b3afbb243b5~IUiZeb-9i2294722947euoutp02x DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1569594794; bh=hiJbO/O5KGuNuMhqp/5c2SuOZIf79Yix8ZcvFieL2Mg=; h=From:To:Cc:Subject:Date:References:From; b=XZUDnnFnx4zTA310LILyVojU/kqhKMnp/UH5nA8VkF9CIWnpW7T5ufHsDibn06CxM B7kf7S0jAC4L/N4mCLCA8HywLHmU77S9FTewi0GC72S0ff1wq2v66YvOi1f7BB9VoK uw2F2+BUF2SvDs7yJtVzS0iSDVdD9UJSzZozfgUA= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190927143314eucas1p1e8e031c5d7cd0b00ff7737c27491b61f~IUiZTsZ2k1143111431eucas1p13; Fri, 27 Sep 2019 14:33:14 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id F8.88.04469.AAD1E8D5; Fri, 27 Sep 2019 15:33:14 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190927143314eucas1p2d419866cd740207426cd37cb6fdff468~IUiY6KbjF1734917349eucas1p2-; Fri, 27 Sep 2019 14:33:14 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190927143314eusmtrp162aa909198e6ed383fa3d483e74658db~IUiY5caje3086830868eusmtrp1G; Fri, 27 Sep 2019 14:33:14 +0000 (GMT) X-AuditID: cbfec7f2-569ff70000001175-c9-5d8e1daaff9a Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 69.25.04117.AAD1E8D5; Fri, 27 Sep 2019 15:33:14 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190927143313eusmtip1c0bd0ccf00d3fd9df7f66398d6fa7574~IUiYWmjgP0742707427eusmtip17; Fri, 27 Sep 2019 14:33:13 +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 v3] dt-bindings: gpu: Convert Samsung Image Scaler to dt-schema Date: Fri, 27 Sep 2019 16:33:06 +0200 Message-Id: <20190927143306.12133-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHIsWRmVeSWpSXmKPExsWy7djPc7qrZPtiDb7c1rCYf+Qcq8WVr+/Z LCbdn8Bicf78BnaLy7vmsFnMOL+PyeJB8zo2i7VH7rJbLL1+kcmide8RdgcujzXz1jB6bFrV yeZxv/s4k0ffllWMHp83yQWwRnHZpKTmZJalFunbJXBlXDmylalggXzFqt1rmRsYz0l0MXJy SAiYSKw/vYAFxBYSWMEoseSPbhcjF5D9hVFixutPbBDOZ0aJP1P3McF0tCxoZoRILGeUuPjx HlQ7UMv1WfIgNpuAoUTX2y6wbhGBJkaJKztfsYM4zAIfGCUObp7HBlIlLBAo0fnnLZjNIqAq MfHLEzCbV8BW4tHm6VDr5CVWbzjADNIsIfCeTaJlSi8rRMJF4v2+T2wQtrDEq+Nb2CFsGYnT k3tYIBqaGSUenlvLDuH0MEpcbprBCFFlLXH4+EWgSRxAN2lKrN+lD2JKCDhKzF0SCWHySdx4 KwhSzAxkTto2nRkizCvR0SYEMUNNYtbxdXBbD164xAxhe0gsa53EBgmUWIn/Lw8yTmCU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44TOpT2PLwxYmhe1vDDZa YfTpqkfn0nXHM3dbXZtwV6Fo5ZIl/v3nrPZsP5OldOv8qdzQsGmlR9uFTiV7f5GbVOk3LfHJ 79VKLMUZiYZazEXFiQCaoSdsaQIAAA== X-CMS-MailID: 20190927143314eucas1p2d419866cd740207426cd37cb6fdff468 X-Msg-Generator: CA X-RootMTR: 20190927143314eucas1p2d419866cd740207426cd37cb6fdff468 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190927143314eucas1p2d419866cd740207426cd37cb6fdff468 References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 -- 2.17.1 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"; + }; + +...