xref: /linux/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts (revision ff32fcca64437f679a2bf1c0a19d5def389a18e2)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * SDM845 OnePlus 6T (fajita) 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 6T";
12	compatible = "oneplus,fajita", "qcom,sdm845";
13	chassis-type = "handset";
14	qcom,msm-id = <0x141 0x20001>;
15	qcom,board-id = <8 0 18801 41>;
16
17	battery: battery {
18		compatible = "simple-battery";
19
20		charge-full-design-microamp-hours = <3700000>;
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,s6e3fc2x01";
30};
31
32&i2c4 {
33	/* nxp,tfa9894 @ 0x34 */
34};
35
36&bq27441_fg {
37	monitored-battery = <&battery>;
38};
39
40&sound {
41	model = "OnePlus 6T";
42	audio-routing = "RX_BIAS", "MCLK",
43			"AMIC1", "MIC BIAS3",
44			"AMIC2", "MIC BIAS2",
45			"AMIC3", "MIC BIAS4",
46			"AMIC4", "MIC BIAS1",
47			"AMIC5", "MIC BIAS3";
48};
49
50/*
51 * The TFA9894 codec is currently unsupported.
52 * We need to delete the node to allow the soundcard
53 * to probe for headphones/earpiece.
54 */
55/delete-node/ &speaker_playback_dai;
56
57&rmi4_f12 {
58	touchscreen-y-mm = <148>;
59};
60
61&wcd9340 {
62	qcom,micbias1-microvolt = <2700000>;
63	qcom,micbias2-microvolt = <2700000>;
64	qcom,micbias3-microvolt = <2700000>;
65	qcom,micbias4-microvolt = <2700000>;
66};
67