summaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
blob: 4005e04d998a40d25a64d652a526bf93efc20332 (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
// SPDX-License-Identifier: GPL-2.0
/*
 * SDM845 OnePlus 6 (enchilada) device tree.
 *
 * Copyright (c) 2020, The Linux Foundation. All rights reserved.
 */

#include "sdm845-oneplus-common.dtsi"

/ {
	model = "OnePlus 6";
	compatible = "oneplus,enchilada", "qcom,sdm845";
	chassis-type = "handset";
	qcom,msm-id = <0x141 0x20001>;
	qcom,board-id = <8 0 17819 22>;

	battery: battery {
		compatible = "simple-battery";

		charge-full-design-microamp-hours = <3300000>;
		voltage-min-design-microvolt = <3400000>;
		voltage-max-design-microvolt = <4400000>;
	};
};

&display_panel {
	status = "okay";

	compatible = "samsung,sofef00";
};

&bq27441_fg {
	monitored-battery = <&battery>;
};

&i2c4 {
	status = "okay";

	max98927_codec: max98927@3a {
		compatible = "maxim,max98927";
		reg = <0x3a>;
		#sound-dai-cells = <0>;

		pinctrl-0 = <&speaker_default>;
		pinctrl-names = "default";

		reset-gpios = <&tlmm 69 GPIO_ACTIVE_LOW>;

		vmon-slot-no = <1>;
		imon-slot-no = <0>;
	};
};

&pmi8998_charger {
	monitored-battery = <&battery>;
};

&sound {
	model = "OnePlus 6";
	audio-routing = "RX_BIAS", "MCLK",
			"AMIC2", "MIC BIAS2",
			"AMIC3", "MIC BIAS4",
			"AMIC4", "MIC BIAS1",
			"AMIC5", "MIC BIAS4";
};

&speaker_playback_dai {
	codec {
		sound-dai = <&max98927_codec>;
	};
};

&wcd9340 {
	qcom,micbias1-microvolt = <1800000>;
	qcom,micbias2-microvolt = <2700000>;
	qcom,micbias3-microvolt = <1800000>;
	qcom,micbias4-microvolt = <1800000>;
};