From patchwork Mon May 14 13:11:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilia Lin X-Patchwork-Id: 10398477 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2E47560216 for ; Mon, 14 May 2018 13:26:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 14895290E4 for ; Mon, 14 May 2018 13:26:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 12C7D29110; Mon, 14 May 2018 13:26:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CA166290F3 for ; Mon, 14 May 2018 13:26:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=gsDIwL5ImFu5uTDw+iFULZkUmuTnqv3gtMO+hCRPXXM=; b=BVNsA0AVG4MXbaIHb6ESWfqCdA G4kOT0d3hzXplhG2Uk5Sm1V9zI9uFQHyFmbR2C92sXlQGGa1TdqKyswsXXXwcRsn4Az27CApwPGHE HFPWhdghJFzvkSaZ+oN5QB+YO1zQHjzrXniYeiTjnmzXGqs4EZ4jkTIvuSlbbw53Q56MKx6Uu8/pN Kwz1a2WCQQaH0TVPEaFcIITHAU3HZOWEieFbfX0ZfOhsb0Ij9ndyV9LYuPgRtXauR8x2iTJdrk6u8 5HTz7PCoPtjdWKz35tDPApYrrt0zEXT8viJodBNajtv1sS2zMTUe5O6fYRc4nVY0g3OO1U51d+ABu Y+P4oqfg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIDUa-00064T-4x; Mon, 14 May 2018 13:26:20 +0000 Received: from casper.infradead.org ([85.118.1.10]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIDKF-0006gZ-Br for linux-arm-kernel@bombadil.infradead.org; Mon, 14 May 2018 13:15:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=VQAwn6VrK5w0KNC2tcSrBwfby39AjPFjZbSiK0vQGu0=; b=u+lHNwxAQlbN8PGnZDnThkLxB MLYQYodA3mM5o+/QDXHGattMcSV4gCOFEKEiq/bd34vFSXZks0EwXIeQfkNAxEnupW3kpNapPn/K8 hXdCuYHe7t97dju8KM8XhLULE/Dsd5LP1ikRjyX2vtxr8otK7uSOCQFnq2GsiszPTprfYJR9ATng4 Y8HzOwg7XnUTxxXgRAZURXxN3eY4CBwjpTGVHb+34pKhd1lqzFy+skoDCFam8cis8CgtRuNeq1OTp fgHowZqBKcOa0h5/hySnwHlxIApVCMq6bzDEEQRThwweptt4u4Ydsv7m8dcwqVTQkQYYdpj++hbF2 wpX+7VVFw==; Received: from smtp.codeaurora.org ([198.145.29.96]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIDI5-0000XF-F7 for linux-arm-kernel@lists.infradead.org; Mon, 14 May 2018 13:13:27 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8AC6960B23; Mon, 14 May 2018 13:13:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526303586; bh=aMD93QXfgCcPGMxAgbMB+GacslVTPajrIypC09hNUhc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RQMmt2EmT8/KRqYT/hqiS9Nn36csECNXYzX5P9SoAjIN8sPAwRK3Vp7i+T2njQs8W /AULHOq4GK6Cb4yeTZcngL+fe3+vjRLFcpzTpwmo1jHHdJir29IsKTMzf+RqPlU4kD 9iBi5XSGxYm/Pt5yGEqLgbD5DLThzNEJjILoZ8zA= 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 744256047C; Mon, 14 May 2018 13:13:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1526303585; bh=aMD93QXfgCcPGMxAgbMB+GacslVTPajrIypC09hNUhc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ntL/tSMUv2rV8W9I+UbKic+PtRvUaNVRFBDm0Wibb1Hi1YRzwMaMtgELoAhm3xyiv Q4fLmiXV9W17BECbakkCRzbCNoceQ3YfaEf7GSArEGp4OG3BhS9e7JZf0/welrakpu Fq928QJmhC+iPtNgqmckJ8SN0hF4z1Dxb7P8EyaM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 744256047C 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: mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, mark.rutland@arm.com, viresh.kumar@linaro.org, nm@ti.com, lgirdwood@gmail.com, broonie@kernel.org, andy.gross@linaro.org, david.brown@linaro.org, catalin.marinas@arm.com, will.deacon@arm.com, rjw@rjwysocki.net, linux-clk@vger.kernel.org Subject: [PATCH v6 10/14] dt-bindings: qcom_spmi: Add support for SAW documentation Date: Mon, 14 May 2018 16:11:56 +0300 Message-Id: <1526303520-5843-11-git-send-email-ilialin@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1526303520-5843-1-git-send-email-ilialin@codeaurora.org> References: <1526303520-5843-1-git-send-email-ilialin@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180514_141325_816561_F1485035 X-CRM114-Status: GOOD ( 10.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, rnayak@codeaurora.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, tfinkel@codeaurora.org, ilialin@codeaurora.org, nicolas.dechesne@linaro.org, celster@codeaurora.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for SAW controlled regulators. The regulators defined as SAW controlled in the device tree will be controlled through special CPU registers instead of direct SPMI accesses. This is required especially for CPU supply regulators to synchronize with clock scaling and for Automatic Voltage Switching. Document it. Signed-off-by: Ilia Lin Reviewed-by: Rob Herring --- .../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>; + }; + };