summaryrefslogtreecommitdiff
path: root/dts/gs101-bluejay-charging.dtsi
blob: f0585bfd4718b39376f3161548bb4ac92497c0f9 (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
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Google GS101 B3 battery device tree
 *
 * Copyright (c) 2021 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 = <4300000 3500000 3000000
					2500000 2000000 1500000 1000000 500000>;

				/* 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;
			};

		};
	};
};


&max77759_chg {
	max77759,psy-name = "main-charger";
	max77759,usb-otg-mv = <5000>;
};

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

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

&hsi2c_12 {
	clock-frequency = <370000>;
};