Linux Audio

Check our new training course

Loading...
Note: File does not exist in v6.8.
  1// SPDX-License-Identifier: GPL-2.0
  2#include "qcom-msm8974pro.dtsi"
  3#include "qcom-pm8841.dtsi"
  4#include "qcom-pm8941.dtsi"
  5#include <dt-bindings/input/input.h>
  6#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
  7
  8/ {
  9	model = "OnePlus One";
 10	compatible = "oneplus,bacon", "qcom,msm8974pro", "qcom,msm8974";
 11	chassis-type = "handset";
 12	qcom,msm-id = <194 0x10000>;
 13	qcom,board-id = <8 0>;
 14
 15	aliases {
 16		serial0 = &blsp1_uart2;
 17	};
 18
 19	chosen {
 20		stdout-path = "serial0:115200n8";
 21	};
 22};
 23
 24&blsp1_i2c1 {
 25	status = "okay";
 26
 27	fuel-gauge@55 {
 28		compatible = "ti,bq27541";
 29		reg = <0x55>;
 30		power-supplies = <&bq24196_charger>;
 31	};
 32};
 33
 34&blsp1_i2c2 {
 35	status = "okay";
 36
 37	rmi4-i2c-dev@20 {
 38		compatible = "syna,rmi4-i2c";
 39		reg = <0x20>;
 40
 41		syna,startup-delay-ms = <100>;
 42
 43		interrupts-extended = <&tlmm 61 IRQ_TYPE_EDGE_FALLING>;
 44		vdd-supply = <&pm8941_l22>;
 45		vio-supply = <&pm8941_lvs3>;
 46
 47		pinctrl-names = "default";
 48		pinctrl-0 = <&touch_default_state>;
 49
 50		#address-cells = <1>;
 51		#size-cells = <0>;
 52
 53		rmi4-f01@1 {
 54			reg = <0x1>;
 55			syna,nosleep-mode = <1>;
 56		};
 57
 58		rmi4-f12@12 {
 59			reg = <0x12>;
 60			syna,sensor-type = <1>;
 61			/*
 62			 * Touchscreen size is 2040x1080, y-values between
 63			 * 1920-2040 are used for touchkey (menu, home & back).
 64			 * For now clip it off so we don't get touch events
 65			 * outside of the display area.
 66			 */
 67			syna,clip-y-high = <1920>;
 68		};
 69	};
 70};
 71
 72&blsp1_i2c6 {
 73	status = "okay";
 74
 75	bq24196_charger: charger@6b {
 76		compatible = "ti,bq24196";
 77		reg = <0x6b>;
 78		interrupts-extended = <&tlmm 31 IRQ_TYPE_EDGE_FALLING>;
 79		omit-battery-class;
 80	};
 81};
 82
 83&blsp1_uart2 {
 84	status = "okay";
 85};
 86
 87&gcc {
 88	compatible = "qcom,gcc-msm8974pro-ac";
 89};
 90
 91&pm8941_coincell {
 92	qcom,rset-ohms = <800>;
 93	qcom,vset-millivolts = <3200>;
 94
 95	status = "okay";
 96};
 97
 98&pronto {
 99	vddmx-supply = <&pm8841_s1>;
100	vddcx-supply = <&pm8841_s2>;
101	vddpx-supply = <&pm8941_s3>;
102
103	pinctrl-names = "default";
104	pinctrl-0 = <&wcnss_pin_a>;
105
106	status = "okay";
107
108	iris {
109		vddxo-supply = <&pm8941_l6>;
110		vddrfa-supply = <&pm8941_l11>;
111		vddpa-supply = <&pm8941_l19>;
112		vdddig-supply = <&pm8941_s3>;
113	};
114
115	smd-edge {
116		qcom,remote-pid = <4>;
117		label = "pronto";
118
119		wcnss {
120			status = "okay";
121		};
122	};
123};
124
125&remoteproc_adsp {
126	cx-supply = <&pm8841_s2>;
127
128	status = "okay";
129};
130
131&rpm_requests {
132	regulators-0 {
133		compatible = "qcom,rpm-pm8841-regulators";
134
135		pm8841_s1: s1 {
136			regulator-min-microvolt = <675000>;
137			regulator-max-microvolt = <1050000>;
138		};
139
140		pm8841_s2: s2 {
141			regulator-min-microvolt = <875000>;
142			regulator-max-microvolt = <1050000>;
143			regulator-always-on;
144		};
145
146		pm8841_s3: s3 {
147			regulator-min-microvolt = <1050000>;
148			regulator-max-microvolt = <1050000>;
149		};
150	};
151
152	regulators-1 {
153		compatible = "qcom,rpm-pm8941-regulators";
154
155		vdd_l1_l3-supply = <&pm8941_s1>;
156		vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
157		vdd_l4_l11-supply = <&pm8941_s1>;
158		vdd_l5_l7-supply = <&pm8941_s2>;
159		vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
160		vdd_l8_l16_l18_l19-supply = <&vreg_vph_pwr>;
161		vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
162		vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
163		vdd_l21-supply = <&vreg_boost>;
164
165		pm8941_s1: s1 {
166			regulator-min-microvolt = <1300000>;
167			regulator-max-microvolt = <1300000>;
168
169			regulator-always-on;
170			regulator-boot-on;
171		};
172
173		pm8941_s2: s2 {
174			regulator-min-microvolt = <2150000>;
175			regulator-max-microvolt = <2150000>;
176
177			regulator-boot-on;
178		};
179
180		pm8941_s3: s3 {
181			regulator-min-microvolt = <1800000>;
182			regulator-max-microvolt = <1800000>;
183			regulator-system-load = <154000>;
184
185			regulator-always-on;
186			regulator-boot-on;
187			regulator-allow-set-load;
188		};
189
190		pm8941_l1: l1 {
191			regulator-min-microvolt = <1225000>;
192			regulator-max-microvolt = <1225000>;
193
194			regulator-always-on;
195			regulator-boot-on;
196		};
197
198		pm8941_l2: l2 {
199			regulator-min-microvolt = <1200000>;
200			regulator-max-microvolt = <1200000>;
201		};
202
203		pm8941_l3: l3 {
204			regulator-min-microvolt = <1225000>;
205			regulator-max-microvolt = <1225000>;
206		};
207
208		pm8941_l4: l4 {
209			regulator-min-microvolt = <1225000>;
210			regulator-max-microvolt = <1225000>;
211		};
212
213		pm8941_l5: l5 {
214			regulator-min-microvolt = <1800000>;
215			regulator-max-microvolt = <1800000>;
216		};
217
218		pm8941_l6: l6 {
219			regulator-min-microvolt = <1800000>;
220			regulator-max-microvolt = <1800000>;
221
222			regulator-boot-on;
223		};
224
225		pm8941_l7: l7 {
226			regulator-min-microvolt = <1800000>;
227			regulator-max-microvolt = <1800000>;
228
229			regulator-boot-on;
230		};
231
232		pm8941_l8: l8 {
233			regulator-min-microvolt = <1800000>;
234			regulator-max-microvolt = <1800000>;
235		};
236
237		pm8941_l9: l9 {
238			regulator-min-microvolt = <1800000>;
239			regulator-max-microvolt = <2950000>;
240		};
241
242		pm8941_l10: l10 {
243			regulator-min-microvolt = <1800000>;
244			regulator-max-microvolt = <2950000>;
245		};
246
247		pm8941_l11: l11 {
248			regulator-min-microvolt = <1225000>;
249			regulator-max-microvolt = <1350000>;
250		};
251
252		pm8941_l12: l12 {
253			regulator-min-microvolt = <1800000>;
254			regulator-max-microvolt = <1800000>;
255
256			regulator-always-on;
257			regulator-boot-on;
258			regulator-allow-set-load;
259		};
260
261		pm8941_l13: l13 {
262			regulator-min-microvolt = <1800000>;
263			regulator-max-microvolt = <2950000>;
264
265			regulator-boot-on;
266		};
267
268		pm8941_l14: l14 {
269			regulator-min-microvolt = <1800000>;
270			regulator-max-microvolt = <1800000>;
271		};
272
273		pm8941_l15: l15 {
274			regulator-min-microvolt = <2050000>;
275			regulator-max-microvolt = <2050000>;
276		};
277
278		pm8941_l16: l16 {
279			regulator-min-microvolt = <2700000>;
280			regulator-max-microvolt = <2700000>;
281		};
282
283		pm8941_l17: l17 {
284			regulator-min-microvolt = <2850000>;
285			regulator-max-microvolt = <2850000>;
286		};
287
288		pm8941_l18: l18 {
289			regulator-min-microvolt = <2850000>;
290			regulator-max-microvolt = <2850000>;
291		};
292
293		pm8941_l19: l19 {
294			regulator-min-microvolt = <2900000>;
295			regulator-max-microvolt = <3350000>;
296		};
297
298		pm8941_l20: l20 {
299			regulator-min-microvolt = <2950000>;
300			regulator-max-microvolt = <2950000>;
301
302			regulator-system-load = <200000>;
303			regulator-allow-set-load;
304			regulator-boot-on;
305		};
306
307		pm8941_l21: l21 {
308			regulator-min-microvolt = <2950000>;
309			regulator-max-microvolt = <2950000>;
310
311			regulator-boot-on;
312		};
313
314		pm8941_l22: l22 {
315			regulator-min-microvolt = <3000000>;
316			regulator-max-microvolt = <3000000>;
317			regulator-allow-set-load;
318		};
319
320		pm8941_l23: l23 {
321			regulator-min-microvolt = <3000000>;
322			regulator-max-microvolt = <3000000>;
323		};
324
325		pm8941_l24: l24 {
326			regulator-min-microvolt = <3075000>;
327			regulator-max-microvolt = <3075000>;
328
329			regulator-boot-on;
330		};
331
332		pm8941_lvs3: lvs3 {};
333	};
334};
335
336&sdhc_1 {
337	vmmc-supply = <&pm8941_l20>;
338	vqmmc-supply = <&pm8941_s3>;
339
340	pinctrl-names = "default", "sleep";
341	pinctrl-0 = <&sdc1_on>;
342	pinctrl-1 = <&sdc1_off>;
343
344	status = "okay";
345};
346
347&tlmm {
348	sdc1_on: sdc1-on-state {
349		clk-pins {
350			pins = "sdc1_clk";
351			drive-strength = <4>;
352			bias-disable;
353		};
354
355		cmd-data-pins {
356			pins = "sdc1_cmd", "sdc1_data";
357			drive-strength = <4>;
358			bias-pull-up;
359		};
360	};
361
362	touch_default_state: touch-default-state {
363		int-pins {
364			pins = "gpio61";
365			function = "gpio";
366			drive-strength = <2>;
367			bias-disable;
368			input-enable;
369		};
370
371		reset-pins {
372			pins = "gpio60";
373			function = "gpio";
374			drive-strength = <2>;
375			bias-pull-up;
376		};
377	};
378
379	wcnss_pin_a: wcnss-pin-active-state {
380		wlan-pins {
381			pins = "gpio36", "gpio37", "gpio38", "gpio39", "gpio40";
382			function = "wlan";
383			drive-strength = <6>;
384			bias-pull-down;
385		};
386
387		bt-pins {
388			pins = "gpio35", "gpio43", "gpio44";
389			function = "bt";
390			drive-strength = <2>;
391			bias-pull-down;
392		};
393	};
394};
395
396&usb {
397	phys = <&usb_hs1_phy>;
398	phy-select = <&tcsr 0xb000 0>;
399	extcon = <&smbb>, <&usb_id>;
400	vbus-supply = <&chg_otg>;
401
402	hnp-disable;
403	srp-disable;
404	adp-disable;
405
406	status = "okay";
407};
408
409&usb_hs1_phy {
410	status = "okay";
411
412	v1p8-supply = <&pm8941_l6>;
413	v3p3-supply = <&pm8941_l24>;
414
415	extcon = <&smbb>;
416	qcom,init-seq = /bits/ 8 <0x1 0x64>;
417};