Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4218363imm; Mon, 20 Aug 2018 11:52:21 -0700 (PDT) X-Google-Smtp-Source: AA+uWPz1V4ZGvNohOfHniqMwPHK5+i4QNTUXToZk6w4V8KLOixt7M+c6j7Zb8j6sQ/gwgAjW8yEx X-Received: by 2002:a62:d8c7:: with SMTP id e190-v6mr17025945pfg.88.1534791141114; Mon, 20 Aug 2018 11:52:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534791141; cv=none; d=google.com; s=arc-20160816; b=a2tPKVsaB7ADI1w6cIThPOe3BmQxab9po0dl938dgpE6bTX4DAYeamY/kravDgy5uH x2/v/YgaECQ5NPE/8AiosI8CHR+RQDsauBMveGtKP9DOPOYyqZSOXCPsh0ucxAtwYfqG rngfB3qZI4MHUghT/dFdZjaVubNfYHJreNzyR5k/MYWGIyAmtCFpGdXErHmXjvB1wuru rOdOpRNWaej/y59o0DiOikx5egZpUr59p49e/Q2PbD8Y73mtHySA9wvZZENgKbd9mCrx gVj7khzE/5fmRsBr9HYkuH1sglz1+BQXk2T3pGWVIaDxFJNexsU7qrCITTBeNmYAkMQp FaGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=oktQpuXWWOVoDy45nne0KjBNbevvRsWiZ569GlGAKuM=; b=Rx3l/J6eYfy8EP9iEVERa2/AkvH/X6TelgEy6qa/mDsDBsJU75+sieTcn4s6Zy3ErK QfOnWTH4S3kIIvFJQsaV24VwIdvOGuxIIYTdWdj+22D0lubdxBPXFtlC43Y8u5pBOkyK LN0HlL7AdvjqGkpgzGh2sWzbvBpI5xfZSmRFu2q1rn4VkAf8PrpFNwZywRuNk+5mGqJq ZQR5ZpGuz+qbtaBFIM/YGWibahD8mJC4IizbDHVwKjtAd6xhcAJTfkTRhzX+XGbbzQZN yQOIV82AWZe3yPDMoekolgAMsA2IUPXxcKBBOeD+Emi5VlfbUL7b+w4BeTtPOp0maekI iX9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=pYOmK5aA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 138-v6si10020185pga.188.2018.08.20.11.52.05; Mon, 20 Aug 2018 11:52:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=pYOmK5aA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726639AbeHTWHo (ORCPT + 99 others); Mon, 20 Aug 2018 18:07:44 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:37099 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726623AbeHTWHn (ORCPT ); Mon, 20 Aug 2018 18:07:43 -0400 Received: by mail-it0-f68.google.com with SMTP id h20-v6so791024itf.2 for ; Mon, 20 Aug 2018 11:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oktQpuXWWOVoDy45nne0KjBNbevvRsWiZ569GlGAKuM=; b=pYOmK5aAyao2T9OWueGvkX07NytXfjqn32z9Hr3HXqp3Oj9ho5DrZzYSnYuBR6nPfI 5XmxgrzRIAms9sDj42oI0BpVOVLrqyEJ2XCE+DeLg1KCB0mDkXub++YW+/dM8VfrTkml yma6vsnhqJlceA8lHs+zKyIjawW6DrTslMp8z4Me2MCiJIB1DYcOC/Zy4gbgkEPh+MKS hHg28dgVw5bKbaU2OG5OSZvISELuKhUSOxRNwW44lGxNic7MN7ijN3zf9lilILpjTk2z UMsR8dVuypuTPHpjOLmmnbxRc3mqye1pxzU/306CYwYiTPqQbsytxLFpFistRRyJJNAv 7v6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=oktQpuXWWOVoDy45nne0KjBNbevvRsWiZ569GlGAKuM=; b=hMfDWYuwcwbvkac9JfEQl5C4CAFE+BAeb3+JncseK218x5VGAlI1KbEj/Ek6JSTu5z 0OZTKE+OvNsH6kz8aH+FYEA52h4VDzHs2DrYEjGDBXJLbeDSp8QgWOWrpO2b/yu4hnUO CeWXOdbIstjLPiCBIab71n5ezigXRhaXR23pEze2pBNZTSbPtiOa2kHA3QWUhn6ex7PE udJARVk/dVtboJOruWUcj88r6buBHDRM70+DjKY/ah99v7knLtVSg9TW/eS+K7Kf906f gyzXIdJwqG7DS6fiO+vFN1P2MY3JVaA6PLnIYKD7SrXq2sTY7eFqHixnHqJ4iIBaUycz Xuwg== X-Gm-Message-State: AOUpUlF6X5wP5G/6AecY0n9kbv38zmSL+ExmvdA6ayY64u6Gl5QSc4/X OoceGfTjaq1D4WWrPr8Q3laejcCK9pkPl6+U5n0n/Q== X-Received: by 2002:a02:8d23:: with SMTP id h32-v6mr4222393jak.43.1534791055914; Mon, 20 Aug 2018 11:50:55 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a5e:9403:0:0:0:0:0 with HTTP; Mon, 20 Aug 2018 11:50:55 -0700 (PDT) In-Reply-To: <20180820202038.5d3dc195@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> From: Bartosz Golaszewski Date: Mon, 20 Aug 2018 20:50:55 +0200 Message-ID: Subject: Re: [PATCH v2 06/29] mtd: Add support for reading MTD devices via the nvmem API To: Boris Brezillon Cc: Srinivas Kandagatla , Alban , Jonathan Corbet , Sekhar Nori , Kevin Hilman , Russell King , Arnd Bergmann , Greg Kroah-Hartman , David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Grygorii Strashko , "David S . Miller" , Naren , Mauro Carvalho Chehab , Andrew Morton , Lukas Wunner , Dan Carpenter , Florian Fainelli , Ivan Khoronzhuk , Sven Van Asbroeck , Paolo Abeni , Rob Herring , David Lechner , Andrew Lunn , linux-doc , Linux Kernel Mailing List , Linux ARM , linux-i2c , "open list:MEMORY TECHNOLOGY..." , Linux-OMAP , netdev , Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-08-20 20:20 GMT+02:00 Boris Brezillon : > On Mon, 20 Aug 2018 11:43:34 +0100 > Srinivas Kandagatla wrote: > >> >> Overall am still not able to clear visualize on how MTD bindings with >> nvmem cells would look in both partition and un-partition usecases? >> An example DT would be nice here!! > > Something along those lines: > > mtdnode { > nvmem-cells { > #address-cells = <1>; > #size-cells = <1>; > > cell@0 { > reg = <0x0 0x14>; > }; > }; > > partitions { > compatible = "fixed-partitions"; > #address-cells = <1>; > #size-cells = <1>; > > partition@0 { > reg = <0x0 0x20000>; > > nvmem-cells { > #address-cells = <1>; > #size-cells = <1>; > > cell@0 { > reg = <0x0 0x10>; > }; > }; > }; > }; > }; If there'll be an agreement on the bindings: will you be willing to merge Alban's patch even without support in the code for the above (with the assumption that it will be added later)? My use-case is on non-DT systems and creating nvmem devices corresponding to MTD partitions if fine by me. I also don't have the means to test the support for these bindings if I were to actually write them myself. Best regards, Bartosz Golaszewski