Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2265646imm; Mon, 16 Jul 2018 05:16:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdBG5Q8yV/nCetryjec4Ub62at5RFhlBg0qU8h4eTbpFd+IkU7Qh7uvimFpOInEFxTB3WT+ X-Received: by 2002:a62:e106:: with SMTP id q6-v6mr18001865pfh.75.1531743408958; Mon, 16 Jul 2018 05:16:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531743408; cv=none; d=google.com; s=arc-20160816; b=FgFySbAZ7rC/Ckc+owo9ceEGAC3VWZr8+F4Bv5TUBTQS3fb8UJlNeTyteeN0cc6zYl 59ePD+53behIb2tO7h8NyYRZwE6kxPvcF1eyB7yXkrACWeZXasc40Vt452M8IxEZ14rZ iqwx07YVsxw0is0RpX+nuoIfFx7B+lQzkQliVAcYrcTLq//57a26s8WYGVq2xE4WcVuu FfpEQwimrnobksmPn4eV+JkE/who9mDVLPRQpwenn/SGQN8fem91BKMAPz3C5uwKVIam Fw5oOkbgVjwS9dbHSKBu5KSzw9uR5JSIzCgu9xC4SmsvyFVScqiFOGZgjFk3auKwd7Jn sIWQ== 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=EulYuL56bTxGr4EHt0XylkvmoMuHDUT0M8ewJhkvnsM=; b=NZbZlC4wRfhvhi8RabzIO7YsgslMMiCP4ciQAZ8TD/RVATrIg+AzatkMeHk1xgh68t i/Ul/YMNOrwXHsS55B0bv59k5vCMklZKMnHPdASLW3w0YX+oxvdT8lPpgUwvMrGeCtz0 eh4lP2lXeW6g5FBhIxxekXEhJXKNUix+qKn9lRZI/VP8zj1mANftXzE2GOzlMN7uDu51 sIAx0JzuWCnuTWJrLcXD/KY7T6jsXhNzEeQR2d3I/EtxO7z/kB5LlkoQ1OyX21Tw7x48 nEyedZY1ns0IGzXo78MetMkRurLrvoL0vzAjmZLUKDodyUmOhpdTIMY3GZ249pYChp7f Thag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=baGp9aZ5; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8-v6si31364752plb.125.2018.07.16.05.16.33; Mon, 16 Jul 2018 05:16:48 -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=@ti.com header.s=ti-com-17Q1 header.b=baGp9aZ5; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729606AbeGPMnK (ORCPT + 99 others); Mon, 16 Jul 2018 08:43:10 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:60886 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727044AbeGPMnJ (ORCPT ); Mon, 16 Jul 2018 08:43:09 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id w6GCELq0070320; Mon, 16 Jul 2018 07:14:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1531743261; bh=EulYuL56bTxGr4EHt0XylkvmoMuHDUT0M8ewJhkvnsM=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=baGp9aZ5biHImqFNLpPPrlvrHSuuYY04YeK0Dcsi6l1V5DiHytPwAnkyRAGkfjPHK P75QVHu7+urryoMADMhZlFrBjKCnyG6JLfu9ddZeop9r5zbRs2hsveDyyIK+6nTYSV iufS0n34vPjZvDZNuB/J3x8iAJW9rulDpPEcfYos= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w6GCELNb016666; Mon, 16 Jul 2018 07:14:21 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 16 Jul 2018 07:14:21 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Mon, 16 Jul 2018 07:14:20 -0500 Received: from [172.24.190.172] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w6GCEANm029517; Mon, 16 Jul 2018 07:14:10 -0500 Subject: Re: [PATCH v4 02/18] Documentation: nvmem: document lookup entries To: Bartosz Golaszewski , Kevin Hilman , Russell King , Grygorii Strashko , "David S . Miller" , Srinivas Kandagatla , Lukas Wunner , Rob Herring , Florian Fainelli , Dan Carpenter , Ivan Khoronzhuk , David Lechner , Greg Kroah-Hartman , Andrew Lunn , Jonathan Corbet CC: , , , , Bartosz Golaszewski References: <20180629094039.7543-1-brgl@bgdev.pl> <20180629094039.7543-3-brgl@bgdev.pl> From: Sekhar Nori Message-ID: Date: Mon, 16 Jul 2018 17:44:09 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180629094039.7543-3-brgl@bgdev.pl> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 29 June 2018 03:10 PM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Describe the usage of nvmem cell lookup tables. > > Signed-off-by: Bartosz Golaszewski > --- > Documentation/nvmem/nvmem.txt | 28 ++++++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) > > diff --git a/Documentation/nvmem/nvmem.txt b/Documentation/nvmem/nvmem.txt > index 8d8d8f58f96f..9d5e3ca2b4f3 100644 > --- a/Documentation/nvmem/nvmem.txt > +++ b/Documentation/nvmem/nvmem.txt > @@ -58,6 +58,34 @@ static int qfprom_probe(struct platform_device *pdev) > It is mandatory that the NVMEM provider has a regmap associated with its > struct device. Failure to do would return error code from nvmem_register(). > > +Additionally it is possible to create nvmem cell lookup entries and register > +them with the nvmem framework from machine code as shown in the example below: > + > +static struct nvmem_cell_lookup foobar_lookup = { > + .info = { > + .name = "mac-address", > + .offset = 0xd000, > + .bytes = ERH_ALEN, ETH_ALEN. Will fix while applying. Regards, Sekhar