On Mon, Nov 24, 2025 at 10:53:40PM +0100, David Heidelberg via B4 Relay wrote:
> From: Alexey Minnekhanov <alexeymin@postmarketos.org>
>
> Add support for battery, fuelgauge and charger.
>
> Signed-off-by: Alexey Minnekhanov <alexeymin@postmarketos.org>
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---
> .../arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts | 25 ++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts b/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts
> index a9926ad6c6f9f..cb89b88d887d1 100644
> --- a/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts
> +++ b/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts
> @@ -38,6 +38,14 @@ framebuffer0: framebuffer@9d400000 {
> };
> };
>
> + battery: battery {
> + compatible = "simple-battery";
> +
> + charge-full-design-microamp-hours = <4000000>;
> + voltage-min-design-microvolt = <3400000>;
> + voltage-max-design-microvolt = <4400000>;
> + };
> +
> vph_pwr: vph-pwr-regulator {
> compatible = "regulator-fixed";
> regulator-name = "vph_pwr";
> @@ -93,6 +101,23 @@ &blsp1_uart2 {
> status = "okay";
> };
>
> +&pm660_charger {
> + monitored-battery = <&battery>;
> +
> + status = "okay";
> +};
> +
> +&pm660_fg {
> + monitored-battery = <&battery>;
> + power-supplies = <&pm660_charger>;
> +
> + status = "okay";
> +};
> +
> +&pm660_rradc {
> + status = "okay";
> +};
Could you please also add a patch moving &pm660l_wled to a correct
place?
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> +
> &pon_pwrkey {
> status = "okay";
> };
>
> --
> 2.51.0
>
>
--
With best wishes
Dmitry