xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/sdm845-oneplus-fajita.dts (revision a0ca4af9455b844c5e094fc1b09b1390ffa979fc)
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&pmi8998_charger {
51	monitored-battery = <&battery>;
52};
53
54/*
55 * The TFA9894 codec is currently unsupported.
56 * We need to delete the node to allow the soundcard
57 * to probe for headphones/earpiece.
58 */
59/delete-node/ &speaker_playback_dai;
60
61&rmi4_f12 {
62	touchscreen-y-mm = <148>;
63};
64
65&wcd9340 {
66	qcom,micbias1-microvolt = <2700000>;
67	qcom,micbias2-microvolt = <2700000>;
68	qcom,micbias3-microvolt = <2700000>;
69	qcom,micbias4-microvolt = <2700000>;
70};
71