Files
android/arch/arm/boot/dts/bat_setting/mt6768_battery_prop.dtsi
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
Squashed backup commit (no shallow-clone history issues) of
xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream
commit 9eece662e) plus all fixes applied to get everpal_defconfig building
clean against a modern (GCC 15.2.0) toolchain -- see the previous commit
message on the lineage-23.2 branch (also in this repo history is not
available here since this is a squashed snapshot; full incremental history
lives in the local DL380 checkout and the upstream GitHub remote).

Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
2026-09-12 13:36:46 +00:00

79 lines
2.5 KiB
Devicetree

/*
* Copyright (C) 2018 MediaTek Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See http://www.gnu.org/licenses/gpl-2.0.html for more details.
*/
bat_gm30: battery{
compatible = "mediatek,bat_gm30";
DIFFERENCE_FULLOCV_ITH = <(200)>;
/* Charging termination current*/
SHUTDOWN_1_TIME = <(30)>;
/* If ui_soc shows 1% more than X minites, system will shutdown*/
KEEP_100_PERCENT = <(1)>;
/* The ui_soc will keep 100% until SOC drop X percents after unplugged*/
R_FG_VALUE = <(5)>;
/* R_sense resistance*/
EMBEDDED_SEL = <(0)>;
/* Configures whether using embedded battery or not*/
PMIC_SHUTDOWN_CURRENT = <(20)>;
/* System shutdown current*/
FG_METER_RESISTANCE = <(100)>;
/* The resistance of PCB*/
CAR_TUNE_VALUE = <(100)>;
/* Tune value for current measurement*/
PMIC_MIN_VOL = <(33500)>;
/* vboot voltage for gauge 0%*/
POWERON_SYSTEM_IBOOT = <(500)>;
/* power on system iboot*/
SHUTDOWN_GAUGE0_VOLTAGE = <(34000)>;
/* shutdown gauge 0% voltage*/
TEMPERATURE_T0 = <(50)>;
/* Battery temperature T0*/
TEMPERATURE_T1 = <(25)>;
/* Battery temperature T1*/
TEMPERATURE_T2 = <(10)>;
/* Battery temperature T2*/
TEMPERATURE_T3 = <(0)>;
/* Battery temperature T3*/
TEMPERATURE_T4 = <(-6)>;
/* Battery temperature T4*/
TEMPERATURE_T5 = <(-10)>;
/* Battery temperature T5*/
g_FG_PSEUDO100_T0 = <(100)>;
/* Pseudo 100% percentage at T0*/
g_FG_PSEUDO100_T1 = <(100)>;
/* Pseudo 100% percentage at T1*/
g_FG_PSEUDO100_T2 = <(100)>;
/* Pseudo 100% percentage at T2*/
g_FG_PSEUDO100_T3 = <(100)>;
/* Pseudo 100% percentage at T3*/
g_FG_PSEUDO100_T4 = <(100)>;
/* Pseudo 100% percentage at T4*/
Q_MAX_SYS_VOLTAGE_BAT0 = <(3350)>;
/* Pseudo1 for hide percentage*/
Q_MAX_SYS_VOLTAGE_BAT1 = <(3350)>;
/* Pseudo1 for hide percentage*/
Q_MAX_SYS_VOLTAGE_BAT2 = <(3350)>;
/* Pseudo1 for hide percentage*/
Q_MAX_SYS_VOLTAGE_BAT3 = <(3350)>;
/* Pseudo1 for hide percentage*/
COM_FG_METER_RESISTANCE = <(100)>;
/* compensate The resistance of PCB*/
COM_R_FG_VALUE = <(0)>;
/* compensate R_sense resistance*/
enable_tmp_intr_suspend = <(0)>;
/* Enable update temp when suspend */
ACTIVE_TABLE = <(6)>;
/* Table numbers per battery*/
MULTI_TEMP_GAUGE0 = <(1)>;
/* Multi gauge0 enable*/
#include "mt6768_battery_table.dtsi"
};