Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1985840imm; Wed, 16 May 2018 06:14:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoPXoA5tNlfaQGopTOKMYNV1CPfu1Nh/6lVHCugAvwjtIorQuv/kTLHVPEHe8sa4BnUikG3 X-Received: by 2002:a62:f58b:: with SMTP id b11-v6mr923987pfm.113.1526476480905; Wed, 16 May 2018 06:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526476480; cv=none; d=google.com; s=arc-20160816; b=yLtfo2nfnCU56smF0iZN+f8dlgstj6ZzCYdf+LssGDx1lSorlX0J0Lcy324eZEulFp RvRmPNIm61xAcoga8dwvF0MHb0d0qZ42TTUYtMljw/tlXHOoofOBMLwcVNKhC/MgaTye 1UMpbx+pF/MK+zZrU2yox+6XiawhZ/5IExBhFpblS7E9GyuvlXq0UnjmoYTOQI/3iK/G Aw8yRZ/E80U8w5K/N4eKMWy9AGrnNe7MAiS7wtYNFK4UgMV0WvfrljVICA4+dnIDdRzA 6qa34yVjiMLWZG62heVM8macWqq6Z4pOSNIs6IKkd4u98eGWlzVVzTU4ZXHin5/dTpyA nsfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=TKXpyw2aS8/MsdtpYiyML7vNvwOdXkfRCeVUyRRrMcw=; b=XPzLwXcNSTKD8suZYYwrKitSFuKHzUFeP2FM1bPfeE9ALiCrTfqOAhyy5+2f4rYztD qTryJ7tsHrLldArsf1aeQeefJyOOazrKODE/3gt0sbd/xFxuYUqVFgvq/LmWxavY21tB 6HCRV+n5FPGNiuNRQM5Moh2PBL6q+cAPVtix90qXRyHizaf4dC6bSGR9prWq0X5MdkoX jF0xVD/hN3iLuFMPF0m7FEbVfTza0JB+Vp3ckradIo7D1z/yRWWyoXl0LlfDq9EFR/Bn 3cLBdAyCzeHxi6As0pXXWECcgIinkxB8RcI2AA1Eqh/LOFLbzw99cRzUkgjpNMcJB/Iq OHTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=HN+HZXoc; dkim=fail header.i=@linaro.org header.s=google header.b=ifiHN8Ag; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p3-v6si2776122pfb.171.2018.05.16.06.14.26; Wed, 16 May 2018 06:14:40 -0700 (PDT) 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=fail header.i=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=HN+HZXoc; dkim=fail header.i=@linaro.org header.s=google header.b=ifiHN8Ag; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752747AbeEPNM7 (ORCPT + 99 others); Wed, 16 May 2018 09:12:59 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:35617 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752733AbeEPNMy (ORCPT ); Wed, 16 May 2018 09:12:54 -0400 Received: by mail-oi0-f67.google.com with SMTP id a6-v6so644821oia.2 for ; Wed, 16 May 2018 06:12:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verdurent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=TKXpyw2aS8/MsdtpYiyML7vNvwOdXkfRCeVUyRRrMcw=; b=HN+HZXocur7CxidQ5chTC7IwmJoZzqo9TIPEJZ3hq6sT6je/e7gEWEmM+gTtaJ51yO mxmBsf1I15awfQ4eXDE1yuBu/T3yunVM/KxO/5PFlNu6THRamPTe4ScXrutfgOZF33A3 OVHYi/tH40gJjUk0Gy4QxX3uCl9DzhI9mhB00omjpbCAlbj0NZeKS8Chqs1J2gbSPyNl zRzVDQRR+1AA71TpsYdx3q9oogi1OngK37/XVYiurI8DLLl+xNLjV5LMJI6EGlN/OSCj QLcvtlKLXyWk+gE6EJCUABjBQkNWfSzmkTqv4qtf4PWpbqoepDhqck1UlRqxqzS8TZKH wHIA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=TKXpyw2aS8/MsdtpYiyML7vNvwOdXkfRCeVUyRRrMcw=; b=ifiHN8AgAolRzTOAoEVDJ8u1ntHSGcfw40gaEB15PCO+OsloaM6yV4chlvTpoa8cS2 9p3jwjW2P6BYxxZLDx60EovDRS6arwAasgKwPd2F84O05UT7CcwJNqgm4whWvDeNHaFO ocAZZJo/5uP0OMD9oDhKqSDN+gy4HNA+b9p64= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=TKXpyw2aS8/MsdtpYiyML7vNvwOdXkfRCeVUyRRrMcw=; b=Jo8ho1KKRYS04lgr9cst0gun9AKkClWp0ygyksPGxrTF1vPcmMPtYMnH0fcUSht9Ma WpOT8I8lpoffWFB7oNxSRtPZgOhyGzReaYC0OJwsbAgQ8BTEjrM0drGzaZQJWnlIwzZA Bp5t5loHDJ3mpElmKviZcm9SWXfvDEIYYGs75635PzNufYDmg5Navkv9abQllhFkbyDe xsZYrkV4tXLodthZcDU4dBlPLIKtxKfITbTY2K1sUbBmjU/vx1d90dDeIaP/UkWxLc5p ReF3ubR+KBpxo3SviI5GJjQU/sYwOWtBjvSKJW3j4kQ6ykfsG6asBVOO4QEwuC3E+hOJ 83mQ== X-Gm-Message-State: ALKqPwfkTOhAYp8egtggFFRYkyAO69JJQdzGq6xOivpCY8zxFKj4QtuT GYKdvq7D9N/54b7g4Tr6DkO34sfyLXSdnTC+N0vfsA== X-Received: by 2002:aca:b985:: with SMTP id j127-v6mr554463oif.6.1526476373172; Wed, 16 May 2018 06:12:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.196.133 with HTTP; Wed, 16 May 2018 06:12:52 -0700 (PDT) In-Reply-To: <1526375616-16904-11-git-send-email-ilialin@codeaurora.org> References: <1526375616-16904-1-git-send-email-ilialin@codeaurora.org> <1526375616-16904-11-git-send-email-ilialin@codeaurora.org> From: Amit Kucheria Date: Wed, 16 May 2018 16:12:52 +0300 X-Google-Sender-Auth: 0WIZqTxvoKZXM8hp6YdGJD6LQlI Message-ID: Subject: Re: [PATCH v7 10/14] dt-bindings: qcom_spmi: Add support for SAW documentation To: Ilia Lin Cc: Michael Turquette , sboyd@kernel.org, Rob Herring , Mark Rutland , Viresh Kumar , nm@ti.com, lgirdwood@gmail.com, broonie@kernel.org, Andy Gross , David Brown , catalin.marinas@arm.com, will.deacon@arm.com, "Rafael J. Wysocki" , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, LKML , Linux PM list , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, lakml , Rajendra Nayak , nicolas.dechesne@linaro.org, celster@codeaurora.org, tfinkel@codeaurora.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 15, 2018 at 12:13 PM, Ilia Lin wrote: > 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. Replace this boiler plate with what this patch actual does. Besides changing the subject, it could be, for example, "Document the DT bindings for the SAW regulators. The saw-slave property allows ganging (grouping) of several regulators so that their outputs can be combined... blah blah. The saw-leader is the only one that then is configurable in DT" > 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>; > + }; > + }; > -- > 1.9.1 >