From patchwork Sun Sep 27 06:21:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 313586 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp2398146ilg; Sat, 26 Sep 2020 23:27:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJfKt57AaVCjMzP/xdBuEGXEChXEP3GSOHsSv0EXYXM9MH7PwKmnA0U4qa/C0Ps88yTTzo X-Received: by 2002:a50:cd51:: with SMTP id d17mr9456722edj.93.1601188064194; Sat, 26 Sep 2020 23:27:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601188064; cv=none; d=google.com; s=arc-20160816; b=CYC7wVkDtNo/7Q28QIGJz1p8OeWrMHi7OVSSMhz9sup7hA5mQCS94+ta1gD76GBJZD J2k5IuAtOaBu10Lds9sJ4Fc30PFJ5FxEu3/uCrZzV0JDXiZEk7aM2pilxadQFA+rvGQB DvBqqZ28YgnOeEAfc7LW0ugYFdliARyeRMU7YhAGdSsmz4vs6dq6vLLHsvGTzV2KWXMy 8RAo9wtSU2Eetn03Yoz/V2vrdPHlY/K50CgUOWcXIVft4Pq+L7Ws998PvT0tIRFN7jTr +YQ8/ZuLWRDJQPTOxIpoLnusOvR4b8We4K1bFV77qtzySKtLSssngUH7q+Ki8SxPSHNw ew7g== 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=g3liQk+4gzqszdycqr8zPA2ntClYmH6icuecHMwCI8I=; b=tBBpYER94kTB/ZmfW2FH8KzXygCxC0Kk1Soja1ZxGCG1ksk+kBBJlRgtgVm0Jt2xHl Jq97VemISERoVJDjbllzd68D0LveZjeXSxlX5SowMl9iowYg0iIR0DfY39bDu4AhUc5X qW0PdbQVJUi1WW/3HDqkXeGTZ+M6RAT5yjJmVjjd4TxbjUaMSeBDR70xb5ydwzoAaKQP PEFFvMpwMm6oOR66dhYqPIh7ibf/tsJWHU0f37EueNsCT9f3zk8bW7kON1mjGid19CeE c0XN4siMoPsmWIWLHzH18OKWvrww1Jt8VOD1d07zmm0+ROWX9He40mTcjrB/E3pLr3Px WUOw== 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 e25si5050492ejb.260.2020.09.26.23.27.44; Sat, 26 Sep 2020 23:27:44 -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 S1730475AbgI0G1f (ORCPT + 6 others); Sun, 27 Sep 2020 02:27:35 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:14299 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730398AbgI0G1B (ORCPT ); Sun, 27 Sep 2020 02:27:01 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id C014CC958B1746AE4098; 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:50 +0800 From: Zhen Lei To: Wei Xu , Rob Herring , devicetree , linux-arm-kernel , linux-kernel CC: Zhen Lei , Libin , Kefeng Wang Subject: [PATCH v3 16/21] dt-bindings: arm: hisilicon: convert hisilicon, hip04-bootwrapper bindings to json-schema Date: Sun, 27 Sep 2020 14:21:24 +0800 Message-ID: <20200927062129.4573-17-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 Bootwrapper boot method binding to DT schema format using json-schema. The property boot-method contains two groups of physical address range information: bootwrapper and relocation. The "uint32-array" type is not suitable for it, because the field "address" and "size" may occupy one or two cells respectively. Use "minItems: 1" and "maxItems: 2" to allow it can be written in "" or ", " format. Signed-off-by: Zhen Lei --- .../hipxx/hisilicon,hip04-bootwrapper.txt | 9 ------ .../hipxx/hisilicon,hip04-bootwrapper.yaml | 32 ++++++++++++++++++++++ 2 files changed, 32 insertions(+), 9 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hipxx/hisilicon,hip04-bootwrapper.txt create mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hipxx/hisilicon,hip04-bootwrapper.yaml -- 1.8.3 diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hipxx/hisilicon,hip04-bootwrapper.txt b/Documentation/devicetree/bindings/arm/hisilicon/controller/hipxx/hisilicon,hip04-bootwrapper.txt deleted file mode 100644 index baad98ec700e789..000000000000000 --- a/Documentation/devicetree/bindings/arm/hisilicon/controller/hipxx/hisilicon,hip04-bootwrapper.txt +++ /dev/null @@ -1,9 +0,0 @@ -Bootwrapper boot method (software protocol on SMP): - -Required Properties: -- compatible: "hisilicon,hip04-bootwrapper"; -- boot-method: Address and size of boot method. - [0]: bootwrapper physical address - [1]: bootwrapper size - [2]: relocation physical address - [3]: relocation size \ No newline at end of file diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hipxx/hisilicon,hip04-bootwrapper.yaml b/Documentation/devicetree/bindings/arm/hisilicon/controller/hipxx/hisilicon,hip04-bootwrapper.yaml new file mode 100644 index 000000000000000..269ea6c45274bb5 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hipxx/hisilicon,hip04-bootwrapper.yaml @@ -0,0 +1,32 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/hisilicon/controller/hipxx/hisilicon,hip04-bootwrapper.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bootwrapper boot method + +maintainers: + - Wei Xu + +description: Bootwrapper boot method (software protocol on SMP) + +properties: + compatible: + items: + - const: hisilicon,hip04-bootwrapper + + boot-method: + description: | + Address and size of boot method. + [0]: bootwrapper physical address + [1]: bootwrapper size + [2]: relocation physical address + [3]: relocation size + minItems: 1 + maxItems: 2 + +required: + - compatible + - boot-method +... \ No newline at end of file