1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 /* 2 /* 3 * SDM845 OnePlus 6 (enchilada) device tree. 3 * SDM845 OnePlus 6 (enchilada) device tree. 4 * 4 * 5 * Copyright (c) 2020, The Linux Foundation. A 5 * Copyright (c) 2020, The Linux Foundation. All rights reserved. 6 */ 6 */ 7 7 8 #include "sdm845-oneplus-common.dtsi" 8 #include "sdm845-oneplus-common.dtsi" 9 9 10 / { 10 / { 11 model = "OnePlus 6"; 11 model = "OnePlus 6"; 12 compatible = "oneplus,enchilada", "qco 12 compatible = "oneplus,enchilada", "qcom,sdm845"; 13 chassis-type = "handset"; 13 chassis-type = "handset"; 14 qcom,msm-id = <0x141 0x20001>; 14 qcom,msm-id = <0x141 0x20001>; 15 qcom,board-id = <8 0 17819 22>; 15 qcom,board-id = <8 0 17819 22>; 16 16 17 battery: battery { 17 battery: battery { 18 compatible = "simple-battery"; 18 compatible = "simple-battery"; 19 19 20 charge-full-design-microamp-ho 20 charge-full-design-microamp-hours = <3300000>; 21 voltage-min-design-microvolt = 21 voltage-min-design-microvolt = <3400000>; 22 voltage-max-design-microvolt = 22 voltage-max-design-microvolt = <4400000>; 23 }; 23 }; 24 }; 24 }; 25 25 26 &display_panel { 26 &display_panel { 27 status = "okay"; 27 status = "okay"; 28 28 29 compatible = "samsung,sofef00"; 29 compatible = "samsung,sofef00"; 30 }; 30 }; 31 31 32 &bq27441_fg { 32 &bq27441_fg { 33 monitored-battery = <&battery>; 33 monitored-battery = <&battery>; 34 }; 34 }; 35 35 36 &i2c4 { 36 &i2c4 { 37 status = "okay"; 37 status = "okay"; 38 38 39 max98927_codec: max98927@3a { 39 max98927_codec: max98927@3a { 40 compatible = "maxim,max98927"; 40 compatible = "maxim,max98927"; 41 reg = <0x3a>; 41 reg = <0x3a>; 42 #sound-dai-cells = <0>; 42 #sound-dai-cells = <0>; 43 43 44 pinctrl-0 = <&speaker_default> 44 pinctrl-0 = <&speaker_default>; 45 pinctrl-names = "default"; 45 pinctrl-names = "default"; 46 46 47 reset-gpios = <&tlmm 69 GPIO_A 47 reset-gpios = <&tlmm 69 GPIO_ACTIVE_LOW>; 48 48 49 vmon-slot-no = <1>; 49 vmon-slot-no = <1>; 50 imon-slot-no = <0>; 50 imon-slot-no = <0>; 51 }; 51 }; 52 }; 52 }; 53 53 54 &pmi8998_charger { 54 &pmi8998_charger { 55 monitored-battery = <&battery>; 55 monitored-battery = <&battery>; 56 }; 56 }; 57 57 58 &sound { 58 &sound { 59 model = "OnePlus 6"; 59 model = "OnePlus 6"; 60 audio-routing = "RX_BIAS", "MCLK", 60 audio-routing = "RX_BIAS", "MCLK", 61 "AMIC2", "MIC BIAS2", 61 "AMIC2", "MIC BIAS2", 62 "AMIC3", "MIC BIAS4", 62 "AMIC3", "MIC BIAS4", 63 "AMIC4", "MIC BIAS1", 63 "AMIC4", "MIC BIAS1", 64 "AMIC5", "MIC BIAS4"; 64 "AMIC5", "MIC BIAS4"; 65 }; 65 }; 66 66 67 &speaker_playback_dai { 67 &speaker_playback_dai { 68 codec { 68 codec { 69 sound-dai = <&max98927_codec>; 69 sound-dai = <&max98927_codec>; 70 }; 70 }; 71 }; 71 }; 72 72 73 &wcd9340 { 73 &wcd9340 { 74 qcom,micbias1-microvolt = <1800000>; 74 qcom,micbias1-microvolt = <1800000>; 75 qcom,micbias2-microvolt = <2700000>; 75 qcom,micbias2-microvolt = <2700000>; 76 qcom,micbias3-microvolt = <1800000>; 76 qcom,micbias3-microvolt = <1800000>; 77 qcom,micbias4-microvolt = <1800000>; 77 qcom,micbias4-microvolt = <1800000>; 78 }; 78 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.