From patchwork Mon Sep 28 15:13:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 313654 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp3393159ilg; Mon, 28 Sep 2020 08:17:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynBVUe9E3fqqcZi5QJxrs1tnrcUnKeaHtlUIRy3YbhAM6Q8CqW4bba/UzQroKA8qUnbf9u X-Received: by 2002:a17:906:fb97:: with SMTP id lr23mr2184486ejb.257.1601306261575; Mon, 28 Sep 2020 08:17:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601306261; cv=none; d=google.com; s=arc-20160816; b=wcHYn8OV3NsPVuXfYm4tY86mIabZBkwVqnrflTxgaBNOwhlTrr9EhkyhyEJ4r9E1bI dMVpQxG7YBj5P6rrbT3aGel/tH2jjdPeX4rPMWgUdFO004MLyd6loMABf0yyqvK5nMi5 H6gA/4a8PEoVZMD2KvX7UOZDFeMa+Rv7NGskqQPGYX51IicR7yMg4pFv0guVuy6sOuaR uTUM3SNAIUEvhy5r4v5cslRSohkUXa7Wiy7OaBFUTSqXAgASTKXCO8DOnI64RF08AW5T wAigagLWWnzT5qfsuMacA7qNJo18LMoJcpCFq6f+G7OYx1FDjAhtueM9jaxiezPOPahC KgUA== 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=AY3RBB09pfzQ3CGQgcAAN91zucvDRuR2SeHLe1wrPYM=; b=oVXD1rEaLbCASTo4KTibilQDQgiL+xVb41GiYyZSIfR8j/2dtSm9f9xwa8SJQ8tN5a TjxxMW26kceV4JNX0R65xNBGmZoz43iLUIi2y8P3iKDibTsvF/6oXOoHSXz5S4jHydyC Tse7iQY+qXvcO2c65hjZl3JGmTum1wtuoDrsWgTt7dCYsJ2/ejeK3RZPSTNVJnGiAykJ elmkoc3wqPSTlBlcGczFbZqKi79aGImh5h8P7zLW2WtiOLDA6w74+HiW4D12WMnpKhCU So6qmJVfLNdZYoyRLYwIa7pBFMSauRRq/Vb4VksYWWBGANq4aYvi1d5DyDj29QPylHZx 704Q== 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 n18si785494ejz.158.2020.09.28.08.17.41; Mon, 28 Sep 2020 08:17:41 -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 S1726722AbgI1PRg (ORCPT + 6 others); Mon, 28 Sep 2020 11:17:36 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:14758 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726667AbgI1PRf (ORCPT ); Mon, 28 Sep 2020 11:17:35 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id B43DB21DEAD72E83E50D; 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 12/20] dt-bindings: arm: hisilicon: convert hisilicon, hi3798cv200-perictrl bindings to json-schema Date: Mon, 28 Sep 2020 23:13:16 +0800 Message-ID: <20200928151324.2134-13-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 Hi3798CV200 Peripheral Controller binding to DT schema format using json-schema. Signed-off-by: Zhen Lei --- .../controller/hisilicon,hi3798cv200-perictrl.txt | 21 ---------- .../controller/hisilicon,hi3798cv200-perictrl.yaml | 45 ++++++++++++++++++++++ 2 files changed, 45 insertions(+), 21 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi3798cv200-perictrl.txt create mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi3798cv200-perictrl.yaml -- 1.8.3 diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi3798cv200-perictrl.txt b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi3798cv200-perictrl.txt deleted file mode 100644 index 0d5282f4670658d..000000000000000 --- a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi3798cv200-perictrl.txt +++ /dev/null @@ -1,21 +0,0 @@ -Hisilicon Hi3798CV200 Peripheral Controller - -The Hi3798CV200 Peripheral Controller controls peripherals, queries -their status, and configures some functions of peripherals. - -Required properties: -- compatible: Should contain "hisilicon,hi3798cv200-perictrl", "syscon" - and "simple-mfd". -- reg: Register address and size of Peripheral Controller. -- #address-cells: Should be 1. -- #size-cells: Should be 1. - -Examples: - - perictrl: peripheral-controller@8a20000 { - compatible = "hisilicon,hi3798cv200-perictrl", "syscon", - "simple-mfd"; - reg = <0x8a20000 0x1000>; - #address-cells = <1>; - #size-cells = <1>; - }; diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi3798cv200-perictrl.yaml b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi3798cv200-perictrl.yaml new file mode 100644 index 000000000000000..4e547017e368393 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi3798cv200-perictrl.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/hisilicon/controller/hisilicon,hi3798cv200-perictrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Hisilicon Hi3798CV200 Peripheral Controller + +maintainers: + - Wei Xu + +description: | + The Hi3798CV200 Peripheral Controller controls peripherals, queries + their status, and configures some functions of peripherals. + +properties: + compatible: + items: + - const: hisilicon,hi3798cv200-perictrl + - const: syscon + - const: simple-mfd + + reg: + description: Register address and size + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + +required: + - compatible + - reg + +examples: + - | + perictrl: peripheral-controller@8a20000 { + compatible = "hisilicon,hi3798cv200-perictrl", "syscon", "simple-mfd"; + reg = <0x8a20000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + }; +...