Files
android/arch/arm/boot/dts/rt9471.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

68 lines
1.7 KiB
Devicetree

/*
* Copyright (C) 2019 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.
*/
&i2c7 {
#address-cells = <1>;
#size-cells = <0>;
rt-swchg@53 {
compatible = "richtek,swchg";
reg = <0x53>;
status = "okay";
rt,intr_gpio = <&pio 42 0x0>; /* GPIO */
rt,intr_gpio_num = <42>; /* direct defined GPIO num */
/*
* rt,ceb_gpio = <&pio 43 0x0>;
* rt,ceb_gpio_num = <43>;
*/
rt9471 {
/*
* Charger name
* Primary charger: primary_chg
* Secondary charger: secondary_chg
*/
chg_name = "primary_chg";
chg_alias_name = "rt9471_chg";
rm-dev-addr = /bits/ 8 <0x53>;
rm-name = "rt9471";
interrupt-names = "wdt", "chg_mivr", "vbus_gd",
"bc12_done", "detach", "vac_ov",
"otg_fault", "chg_rdy", "chg_done",
"aicc_done", "pe_done", "chg_tout",
"rechg", "chg_batov";
vac_ovp = <14000000>; /* uV */
mivr = <4400000>; /* uV */
aicr = <500000>; /* uA */
cv = <4350000>; /* uV */
ichg = <1000000>; /* uA */
ieoc = <200000>; /* uA */
safe_tmr = <10>; /* hour */
wdt = <40>; /* sec */
/*
* 0: MIVR register
* 1: MIVR = VBAT + 200mV
* 2: MIVR = VBAT + 250mV
* >= 3: MIVR = VBAT + 300mV
*/
mivr_track = <0>;
en_safe_tmr;
en_te;
/* en_jeita; */
/* ceb_invert; */
/* dis_i2c_tout; */
en_qon_rst;
/* auto_aicr; */
};
};
};