Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1360424pxb; Fri, 21 Jan 2022 16:30:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDRBZAA4ThwTr/kMEk7T8gE297wW8f7DS48LlvotsAmXns8rIz/z9qMUnsXNQh1Naloc9O X-Received: by 2002:a63:40c5:: with SMTP id n188mr4596531pga.118.1642811400024; Fri, 21 Jan 2022 16:30:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642811400; cv=none; d=google.com; s=arc-20160816; b=YmxT2Q7VI1t4S4HH89LOuvDPNmHmkmjwyIhnhKDR6ToMJNgh9M+Lc0QggO4heWXsrS vHT75o2ZWdeju6M8r06UdoHiwikqh/sUFbIc91NgkXIZh4PKqCubd1cKWyjQzwc3bBln sqCjJljqr2MvoHK/2Zvy3NRCZ0ZUzPoSJt/XehJWEL+LEah+sZJGb4MMfBlSKQHoFc8L EuQ3/sJizFYGSBDXmbJXbdIKLLVEm8oKLd1SCO3CBF1/XYe54/XgZ5F0wXvyvWFqy9pv YQRQxYuP0Wh7Qu9/dF37l74Daf4HHEUSBtl73iogRNaD9B76UgYODsAF0Ei9nF27Ydjs wWog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=5sobOilTW6v8xilz4tZ45KrTnGC9z7mamXeHGoMLDbg=; b=E9DbtrJjvPiqfCNPX8SLLrbYZPv0cFAbQcgzWtCqrVHlOfFRYrEIhqc3U2MOIXV16J h4aruR6SJBQW21l4yi9fNXTJs1UiSWmjXCJcRCuaEVUi9/EnJ2gvlosX2q/7ol3XVpUM xxrqTZ8tOmLwTuKsK/WLIzjlDKUOZDj6dLfo5/FcWuq+XLGGNPrfF73skByHgO2vPJSD oylF514fLLQuiS7aUord6AcQSxLhPqOv4HcxJKVCqr2+VbjwQZR+/9+SQbDaw5cbrM8P k0CDPTrNdpO+Y4eGBVUNTRSIP2wRpaV/drofJUK84WcIpEmuLw/74KG3oXr3bWTOSZFl pAhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si736295plg.363.2022.01.21.16.29.48; Fri, 21 Jan 2022 16:30:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378119AbiAUBti (ORCPT + 99 others); Thu, 20 Jan 2022 20:49:38 -0500 Received: from mail-oi1-f179.google.com ([209.85.167.179]:39750 "EHLO mail-oi1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378039AbiAUBt2 (ORCPT ); Thu, 20 Jan 2022 20:49:28 -0500 Received: by mail-oi1-f179.google.com with SMTP id e81so11600984oia.6; Thu, 20 Jan 2022 17:49:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=5sobOilTW6v8xilz4tZ45KrTnGC9z7mamXeHGoMLDbg=; b=6BeEPgOtPG5Kt4YgDgXGuwmTEbW5kdEsRGyHd3nK4cX+jwqZfbKXGxa0pj/+bxoF5b jL2ElVAsfuV8sY8KLIPJbuQINdGug7T/ki90MbjQ/ti6A4oq2kFdElgqCjBWC+uMPIeS obHnexsY+dpzH5W5njcWRC0rLQblQteYE6YcJ7KMbRu7/clnkPbj6WG4orXxBjWTu6bc PAOsyW6usikE+eoAXTEHc+fxBAYpbx3F8GE05uZ8R9RRvFwpdkO/yhgAitkpBYxJRnQW khymIMqrkv1bDib5D97uqAYJyLjAHDxET2OmmAC68aXoT8dOlqVgYnSUta6OqkqWcYOb 08lQ== X-Gm-Message-State: AOAM533lLElvKPyDQSgSTvHJpsN4JLOldalxnH65zTPxLC/y1s4SnxK5 QPmxevZTy6s54POpA+qWICb/sZsOvg== X-Received: by 2002:a05:6808:1490:: with SMTP id e16mr1483948oiw.84.1642729767615; Thu, 20 Jan 2022 17:49:27 -0800 (PST) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id e23sm439611otp.42.2022.01.20.17.49.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jan 2022 17:49:27 -0800 (PST) Received: (nullmailer pid 2331686 invoked by uid 1000); Fri, 21 Jan 2022 01:49:26 -0000 Date: Thu, 20 Jan 2022 19:49:26 -0600 From: Rob Herring To: Ansuel Smith Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 1/2] dt-bindings: mtd: partitions: Document new dynamic-partitions node Message-ID: References: <20220120202615.28076-1-ansuelsmth@gmail.com> <20220120202615.28076-2-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220120202615.28076-2-ansuelsmth@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 20, 2022 at 09:26:14PM +0100, Ansuel Smith wrote: > Document new dynamic-partitions node used to provide an of node for > partition registred at runtime by parsers. This is required for nvmem > system to declare and detect nvmem-cells. So you have some discoverable way to find all the partitions and the nvmem cells are at an unknown (to the DT) location, but still need to be described in DT? > Signed-off-by: Ansuel Smith > --- > .../mtd/partitions/dynamic-partitions.yaml | 59 +++++++++++++++++++ > 1 file changed, 59 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mtd/partitions/dynamic-partitions.yaml > > diff --git a/Documentation/devicetree/bindings/mtd/partitions/dynamic-partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/dynamic-partitions.yaml > new file mode 100644 > index 000000000000..7528e49f2d7e > --- /dev/null > +++ b/Documentation/devicetree/bindings/mtd/partitions/dynamic-partitions.yaml > @@ -0,0 +1,59 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mtd/partitions/dynamic-partitions.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Dynamic partitions > + > +description: | > + This binding can be used on platforms which have partitions registered at > + runtime by parsers or partition table present on the flash. Example are > + partitions declared from smem parser or cmdlinepart. This will create an Some information in DT and some on the cmdline seems broken to me. Pick one or the other. > + of node for these dynamic partition where systems like Nvmem can get a > + reference to register nvmem-cells. > + > + The partition table should be a node named "dynamic-partitions". > + Partitions are then defined as subnodes. Only the label is required > + as any other data will be taken from the parser. > + > +maintainers: > + - Ansuel Smith > + > +properties: > + compatible: > + const: dynamic-partitions This is useless. This tells me nothing about the what's in the partitions. > + > +patternProperties: > + "@[0-9a-f]+$": > + $ref: "partition.yaml#" > + > +additionalProperties: true > + > +examples: > + - | > + partitions { > + compatible = "qcom,smem"; > + #address-cells = <1>; > + #size-cells = <1>; > + }; > + > + dynamic-partitions { > + compatible = "dynamic-partitions"; > + > + art: art { > + label = "0:art"; > + read-only; > + compatible = "nvmem-cells"; > + #address-cells = <1>; > + #size-cells = <1>; > + > + macaddr_art_0: macaddr@0 { > + reg = <0x0 0x6>; > + }; > + > + macaddr_art_6: macaddr@6 { > + reg = <0x6 0x6>; > + }; > + }; > + }; > -- > 2.33.1 > >