From patchwork Mon Jun 22 23:09:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 50190 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 03B7421575 for ; Mon, 22 Jun 2015 23:09:51 +0000 (UTC) Received: by lagh6 with SMTP id h6sf49052216lag.0 for ; Mon, 22 Jun 2015 16:09:50 -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=m76/Nz29Tg5RhDJPLapSd2FSw6FjAc1amdkvJD4OxgY=; b=fFtHdn0DEXN/4FqV6S4YMBWqPm8gl2HfDOLeqesv/mlkohBP+jHHnlH2viML9RQN0w RRmw/+IFwx9imwLa8Ihpikd5E7wdfDLlJJw/ViV8qzqpKIev+k/MUExLum+aAix2rJHq WgTXXf9VBjZSz36/BuXssFNPCXLx798hg5n1h3sp4o2tWZ8skIqa6rnZJ6ijbCean+fX J2gO6NLK57QhxslCAgTkbvKFozBmax4VSeIWM1QvWBA+KBaWFEQgLD37fgszU74VK/WT /KypXuKUCK7brqGyzfnTQruAK/AHcBbDQbU8rwMT+Xl5MxWN/tOjiOzYxrMJF+8xLHCs vFfg== X-Gm-Message-State: ALoCoQmsh7la4ve/hC0KaLaYTJRO4+pZLgsuRa8IKtT4ulQGokn7ECadkCqbHTbMiTxkWfBSUCXX X-Received: by 10.112.55.104 with SMTP id r8mr29347323lbp.18.1435014589957; Mon, 22 Jun 2015 16:09:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.162 with SMTP id n2ls983825laf.82.gmail; Mon, 22 Jun 2015 16:09:49 -0700 (PDT) X-Received: by 10.112.140.9 with SMTP id rc9mr32744361lbb.14.1435014589810; Mon, 22 Jun 2015 16:09:49 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id v6si17749828lav.62.2015.06.22.16.09.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jun 2015 16:09:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by laka10 with SMTP id a10so119178935lak.0 for ; Mon, 22 Jun 2015 16:09:49 -0700 (PDT) X-Received: by 10.152.88.68 with SMTP id be4mr31917445lab.76.1435014589724; Mon, 22 Jun 2015 16:09:49 -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 hn6csp2688884lbb; Mon, 22 Jun 2015 16:09:48 -0700 (PDT) X-Received: by 10.68.94.2 with SMTP id cy2mr48356225pbb.56.1435014587976; Mon, 22 Jun 2015 16:09:47 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id al1si5299148pbc.137.2015.06.22.16.09.46; Mon, 22 Jun 2015 16:09:47 -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 S1752116AbbFVXJo (ORCPT + 7 others); Mon, 22 Jun 2015 19:09:44 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:36208 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754331AbbFVXJi (ORCPT ); Mon, 22 Jun 2015 19:09:38 -0400 Received: by wicnd19 with SMTP id nd19so90247814wic.1 for ; Mon, 22 Jun 2015 16:09:36 -0700 (PDT) X-Received: by 10.194.201.71 with SMTP id jy7mr54737205wjc.93.1435014576793; Mon, 22 Jun 2015 16:09:36 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-2-98-208-65.as13285.net. [2.98.208.65]) by mx.google.com with ESMTPSA id x10sm32792557wjf.45.2015.06.22.16.09.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Jun 2015 16:09:36 -0700 (PDT) From: Srinivas Kandagatla To: linux-arm-kernel@lists.infradead.org, Greg Kroah-Hartman Cc: Maxime Ripard , 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 v6 7/9] nvmem: qfprom: Add bindings for qfprom Date: Tue, 23 Jun 2015 00:09:30 +0100 Message-Id: <1435014570-26434-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1435014459-26138-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1435014459-26138-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.45 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..8a8d55f --- /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-cell = <&tsens_calibration>; + nvmem-cell-names = "calibration"; + };