Message ID | 20221114090315.848208-14-miquel.raynal@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2043635wru; Mon, 14 Nov 2022 01:06:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf52HOCZ3Yo7UGC7lPSdqa/iJnr8wqeSUOpKaBDqnb5gBbYvDKyPZP30dJTccjfS8Ftuh+Cw X-Received: by 2002:a17:906:2f90:b0:7a5:7c1c:cc5c with SMTP id w16-20020a1709062f9000b007a57c1ccc5cmr9595743eji.644.1668416777330; Mon, 14 Nov 2022 01:06:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668416777; cv=none; d=google.com; s=arc-20160816; b=JKQKe37bjIQJh0jyHQqMiuuRpMHqCwq9hzCcU7z/gH6uS2fwY3Tt1bN/OF8FktJguR h/IPsr+XIQc6a2R654gXNaKFRgBUUru66KQgKkMBb42zSUtf78MOkEqGiJK0fTP/H6wo rZXSjJYcGmhRAJilV27RNUCz9rp10uljehSl3wi1VGaEI+dg/VIOqmrnBV0emnTiXSPB KZwClfe5TMu4syI7dEQxhjviRtu8WYHajWNyhz7e03UEkWqKu/op7USAsmhJnPsuh/pp nki47WFwU3hsAff8eV0kK2NeVR0GipBXVMjxKy5h+M9IZfBseqOkLD2O5tmUg+vFiTyF UtYQ== 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 :dkim-signature; bh=oZXshiOPjCKaC4DLT1nvR8gkGxfPYRfPdpLRj3Pz4+g=; b=V7qyjl7soXCw3HFul2q49VY+e9uf8+W/s7LDt97CsZit6sIhqby2fi6KyRv3+EUbZj 2h/J+Cnte8DUaI0mhE1PdnAN5JEiQo2quGC9QZ0U+7MbSrkfe2iyCeA00YzOdE9mU/6u UWg5V0Zml8piVcNpvLS2iEkFDsteIq0L0tK5FKVvXa3IDr6HPMpBg1BIslu+MsDhJQIk IHQpF4fdgrYMzXHXyyYUny+AXONYgpmTnVW1tumVqccMx869iu6hUziD3NVellQTcJHX JkfjPxf8KrW5GpVQx0y7A3ld5D+kz7ngf68JZ+bibdH9TFepd47bLyfCXm6BEV13pcjW cBxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=UDSNPAsl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g1-20020a170906c18100b007429f0c69ccsi6413297ejz.579.2022.11.14.01.05.53; Mon, 14 Nov 2022 01:06:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=UDSNPAsl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236741AbiKNJEx (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Mon, 14 Nov 2022 04:04:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236792AbiKNJEE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 14 Nov 2022 04:04:04 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 544C41D66F; Mon, 14 Nov 2022 01:03:54 -0800 (PST) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id ED1F9FF802; Mon, 14 Nov 2022 09:03:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1668416633; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oZXshiOPjCKaC4DLT1nvR8gkGxfPYRfPdpLRj3Pz4+g=; b=UDSNPAslbjlapBM2Hm0s6QeHvls1ReRpUBGOmWfcNV/oylSVgoLi73PT/bpVvmqg0lTGaj UJV1JpfXA5sVSoNT5Tg7m3VXh9884AG0AVdQhKtKbWnI7fnj1LnAordS6vOtUPw5fyHOOf UrgNmD+uEoiyjDUQqDczAQJrzVsskijWHtdPH1OhDI7bNKXBYI10Q2D6nA9sWbu8d/E7ZF PV6Z2HxUdv0r7Dh3HHwklr58jb71nt3/qBTVpJATtueCYG5TfwBsiGtC2kLKb5lPJ2vyW1 uP99kh/SUBARWq1xENSI9iNltL5TUEod9jL5schJCQxY3hpKd3wbxPkPnoVJpw== From: Miquel Raynal <miquel.raynal@bootlin.com> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, devicetree@vger.kernel.org Cc: Richard Weinberger <richard@nod.at>, Vignesh Raghavendra <vigneshr@ti.com>, Tudor Ambarus <Tudor.Ambarus@microchip.com>, Pratyush Yadav <pratyush@kernel.org>, Michael Walle <michael@walle.cc>, <linux-mtd@lists.infradead.org>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, <linux-kernel@vger.kernel.org>, Miquel Raynal <miquel.raynal@bootlin.com> Subject: [PATCH v3 13/17] dt-bindings: mtd: nvmem-cells: Drop range property from example Date: Mon, 14 Nov 2022 10:03:11 +0100 Message-Id: <20221114090315.848208-14-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221114090315.848208-1-miquel.raynal@bootlin.com> References: <20221114090315.848208-1-miquel.raynal@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749461790639597671?= X-GMAIL-MSGID: =?utf-8?q?1749461790639597671?= |
Series |
Improve MTD bindings
|
|
Commit Message
Miquel Raynal
Nov. 14, 2022, 9:03 a.m. UTC
Memory mapped devices such as parallel NOR flash could make use of the
'ranges' property to translate a nvmem 'reg' cell address to a CPU
address but in practice there is no upstream user nor any declaration of
this property being valid in this case yet, leading to a warning when
constraining a bit more the schema:
.../mtd/partitions/nvmem-cells.example.dtb: calibration@f00000:
Unevaluated properties are not allowed ('ranges' was unexpected)
So let's drop the property from the example, knowing that someone might
actually properly define it some day.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
.../devicetree/bindings/mtd/partitions/nvmem-cells.yaml | 1 -
1 file changed, 1 deletion(-)
Comments
On Mon, 14 Nov 2022 10:03:11 +0100, Miquel Raynal wrote: > Memory mapped devices such as parallel NOR flash could make use of the > 'ranges' property to translate a nvmem 'reg' cell address to a CPU > address but in practice there is no upstream user nor any declaration of > this property being valid in this case yet, leading to a warning when > constraining a bit more the schema: > > .../mtd/partitions/nvmem-cells.example.dtb: calibration@f00000: > Unevaluated properties are not allowed ('ranges' was unexpected) > > So let's drop the property from the example, knowing that someone might > actually properly define it some day. > > Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> > --- > .../devicetree/bindings/mtd/partitions/nvmem-cells.yaml | 1 - > 1 file changed, 1 deletion(-) > Reviewed-by: Rob Herring <robh@kernel.org>
On Mon, 2022-11-14 at 09:03:11 UTC, Miquel Raynal wrote: > Memory mapped devices such as parallel NOR flash could make use of the > 'ranges' property to translate a nvmem 'reg' cell address to a CPU > address but in practice there is no upstream user nor any declaration of > this property being valid in this case yet, leading to a warning when > constraining a bit more the schema: > > .../mtd/partitions/nvmem-cells.example.dtb: calibration@f00000: > Unevaluated properties are not allowed ('ranges' was unexpected) > > So let's drop the property from the example, knowing that someone might > actually properly define it some day. > > Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> > Reviewed-by: Rob Herring <robh@kernel.org> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next. Miquel
diff --git a/Documentation/devicetree/bindings/mtd/partitions/nvmem-cells.yaml b/Documentation/devicetree/bindings/mtd/partitions/nvmem-cells.yaml index 5cdd2efa9132..ca18892eacc7 100644 --- a/Documentation/devicetree/bindings/mtd/partitions/nvmem-cells.yaml +++ b/Documentation/devicetree/bindings/mtd/partitions/nvmem-cells.yaml @@ -84,7 +84,6 @@ examples: compatible = "nvmem-cells"; label = "calibration"; reg = <0xf00000 0x100000>; - ranges = <0 0xf00000 0x100000>; #address-cells = <1>; #size-cells = <1>;