diff --git a/hosts/modules/hal/pine64-pinephone-pro/rk3399-pinephone-pro-battery.dtso b/hosts/modules/hal/pine64-pinephone-pro/rk3399-pinephone-pro-battery.dtso index 64fe5d404..6a1038619 100644 --- a/hosts/modules/hal/pine64-pinephone-pro/rk3399-pinephone-pro-battery.dtso +++ b/hosts/modules/hal/pine64-pinephone-pro/rk3399-pinephone-pro-battery.dtso @@ -53,3 +53,38 @@ <3400000 0>; }; }; + +&rk818 { + battery { + compatible = "rockchip,rk818-battery"; + ocv_table = <3400 3675 3689 3716 3740 3756 3768 3780 + 3793 3807 3827 3853 3896 3937 3974 4007 4066 + 4110 4161 4217 4308>; + design_capacity = <2916>; + design_qmax = <2708>; + bat_res = <150>; + max_input_current = <3000>; + max_chrg_current = <2000>; + max_chrg_voltage = <4350>; + sleep_enter_current = <300>; + sleep_exit_current = <300>; + power_off_thresd = <3400>; + zero_algorithm_vol = <3950>; + fb_temperature = <105>; + sample_res = <10>; + max_soc_offset = <60>; + energy_mode = <0>; + monitor_sec = <5>; + virtual_power = <0>; + power_dc2otg = <0>; + otg5v_suspend_enable = <1>; + }; + + charger { + compatible = "rockchip,rk818-charger"; + // TODO: this requires declaring the fusb0 rail (which megi has helpfully done already) + // power-supplies = <&fusb0>; + monitored-battery = <&bat>; + }; + +};