Linux Audio

Check our new training course

Loading...
v6.2
  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};
v4.10.11
 
 
  1#include "qcom-msm8974.dtsi"
  2#include "qcom-pm8841.dtsi"
  3#include "qcom-pm8941.dtsi"
  4
  5/ {
  6	model = "Qualcomm APQ8074 Dragonboard";
  7	compatible = "qcom,apq8074-dragonboard", "qcom,apq8074";
  8
  9	aliases {
 10		serial0 = &blsp1_uart2;
 11		usid0 = &pm8941_0;
 12		usid4 = &pm8841_0;
 13	};
 14
 15	chosen {
 16		stdout-path = "serial0:115200n8";
 17	};
 
 18
 19	soc {
 20		serial@f991e000 {
 21			status = "ok";
 22		};
 23
 24		sdhci@f9824900 {
 25			bus-width = <8>;
 26			non-removable;
 27			status = "ok";
 28
 29			vmmc-supply = <&pm8941_l20>;
 30			vqmmc-supply = <&pm8941_s3>;
 31
 32			pinctrl-names = "default";
 33			pinctrl-0 = <&sdhc1_pin_a>;
 34		};
 35
 36		sdhci@f98a4900 {
 37			cd-gpios = <&msmgpio 62 0x1>;
 38			pinctrl-names = "default";
 39			pinctrl-0 = <&sdhc2_pin_a>, <&sdhc2_cd_pin_a>;
 40			bus-width = <4>;
 41			status = "ok";
 42
 43			vmmc-supply = <&pm8941_l21>;
 44			vqmmc-supply = <&pm8941_l13>;
 45		};
 46
 47
 48		pinctrl@fd510000 {
 49			i2c11_pins: i2c11 {
 50				mux {
 51					pins = "gpio83", "gpio84";
 52					function = "blsp_i2c11";
 53				};
 54			};
 55
 56			spi8_default: spi8_default {
 57				mosi {
 58					pins = "gpio45";
 59					function = "blsp_spi8";
 60				};
 61				miso {
 62					pins = "gpio46";
 63					function = "blsp_spi8";
 64				};
 65				cs {
 66					pins = "gpio47";
 67					function = "blsp_spi8";
 68				};
 69				clk {
 70					pins = "gpio48";
 71					function = "blsp_spi8";
 72				};
 73			};
 74
 75			sdhc1_pin_a: sdhc1-pin-active {
 76				clk {
 77					pins = "sdc1_clk";
 78					drive-strength = <16>;
 79					bias-disable;
 80				};
 81
 82				cmd-data {
 83					pins = "sdc1_cmd", "sdc1_data";
 84					drive-strength = <10>;
 85					bias-pull-up;
 86				};
 87			};
 88
 89			sdhc2_cd_pin_a: sdhc2-cd-pin-active {
 90				pins = "gpio62";
 91				function = "gpio";
 92
 93				drive-strength = <2>;
 94				bias-disable;
 95			};
 96
 97			sdhc2_pin_a: sdhc2-pin-active {
 98				clk {
 99					pins = "sdc2_clk";
100					drive-strength = <10>;
101					bias-disable;
102				};
103
104				cmd-data {
105					pins = "sdc2_cmd", "sdc2_data";
106					drive-strength = <6>;
107					bias-pull-up;
108				};
109			};
110		};
111
112		i2c@f9967000 {
113			status = "okay";
114			clock-frequency = <200000>;
115			pinctrl-0 = <&i2c11_pins>;
116			pinctrl-names = "default";
117
118			eeprom: eeprom@52 {
119				compatible = "atmel,24c128";
120				reg = <0x52>;
121				pagesize = <32>;
122				read-only;
123			};
124		};
125	};
126
127	smd {
128		rpm {
129			rpm_requests {
130				pm8841-regulators {
131					s1 {
132						regulator-min-microvolt = <675000>;
133						regulator-max-microvolt = <1050000>;
134					};
135
136					s2 {
137						regulator-min-microvolt = <500000>;
138						regulator-max-microvolt = <1050000>;
139					};
140
141					s3 {
142						regulator-min-microvolt = <500000>;
143						regulator-max-microvolt = <1050000>;
144					};
145
146					s4 {
147						regulator-min-microvolt = <500000>;
148						regulator-max-microvolt = <1050000>;
149					};
150				};
151
152				pm8941-regulators {
153					vdd_l1_l3-supply = <&pm8941_s1>;
154					vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
155					vdd_l4_l11-supply = <&pm8941_s1>;
156					vdd_l5_l7-supply = <&pm8941_s2>;
157					vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
158					vin_5vs-supply = <&pm8941_5v>;
159
160					s1 {
161						regulator-min-microvolt = <1300000>;
162						regulator-max-microvolt = <1300000>;
163						regulator-always-on;
164						regulator-boot-on;
165					};
166
167					s2 {
168						regulator-min-microvolt = <2150000>;
169						regulator-max-microvolt = <2150000>;
170						regulator-boot-on;
171					};
172
173					s3 {
174						regulator-min-microvolt = <1800000>;
175						regulator-max-microvolt = <1800000>;
176						regulator-always-on;
177						regulator-boot-on;
178					};
179
180					l1 {
181						regulator-min-microvolt = <1225000>;
182						regulator-max-microvolt = <1225000>;
183
184						regulator-always-on;
185						regulator-boot-on;
186					};
187
188					l2 {
189						regulator-min-microvolt = <1200000>;
190						regulator-max-microvolt = <1200000>;
191					};
192
193					l3 {
194						regulator-min-microvolt = <1225000>;
195						regulator-max-microvolt = <1225000>;
196					};
197
198					l4 {
199						regulator-min-microvolt = <1225000>;
200						regulator-max-microvolt = <1225000>;
201					};
202
203					l5 {
204						regulator-min-microvolt = <1800000>;
205						regulator-max-microvolt = <1800000>;
206					};
207
208					l6 {
209						regulator-min-microvolt = <1800000>;
210						regulator-max-microvolt = <1800000>;
211
212						regulator-boot-on;
213					};
214
215					l7 {
216						regulator-min-microvolt = <1800000>;
217						regulator-max-microvolt = <1800000>;
218
219						regulator-boot-on;
220					};
221
222					l8 {
223						regulator-min-microvolt = <1800000>;
224						regulator-max-microvolt = <1800000>;
225					};
226
227					l9 {
228						regulator-min-microvolt = <1800000>;
229						regulator-max-microvolt = <2950000>;
230					};
231
232					l10 {
233						regulator-min-microvolt = <1800000>;
234						regulator-max-microvolt = <1800000>;
235						regulator-always-on;
236					};
237
238					l11 {
239						regulator-min-microvolt = <1300000>;
240						regulator-max-microvolt = <1300000>;
241					};
242
243					l12 {
244						regulator-min-microvolt = <1800000>;
245						regulator-max-microvolt = <1800000>;
246
247						regulator-always-on;
248						regulator-boot-on;
249					};
250
251					l13 {
252						regulator-min-microvolt = <1800000>;
253						regulator-max-microvolt = <2950000>;
254
255						regulator-boot-on;
256					};
257
258					l14 {
259						regulator-min-microvolt = <1800000>;
260						regulator-max-microvolt = <1800000>;
261					};
262
263					l15 {
264						regulator-min-microvolt = <2050000>;
265						regulator-max-microvolt = <2050000>;
266					};
267
268					l16 {
269						regulator-min-microvolt = <2700000>;
270						regulator-max-microvolt = <2700000>;
271					};
272
273					l17 {
274						regulator-min-microvolt = <2700000>;
275						regulator-max-microvolt = <2700000>;
276					};
277
278					l18 {
279						regulator-min-microvolt = <2850000>;
280						regulator-max-microvolt = <2850000>;
281					};
282
283					l19 {
284						regulator-min-microvolt = <3300000>;
285						regulator-max-microvolt = <3300000>;
286						regulator-always-on;
287					};
288
289					l20 {
290						regulator-min-microvolt = <2950000>;
291						regulator-max-microvolt = <2950000>;
292
293						regulator-allow-set-load;
294						regulator-boot-on;
295						regulator-system-load = <200000>;
296					};
297
298					l21 {
299						regulator-min-microvolt = <2950000>;
300						regulator-max-microvolt = <2950000>;
301
302						regulator-boot-on;
303					};
304
305					l22 {
306						regulator-min-microvolt = <3000000>;
307						regulator-max-microvolt = <3000000>;
308					};
309
310					l23 {
311						regulator-min-microvolt = <3000000>;
312						regulator-max-microvolt = <3000000>;
313					};
314
315					l24 {
316						regulator-min-microvolt = <3075000>;
317						regulator-max-microvolt = <3075000>;
318
319						regulator-boot-on;
320					};
321				};
322			};
 
 
 
 
 
323		};
324	};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
325};