android_kernel_motorola_sm6375/qcom/rt9426a.dtsi
liuyc20 0a883d11e0 arm/dts: milanf rt9426a fg alert_irq modify to gpio38
gpio8 will be used by NFC,
RT9426A IRQ switch to gpio38 from DVT1 HW.

Change-Id: I8f162a09c9ae5b5657ea8314594ce4abf2b1c293
Signed-off-by: liuyc20 <[email protected]>
Reviewed-on: https://gerrit.mot.com/2093292
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <[email protected]>
Submit-Approved: Jira Key
2023-10-22 09:57:55 +08:00

47 lines
1.2 KiB
Devicetree

#include <dt-bindings/interrupt-controller/irq.h>
&qupv3_se8_i2c {
status = "okay";
rt9426a: rt9426a@55 {
compatible = "richtek,rt9426a";
reg = <0x55>;
status = "okay";
interrupts-extended = <&tlmm 8 IRQ_TYPE_LEVEL_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&rt9426a_alert>;
rt,dtsi_version = <01 1012>;
rt,para_version = <0x0001>;
rt,battery_type = <4352>;
rt,volt_source = <1>; // 0:AP 1:FG_VBAT 2:FG_OCV; 3:FG_AV
rt,temp_source = <1>; // 0:AP 1:FG_TEMP 2:FG_INTT; 3:FG_AT
rt,curr_source = <1>; // 0:AP 1:FG_CURR 2:FG_AI
rt,offset_interpolation_order = <2 2>;
rt,soc_offset_size = <2 1>;
rt,soc_offset_data = <0 250 0 1000 250 0>;
rt,rs_ic_setting = <1000>; /* unit:0.01mR ; 1000x0.01 = 10.0mR */
rt,rs_schematic = <1000>; /* unit:0.01mR ; 1000x0.01 = 10.0mR */
/* add for smooth soc ; 2021-01-18 */
rt,smooth_soc_en = <0>; /* 0: disable(default) ; 1: enable */
df-serialnum = "SB18D33989";
#include "bat_setting/RT_md50-amperex-5000mah.dtsi"
#include "bat_setting/RT_md50-scud-5000mah.dtsi"
};
};
&tlmm {
rt9426a_alert: rt9426a_alert {
mux {
pins = "gpio8";
function = "gpio";
};
config {
pins = "gpio8";
drive-strength = <2>;
bias-pull-up;
};
};
};