[Letux-kernel] [PATCH 2/3] arm: boot: dts: pyra: update bq24297 and bq27421 entries

H. Nikolaus Schaller hns at goldelico.com
Thu Aug 6 18:33:32 CEST 2020


> Am 06.08.2020 um 18:10 schrieb Nick Elsmore <nicholaselsmore at gmail.com>:
> 
> Signed-off-by: Nick Elsmore <nicholaselsmore at gmail.com <mailto:nicholaselsmore at gmail.com>>
> ---
>  arch/arm/boot/dts/pyra-mainboard-common.dtsi | 13 +++++++++++--
>  1 file changed, 11 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/pyra-mainboard-common.dtsi b/arch/arm/boot/dts/pyra-mainboard-common.dtsi
> index b06fb6c12143..0f7f5cd705ba 100644
> --- a/arch/arm/boot/dts/pyra-mainboard-common.dtsi
> +++ b/arch/arm/boot/dts/pyra-mainboard-common.dtsi
> @@ -554,14 +554,23 @@ bq27421 at 55 {
>  	compatible = "ti,bq27421";
>  	reg = <0x55>;
>  	monitored-battery = <&bat>;
> +	power-supplies = <&charger>;
>  	};
>  
>  	/* charger */
> -	bq24297 at 6b {
> +	charger: bq24297 at 6b {
>  	compatible = "ti,bq24297";
>  	reg = <0x6b>;
> -	monitored-battery = <&bat>;

IMHO the monitored-battery way is the right way to provide battery information to a driver, not private properties as below.

>  	/* interrupts are broken */
> +
> +	ti,voltage-limit = <4360000>;
> +	ti,input-current = <2000000>;
> +	ti,vsys-min = <3500000>;
> +	ti,charge-current = <2048000>;
> +	ti,precharge-current = <128000>;
> +	ti,term-current = <128000>;
> +	ti,charge-voltage = <4096000>;
> +
>  	regulators {
>  	vsys_reg: vsys_regulator {
>  	regulator-compatible = "bq2429x-vsys";
> -- 
> 2.25.1
> 
> _______________________________________________
> https://projects.goldelico.com/p/gta04-kernel/
> Letux-kernel mailing list
> Letux-kernel at openphoenux.org
> http://lists.goldelico.com/mailman/listinfo.cgi/letux-kernel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20200806/c036a2a5/attachment.htm>


More information about the Letux-kernel mailing list