summaryrefslogtreecommitdiff
path: root/dts/gs201-lynx-charging.dtsi
blob: bd912e3c33023261eb5a7fa1011184c2a79d5d63 (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
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Battery device tree entries specific to raviole
 *
 * Copyright 2022 Google,LLC
 *
 */

/ {
	fragment@charging {
		target-path = "/";
		__overlay__ {

			google_charger: google,charger {
				status = "okay";
				compatible = "google,charger";
				#cooling-cells = <2>;

				google,chg-power-supply = "main-charger"; /* max77759-charger */
				google,bat-power-supply = "battery";
				google,usb-power-supply = "usb";
				google,tcpm-power-supply = <&max77759tcpc>;

				google,fv-max-uv = <4450000>;

				google,thermal-mitigation =
					<4000000 3200000 3000000 2800000 2600000 2400000 2300000 2200000 2000000 1500000 1000000 500000>;
				google,wlc-thermal-mitigation =
					<1100000 750000 750000 500000 500000 500000 250000 250000 250000 100000 100000 100000>;

				// thermal budgets
				google,thermal-mitigation-budgets =
					<4599000 4340000 4040000 3676000 2795000 2340000 2053000 1686000 1441000  957000  597000  352000>;
				google,wlc-thermal-mitigation-budgets =
					<4599000 4040000 3676000 3153000 2795000 2340000 2053000 1686000 1441000  957000  597000  352000>;
				google,thermal-stats-lvl-map = <0 3 5 8>;

				google,wlc-thermal-dc-fan-alarm = <2>;

				/* b/170700459 thresholds, updated in b/191070950 */
				google,bd-resume-abs-temp = <280>;
				google,bd-resume-soc = <50>;
				google,bd-resume-time = <14400>;  /* 4 hours */
				google,bd-resume-temp = <290>;
				google,bd-trigger-time = <21600>; /* 6 hours */
				google,bd-trigger-temp = <350>;
				google,bd-trigger-voltage = <4270000>;
				google,bd-recharge-voltage = <4250000>;
				google,bd-drainto-soc = <80>;
				google,bd-recharge-soc = <79>;
				/* Enable TEMP-DEFEND */
				google,bd-temp-enable;
				google,bd-temp-dry-run;

				google,chg-termination-5v;
			};

			google_bms {
				nvmem = <&pack_bee>;
			};

			google_wlc_charger: google,wlc_charger {
				#cooling-cells = <2>;
			};

			google_mdis_charger: google,mdis_charger {
				#cooling-cells = <2>;
			};

		};
	};
};

&max77759_chg {
	max77759,psy-name = "main-charger";
};

&max77759tcpc {
	chg-psy-name = "main-charger";
};