Debian Codegraph @

scripts/dtc/include-prefixes/arm64/qcom/sdm845-oneplus-enchilada.dts

raw
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 &bq27441_fg {
34 monitored-battery = <&battery>;
35 };
36
37 &display_panel {
38 compatible = "samsung,sofef00-ams628nw01", "samsung,sofef00";
39
40 status = "okay";
41 };
42
43 &framebuffer {
44 height = <2280>;
45 };
46
47 &i2c4 {
48 clock-frequency = <100000>;
49
50 status = "okay";
51
52 max98927_codec: max98927@3a {
53 compatible = "maxim,max98927";
54 reg = <0x3a>;
55 #sound-dai-cells = <0>;
56
57 pinctrl-0 = <&speaker_default>;
58 pinctrl-names = "default";
59
60 reset-gpios = <&tlmm 69 GPIO_ACTIVE_LOW>;
61
62 vmon-slot-no = <1>;
63 imon-slot-no = <0>;
64 };
65 };
66
67 &pmi8998_charger {
68 monitored-battery = <&battery>;
69 };
70
71 &pmi8998_lpg {
72 status = "okay";
73
74 multi-led {
75 color = <LED_COLOR_ID_RGB>;
76 function = LED_FUNCTION_STATUS;
77
78 #address-cells = <1>;
79 #size-cells = <0>;
80
81 led@3 {
82 reg = <3>;
83 color = <LED_COLOR_ID_BLUE>;
84 };
85
86 led@4 {
87 reg = <4>;
88 color = <LED_COLOR_ID_GREEN>;
89 };
90
91 led@5 {
92 reg = <5>;
93 color = <LED_COLOR_ID_RED>;
94 };
95 };
96 };
97
98 &sound {
99 model = "OnePlus 6";
100 audio-routing = "RX_BIAS", "MCLK",
101 "AMIC2", "MIC BIAS2",
102 "AMIC3", "MIC BIAS4",
103 "AMIC4", "MIC BIAS1",
104 "AMIC5", "MIC BIAS4";
105 };
106
107 &speaker_playback_dai {
108 codec {
109 sound-dai = <&max98927_codec>;
110 };
111 };
112
113 &wcd9340 {
114 qcom,micbias1-microvolt = <1800000>;
115 qcom,micbias2-microvolt = <2700000>;
116 qcom,micbias3-microvolt = <1800000>;
117 qcom,micbias4-microvolt = <1800000>;
118 };