From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Brezillon Subject: Re: [PATCH v2 06/29] mtd: Add support for reading MTD devices via the nvmem API Date: Fri, 24 Aug 2018 16:39:17 +0200 Message-ID: <20180824163917.6bc349c9@bbrezillon> References: <20180810080526.27207-1-brgl@bgdev.pl> <20180810080526.27207-7-brgl@bgdev.pl> <20180817182720.6a6e5e8e@bbrezillon> <20180819133106.0420df5f@tock> <20180819184609.6dcdbb9a@bbrezillon> <5b8c30b8-41e1-d59e-542b-fef6c6469ff0@linaro.org> <20180820202038.5d3dc195@bbrezillon> <20180821133916.3a1c51b1@eos> <6db14f9c-edd3-5e43-839c-953bb03097ff@linaro.org> <20180821150121.4408672f@bbrezillon> <20180823122921.6857d917@tock> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20180823122921.6857d917@tock> Sender: linux-kernel-owner@vger.kernel.org To: Alban Cc: Andrew Lunn , linux-doc@vger.kernel.org, Sekhar Nori , Bartosz Golaszewski , Srinivas Kandagatla , linux-i2c@vger.kernel.org, Mauro Carvalho Chehab , Rob Herring , Florian Fainelli , Kevin Hilman , Richard Weinberger , Bartosz Golaszewski , Russell King , Marek Vasut , Paolo Abeni , Dan Carpenter , Grygorii Strashko , David Lechner , Arnd Bergmann , Sven Van Asbroeck List-Id: linux-i2c@vger.kernel.org On Thu, 23 Aug 2018 12:29:21 +0200 Alban wrote: > On Tue, 21 Aug 2018 15:01:21 +0200 > Boris Brezillon wrote: > > > On Tue, 21 Aug 2018 13:00:04 +0100 > > Srinivas Kandagatla wrote: > > > > > On 21/08/18 12:39, Alban wrote: > > > > However we still have the a potential address space clash between > > > > the nvmem cells and the main device binding. > > > Can you elaborate? > > > > > > > Yes, I'd be interested in having a real example too, cause I don't see > > what this address space clash is. > > Let say I have a device that use the following binding: > > device { > compatible = "example-device"; > #address-cells = <2>; > #size-cells = <1>; > > child@0,0 { > reg = <0x0 0x0>; > ... > }; > > child@1,2 { > reg = <0x1 0x2>; > ... > }; > > }; > > Now this binding already use the node address space for something, > so putting a nvmem node as direct child would not work. Here it is > quiet clear as we have 2 address cells, however even if the number of > cells and the cells size would match it would still be conceptually > wrong as both bindings then use the same address space for something > different. When would we end up in this situation? MTD/flash nodes are supposed to be leaf nodes (if you omit the partitions underneath). What would be the case for defining subnodes there? Do you know of any devices that uses such a representation?