1// SPDX-License-Identifier: GPL-2.0 2/* 3 * SDM845 OnePlus 6 (enchilada) device tree. 4 * 5 * Copyright (c) 2020, The Linux Foundation. All rights reserved. 6 */ 7 8#include <dt-bindings/leds/common.h> 9#include "sdm845-oneplus-common.dtsi" 10 11/ { 12 model = "OnePlus 6"; 13 compatible = "oneplus,enchilada", "qcom,sdm845"; 14 qcom,board-id = <8 0 17819 22>; 15 16 battery: battery { 17 compatible = "simple-battery"; 18 19 charge-full-design-microamp-hours = <3300000>; 20 voltage-min-design-microvolt = <3400000>; 21 voltage-max-design-microvolt = <4400000>; 22 23 /* 24 * Typical designs have multiple charger ICs which can handle more 25 * current but the OnePlus 6/T do not, hence the lower limit. This 26 * does not apply when using the Dash Charger, however this is not 27 * yet supported. 28 */ 29 constant-charge-current-max-microamp = <1800000>; 30 }; 31}; 32 33&display_panel { 34 status = "okay"; 35 36 compatible = "samsung,sofef00"; 37}; 38 39&bq27441_fg { 40 monitored-battery = <&battery>; 41}; 42 43&i2c4 { 44 status = "okay"; 45 46 max98927_codec: max98927@3a { 47 compatible = "maxim,max98927"; 48 reg = <0x3a>; 49 #sound-dai-cells = <0>; 50 51 pinctrl-0 = <&speaker_default>; 52 pinctrl-names = "default"; 53 54 reset-gpios = <&tlmm 69 GPIO_ACTIVE_LOW>; 55 56 vmon-slot-no = <1>; 57 imon-slot-no = <0>; 58 }; 59}; 60 61&pmi8998_charger { 62 monitored-battery = <&battery>; 63}; 64 65&pmi8998_lpg { 66 status = "okay"; 67 68 multi-led { 69 color = <LED_COLOR_ID_RGB>; 70 function = LED_FUNCTION_STATUS; 71 72 #address-cells = <1>; 73 #size-cells = <0>; 74 75 led@3 { 76 reg = <3>; 77 color = <LED_COLOR_ID_BLUE>; 78 }; 79 80 led@4 { 81 reg = <4>; 82 color = <LED_COLOR_ID_GREEN>; 83 }; 84 85 led@5 { 86 reg = <5>; 87 color = <LED_COLOR_ID_RED>; 88 }; 89 }; 90}; 91 92&sound { 93 model = "OnePlus 6"; 94 audio-routing = "RX_BIAS", "MCLK", 95 "AMIC2", "MIC BIAS2", 96 "AMIC3", "MIC BIAS4", 97 "AMIC4", "MIC BIAS1", 98 "AMIC5", "MIC BIAS4"; 99}; 100 101&speaker_playback_dai { 102 codec { 103 sound-dai = <&max98927_codec>; 104 }; 105}; 106 107&wcd9340 { 108 qcom,micbias1-microvolt = <1800000>; 109 qcom,micbias2-microvolt = <2700000>; 110 qcom,micbias3-microvolt = <1800000>; 111 qcom,micbias4-microvolt = <1800000>; 112}; 113