From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752895AbbCEWek (ORCPT ); Thu, 5 Mar 2015 17:34:40 -0500 Received: from mail-wg0-f41.google.com ([74.125.82.41]:34517 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752602AbbCEWei (ORCPT ); Thu, 5 Mar 2015 17:34:38 -0500 Message-ID: <54F8D9F6.3040003@linaro.org> Date: Thu, 05 Mar 2015 22:34:30 +0000 From: Srinivas Kandagatla User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Rob Herring CC: "linux-arm-kernel@lists.infradead.org" , Maxime Ripard , Rob Herring , Pawel Moll , Kumar Gala , "linux-api@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , Stephen Boyd , Andrew Lunn , Arnd Bergmann , Mark Brown , Greg Kroah-Hartman Subject: Re: [PATCH v1 3/6] eeprom: Add bindings for simple eeprom framework References: <1425548685-12887-1-git-send-email-srinivas.kandagatla@linaro.org> <1425548765-13019-1-git-send-email-srinivas.kandagatla@linaro.org> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> + >> +For example: >> + >> + /* Provider */ >> + qfprom: qfprom@00700000 { >> + compatible = "qcom,qfprom"; >> + reg = <0x00700000 0x1000>; >> + ... >> + >> + /* Data cells */ >> + tsens_calibration: calib@404 { >> + reg = <0x404 0x10>; >> + }; >> + >> + serial_number: sn { >> + reg = <0x104 0x4>, <0x204 0x4>, <0x30c 0x4>; >> + >> + }; >> + ... >> + }; >> + >> += Data consumers = >> +Are drivers which consume eeprom data cells. > > s/drivers/device nodes/ > Thats true, "device nodes" makes sense. >> + >> +Required properties: >> + >> +eeproms: List of phandle and data cell the device might be interested in. >> + >> +Optional properties: >> + >> +eeprom-names: List of data cell name strings sorted in the same order >> + as the resets property. Consumers drivers will use > > resets? Opps.. I remember fixing this, I will take care of it in next version. > >> + eeprom-names to differentiate between multiple cells, >> + and hence being able to know what these cells are for. > > Is this still needed? The sub-node name defines the name. Or you can > use reg-names with-in the sub-node. Yes, eeprom-names is needed in the consumer nodes, where there are multiple eeproms cells, its easy to lookup by name rather than index,which depends on the order of the entries. reg-names inside the "data cells" is ok, but I can't think of its use immediately. May be useful for debug? --srini > > > Rob > >> + >> +For example: >> + >> + tsens { >> + ... >> + eeproms = <&tsens_calibration>; >> + eeprom-names = "calibration"; >> + }; >> -- >> 1.9.1 >>