[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <B256D81BAE5131468A838E5D7A243641D63E9586@penmbx01>
Date: Wed, 13 Jan 2016 03:50:09 +0000
From: "Yang, Wenyou" <Wenyou.Yang@...el.com>
To: Krzysztof Kozlowski <k.kozlowski@...sung.com>,
Sebastian Reichel <sre@...nel.org>,
Dmitry Eremin-Solenikov <dbaryshkov@...il.com>,
"David Woodhouse" <dwmw2@...radead.org>,
Rob Herring <robh+dt@...nel.org>,
"Pawel Moll" <pawel.moll@....com>,
Mark Rutland <mark.rutland@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Kumar Gala <galak@...eaurora.org>
CC: Javier Martinez Canillas <javier@...hile0.org>,
Lee Jones <lee.jones@...aro.org>,
"Ferre, Nicolas" <Nicolas.FERRE@...el.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>
Subject: RE: [PATCH v3 2/2] power: add documentation for ACT8945A's charger
DT bindings
Hi Krzysztof,
Thank you for your so much feedback.
I will change it in next version.
> -----Original Message-----
> From: Krzysztof Kozlowski [mailto:k.kozlowski@...sung.com]
> Sent: 2016年1月13日 10:00
> To: Yang, Wenyou <Wenyou.Yang@...el.com>; Sebastian Reichel
> <sre@...nel.org>; Dmitry Eremin-Solenikov <dbaryshkov@...il.com>; David
> Woodhouse <dwmw2@...radead.org>; Rob Herring <robh+dt@...nel.org>; Pawel
> Moll <pawel.moll@....com>; Mark Rutland <mark.rutland@....com>; Ian
> Campbell <ijc+devicetree@...lion.org.uk>; Kumar Gala <galak@...eaurora.org>
> Cc: Javier Martinez Canillas <javier@...hile0.org>; Lee Jones
> <lee.jones@...aro.org>; Ferre, Nicolas <Nicolas.FERRE@...el.com>; linux-arm-
> kernel@...ts.infradead.org; linux-kernel@...r.kernel.org; linux-
> pm@...r.kernel.org
> Subject: Re: [PATCH v3 2/2] power: add documentation for ACT8945A's charger
> DT bindings
>
> On 12.01.2016 17:09, Wenyou Yang wrote:
> > This patch adds documentation for the DT bindings of the charger
> > subdevice of ACT8945A MFD.
> >
> > Signed-off-by: Wenyou Yang <wenyou.yang@...el.com>
> > ---
> >
> > Changes in v3: None
> > Changes in v2: None
> >
> > .../devicetree/bindings/power/act8945a-charger.txt | 34
> ++++++++++++++++++++
> > 1 file changed, 34 insertions(+)
> > create mode 100644
> > Documentation/devicetree/bindings/power/act8945a-charger.txt
> >
> > diff --git
> > a/Documentation/devicetree/bindings/power/act8945a-charger.txt
> > b/Documentation/devicetree/bindings/power/act8945a-charger.txt
> > new file mode 100644
> > index 0000000..868e0164
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/power/act8945a-charger.txt
> > @@ -0,0 +1,34 @@
> > +Device-Tree bindings for charger of Active-semi ACT8945A
> > +Multi-Function Device
> > +
> > +Required properties:
> > + - compatible: "active-semi,act8945a-charger"
> > + - active-semi,chglev-gpio = Specifies a gpio that uses to select
> > + the charge current level.
>
> active-semi,chglev-gpios
> See: Documentation/devicetree/bindings/gpio/gpio.txt
>
> > +
> > +Optional properties:
> > + - active-semi,battery_temperature: Indicates if it is allowed to check
> > + the battery temperature. If it is missing, assume the battery temperature
> > + is not allowed to check.
>
> Here and in rest of properties - no underscores but hyphens. The name suggests
> that this is a value... but this is a boolean?
>
> > + - active-semi,input_voltage_threshold: unit: mV;
> > + Specifies the charger's input over-voltage threshold value;
> > + The value can be: 6600, 7000, 7500, 8000; default: 6600
>
> I think adding units suffix in binding is preferred. so "-microvolt"?
>
> Best regards,
> Krzysztof
>
>
> > + - active-semi,precondition_timeout: unit: minutes;
> > + Specifies the charger's PRECONDITION safety timer setting value;
> > + The value can be: 40, 60, 80, 0; If 0, it means to disable this timer;
> > + default: 40.
> > + - active-semi,total_timeout: unit: hours;
> > + Specifies the charger's total safety timer setting value;
> > + The value can be: 3, 4, 5, 0; If 0, it means to disable this timer;
> > + default: 3.
> > +
> > +Example:
> > +
> > + charger {
> > + compatible = "active-semi,act8945a-charger";
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&pinctrl_charger_chglev>;
> > + active-semi,chglev-gpio = <&pioA 12 GPIO_ACTIVE_HIGH>;
> > + active-semi,input_voltage_threshold = <6600>;
> > + active-semi,precondition_timeout = <40>;
> > + active-semi,total_timeout = <3>;
> > + };
> >
Best Regards,
Wenyou Yang
Powered by blists - more mailing lists