From patchwork Sun Sep 27 06:21:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 313593 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp2398317ilg; Sat, 26 Sep 2020 23:28:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMWDU63vSdYaFaum6tuixAcyB+H5QmmTsZ86dTNISASkfbJ+P2PgyUcKf40Gv8r6MGdFij X-Received: by 2002:aa7:d043:: with SMTP id n3mr9315614edo.243.1601188090111; Sat, 26 Sep 2020 23:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601188090; cv=none; d=google.com; s=arc-20160816; b=pkaTNpspsxbYBHlerzBHJQHchoewUyKD6MqsRURDnHsFXKoNJbJbKxWLcMYnmnoAJ9 Hxhe6zgRe5jUlHG2YkIVROBuACO9/T6gzuVQZGjJ8wuacpNKvZ38Wwoe73k7mWV4/bof FrOLrXYQnCZsYxmhLTzyXCHh7i6KhfgfMZaRbJyKHwBaUeCQ272nQQwTlBRc+/k6u6kS BCg1+2+hiW07Yeg23DtYQrSyFJDOLOGjGYJf6TYazse49wIluXxe3Auuj4VVAKGO86x1 k2o/Pbr7uAoVHF9QviU/sHsCVQ+Umgju6DsuWGL1nQnH2FJJovymPhgAagx7nZ9H86rM IEOA== 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=Vt9ONBYUgC7dhtHYmfC3yoaZPTllglzdNg7LLC1wz+Y=; b=bryDSjYIJor1AUS5gAqUhANaBl4fAcu4SI5GBwr6nRSwjDdzyUAFj0k+NjmAeC0OKY gb+9DrLtoWXdo/ST/9UeWnDWq0yCA8VBLRLnMml3yEfF+7risS4SsF8+4jqWIvPjH3xX PEl/kvib6v5YezyYO86ThXBKW/aodG/hWX5WokkgRin1BgdSMBiQcEfgVZgvmsUCuOSD KS29AYWupdPhbzwPx0sNfplGWeRJ5POOThVYW6XQXGwYMFgKKubU6hJKR9Bwoai3gfLk QlU1Vz2VkoSoumuIyDzIZ18j3koE3Ts/4GKnRMfxhxly3KJBm1cpQFFfOX9KqQiUPOs3 vgUw== 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 a10si4787191ejy.454.2020.09.26.23.28.09; Sat, 26 Sep 2020 23:28:10 -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 S1730373AbgI0G2C (ORCPT + 6 others); Sun, 27 Sep 2020 02:28:02 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:14300 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730407AbgI0G1A (ORCPT ); Sun, 27 Sep 2020 02:27:00 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id C48B124BE39FE0B645C5; Sun, 27 Sep 2020 14:26:57 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.253) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Sun, 27 Sep 2020 14:26:48 +0800 From: Zhen Lei To: Wei Xu , Rob Herring , devicetree , linux-arm-kernel , linux-kernel CC: Zhen Lei , Libin , Kefeng Wang Subject: [PATCH v3 13/21] dt-bindings: arm: hisilicon: convert hisilicon, hi3798cv200-perictrl bindings to json-schema Date: Sun, 27 Sep 2020 14:21:21 +0800 Message-ID: <20200927062129.4573-14-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20200927062129.4573-1-thunder.leizhen@huawei.com> References: <20200927062129.4573-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 beca239e0830e76..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>; - }; \ No newline at end of file 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..8c285f1f1b75e23 --- /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>; + }; +... \ No newline at end of file