1// SPDX-License-Identifier: GPL-2.0
2/*
3 * SDM845 OnePlus 6 (enchilada) device tree.
4 *
5 * Copyright (c) 2020, The Linux Foundation. All rights reserved.
6 */
7
8#include "sdm845-oneplus-common.dtsi"
9
10/ {
11	model = "OnePlus 6";
12	compatible = "oneplus,enchilada", "qcom,sdm845";
13	chassis-type = "handset";
14	qcom,msm-id = <0x141 0x20001>;
15	qcom,board-id = <8 0 17819 22>;
16
17	battery: battery {
18		compatible = "simple-battery";
19
20		charge-full-design-microamp-hours = <3300000>;
21		voltage-min-design-microvolt = <3400000>;
22		voltage-max-design-microvolt = <4400000>;
23	};
24};
25
26&display_panel {
27	status = "okay";
28
29	compatible = "samsung,sofef00";
30};
31
32&bq27441_fg {
33	monitored-battery = <&battery>;
34};
35
36&i2c4 {
37	status = "okay";
38
39	max98927_codec: max98927@3a {
40		compatible = "maxim,max98927";
41		reg = <0x3a>;
42		#sound-dai-cells = <1>;
43
44		pinctrl-0 = <&speaker_default>;
45		pinctrl-names = "default";
46
47		reset-gpios = <&tlmm 69 GPIO_ACTIVE_LOW>;
48
49		vmon-slot-no = <1>;
50		imon-slot-no = <0>;
51	};
52};
53
54&pmi8998_charger {
55	monitored-battery = <&battery>;
56};
57
58&sound {
59	model = "OnePlus 6";
60	audio-routing =	"RX_BIAS", "MCLK",
61			"AMIC2", "MIC BIAS2",
62			"AMIC3", "MIC BIAS4",
63			"AMIC4", "MIC BIAS1",
64			"AMIC5", "MIC BIAS4";
65};
66
67&speaker_playback_dai {
68	codec {
69		sound-dai = <&max98927_codec 0>;
70	};
71};
72
73&wcd9340 {
74	qcom,micbias1-microvolt = <1800000>;
75	qcom,micbias2-microvolt = <2700000>;
76	qcom,micbias3-microvolt = <1800000>;
77	qcom,micbias4-microvolt = <1800000>;
78};
79