From patchwork Tue Sep 29 14:14:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 313771 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp4206907ilg; Tue, 29 Sep 2020 07:16:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyj1UzsIA9BsotOERp4gzgd4s7sziUUmkmBm2/TtscHCV/kU5ODa7PCKm8R/JGtyMzOWfS1 X-Received: by 2002:a05:6402:1818:: with SMTP id g24mr3476971edy.332.1601388985338; Tue, 29 Sep 2020 07:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601388985; cv=none; d=google.com; s=arc-20160816; b=XmcCYOtO6D2hgV2yNJrv0NPEqq+QSDF1j77pGYxl3A/gEJWpyPAgLzA22HgPmZH1cN DtfT5Q4dhsZjYhxS0HwS/au9KOyebih3cf9QuRQvan+L8c4WVAry1BIgSdd8TIwcubdB oL+8NB7ocxhv4pSnLZ3zwBXyc08ElQ3/dHhAcRLG+9ih1FgSS07GoUMDDtizD2Ez168S 29ZZE2n7q4bFojRXmHUs+kfDoSB5K9nTcM9P3EqnzJXPyiguIIqKI2WmLOU4Nf3JhzNq ksHBRrPqst7N+oVAiAJIOe39aZvZI0bXVKAXdIhIDpauNI7MyCRZzy6NCWkOdh1i2t4g Agxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5+dwH/msMvhogBWDQzoJzNBmasxnGtduDjDoYNaHa3A=; b=DvQvlN3QNtsBhgOqxSILtXxDk79OrqC8NFooMFRWl9BO9F1hkRkCiNIsZY+tsakNVk zFPBZ5N66OerScTssWI4HjY9sJWo8fjtdpL1Stet+6VVIljcvRQTj9g1lRyGrk+RMexV fqcYa0hCsFOq7/JeBE+CxcgI0WkgMLf+GlNxsmQ7NRmWFEQgDp2k0Qb4q1EjjlLaakL4 0NBOQRMicwR4RzO4Hx3HmbYElle/LT13sK8T+Tkz+onRiVNAEZXZ5auOS+WsB2i74IlT vnG37d+TzTSmgTrOMXjpc+PR4I+SADeDl5vj+9MJDPqns+euT9ocxW9E2pOLeUzwb0Rc e3Pw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si2746312ejt.529.2020.09.29.07.16.25; Tue, 29 Sep 2020 07:16:25 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730843AbgI2OP2 (ORCPT + 6 others); Tue, 29 Sep 2020 10:15:28 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14721 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730369AbgI2OP2 (ORCPT ); Tue, 29 Sep 2020 10:15:28 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 9546A665D24B12652272; Tue, 29 Sep 2020 22:15:24 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.253) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Tue, 29 Sep 2020 22:15:18 +0800 From: Zhen Lei To: Wei Xu , Rob Herring , "Jonathan Cameron" , devicetree , linux-arm-kernel , linux-kernel CC: Zhen Lei , Libin , Kefeng Wang Subject: [PATCH v5 12/17] dt-bindings: arm: hisilicon: convert hisilicon, pctrl bindings to json-schema Date: Tue, 29 Sep 2020 22:14:49 +0800 Message-ID: <20200929141454.2312-13-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20200929141454.2312-1-thunder.leizhen@huawei.com> References: <20200929141454.2312-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.177.253] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert the Hisilicon peripheral misc control register binding to DT schema format using json-schema. Signed-off-by: Zhen Lei --- .../arm/hisilicon/controller/hisilicon,pctrl.txt | 13 --------- .../bindings/arm/hisilicon/controller/pctrl.yaml | 34 ++++++++++++++++++++++ 2 files changed, 34 insertions(+), 13 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,pctrl.txt create mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/pctrl.yaml -- 1.8.3 diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,pctrl.txt b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,pctrl.txt deleted file mode 100644 index deec777bc3a850a..000000000000000 --- a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,pctrl.txt +++ /dev/null @@ -1,13 +0,0 @@ -PCTRL: Peripheral misc control register - -Required Properties: -- compatible: "hisilicon,pctrl" -- reg: Address and size of pctrl. - -Example: - - /* for Hi3620 */ - pctrl: pctrl@fca09000 { - compatible = "hisilicon,pctrl"; - reg = <0xfca09000 0x1000>; - }; diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/pctrl.yaml b/Documentation/devicetree/bindings/arm/hisilicon/controller/pctrl.yaml new file mode 100644 index 000000000000000..6d50658728092cf --- /dev/null +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/pctrl.yaml @@ -0,0 +1,34 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/hisilicon/controller/pctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Peripheral misc control register + +maintainers: + - Wei Xu + +description: Peripheral misc control register + +properties: + compatible: + items: + - const: hisilicon,pctrl + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + pctrl@fca09000 { + compatible = "hisilicon,pctrl"; + reg = <0xfca09000 0x1000>; + }; +...