xref: /openbmc/linux/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
1288ef8a4SCaleb Connolly// SPDX-License-Identifier: GPL-2.0
2288ef8a4SCaleb Connolly/*
3288ef8a4SCaleb Connolly * SDM845 OnePlus 6T (fajita) device tree.
4288ef8a4SCaleb Connolly *
5288ef8a4SCaleb Connolly * Copyright (c) 2020, The Linux Foundation. All rights reserved.
6288ef8a4SCaleb Connolly */
7288ef8a4SCaleb Connolly
8288ef8a4SCaleb Connolly#include "sdm845-oneplus-common.dtsi"
9288ef8a4SCaleb Connolly
10288ef8a4SCaleb Connolly/ {
11288ef8a4SCaleb Connolly	model = "OnePlus 6T";
12288ef8a4SCaleb Connolly	compatible = "oneplus,fajita", "qcom,sdm845";
13eaa744b1SArnaud Ferraris	chassis-type = "handset";
148e6de09cSCaleb Connolly	qcom,msm-id = <0x141 0x20001>;
158e6de09cSCaleb Connolly	qcom,board-id = <8 0 18801 41>;
1612dfb002SCaleb Connolly
1712dfb002SCaleb Connolly	battery: battery {
1812dfb002SCaleb Connolly		compatible = "simple-battery";
1912dfb002SCaleb Connolly
2012dfb002SCaleb Connolly		charge-full-design-microamp-hours = <3700000>;
2112dfb002SCaleb Connolly		voltage-min-design-microvolt = <3400000>;
2212dfb002SCaleb Connolly		voltage-max-design-microvolt = <4400000>;
2312dfb002SCaleb Connolly	};
24288ef8a4SCaleb Connolly};
25288ef8a4SCaleb Connolly
26288ef8a4SCaleb Connolly&display_panel {
27288ef8a4SCaleb Connolly	status = "okay";
28288ef8a4SCaleb Connolly
29288ef8a4SCaleb Connolly	compatible = "samsung,s6e3fc2x01";
30288ef8a4SCaleb Connolly};
31288ef8a4SCaleb Connolly
32*b7b73428SCaleb Connolly&i2c4 {
33*b7b73428SCaleb Connolly	/* nxp,tfa9894 @ 0x34 */
34*b7b73428SCaleb Connolly};
35*b7b73428SCaleb Connolly
3612dfb002SCaleb Connolly&bq27441_fg {
3712dfb002SCaleb Connolly	monitored-battery = <&battery>;
3812dfb002SCaleb Connolly};
3912dfb002SCaleb Connolly
40*b7b73428SCaleb Connolly&sound {
41*b7b73428SCaleb Connolly	model = "OnePlus 6T";
42*b7b73428SCaleb Connolly	audio-routing = "RX_BIAS", "MCLK",
43*b7b73428SCaleb Connolly			"AMIC1", "MIC BIAS3",
44*b7b73428SCaleb Connolly			"AMIC2", "MIC BIAS2",
45*b7b73428SCaleb Connolly			"AMIC3", "MIC BIAS4",
46*b7b73428SCaleb Connolly			"AMIC4", "MIC BIAS1",
47*b7b73428SCaleb Connolly			"AMIC5", "MIC BIAS3";
48*b7b73428SCaleb Connolly};
49*b7b73428SCaleb Connolly
50*b7b73428SCaleb Connolly&pmi8998_charger {
51*b7b73428SCaleb Connolly	monitored-battery = <&battery>;
52*b7b73428SCaleb Connolly};
53*b7b73428SCaleb Connolly
54*b7b73428SCaleb Connolly/*
55*b7b73428SCaleb Connolly * The TFA9894 codec is currently unsupported.
56*b7b73428SCaleb Connolly * We need to delete the node to allow the soundcard
57288ef8a4SCaleb Connolly * to probe for headphones/earpiece.
58288ef8a4SCaleb Connolly */
59288ef8a4SCaleb Connolly/delete-node/ &speaker_playback_dai;
60*b7b73428SCaleb Connolly
61*b7b73428SCaleb Connolly&rmi4_f12 {
62*b7b73428SCaleb Connolly	touchscreen-y-mm = <148>;
63*b7b73428SCaleb Connolly};
64*b7b73428SCaleb Connolly
65*b7b73428SCaleb Connolly&wcd9340 {
66*b7b73428SCaleb Connolly	qcom,micbias1-microvolt = <2700000>;
67	qcom,micbias2-microvolt = <2700000>;
68	qcom,micbias3-microvolt = <2700000>;
69	qcom,micbias4-microvolt = <2700000>;
70};
71