From 819a64b456b2cb68d2e09057747a56eb9978d663 Mon Sep 17 00:00:00 2001 From: Jami Kettunen Date: Sat, 5 Nov 2022 03:23:27 +0200 Subject: [PATCH] fixup! arm64: dts: qcom: msm8998-oneplus-common: add simple-battery --- .../boot/dts/qcom/msm8998-oneplus-common.dtsi | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/msm8998-oneplus-common.dtsi index aca79916519d..23c34422b5ab 100644 --- a/arch/arm64/boot/dts/qcom/msm8998-oneplus-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998-oneplus-common.dtsi @@ -148,15 +148,16 @@ reg = <0x0 0xf6900000 0x0 0x2000>; no-map; }; + }; - blp637_bat: battery { - compatible = "simple-battery"; - voltage-max-design-microvolt = <4370000>; - voltage-min-design-microvolt = <3700000>; - charge-full-design-microamp-hours = <3300000>; - energy-full-design-microwatt-hours = <12700000>; - operating-range-celsius = <0 45>; - }; + blp637: battery { + compatible = "simple-battery"; + + charge-full-design-microamp-hours = <3300000>; + voltage-max-design-microvolt = <4370000>; + voltage-min-design-microvolt = <3700000>; + energy-full-design-microwatt-hours = <12700000>; + //operating-range-celsius = <0 45>; }; gpio-keys { @@ -319,11 +320,7 @@ compatible = "ti,bq27411"; reg = <0x55>; - /* - * TODO: Adding this appears to not change any reported stats in: - * $ cat /sys/class/power_supply/bq27411-0/uevent - */ - monitored-battery = <&blp637_bat>; + monitored-battery = <&blp637>; }; };