| 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 |
qcom,board-id = <8 0 18801 41>; |
| 14 |
|
| 15 |
battery: battery { |
| 16 |
compatible = "simple-battery"; |
| 17 |
|
| 18 |
charge-full-design-microamp-hours = <3700000>; |
| 19 |
voltage-min-design-microvolt = <3400000>; |
| 20 |
voltage-max-design-microvolt = <4400000>; |
| 21 |
|
| 22 |
/* |
| 23 |
* Typical designs have multiple charger ICs which can handle more |
| 24 |
* current but the OnePlus 6/T do not, hence the lower limit. This |
| 25 |
* does not apply when using the Dash Charger, however this is not |
| 26 |
* yet supported. |
| 27 |
*/ |
| 28 |
constant-charge-current-max-microamp = <1800000>; |
| 29 |
}; |
| 30 |
}; |
| 31 |
|
| 32 |
&display_panel { |
| 33 |
status = "okay"; |
| 34 |
|
| 35 |
compatible = "samsung,s6e3fc2x01-ams641rw", "samsung,s6e3fc2x01"; |
| 36 |
}; |
| 37 |
|
| 38 |
&framebuffer { |
| 39 |
height = <2340>; |
| 40 |
}; |
| 41 |
|
| 42 |
&i2c4 { |
| 43 |
/* nxp,tfa9894 @ 0x34 */ |
| 44 |
}; |
| 45 |
|
| 46 |
&bq27441_fg { |
| 47 |
monitored-battery = <&battery>; |
| 48 |
}; |
| 49 |
|
| 50 |
&sound { |
| 51 |
model = "OnePlus 6T"; |
| 52 |
audio-routing = "RX_BIAS", "MCLK", |
| 53 |
"AMIC1", "MIC BIAS3", |
| 54 |
"AMIC2", "MIC BIAS2", |
| 55 |
"AMIC3", "MIC BIAS4", |
| 56 |
"AMIC4", "MIC BIAS1", |
| 57 |
"AMIC5", "MIC BIAS3"; |
| 58 |
}; |
| 59 |
|
| 60 |
&pmi8998_charger { |
| 61 |
monitored-battery = <&battery>; |
| 62 |
}; |
| 63 |
|
| 64 |
/* |
| 65 |
* The TFA9894 codec is currently unsupported. |
| 66 |
* We need to delete the node to allow the soundcard |
| 67 |
* to probe for headphones/earpiece. |
| 68 |
*/ |
| 69 |
/delete-node/ &speaker_playback_dai; |
| 70 |
|
| 71 |
&rmi4_f12 { |
| 72 |
touchscreen-y-mm = <148>; |
| 73 |
}; |
| 74 |
|
| 75 |
&wcd9340 { |
| 76 |
qcom,micbias1-microvolt = <2700000>; |
| 77 |
qcom,micbias2-microvolt = <2700000>; |
| 78 |
qcom,micbias3-microvolt = <2700000>; |
| 79 |
qcom,micbias4-microvolt = <2700000>; |
| 80 |
}; |