Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1373608

Re: [PATCH 1/2] qcom: ipq4019: Add regulator support to DK04 device tree

From Rob Herring <robh@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] qcom: ipq4019: Add regulator support to DK04 device tree
Date 2016-04-07 20:00 +0200
Message-ID <rlmnN-7Av-7@gated-at.bofh.it> (permalink)
References <rkjV1-Jj-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Apr 04, 2016 at 02:08:10PM -0700, Sreedhar Sambangi wrote:
>     This adds the regulator nodes to DK04 device tree to support
> 
> Change-Id: I9c1df0e720a330bf6db1889fd2247f6a70ea6faa
> Signed-off-by: Sreedhar Sambangi <ssambang@codeaurora.org>
> ---
>  .../bindings/regulator/ipq4019-regulator.txt          | 19 +++++++++++++++++++
>  arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi         | 11 +++++++++++
>  2 files changed, 30 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/regulator/ipq4019-regulator.txt
> 
> diff --git a/Documentation/devicetree/bindings/regulator/ipq4019-regulator.txt b/Documentation/devicetree/bindings/regulator/ipq4019-regulator.txt
> new file mode 100644
> index 0000000..9d934a4
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/regulator/ipq4019-regulator.txt
> @@ -0,0 +1,19 @@
> +* Qualcomm Technologies, Inc. IPQ4019 regulators
> +
> +Required properties:
> +- compatible		: Must be "regulator-ipq4019".

Doesn't match your example which correctly has vendor prefix. Also, the 
preferred form is <vendor>,<soc>-<block>.

> +- states		: Selection of available voltages and corresponding values

Too generic of a name.

Is this not fixed by the h/w block?

> +- reg			: Register address for controlling LDO
> +- mask			: Mask value for switching voltages

What else is in this register? If something unrelated, then this is all 
wrong to the regulator. You can only define the register address in one 
place in the DT. Otherwise, you should know the mask from the compatible 
string.

Rob

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] qcom: ipq4019: Add regulator support to DK04 device tree Sreedhar Sambangi <ssambang@codeaurora.org> - 2016-04-04 23:10 +0200
  Re: [PATCH 1/2] qcom: ipq4019: Add regulator support to DK04 device  tree Andy Gross <andy.gross@linaro.org> - 2016-04-05 08:00 +0200
    Re: [PATCH 1/2] qcom: ipq4019: Add regulator support to DK04 device  tree Sreedhar Sambangi <ssambang@codeaurora.org> - 2016-04-06 07:00 +0200
  Re: [PATCH 1/2] qcom: ipq4019: Add regulator support to DK04 device  tree Rob Herring <robh@kernel.org> - 2016-04-07 20:00 +0200
    Re: [PATCH 1/2] qcom: ipq4019: Add regulator support to DK04 device  tree Andy Gross <andy.gross@linaro.org> - 2016-04-07 20:20 +0200

csiph-web