xref: /linux/arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi (revision cbe8aadf1551f3f4a853f24b3b96d9f0eea49c53)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
4 */
5
6#include <dt-bindings/gpio/gpio.h>
7#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
8
9#include "shikra.dtsi"
10#include "pm4125.dtsi"
11#include "pm8005.dtsi"
12
13/ {
14	aliases {
15		serial1 = &uart8;
16	};
17
18	gpio-keys {
19		compatible = "gpio-keys";
20		label = "gpio-keys";
21		pinctrl-0 = <&vol_up_n>;
22		pinctrl-names = "default";
23
24		key-volume-up {
25			label = "Volume Up";
26			gpios = <&pm4125_gpios 9 GPIO_ACTIVE_LOW>;
27			linux,input-type = <1>;
28			linux,code = <KEY_VOLUMEUP>;
29			wakeup-source;
30			debounce-interval = <15>;
31			linux,can-disable;
32		};
33	};
34
35	wcn3988-pmu {
36		compatible = "qcom,wcn3988-pmu";
37
38		pinctrl-0 = <&sw_ctrl_default>;
39		pinctrl-names = "default";
40
41		swctrl-gpios = <&tlmm 88 GPIO_ACTIVE_HIGH>;
42
43		vddio-supply = <&pm4125_l7>;
44		vddxo-supply = <&pm4125_l13>;
45		vddrf-supply = <&pm4125_l10>;
46		vddch0-supply = <&pm4125_l22>;
47
48		regulators {
49			vreg_pmu_io: ldo0 {
50				regulator-name = "vreg_pmu_io";
51			};
52
53			vreg_pmu_xo: ldo1 {
54				regulator-name = "vreg_pmu_xo";
55			};
56
57			vreg_pmu_rf: ldo2 {
58				regulator-name = "vreg_pmu_rf";
59			};
60
61			vreg_pmu_ch0: ldo3 {
62				regulator-name = "vreg_pmu_ch0";
63			};
64
65			vreg_pmu_ch1: ldo4 {
66				regulator-name = "vreg_pmu_ch1";
67			};
68		};
69	};
70};
71
72&pm4125_gpios {
73	vol_up_n: vol-up-n-state {
74		pins = "gpio9";
75		function = PMIC_GPIO_FUNC_NORMAL;
76		input-enable;
77		bias-pull-up;
78		power-source = <0>;
79	};
80};
81
82&pm4125_resin {
83	linux,code = <KEY_VOLUMEDOWN>;
84
85	status = "okay";
86};
87
88&pm8005_regulators {
89	status = "disabled";
90};
91
92&rpm_requests {
93	regulators {
94		compatible = "qcom,rpm-pm2250-regulators";
95
96		pm4125_s2: s2 {
97			regulator-min-microvolt = <1000000>;
98			regulator-max-microvolt = <1200000>;
99		};
100
101		pm4125_l3: l3 {
102			regulator-min-microvolt = <624000>;
103			regulator-max-microvolt = <650000>;
104		};
105
106		pm4125_l4: l4 {
107			regulator-min-microvolt = <1800000>;
108			regulator-max-microvolt = <2960000>;
109		};
110
111		pm4125_l5: l5 {
112			regulator-min-microvolt = <1232000>;
113			regulator-max-microvolt = <1304000>;
114		};
115
116		pm4125_l6: l6 {
117			regulator-min-microvolt = <788000>;
118			regulator-max-microvolt = <1050000>;
119		};
120
121		pm4125_l7: l7 {
122			regulator-min-microvolt = <664000>;
123			regulator-max-microvolt = <664000>;
124		};
125
126		pm4125_l8: l8 {
127			regulator-min-microvolt = <928000>;
128			regulator-max-microvolt = <1000000>;
129		};
130
131		pm4125_l9: l9 {
132			regulator-min-microvolt = <875000>;
133			regulator-max-microvolt = <1000000>;
134		};
135
136		pm4125_l10: l10 {
137			regulator-min-microvolt = <1304000>;
138			regulator-max-microvolt = <1304000>;
139		};
140
141		pm4125_l12: l12 {
142			regulator-min-microvolt = <928000>;
143			regulator-max-microvolt = <975000>;
144		};
145
146		pm4125_l13: l13 {
147			regulator-min-microvolt = <1800000>;
148			regulator-max-microvolt = <1800000>;
149		};
150
151		pm4125_l14: l14 {
152			regulator-min-microvolt = <1800000>;
153			regulator-max-microvolt = <1800000>;
154		};
155
156		pm4125_l15: l15 {
157			regulator-min-microvolt = <1800000>;
158			regulator-max-microvolt = <1800000>;
159		};
160
161		pm4125_l16: l16 {
162			regulator-min-microvolt = <1800000>;
163			regulator-max-microvolt = <1800000>;
164		};
165
166		pm4125_l17: l17 {
167			regulator-min-microvolt = <3000000>;
168			regulator-max-microvolt = <3544000>;
169		};
170
171		pm4125_l18: l18 {
172			regulator-min-microvolt = <1800000>;
173			regulator-max-microvolt = <2960000>;
174		};
175
176		pm4125_l19: l19 {
177			regulator-min-microvolt = <1800000>;
178			regulator-max-microvolt = <2960000>;
179		};
180
181		pm4125_l20: l20 {
182			regulator-min-microvolt = <2952000>;
183			regulator-max-microvolt = <2952000>;
184		};
185
186		pm4125_l21: l21 {
187			regulator-min-microvolt = <3000000>;
188			regulator-max-microvolt = <3056000>;
189		};
190
191		pm4125_l22: l22 {
192			regulator-min-microvolt = <3304000>;
193			regulator-max-microvolt = <3304000>;
194		};
195	};
196};
197
198&tlmm {
199	gpio-reserved-ranges = <6 4>, /* Fingerprint SPI */
200			       <14 4>, /* eSE SPI */
201			       <30 2>, /* NFC SPI */
202			       <138 1>, /* NFC Secure IO */
203			       <155 11>; /* eMMC Boot */
204
205	sw_ctrl_default: sw-ctrl-default-state {
206		pins = "gpio88";
207		function = "gpio";
208		bias-pull-down;
209	};
210};
211
212&uart8 {
213	status = "okay";
214
215	bluetooth {
216		compatible = "qcom,wcn3988-bt";
217		max-speed = <3200000>;
218
219		vddio-supply = <&vreg_pmu_io>;
220		vddxo-supply = <&vreg_pmu_xo>;
221		vddrf-supply = <&vreg_pmu_rf>;
222		vddch0-supply = <&vreg_pmu_ch0>;
223	};
224};
225
226&wifi {
227	vdd-0.8-cx-mx-supply = <&pm4125_l7>;
228	vdd-1.8-xo-supply = <&vreg_pmu_xo>;
229	vdd-1.3-rfa-supply = <&vreg_pmu_rf>;
230	vdd-3.3-ch0-supply = <&vreg_pmu_ch0>;
231
232	qcom,calibration-variant = "Shikra_EVK";
233	firmware-name = "shikra";
234
235	status = "okay";
236};
237