Received: by 10.192.165.156 with SMTP id m28csp202325imm; Tue, 17 Apr 2018 08:45:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx48lHCjy4qbUcQSymnbSJRLg9gsZdQBBUjLkHn/jzTza+/jv/BNY3jkvqhmyiVL4N+kECOlv X-Received: by 10.99.109.200 with SMTP id i191mr2131186pgc.291.1523979941663; Tue, 17 Apr 2018 08:45:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523979941; cv=none; d=google.com; s=arc-20160816; b=dq4w9zejk/nF/goWMXeLct7yK9IGwJa9Q3cxODDWc127t7bbrlmfUIu/AbPjMSbCGd AFjBXJBGlwh2R94Yu/UaczpTlnhYXFWxVNF81pK/7kMCZ47xs+JoqJMZ2inaZ9IABUct k9FtlZyBgFCYfss4pwN26IfjiTBAwFE3/Pzp/pxh/0zoM9AXB7wIJLK/6EFfUZ72SKzB /rwEwEDIZFdchRiEDb8GCwIv1SzR51XePjN1ewzU40FMu6HEG4Zy5ucll3on8SQv7pJc gtn2Wswt35KINM0E+vR+/JnhLH5lnKlcpM7BosQ9VH58uy6COZppcfedWagSQ9CYMtBl nz0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=vxy5PRoXASO1MQtPKdrBaDT94FRDR/SiIgLbVWuwSWY=; b=gzvx/ozZcAPyB2A0Nb1J+ouK3nWo0upbJryjz1cFhsDtBtoF8w6XmMS7ThMFIMV3l1 Nyg2BDaXSBS/gvnfUDn0c9Q28TP13tNPdfqlhSX2UJ8X5X7ouDh1/EE3pjiLrsK6LePK uYPPP6OZ9y+2pLEMfaTXPBX/TEgx/hivKYlApgb7bocMCksFrDLVv56ykLSk4reXDIpi gR4lozt8ipIiLIDVmjHhMQWOM0BSUM4BQvNzFT0UCvMlEjM/iJX7WTY27BPM4O6T2CQS yD8OuunpIqKafxxmkI7IPG7FlQVSpmw/7ubvsJUNAbv3p80vIjiJfQTHikd4BPH1yX5+ JvXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gQRtx2vf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q10-v6si11929346pli.419.2018.04.17.08.45.27; Tue, 17 Apr 2018 08:45:41 -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=@linaro.org header.s=google header.b=gQRtx2vf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753013AbeDQPoF (ORCPT + 99 others); Tue, 17 Apr 2018 11:44:05 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:45637 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752613AbeDQPoD (ORCPT ); Tue, 17 Apr 2018 11:44:03 -0400 Received: by mail-wr0-f193.google.com with SMTP id u11so36821755wri.12 for ; Tue, 17 Apr 2018 08:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=vxy5PRoXASO1MQtPKdrBaDT94FRDR/SiIgLbVWuwSWY=; b=gQRtx2vfHVCIviNMmrdDh9Xv3Kn1rmakdQ9xhNkDEqMTm83kLoCfEjMcKSHJILyPaF gtLnHySycPNZuLAQX7Kvku/YMhHMLF3xpJjUaG7FUsJF5VuAlcc8ZAYkZw8a0YBImcss uzg+xGb6PRExaon0B/XkaW09wWdIOyjteXgXY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=vxy5PRoXASO1MQtPKdrBaDT94FRDR/SiIgLbVWuwSWY=; b=SfpQgCQrxWqR384XCkMMZYMdilrmSJa7IITreMBLxoSO0hchM+jAMSZ4RzbHKJdjZ6 gWsEotM+iHHgyv8R8hS7syBwgD4SKlrQG6DQEicQJpfO3LQydC0xplT+xq8tSWA6oG8W rMdAd/KU77bdUsr20jFxMWkRJSSemZfcPyvlv9boGWZW1SZMpDQ6xNotYF5SS8xxdGkD TUqWYymJRgNH9d7fwyUTrU9nsHarylt6C9wUEl+pAV/P2Vh+JlR2lzd7nUWu42F5NyEa xRFl8ZikhgTT14vBy1BDuXJG5t0m/VykSPy0Yc3sJZZSIuurCt5ZBBg9x9xXLQbswO5o 8akg== X-Gm-Message-State: ALQs6tCub1yxplIajcuaDBPqgm/pSA4fuuIYqUD+MlYNRgk4Yzg9Egkc E9H91xnPW0reevRDAuPNBsicKg== X-Received: by 10.223.195.1 with SMTP id n1mr2065946wrf.76.1523979842796; Tue, 17 Apr 2018 08:44:02 -0700 (PDT) Received: from [192.168.0.20] (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.googlemail.com with ESMTPSA id t8sm11357163wmc.20.2018.04.17.08.44.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Apr 2018 08:44:02 -0700 (PDT) Subject: Re: [PATCH v3 1/3] nvmem: Update the OF binding to use a subnode for the cells list To: Alban Cc: linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , devicetree@vger.kernel.org, linux-mtd@lists.infradead.org References: <1521933899-362-1-git-send-email-albeu@free.fr> <1521933899-362-2-git-send-email-albeu@free.fr> <344e0087-7410-aebb-8a66-c6976064df10@linaro.org> <20180417165420.423a691b@avionic-0020> From: Srinivas Kandagatla Message-ID: <8c4b48ad-e99e-030a-a4ee-b6df0fa59c79@linaro.org> Date: Tue, 17 Apr 2018 16:44:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20180417165420.423a691b@avionic-0020> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for explaining, On 17/04/18 15:54, Alban wrote: > This will not only allow reading the calibration data from nvmem, but > will also create a partition on the MTD device, which is not acceptable. > With my proposed binding this would become: > > flash@0 { > #address-cells = <1>; > #size-cells = <1>; > compatible = "s25sl064a"; > reg = <0>; > > nvmem-cells { > compatible = "nvmem-cells"; > #address-cells = <1>; > #address-cells = <1>; > > calibration: calib@404 { > reg = <0x404 0x10>; > }; > }; Why can't we make nvmem-cells node a nvmem provider in this case? Which should work! --srini > }; > > Which would work fine as the MTD code will ignore the nvmem-cells > subnode thanks to its compatible string.