From patchwork Mon Sep 28 15:13:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 313659 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp3393436ilg; Mon, 28 Sep 2020 08:18:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbmSNQYMIVNeOZeu8oyRuZZMSA92Ma8PkSa1Vvk40GxtEs2JlE8FYU+YHAKpyAaatpFkeV X-Received: by 2002:aa7:dac5:: with SMTP id x5mr2364334eds.72.1601306285881; Mon, 28 Sep 2020 08:18:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601306285; cv=none; d=google.com; s=arc-20160816; b=dQrIwU/5FyG+nJt2bGDmm3fPq0Iubd6Cl+azF9OcrZUd0HwODodn2R/MS2rt0Qlw5d ZFEaUhloeFCTmDOn2Faq5jLEGR6gsKzbPhyDmanihfwLY+2M+QR4HVfvIKgxvUARwbN5 saZrPVzcKWKhuqtwOV2qX/co0JMumhYPh/TmXeIlFrPEYcBTMElE/quRAnDoJ838c6J4 +4JQ0PoLXzWeeei9IL909V7ykf7m8N+4+YWXnQjIIC3GxPacbeXA2j/FqNyfyRC5Af0a NdRUxeD8VSIrku4dy9TylKJKufPfYLffoO4un8ZdJaC/3K8m7L2NkW25+iJu4Lb038BZ WA3Q== 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=DYxG08gOSEZqbA8j40WLbj+pQldbn8a4l0UuBkcQjQY=; b=sd9lGrKStJeuS9MgSRwCHUXo/coj9kqoIjZf8puQ1xMCmncfzYM2fpUGw6mXZHE01v 8+RjwSmuXK22UHie5mvqfpzkY3hRV3Ba8Yfw2xu8h7pcdlaWGR4MDw2kcgazIzNkulSN NJIfwokbniJtrFtrZN2JGQP5Wk/NkO5bMa4N1JXtKoGuDqGtay3zRpCgCbFLlq/+X5Y/ d7gJ6ES0nWpfZrFstC8GaGoN3v4EYtfdN4qqliHoP+or3areb5esMoRF+Yp+dvgq19GU BGjgMmmwjlCKiOJSuHBA7j660HLH+XRwNhE5F01Juq8MIpBANv8XlhzjqYQ0wP29HZ84 uvjg== 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 ds2si775629ejc.117.2020.09.28.08.18.05; Mon, 28 Sep 2020 08:18:05 -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 S1726802AbgI1PSA (ORCPT + 6 others); Mon, 28 Sep 2020 11:18:00 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:14323 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726694AbgI1PRg (ORCPT ); Mon, 28 Sep 2020 11:17:36 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id AB312D69C965B10A16DB; Mon, 28 Sep 2020 23:17:24 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.253) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Mon, 28 Sep 2020 23:17:16 +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 v4 11/20] dt-bindings: arm: hisilicon: convert hisilicon, pctrl bindings to json-schema Date: Mon, 28 Sep 2020 23:13:15 +0800 Message-ID: <20200928151324.2134-12-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20200928151324.2134-1-thunder.leizhen@huawei.com> References: <20200928151324.2134-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 --------- .../arm/hisilicon/controller/hisilicon,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/hisilicon,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/hisilicon,pctrl.yaml b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,pctrl.yaml new file mode 100644 index 000000000000000..8b00e9c222594f4 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,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/hisilicon,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: + description: Register address and size + maxItems: 1 + +required: + - compatible + - reg + +examples: + - | + /* for Hi3620 */ + pctrl: pctrl@fca09000 { + compatible = "hisilicon,pctrl"; + reg = <0xfca09000 0x1000>; + }; +...