Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1575347 > unrolled thread
| Started by | Liam Breck <liam@networkimprov.net> |
|---|---|
| First post | 2017-02-07 04:10 +0100 |
| Last post | 2017-02-07 04:10 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] power: supply: Add driver for TI BQ2416X battery charger Liam Breck <liam@networkimprov.net> - 2017-02-07 04:10 +0100
| From | Liam Breck <liam@networkimprov.net> |
|---|---|
| Date | 2017-02-07 04:10 +0100 |
| Subject | Re: [PATCH] power: supply: Add driver for TI BQ2416X battery charger |
| Message-ID | <t84kh-5rm-9@gated-at.bofh.it> |
G'day,
On 7 Feb 2017 at 01:09:09, Wojciech Ziemba wrote:
> diff --git a/Documentation/devicetree/bindings/power/supply/bq2416x.txt
> b/Documentation/devicetree/bindings/power/supply/bq2416x.txt
> new file mode 100644
> index 0000000..8f4b814
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/supply/bq2416x.txt
DT docs are usually added/amended in a separate patch.
> @@ -0,0 +1,71 @@
> +Binding for TI bq2416x Li-Ion Charger
> ...
> +Optional properties:
> +===================
> +- interrupt-names: Meanigfull irq name.
> +- ti,charge-voltage: Charge volatge [mV].
> +- ti,charge-current: Charge current [mA].
> +- ti,termination-current: Termination current [mA}.
> +- ti,in-current-limit: IN source current limit. enum:
> + - IN_CURR_LIM_1500MA (0)
> + - IN_CURR_LIM_2500MA (1)
> +
> +- ti,usb-current-limit: USB source current limit. enum:
> + - USB_CURR_LIM_100MA (0)
> + - USB_CURR_LIM_150MA (1)
> + - USB_CURR_LIM_500MA (2)
> + - USB_CURR_LIM_800MA (3)
> + - USB_CURR_LIM_900MA (4)
> + - USB_CURR_LIM_1500MA (5)
DT values are usually uA, uV, uAh, etc.
DT properties usually get a unit suffix, e.g. -microamp.
See Documentation/devicetree/bindings/property-units.txt
and https://patchwork.kernel.org/patch/9555541/
> +- ti,status-pin-enable: 0 or 1. Enable charge status output STAT pin.
> +- ti,current-termination-enable:0 or 1. Enable charge current termination.
> +- ti,usb-dpm-voltage: USB dpm voltage [mV]. Refer to datasheet.
> +- ti,in-dpm-voltage: IN dpm voltage [mV].
> +- ti,safety-timer: Safety timer. enum:
> + - TMR_27MIN (0)
> + - TMR_6H (1)
> + - TMR_9H (2)
> + - TMR_OFF (3)
> +
> +- ti,supplied-to: string array: max 4. Names of devices to which
> + the charger supplies.
You might want to use and/or add to power_supply_battery_info, which
Sebastian asked for, see:
https://patchwork.kernel.org/patch/9555539/
https://patchwork.kernel.org/patch/9555545/
https://patchwork.kernel.org/patch/9555547/
https://patchwork.kernel.org/patch/9555549/
I'm also at work on a patch for BQ24190 which adds:
battery:precharge-current-microamp -> info.precharge_current_ua ->
POWER_SUPPLY_PROP_PRECHARGE_CURRENT
battery:endcharge-current-microamp -> info.endcharge_current_ua ->
POWER_SUPPLY_PROP_ENDCHARGE_CURRENT
Hope that helps!
Back to top | Article view | linux.kernel
csiph-web