summaryrefslogtreecommitdiff
path: root/qcom/qm215-qrd-smb1360.dtsi
blob: 97568702a5ff3598fc458728a0f286648c5a8fb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#include "qm215-qrd.dtsi"
#include <dt-bindings/iio/qcom,spmi-vadc.h>

&pm8916_chg {
	qcom,use-external-charger;
};

&pm8916_bms {
	qcom,disable-bms;
};

&tlmm {
		/* SMB interrupt pin */
		smb_int_pin {
			smb_int_default: smb_int_default {
				mux {
					pins = "gpio13";
					function ="gpio";
				};

				config {
					pins = "gpio13";
					bias-pull-up;           /* PULL UP*/
					input-enable;
				};
			};
		};
};

&pm8916_gpios {
	usb_id {
		usb_id_default: usb_id_default {
			pins = "gpio4";
			function = "normal";
			input-enable;
			bias-pull-up;
			power-source = <0>;
		};
	};
};

&i2c_2 {
	#address-cells = <1>;
	#size-cells = <0>;

	status ="ok";
	smb1360_otg_supply: smb1360-chg-fg@14 {
		compatible = "qcom,smb1360-chg-fg";
		reg = <0x14>;
		interrupts-extended = <&tlmm 13 8>,
				<&spmi_bus 0 0xc3 0 3>;
		interrupt-names = "smb1360_stat_irq",
				"smb1360_usb_id_irq";
		pinctrl-names = "default";
		pinctrl-0 = <&smb_int_default>,
			<&usb_id_default>;
		qcom,empty-soc-disabled;
		qcom,chg-inhibit-disabled;
		qcom,float-voltage-mv = <4400>;
		qcom,iterm-ma = <100>;
		qcom,recharge-thresh-mv = <100>;
		qcom,thermal-mitigation = <1500 700 600 0>;
		qcom,fg-batt-capacity-mah = <2800>;
		qcom,fg-cutoff-voltage-mv = <3400>;
		qcom,fg-iterm-ma = <130>;
		qcom,fg-delta-soc = <1>;
		qcom,usb-id-gpio = <&pm8916_gpios 4 0>;
		qcom,soft-jeita-supported;
		qcom,warm-bat-decidegc = <450>;
		qcom,cool-bat-decidegc = <150>;
		qcom,warm-bat-mv = <4200>;
		qcom,cool-bat-mv = <4200>;
		qcom,warm-bat-ma = <1000>;
		qcom,cool-bat-ma = <1000>;
		io-channels = <&pm8916_vadc VADC_LR_MUX2_BAT_ID>;
		io-channel-names = "batt_id";
		status= "okay";
	};
};

&usb_otg {
	extcon = <&smb1360_otg_supply>;
};