From patchwork Mon Mar 30 21:57:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 46558 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C6723218BE for ; Mon, 30 Mar 2015 21:58:20 +0000 (UTC) Received: by wixm2 with SMTP id m2sf365022wix.0 for ; Mon, 30 Mar 2015 14:58:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=qBmPJsT64/3stDO52W4vQ6/MADUyoGet78H2eUe3kKA=; b=PaohlVea/b6fXWH5K0tN7bMiutozs4DbFAhbOrTuy3XwH5Cx/SFh/PRP0J5PX4sBsl sI6KvhCJ/3jDznlqyfj0x5ttFj19GdmiTdbVS1aZWijWJDMZGE0+XgYWiQAhnjRsEq37 MdX6+z2wllSjkgspNr/ChNlbgZ7cv9hNHpIu6z6Jy2kezPUfQLOYT7WWKJoAAXaEehzx 6y/dg3KbqyUOjh3RMRHap28qZzbxlYRskDp9PxyboeK84m9h6Nb+RZexOP6n8Ccnu2XR qqCSvxtBq/8YGPIrvazPoa4MLHJge7cnTPNsF5Ewnj6TXjJ3spppHcmWrIxZZFmg0PEh qQ1Q== X-Gm-Message-State: ALoCoQndSV1eK7GIr2yoAM2mpKeletb+Fn7pwl4BbRLFluq7rau9DZ5ImCWWB9rowJEKlQ/xsgA0 X-Received: by 10.153.8.171 with SMTP id dl11mr5925340lad.9.1427752700095; Mon, 30 Mar 2015 14:58:20 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.136 with SMTP id e8ls685929lam.91.gmail; Mon, 30 Mar 2015 14:58:19 -0700 (PDT) X-Received: by 10.152.8.17 with SMTP id n17mr17361613laa.63.1427752699515; Mon, 30 Mar 2015 14:58:19 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id jd4si7863738lac.172.2015.03.30.14.58.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Mar 2015 14:58:19 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lboc7 with SMTP id c7so48040322lbo.1 for ; Mon, 30 Mar 2015 14:58:19 -0700 (PDT) X-Received: by 10.112.46.74 with SMTP id t10mr1784736lbm.73.1427752699408; Mon, 30 Mar 2015 14:58:19 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.57.201 with SMTP id k9csp1410342lbq; Mon, 30 Mar 2015 14:58:18 -0700 (PDT) X-Received: by 10.70.131.164 with SMTP id on4mr62100190pdb.100.1427752697523; Mon, 30 Mar 2015 14:58:17 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id lp6si16501839pab.69.2015.03.30.14.58.16; Mon, 30 Mar 2015 14:58:17 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753298AbbC3V6K (ORCPT + 5 others); Mon, 30 Mar 2015 17:58:10 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:35832 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753847AbbC3V6G (ORCPT ); Mon, 30 Mar 2015 17:58:06 -0400 Received: by wgdm6 with SMTP id m6so190162740wgd.2 for ; Mon, 30 Mar 2015 14:58:05 -0700 (PDT) X-Received: by 10.180.86.162 with SMTP id q2mr26601683wiz.26.1427752685249; Mon, 30 Mar 2015 14:58:05 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-78-145-247-151.as13285.net. [78.145.247.151]) by mx.google.com with ESMTPSA id bx3sm17528836wjc.21.2015.03.30.14.58.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Mar 2015 14:58:04 -0700 (PDT) From: Srinivas Kandagatla To: linux-arm-kernel@lists.infradead.org Cc: Maxime Ripard , Rob Herring , Kumar Gala , Mark Brown , s.hauer@pengutronix.de, Greg Kroah-Hartman , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, arnd@arndb.de, sboyd@codeaurora.org, Srinivas Kandagatla Subject: [PATCH v4 05/10] eeprom: Add bindings for simple eeprom framework Date: Mon, 30 Mar 2015 22:57:59 +0100 Message-Id: <1427752679-17261-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427752492-17039-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1427752492-17039-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch adds bindings for simple eeprom framework which allows eeprom consumers to talk to eeprom providers to get access to eeprom cell data. Signed-off-by: Maxime Ripard [Maxime Ripard: intial version of eeprom framework] Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/eeprom/eeprom.txt | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/eeprom/eeprom.txt diff --git a/Documentation/devicetree/bindings/eeprom/eeprom.txt b/Documentation/devicetree/bindings/eeprom/eeprom.txt new file mode 100644 index 0000000..fb71d46 --- /dev/null +++ b/Documentation/devicetree/bindings/eeprom/eeprom.txt @@ -0,0 +1,58 @@ += EEPROM Data Device Tree Bindings = + +This binding is intended to represent the location of hardware +configuration data stored in EEPROMs. + +On a significant proportion of boards, the manufacturer has stored +some data on an EEPROM-like device, for the OS to be able to retrieve +these information and act upon it. Obviously, the OS has to know +about where to retrieve these data from, and where they are stored on +the storage device. + +This document is here to document this. + += Data providers = +Contains bindings specific to provider drivers and data cells as children +to this node. + += Data cells = +These are the child nodes of the provider which contain data cell +information like offset and size in eeprom provider. + +Required properties: +reg: specifies the offset in byte within that storage device, and the length + in bytes of the data we care about. + There could be more then one offset-length pairs in this property. + +Optional properties: +As required by specific data parsers/interpreters. + +For example: + + /* Provider */ + qfprom: qfprom@00700000 { + compatible = "qcom,qfprom"; + reg = <0x00700000 0x8000>; + ... + + /* Data cells */ + tsens_calibration: calib@4404 { + reg = <0x4404 0x10>; + }; + + serial_number: sn { + reg = <0x104 0x4>, <0x204 0x4>, <0x30c 0x4>; + + }; + ... + }; + += Data consumers = +Are device nodes which consume eeprom data cells. + +For example: + + tsens { + ... + calibration = <&tsens_calibration>; + };