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


Groups > linux.kernel > #1318716

Re: [PATCH V4 1/5] DT: mfd: add device-tree binding doc fro PMIC max77620/max20024

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Lee Jones <lee.jones@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH V4 1/5] DT: mfd: add device-tree binding doc fro PMIC max77620/max20024
Date Wed, 27 Jan 2016 08:30:03 +0100
Message-ID <qVsIb-8rt-25@gated-at.bofh.it> (permalink)
References <qSBRE-6uw-3@gated-at.bofh.it> <qSBRE-6uw-9@gated-at.bofh.it> <qUNYp-3kJ-73@gated-at.bofh.it> <qURfz-5VH-1@gated-at.bofh.it> <qVdg6-5z6-23@gated-at.bofh.it> <qVeOT-6K1-15@gated-at.bofh.it>
X-Original-To Laxman Dewangan <ldewangan@nvidia.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Ae/g4diirFRIW9T+034Ve04bt1RR7rS/MjTHAO9z8V4=; b=bhT2BA+edq/REwrg+x+9xTTC4I+3jBRU+Q3So++DZ/J39LBwHYsHmBbNuPPNnjqxnF awh87tFUa+AJZTZ4uKMHwqQkE1e6D8UK+TGUlr8cPOGvpTK/8kq/U9Ba4HCD6HAXTvSh pBZpDV4VCfZ1CAWtwUFxIU27CIznhKAEUuKg0=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=Ae/g4diirFRIW9T+034Ve04bt1RR7rS/MjTHAO9z8V4=; b=OScvYxSTG5Djaqm9PaOlJhAi86g1r/WCZtLEauYCv1UCv7J8HVs1dcYULbkRFKooO+ L0VtQudjp6n2dW+75iAf8J+kwocyFW9Aj+m+DjslQzSL9rsQoynIujWL7/+phhPof1iJ AYN/EI0QouoAZsX0ymWebyRN4zsGPdtlN+oIIM055VEx8p7WEulXOLszs2Q8hfWe8+t8 TvZBfqWdLMQ72CXcoujfq70OA5JWF+ZnvsFd/kDZZEQDQ9UOXDackB9mnp5B8YZ0mHsy GM3txjQyzVUax58T3MlaoS5aisXPOL/EifoX5ZxS4W3GBcC89700w2Wdg20VOMXvZpMA GzTg==
X-Gm-Message-State AG10YOS8pzWZ9t0hgz9h4ARf8N3msFwWlInV8vOvFs2hvtErBrGPiXbWRuE9xI2Q7jIhOZHR
X-Received by 10.194.60.231 with SMTP id k7mr27261948wjr.61.1453879473843; Tue, 26 Jan 2016 23:24:33 -0800 (PST)
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
User-Agent Mutt/1.5.21 (2010-09-15)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 75
Organization linux.* mail to news gateway
X-Original-Cc robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linus.walleij@linaro.org, gnurou@gmail.com, broonie@kernel.org, a.zummo@towertech.it, alexandre.belloni@free-electrons.com, lgirdwood@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, rtc-linux@googlegroups.com, swarren@nvidia.com, treding@nvidia.com, k.kozlowski@samsung.com, vreddytalla@nvidia.com
X-Original-Date Wed, 27 Jan 2016 07:24:30 +0000
X-Original-Message-ID <20160127072430.GD3368@x1>
X-Original-References <1453198783-28383-1-git-send-email-ldewangan@nvidia.com> <1453198783-28383-2-git-send-email-ldewangan@nvidia.com> <20160125115610.GC3368@x1> <56A63A85.6060609@nvidia.com> <20160126145854.GC3368@x1> <56A79DB4.6090000@nvidia.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1318716

Show key headers only | View raw


On Tue, 26 Jan 2016, Laxman Dewangan wrote:

> 
> On Tuesday 26 January 2016 08:28 PM, Lee Jones wrote:
> >On Mon, 25 Jan 2016, Laxman Dewangan wrote:
> >
> >>Hmm. I describe the boolean and tristate only. Do I need to define
> >>type for integer,string also?
> >I wouldn't describe any of them.  It's normally pretty obvious which
> >properties are boolean by the lack of required cell description.
> >
> 
> Rob suggested to use the type also for Boolean and tristate. I think
> it is good to have for all places that what type of values are
> valid.

It's fine, and some people do describe them.  I've just never seen the
point, especially if you have a nice example of their use in the
document.  But if you insist, please ensure you are consistent, so
*all* bools need to be described.  That is not currently the case.

> >>>>+The property for fps child nodes as:
> >>>>+Required properties:
> >>>>+	-reg: FPS number like 0, 1, 2 for FPS0, FPS1 and FPS2 respectively.
> >>>I'm surprised Rob Acked this.  We don't usually do device numbers in DT.
> >>What is best way to make the child node for FPS and differentiate FPS0,1, 2?
> >>What is your suggestion here?
> >There are lots of ways you can solve this and so many examples of
> >others doing so.  I suggest you have a look at some DTS files and
> >figure it out.  One possible solution is to use different compatible
> >strings.
> Here, I think I can go similar to regulators where child node name
> identifies the regulators.
> 
>     fps-config {
>         fps0 {
>             maxim,fps-time-period-us = <1280>;
>             maxim,fps-enable-input = <FPS_EN_SRC_EN0>;
>         };
> 
>         fps1 {
>             maxim,fps-time-period-us = <2560>;
>             maxim,fps-enable-input = <FPS_EN_SRC_EN1>;
>         };
> 
>         fps2 {
>             maxim,fps-time-period-us = <640>;
>             maxim,fps-enable-input = <FPS_EN_SRC_SW>;
>         };
>     };
> 
> So node name gives the FPS name.

That is also an acceptable means to solve the issue.

As I said, there are many ways to skin a cat.

> >>>+Pinmux and GPIO:
> >>>+===============
> >>>I think this whole section needs moving to ../pinctrl and needs to be
> >>>reviewed by Linus W.
> >>Is this mean I need to create DT binding doc for the each subsystem
> >>differently?
> >>Actually during AS3722, I had different understanding to have single file.
> >Yes, that way you have each of the the subsystem experts review your
> >documentation.  You can then link to them from this document.
> OK, I will add different dt binding doc in respective driver and
> squash that with respected submodule drivers.
> 

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

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


Thread

[PATCH V4 1/5] DT: mfd: add device-tree binding doc fro PMIC max77620/max20024 Laxman Dewangan <ldewangan@nvidia.com> - 2016-01-19 11:40 +0100
  Re: [PATCH V4 1/5] DT: mfd: add device-tree binding doc fro PMIC  max77620/max20024 Lee Jones <lee.jones@linaro.org> - 2016-01-25 13:00 +0100
    Re: [PATCH V4 1/5] DT: mfd: add device-tree binding doc fro PMIC  max77620/max20024 Laxman Dewangan <ldewangan@nvidia.com> - 2016-01-25 16:30 +0100
      Re: [PATCH V4 1/5] DT: mfd: add device-tree binding doc fro PMIC  max77620/max20024 Lee Jones <lee.jones@linaro.org> - 2016-01-26 16:00 +0100
        Re: [PATCH V4 1/5] DT: mfd: add device-tree binding doc fro PMIC  max77620/max20024 Laxman Dewangan <ldewangan@nvidia.com> - 2016-01-26 17:40 +0100
          Re: [PATCH V4 1/5] DT: mfd: add device-tree binding doc fro PMIC  max77620/max20024 Lee Jones <lee.jones@linaro.org> - 2016-01-27 08:30 +0100

csiph-web