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&sound {
55	model = "OnePlus 6";
56	audio-routing =	"RX_BIAS", "MCLK",
57			"AMIC2", "MIC BIAS2",
58			"AMIC3", "MIC BIAS4",
59			"AMIC4", "MIC BIAS1",
60			"AMIC5", "MIC BIAS4";
61};
62
63&speaker_playback_dai {
64	codec {
65		sound-dai = <&max98927_codec 0>;
66	};
67};
68
69&wcd9340 {
70	qcom,micbias1-microvolt = <1800000>;
71	qcom,micbias2-microvolt = <2700000>;
72	qcom,micbias3-microvolt = <1800000>;
73	qcom,micbias4-microvolt = <1800000>;
74};
75