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"; 36}; 37 38&i2c4 { 39 /* nxp,tfa9894 @ 0x34 */ 40}; 41 42&bq27441_fg { 43 monitored-battery = <&battery>; 44}; 45 46&sound { 47 model = "OnePlus 6T"; 48 audio-routing = "RX_BIAS", "MCLK", 49 "AMIC1", "MIC BIAS3", 50 "AMIC2", "MIC BIAS2", 51 "AMIC3", "MIC BIAS4", 52 "AMIC4", "MIC BIAS1", 53 "AMIC5", "MIC BIAS3"; 54}; 55 56&pmi8998_charger { 57 monitored-battery = <&battery>; 58}; 59 60/* 61 * The TFA9894 codec is currently unsupported. 62 * We need to delete the node to allow the soundcard 63 * to probe for headphones/earpiece. 64 */ 65/delete-node/ &speaker_playback_dai; 66 67&rmi4_f12 { 68 touchscreen-y-mm = <148>; 69}; 70 71&wcd9340 { 72 qcom,micbias1-microvolt = <2700000>; 73 qcom,micbias2-microvolt = <2700000>; 74 qcom,micbias3-microvolt = <2700000>; 75 qcom,micbias4-microvolt = <2700000>; 76}; 77