Received: by 10.223.185.116 with SMTP id b49csp1547178wrg; Sun, 4 Mar 2018 04:33:52 -0800 (PST) X-Google-Smtp-Source: AG47ELtxiYwYNzaIPPtLuooDocup2vjrDGWH5RYVCiK7iXYM9XITlxgoqGNmKgyTNuZoj9iJqLpL X-Received: by 10.98.91.66 with SMTP id p63mr10129823pfb.163.1520166832303; Sun, 04 Mar 2018 04:33:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520166832; cv=none; d=google.com; s=arc-20160816; b=gDEn5Q1Ev5329BrPAt91V9w/Cslw0Dsd+pYMKY7xD2Yrc7c8p/VkT0ycW4W/5KNig5 cFbH3trX6sy2T8a19wevUpPNcqeItEBnJbNPDoo8A3Zhq5JzxI7FFQIHWUC8gz8U3X6s bpUz1OLC+SXDwVl4qt3xVw9Vzi6HUgXLw2W0Am0YAbffu9jeREldH1afAmti0dwvXe2+ NSLRAzcGssdTzUt5c96OHbf3Ycwxc4nH1OEQmJRMMFtNq5yBSn+UeVt5tbEFZWEphi9i G9u1Zsq7kHVhSKiTRC2LCB9AB38kET7Cyn3qOZEX7InR7+GYnUtCuXGB9NJ3lml8ztBQ mVDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=m+N9PY+HnmfF9fRkNva5z/BuWbX+tLp4BVLetxksmkc=; b=BwLtpITEJcGlc1KAhE9L3JMIjLvhTc8MT04F32U4TnAigGQI2gbz3dhvn/3LWUiNzA SV/NtWZA6W0J9tNCsERf3fTvA6J1jyUBcmcyQy7uHZ2YiPyphAEgya9VW9oe22/GZKw/ aglEWa3AyDDFOBQ4kpZYTui19zaPReqWytnospCzXmBeaRUQEw+oHgO0e5W24tLVXfWd 4uh6BvsPxFy8PEYJIyShS5ipWO7Swb1/DT3WFLoNBMg9kDdcvF1Gfv1UMx66ek+ss7uz g8y0qaCw9SUMMmKOUpKCyYfInlcawkdQZBmNnWTeresAlwieF8lT+V58+B/ZiCgKMdCR mGYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=lq40M3FV; dkim=pass header.i=@codeaurora.org header.s=default header.b=FzkVVbCJ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 44-v6si7793958plc.428.2018.03.04.04.33.25; Sun, 04 Mar 2018 04:33:52 -0800 (PST) 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=@codeaurora.org header.s=default header.b=lq40M3FV; dkim=pass header.i=@codeaurora.org header.s=default header.b=FzkVVbCJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932387AbeCDMcR (ORCPT + 99 others); Sun, 4 Mar 2018 07:32:17 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:56676 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932292AbeCDMcB (ORCPT ); Sun, 4 Mar 2018 07:32:01 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0970F60763; Sun, 4 Mar 2018 12:32:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1520166721; bh=hViYeFe+namgPG3pUQzTuCdCTBtVBhLqUzPRM3FoAPc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lq40M3FVFWSkvXvP8oBfRhdpyN9qmZPfGewPeUcDdsWANOaYCo15rXP/JBGY04KBF t7OYdCUAz1+oiS82bkF2ysWxNU0P9wqjiwMhSUykCIv/RnzAAaxwCIXlotnQRHNnU7 rbnu43MpRsUVGGFXn+M1la/YqGYM/oepjTvs+Z+o= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from lx-ilial.mea.qualcomm.com (unknown [185.23.60.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ilialin@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id B4BE76043F; Sun, 4 Mar 2018 12:31:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1520166720; bh=hViYeFe+namgPG3pUQzTuCdCTBtVBhLqUzPRM3FoAPc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FzkVVbCJi+492JjYWcafhNOjml/bBM81NzAC3i3cCE9ySpGzxnvmD9Ryq5/ggjEZQ yZh/8vmQay8OPtsZ32+pEDIfcwvKWVApxOJoFal0myG848tNJMuX602yVBF6DhsO4D mLUaRxjLusxiPUOXU/ZHOSWrXEZyTct1GmFcJOmQ= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B4BE76043F Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilialin@codeaurora.org From: Ilia Lin To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, lgirdwood@gmail.com, broonie@kernel.org, robh@kernel.org, mark.rutland@arm.com Cc: ilialin@codeaurora.org, amit.kucheria@linaro.org, nicolas.dechesne@linaro.org, celster@codeaurora.org, tfinkel@codeaurora.org Subject: [PATCH 2/2] dt-bindings: Add support for SAW documentation Date: Sun, 4 Mar 2018 14:31:49 +0200 Message-Id: <1520166709-554-3-git-send-email-ilialin@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1520166709-554-1-git-send-email-ilialin@codeaurora.org> References: <1520166709-554-1-git-send-email-ilialin@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for SAW controlled regulators in 8x96. Document it. Signed-off-by: Ilia Lin --- .../bindings/regulator/qcom,spmi-regulator.txt | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.txt b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.txt index 57d2c65..406f2e5 100644 --- a/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.txt +++ b/Documentation/devicetree/bindings/regulator/qcom,spmi-regulator.txt @@ -110,6 +110,11 @@ Qualcomm SPMI Regulators Definition: Reference to regulator supplying the input pin, as described in the data sheet. +- qcom,saw-reg: + Usage: optional + Value type: + Description: Reference to syscon node defining the SAW registers. + The regulator node houses sub-nodes for each regulator within the device. Each sub-node is identified using the node's name, with valid values listed for each @@ -201,6 +206,17 @@ see regulator.txt - with additional custom properties described below: 2 = 0.55 uA 3 = 0.75 uA +- qcom,saw-slave: + Usage: optional + Value type: + Description: SAW controlled gang slave. Will not be configured. + +- qcom,saw-leader: + Usage: optional + Value type: + Description: SAW controlled gang leader. Will be configured as + SAW regulator. + Example: regulators { @@ -221,3 +237,32 @@ Example: .... }; + +Example 2: + + saw3: syscon@9A10000 { + compatible = "syscon"; + reg = <0x9A10000 0x1000>; + }; + + ... + + spm-regulators { + compatible = "qcom,pm8994-regulators"; + qcom,saw-reg = <&saw3>; + s8 { + qcom,saw-slave; + }; + s9 { + qcom,saw-slave; + }; + s10 { + qcom,saw-slave; + }; + pm8994_s11_saw: s11 { + qcom,saw-leader; + regulator-always-on; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1140000>; + }; + }; -- Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project