From patchwork Fri Jul 10 09:45:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 51022 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2E1F62290A for ; Fri, 10 Jul 2015 09:46:55 +0000 (UTC) Received: by wgfk9 with SMTP id k9sf85894341wgf.1 for ; Fri, 10 Jul 2015 02:46:54 -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=rzpVdcFdaCsL/Vkvy7mqhRz0zKuv5N+CMaEFWEDhJqc=; b=UfmvkmR40JwxVofH2i4k8pHp77SYJIt2YKnGhcgyg9uNhKUg31xYonkODewEKS7+kK uGJlY0iuYvQo5oBp/zRpceia6TsDpyvxAUqR99iua4XH70akUp/I6D53PMdqEslJ61u7 xPxqsnPUibzYgTFQ/ihhe4FjQ2Bnk0LxkC5Ouwf4fWqcxO1LHH6+fBS5N4HJW8rBpOEd uBQixQhLR8tPFOw78Dz53bEnAwTeT3DN8sSVpef0vrZjUvQ1ZNJFgHkXpDZPYIqzzEQ5 mmDSnJDdTwdTc69Sk93qOEp1V2S+XF4WGMUaHsKik+AONz8bYfCylg9N2IvJBvIHXRoC B5Aw== X-Gm-Message-State: ALoCoQmqP8zSARhiU0yeSCb7geB4cbtXUjvFSZZSQtEqPcYNhUs3cT+eB6kdNEOaFMh3oop3ByGO X-Received: by 10.112.255.66 with SMTP id ao2mr10271259lbd.15.1436521614370; Fri, 10 Jul 2015 02:46:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.196 with SMTP id a4ls1029186lak.27.gmail; Fri, 10 Jul 2015 02:46:54 -0700 (PDT) X-Received: by 10.112.217.2 with SMTP id ou2mr19103394lbc.15.1436521614225; Fri, 10 Jul 2015 02:46:54 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id ce5si7202631lbd.151.2015.07.10.02.46.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jul 2015 02:46:53 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by lagx9 with SMTP id x9so261943650lag.1 for ; Fri, 10 Jul 2015 02:46:53 -0700 (PDT) X-Received: by 10.152.18.162 with SMTP id x2mr19134688lad.73.1436521613799; Fri, 10 Jul 2015 02:46:53 -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.108.230 with SMTP id hn6csp1251438lbb; Fri, 10 Jul 2015 02:46:52 -0700 (PDT) X-Received: by 10.66.161.135 with SMTP id xs7mr41186932pab.154.1436521611999; Fri, 10 Jul 2015 02:46:51 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pp4si13127755pbb.58.2015.07.10.02.46.47; Fri, 10 Jul 2015 02:46:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754664AbbGJJql (ORCPT + 8 others); Fri, 10 Jul 2015 05:46:41 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:36765 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754490AbbGJJps (ORCPT ); Fri, 10 Jul 2015 05:45:48 -0400 Received: by wgxm20 with SMTP id m20so61383623wgx.3 for ; Fri, 10 Jul 2015 02:45:47 -0700 (PDT) X-Received: by 10.180.95.10 with SMTP id dg10mr4466621wib.41.1436521547184; Fri, 10 Jul 2015 02:45:47 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-89-242-231-79.as13285.net. [89.242.231.79]) by smtp.gmail.com with ESMTPSA id s11sm2078426wib.19.2015.07.10.02.45.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Jul 2015 02:45:46 -0700 (PDT) From: Srinivas Kandagatla To: linux-arm-kernel@lists.infradead.org, Greg Kroah-Hartman Cc: Rob Herring , Kumar Gala , Mark Brown , s.hauer@pengutronix.de, 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, pantelis.antoniou@konsulko.com, mporter@konsulko.com, stefan.wahren@i2se.com, wxt@rock-chips.com, Srinivas Kandagatla Subject: [PATCH v7 7/9] nvmem: qfprom: Add bindings for qfprom Date: Fri, 10 Jul 2015 10:45:42 +0100 Message-Id: <1436521542-10973-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1436521427-10568-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1436521427-10568-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.215.49 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 qfprom found in QCOM SOCs. QFPROM driver is based on simple nvmem framework. Reviewed-by: Stephen Boyd Signed-off-by: Srinivas Kandagatla --- Documentation/devicetree/bindings/nvmem/qfprom.txt | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/qfprom.txt diff --git a/Documentation/devicetree/bindings/nvmem/qfprom.txt b/Documentation/devicetree/bindings/nvmem/qfprom.txt new file mode 100644 index 0000000..4ad68b7 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/qfprom.txt @@ -0,0 +1,35 @@ += Qualcomm QFPROM device tree bindings = + +This binding is intended to represent QFPROM which is found in most QCOM SOCs. + +Required properties: +- compatible: should be "qcom,qfprom" +- reg: Should contain registers location and length + += Data cells = +Are child nodes of qfprom, bindings of which as described in +bindings/nvmem/nvmem.txt + +Example: + + qfprom: qfprom@00700000 { + compatible = "qcom,qfprom"; + reg = <0x00700000 0x8000>; + ... + /* Data cells */ + tsens_calibration: calib@404 { + reg = <0x4404 0x10>; + }; + }; + + += Data consumers = +Are device nodes which consume nvmem data cells. + +For example: + + tsens { + ... + nvmem-cells = <&tsens_calibration>; + nvmem-cell-names = "calibration"; + };