From patchwork Wed Sep 30 03:17:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 313830 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp4679759ilg; Tue, 29 Sep 2020 20:19:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyMuhdgos+pnOZLGTvq2+hK5IajaVMt1GMG7BCNjiGdwkH0CFuP3kyA/ZeDuJTDONnJ8bk X-Received: by 2002:a05:6402:1451:: with SMTP id d17mr596853edx.48.1601435956872; Tue, 29 Sep 2020 20:19:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601435956; cv=none; d=google.com; s=arc-20160816; b=jK7OMK1AMtvisLbA6qXq9Dx0sVqMQ3ddpYZc16fbIL+AtmJ3cQuWFHJDrLYBE7XerN Hm+60AqR3PdL0ErUN98eHmz15ZqsOHKUBMxbXZB1QLxdpqPqFOWstUS3k+vWlFRycgcn iqCq5AhEqfmmIK5Hyqh5ZYrmPWzlr8FdHcBt3aOyj/EP8tWCl3mbTS4rmSsVjjS0CCVw GtDif5jbVheFPiMGZRxAflNqUyYNiuy3A+PPt4o7ibSm9tRbTW/PW4M2yq3dGq3sc1Y8 eT47D8fQewvgqn2sKTwu+72AGrTWFyzoHnNyfwFRmnLULsqEU0spjYakyfQl++aKD6uP nk2Q== 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=VmIateCpJAGJXodWxvXvAiaCL4OthpbxFFbPG4mYO/hopRSzPRlFocWpV4LxoKBNQ1 I9QVAEKrzXhbVqZly0pLZX+jJCmGWqTychPkHzVRTYgFMy08kr9HPw5jf5m85WodOyJG qRH/XR9ChwzUNNX3ZDA0mud9PUgaNBeAV/jGa9spdnul7E4TRRgEqoIMnMekc5MJcnv1 xSuqHPjNbzv/7vFUkQ/C/kPGRVg0tQU45IDcZtLAdWeXuC6y65FV/FDrHjdRCxnYvpBz V5/UBC9eZfYypDqmMWZs4x1uL1eSUOT369IPnlSZvqdG5W0dfh7TVfcvMXZJpbIPoHJh ukoQ== 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 t15si177602edw.359.2020.09.29.20.19.16; Tue, 29 Sep 2020 20:19:16 -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 S1730089AbgI3DTP (ORCPT + 6 others); Tue, 29 Sep 2020 23:19:15 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:35792 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729937AbgI3DSo (ORCPT ); Tue, 29 Sep 2020 23:18:44 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 65BCD5E9BF5BD5CF3954; Wed, 30 Sep 2020 11:18:42 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.253) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Wed, 30 Sep 2020 11:18:35 +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 v6 12/17] dt-bindings: arm: hisilicon: convert hisilicon, pctrl bindings to json-schema Date: Wed, 30 Sep 2020 11:17:07 +0800 Message-ID: <20200930031712.2365-13-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20200930031712.2365-1-thunder.leizhen@huawei.com> References: <20200930031712.2365-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>; + }; +...