Linux Audio

Check our new training course

Embedded Linux training

Mar 10-20, 2025, special US time zones
Register
Loading...
Note: File does not exist in v6.8.
  1// SPDX-License-Identifier: GPL-2.0
  2#include <dt-bindings/gpio/gpio.h>
  3#include "qcom-msm8974.dtsi"
  4#include "qcom-pm8841.dtsi"
  5#include "qcom-pm8941.dtsi"
  6
  7/ {
  8	model = "Qualcomm APQ8074 Dragonboard";
  9	compatible = "qcom,apq8074-dragonboard", "qcom,apq8074";
 10
 11	aliases {
 12		serial0 = &blsp1_uart2;
 13		usid0 = &pm8941_0;
 14		usid4 = &pm8841_0;
 15	};
 16
 17	chosen {
 18		stdout-path = "serial0:115200n8";
 19	};
 20};
 21
 22&blsp1_uart2 {
 23	status = "okay";
 24};
 25
 26&blsp2_i2c5 {
 27	status = "okay";
 28	clock-frequency = <200000>;
 29
 30	eeprom: eeprom@52 {
 31		compatible = "atmel,24c128";
 32		reg = <0x52>;
 33		pagesize = <32>;
 34		read-only;
 35	};
 36};
 37
 38&rpm_requests {
 39	regulators-0 {
 40		compatible = "qcom,rpm-pm8841-regulators";
 41
 42		pm8841_s1: s1 {
 43			regulator-min-microvolt = <675000>;
 44			regulator-max-microvolt = <1050000>;
 45		};
 46
 47		pm8841_s2: s2 {
 48			regulator-min-microvolt = <500000>;
 49			regulator-max-microvolt = <1050000>;
 50		};
 51
 52		pm8841_s3: s3 {
 53			regulator-min-microvolt = <500000>;
 54			regulator-max-microvolt = <1050000>;
 55		};
 56
 57		pm8841_s4: s4 {
 58			regulator-min-microvolt = <500000>;
 59			regulator-max-microvolt = <1050000>;
 60		};
 61	};
 62
 63	regulators-1 {
 64		compatible = "qcom,rpm-pm8941-regulators";
 65
 66		vdd_l1_l3-supply = <&pm8941_s1>;
 67		vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
 68		vdd_l4_l11-supply = <&pm8941_s1>;
 69		vdd_l5_l7-supply = <&pm8941_s2>;
 70		vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
 71		vin_5vs-supply = <&pm8941_5v>;
 72
 73		pm8941_s1: s1 {
 74			regulator-min-microvolt = <1300000>;
 75			regulator-max-microvolt = <1300000>;
 76			regulator-always-on;
 77			regulator-boot-on;
 78		};
 79
 80		pm8941_s2: s2 {
 81			regulator-min-microvolt = <2150000>;
 82			regulator-max-microvolt = <2150000>;
 83			regulator-boot-on;
 84		};
 85
 86		pm8941_s3: s3 {
 87			regulator-min-microvolt = <1800000>;
 88			regulator-max-microvolt = <1800000>;
 89			regulator-always-on;
 90			regulator-boot-on;
 91		};
 92
 93		pm8941_l1: l1 {
 94			regulator-min-microvolt = <1225000>;
 95			regulator-max-microvolt = <1225000>;
 96			regulator-always-on;
 97			regulator-boot-on;
 98		};
 99
100		pm8941_l2: l2 {
101			regulator-min-microvolt = <1200000>;
102			regulator-max-microvolt = <1200000>;
103		};
104
105		pm8941_l3: l3 {
106			regulator-min-microvolt = <1225000>;
107			regulator-max-microvolt = <1225000>;
108		};
109
110		pm8941_l4: l4 {
111			regulator-min-microvolt = <1225000>;
112			regulator-max-microvolt = <1225000>;
113		};
114
115		pm8941_l5: l5 {
116			regulator-min-microvolt = <1800000>;
117			regulator-max-microvolt = <1800000>;
118		};
119
120		pm8941_l6: l6 {
121			regulator-min-microvolt = <1800000>;
122			regulator-max-microvolt = <1800000>;
123			regulator-boot-on;
124		};
125
126		pm8941_l7: l7 {
127			regulator-min-microvolt = <1800000>;
128			regulator-max-microvolt = <1800000>;
129			regulator-boot-on;
130		};
131
132		pm8941_l8: l8 {
133			regulator-min-microvolt = <1800000>;
134			regulator-max-microvolt = <1800000>;
135		};
136
137		pm8941_l9: l9 {
138			regulator-min-microvolt = <1800000>;
139			regulator-max-microvolt = <2950000>;
140		};
141
142		pm8941_l10: l10 {
143			regulator-min-microvolt = <1800000>;
144			regulator-max-microvolt = <1800000>;
145			regulator-always-on;
146		};
147
148		pm8941_l11: l11 {
149			regulator-min-microvolt = <1300000>;
150			regulator-max-microvolt = <1300000>;
151		};
152
153		pm8941_l12: l12 {
154			regulator-min-microvolt = <1800000>;
155			regulator-max-microvolt = <1800000>;
156			regulator-always-on;
157			regulator-boot-on;
158		};
159
160		pm8941_l13: l13 {
161			regulator-min-microvolt = <1800000>;
162			regulator-max-microvolt = <2950000>;
163			regulator-boot-on;
164		};
165
166		pm8941_l14: l14 {
167			regulator-min-microvolt = <1800000>;
168			regulator-max-microvolt = <1800000>;
169		};
170
171		pm8941_l15: l15 {
172			regulator-min-microvolt = <2050000>;
173			regulator-max-microvolt = <2050000>;
174		};
175
176		pm8941_l16: l16 {
177			regulator-min-microvolt = <2700000>;
178			regulator-max-microvolt = <2700000>;
179		};
180
181		pm8941_l17: l17 {
182			regulator-min-microvolt = <2700000>;
183			regulator-max-microvolt = <2700000>;
184		};
185
186		pm8941_l18: l18 {
187			regulator-min-microvolt = <2850000>;
188			regulator-max-microvolt = <2850000>;
189		};
190
191		pm8941_l19: l19 {
192			regulator-min-microvolt = <3300000>;
193			regulator-max-microvolt = <3300000>;
194			regulator-always-on;
195		};
196
197		pm8941_l20: l20 {
198			regulator-min-microvolt = <2950000>;
199			regulator-max-microvolt = <2950000>;
200			regulator-system-load = <200000>;
201			regulator-allow-set-load;
202			regulator-boot-on;
203		};
204
205		pm8941_l21: l21 {
206			regulator-min-microvolt = <2950000>;
207			regulator-max-microvolt = <2950000>;
208			regulator-boot-on;
209		};
210
211		pm8941_l22: l22 {
212			regulator-min-microvolt = <3000000>;
213			regulator-max-microvolt = <3000000>;
214		};
215
216		pm8941_l23: l23 {
217			regulator-min-microvolt = <3000000>;
218			regulator-max-microvolt = <3000000>;
219		};
220
221		pm8941_l24: l24 {
222			regulator-min-microvolt = <3075000>;
223			regulator-max-microvolt = <3075000>;
224			regulator-boot-on;
225		};
226	};
227};
228
229&sdhc_1 {
230	status = "okay";
231
232	vmmc-supply = <&pm8941_l20>;
233	vqmmc-supply = <&pm8941_s3>;
234
235	pinctrl-names = "default", "sleep";
236	pinctrl-0 = <&sdc1_on>;
237	pinctrl-1 = <&sdc1_off>;
238};
239
240&sdhc_2 {
241	status = "okay";
242
243	cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
244	vmmc-supply = <&pm8941_l21>;
245	vqmmc-supply = <&pm8941_l13>;
246
247	pinctrl-names = "default", "sleep";
248	pinctrl-0 = <&sdc2_on>;
249	pinctrl-1 = <&sdc2_off>;
250};
251
252&tlmm {
253	sdc1_on: sdc1-on-state {
254		clk-pins {
255			pins = "sdc1_clk";
256			drive-strength = <16>;
257			bias-disable;
258		};
259
260		cmd-data-pins {
261			pins = "sdc1_cmd", "sdc1_data";
262			drive-strength = <10>;
263			bias-pull-up;
264		};
265	};
266
267	sdc2_on: sdc2-on-state {
268		clk-pins {
269			pins = "sdc2_clk";
270			drive-strength = <10>;
271			bias-disable;
272		};
273
274		cmd-data-pins {
275			pins = "sdc2_cmd", "sdc2_data";
276			drive-strength = <6>;
277			bias-pull-up;
278		};
279
280		cd-pins {
281			pins = "gpio62";
282			function = "gpio";
283			drive-strength = <2>;
284			bias-disable;
285		};
286	};
287};
288
289&usb {
290	status = "okay";
291
292	phys = <&usb_hs2_phy>;
293	phy-select = <&tcsr 0xb000 1>;
294	extcon = <&smbb>, <&usb_id>;
295	vbus-supply = <&chg_otg>;
296	hnp-disable;
297	srp-disable;
298	adp-disable;
299};
300
301&usb_hs2_phy {
302	status = "okay";
303	v3p3-supply = <&pm8941_l24>;
304	v1p8-supply = <&pm8941_l6>;
305	extcon = <&smbb>;
306	qcom,init-seq = /bits/ 8 <0x1 0x63>;
307};