From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 203CFC4727E for ; Thu, 1 Oct 2020 06:43:19 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B86B520848 for ; Thu, 1 Oct 2020 06:43:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="sfyZkqfS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B86B520848 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=pHX9LqIR90WKdHegmNxFTe7OR1QHKhvf/3pMun0p64g=; b=sfyZkqfS5bq+/crm6QFO7opHG VEl2qxCFwtSoD46bO8FuHEJA/3ZuGa4aQcXlOeijqXHjM1pgV9qaimDq4r+HTj0N9A3JROjwYwdIf KLg959Dq257Vz43DMthA82II2RPhZCx7r0IaMdeYpLgIEXmAfEaaQ+5arAvAno6TnxBSHFE7Z0Fnj r0NxCKv6mqV4UPbfVHnEYuMnERli1F4BDdGl2Y+wTLtTHuhfvkux0B8rotTHavt9T3oHLqJTZRJGv zYMv6so/dO70eO630Jnlh3adFeL4Z8leDLda0bt78XEMf7w3V+VW/KMnRafSW1aPjNg3cSmvbPywe qtKNUqjtQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNsI2-0008VV-KF; Thu, 01 Oct 2020 06:42:06 +0000 Received: from mail-ej1-f65.google.com ([209.85.218.65]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNsHy-0008Tb-31 for linux-arm-kernel@lists.infradead.org; Thu, 01 Oct 2020 06:42:03 +0000 Received: by mail-ej1-f65.google.com with SMTP id gr14so6398197ejb.1 for ; Wed, 30 Sep 2020 23:42:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=AFhmMjQUJ4d/TCY1Soy1FghGhE1GLMxB/YcvvfKL18Y=; b=LEPcrQKBvSLy1gIjJJv1yDZjPZe37QuTGX5xQdjY5b3Q1G5PS3RtWGNMFep0HoNyjQ SK0J5zcFOp7Jh5SOcbKOkFgYRFkWgAO+RO4j1R5MgUsCb4up6tp+1hkw8Pw0RxtjHRdJ NkFQfJvU9NkiM8C8sFTq+jcOnyQzYOErymBI4/PGkcRD5qCI87Rx6X6RIuYHT/3Gn6qL d2ldz1yAlSn5GC+/Hy6YlQnlmPmTYC/qVk/nn/Uvjq/gfI8CDsnK6N/XAnBHyI7/ACL3 7nZu74JKkxxjYcRyUwSTwS7vyagB56hPi6eZ/rBmTHNNg87QrLbB+UYOM+oOO3TBuvaN 78LA== X-Gm-Message-State: AOAM530hG1aWEWh/Z1Lk20Vgxvdun6mCkisx746lCEyXSfzUY6DihuIl fbd0nGfbFSpiYQ1aQqWqGYk= X-Google-Smtp-Source: ABdhPJypB3zCOCcDJbhJSVfDFxjYjy+8oWdrBVDzuFFC3vv0mlahEnCsQ0cYw3m2eN0WN8K7H+wl5g== X-Received: by 2002:a17:906:2cd2:: with SMTP id r18mr6820842ejr.371.1601534520883; Wed, 30 Sep 2020 23:42:00 -0700 (PDT) Received: from kozik-lap ([194.230.155.194]) by smtp.googlemail.com with ESMTPSA id lo25sm3262836ejb.53.2020.09.30.23.41.57 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Sep 2020 23:41:59 -0700 (PDT) Date: Thu, 1 Oct 2020 08:41:56 +0200 From: Krzysztof Kozlowski To: Zhen Lei Subject: Re: [PATCH v6 14/17] dt-bindings: arm: hisilicon: convert hisilicon,hip04-bootwrapper bindings to json-schema Message-ID: <20201001064156.GF3018@kozik-lap> References: <20200930031712.2365-1-thunder.leizhen@huawei.com> <20200930031712.2365-15-thunder.leizhen@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200930031712.2365-15-thunder.leizhen@huawei.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201001_024202_154293_33ABE6E0 X-CRM114-Status: GOOD ( 19.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree , Kefeng Wang , linux-kernel , Wei Xu , Rob Herring , Libin , Jonathan Cameron , linux-arm-kernel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Sep 30, 2020 at 11:17:09AM +0800, Zhen Lei wrote: > 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 > --- > .../hisilicon/controller/hip04-bootwrapper.yaml | 34 ++++++++++++++++++++++ > .../controller/hisilicon,hip04-bootwrapper.txt | 9 ------ > 2 files changed, 34 insertions(+), 9 deletions(-) > create mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hip04-bootwrapper.yaml > delete mode 100644 Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hip04-bootwrapper.txt > > diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/hip04-bootwrapper.yaml b/Documentation/devicetree/bindings/arm/hisilicon/controller/hip04-bootwrapper.yaml > new file mode 100644 > index 000000000000000..7378159e61df998 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/hip04-bootwrapper.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/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 Intead: items with each item description (bootwrapper address, relocation address). This way also min/max Items should not be needed. Best regards, Krzysztof > + minItems: 1 > + maxItems: 2 > + _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel