Linux Audio

Check our new training course

Loading...
Note: File does not exist in v3.1.
  1// SPDX-License-Identifier: BSD-3-Clause
  2/*
  3 * Copyright (c) 2021, Luca Weiss <luca@z3ntu.xyz>
  4 */
  5
  6/dts-v1/;
  7
  8#include "qcom-msm8226.dtsi"
  9#include "qcom-pm8226.dtsi"
 10
 11/delete-node/ &adsp_region;
 12
 13/ {
 14	model = "LG G Watch R";
 15	compatible = "lg,lenok", "qcom,apq8026";
 16	chassis-type = "watch";
 17	qcom,board-id = <132 0x0a>;
 18	qcom,msm-id = <199 0x20000>;
 19
 20	aliases {
 21		serial0 = &blsp1_uart3;
 22		serial1 = &blsp1_uart4;
 23	};
 24
 25	chosen {
 26		stdout-path = "serial0:115200n8";
 27	};
 28
 29	reserved-memory {
 30		adsp_region: adsp@3300000 {
 31			reg = <0x03300000 0x1400000>;
 32			no-map;
 33		};
 34	};
 35
 36	vreg_wlan: wlan-regulator {
 37		compatible = "regulator-fixed";
 38
 39		regulator-name = "wl-reg";
 40		regulator-min-microvolt = <2950000>;
 41		regulator-max-microvolt = <2950000>;
 42
 43		gpio = <&tlmm 46 GPIO_ACTIVE_HIGH>;
 44		enable-active-high;
 45
 46		pinctrl-names = "default";
 47		pinctrl-0 = <&wlan_regulator_default_state>;
 48	};
 49};
 50
 51&adsp {
 52	status = "okay";
 53};
 54
 55&blsp1_i2c1 {
 56	status = "okay";
 57
 58	fuel-gauge@55 {
 59		compatible = "ti,bq27421";
 60		reg = <0x55>;
 61	};
 62};
 63
 64&blsp1_i2c5 {
 65	status = "okay";
 66	clock-frequency = <384000>;
 67
 68	touchscreen@20 {
 69		compatible = "syna,rmi4-i2c";
 70		reg = <0x20>;
 71
 72		interrupts-extended = <&tlmm 17 IRQ_TYPE_EDGE_FALLING>;
 73		vdd-supply = <&pm8226_l15>;
 74		vio-supply = <&pm8226_l22>;
 75
 76		pinctrl-names = "default";
 77		pinctrl-0 = <&touch_pins>;
 78
 79		#address-cells = <1>;
 80		#size-cells = <0>;
 81
 82		rmi4-f01@1 {
 83			reg = <0x1>;
 84			syna,nosleep-mode = <1>;
 85		};
 86
 87		rmi4-f12@12 {
 88			reg = <0x12>;
 89			syna,sensor-type = <1>;
 90		};
 91	};
 92};
 93
 94&blsp1_uart3 {
 95	status = "okay";
 96};
 97
 98&blsp1_uart4 {
 99	status = "okay";
100
101	pinctrl-names = "default";
102	pinctrl-0 = <&blsp1_uart4_default_state>;
103
104	bluetooth {
105		compatible = "brcm,bcm43430a0-bt";
106
107		max-speed = <3000000>;
108
109		pinctrl-names = "default";
110		pinctrl-0 = <&bluetooth_default_state>;
111
112		host-wakeup-gpios = <&tlmm 48 GPIO_ACTIVE_HIGH>;
113		device-wakeup-gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>;
114		shutdown-gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
115	};
116};
117
118&rpm_requests {
119	regulators {
120		compatible = "qcom,rpm-pm8226-regulators";
121
122		pm8226_s3: s3 {
123			regulator-min-microvolt = <1200000>;
124			regulator-max-microvolt = <1350000>;
125		};
126		pm8226_s4: s4 {
127			regulator-min-microvolt = <1800000>;
128			regulator-max-microvolt = <2200000>;
129		};
130		pm8226_s5: s5 {
131			regulator-min-microvolt = <1150000>;
132			regulator-max-microvolt = <1150000>;
133		};
134
135		pm8226_l1: l1 {
136			regulator-min-microvolt = <1225000>;
137			regulator-max-microvolt = <1225000>;
138		};
139		pm8226_l2: l2 {
140			regulator-min-microvolt = <1200000>;
141			regulator-max-microvolt = <1200000>;
142		};
143		pm8226_l3: l3 {
144			regulator-min-microvolt = <750000>;
145			regulator-max-microvolt = <1337500>;
146		};
147		pm8226_l4: l4 {
148			regulator-min-microvolt = <1200000>;
149			regulator-max-microvolt = <1200000>;
150		};
151		pm8226_l5: l5 {
152			regulator-min-microvolt = <1200000>;
153			regulator-max-microvolt = <1200000>;
154		};
155		pm8226_l6: l6 {
156			regulator-min-microvolt = <1800000>;
157			regulator-max-microvolt = <1800000>;
158		};
159		pm8226_l7: l7 {
160			regulator-min-microvolt = <1850000>;
161			regulator-max-microvolt = <1850000>;
162		};
163		pm8226_l8: l8 {
164			regulator-min-microvolt = <1800000>;
165			regulator-max-microvolt = <1800000>;
166		};
167		pm8226_l9: l9 {
168			regulator-min-microvolt = <2050000>;
169			regulator-max-microvolt = <2050000>;
170		};
171		pm8226_l10: l10 {
172			regulator-min-microvolt = <1800000>;
173			regulator-max-microvolt = <1800000>;
174		};
175		pm8226_l12: l12 {
176			regulator-min-microvolt = <1800000>;
177			regulator-max-microvolt = <1800000>;
178		};
179		pm8226_l14: l14 {
180			regulator-min-microvolt = <2750000>;
181			regulator-max-microvolt = <2750000>;
182		};
183		pm8226_l15: l15 {
184			regulator-min-microvolt = <3300000>;
185			regulator-max-microvolt = <3300000>;
186		};
187		pm8226_l16: l16 {
188			regulator-min-microvolt = <3000000>;
189			regulator-max-microvolt = <3350000>;
190		};
191		pm8226_l17: l17 {
192			regulator-min-microvolt = <2950000>;
193			regulator-max-microvolt = <2950000>;
194		};
195		pm8226_l18: l18 {
196			regulator-min-microvolt = <3000000>;
197			regulator-max-microvolt = <3300000>;
198		};
199		pm8226_l19: l19 {
200			regulator-min-microvolt = <3000000>;
201			regulator-max-microvolt = <3000000>;
202		};
203		pm8226_l20: l20 {
204			regulator-min-microvolt = <3075000>;
205			regulator-max-microvolt = <3075000>;
206		};
207		pm8226_l21: l21 {
208			regulator-min-microvolt = <1800000>;
209			regulator-max-microvolt = <2950000>;
210		};
211		pm8226_l22: l22 {
212			regulator-min-microvolt = <1800000>;
213			regulator-max-microvolt = <1800000>;
214		};
215		pm8226_l23: l23 {
216			regulator-min-microvolt = <1800000>;
217			regulator-max-microvolt = <2950000>;
218		};
219		pm8226_l24: l24 {
220			regulator-min-microvolt = <1300000>;
221			regulator-max-microvolt = <1350000>;
222		};
223		pm8226_l25: l25 {
224			regulator-min-microvolt = <1775000>;
225			regulator-max-microvolt = <2125000>;
226		};
227		pm8226_l26: l26 {
228			regulator-min-microvolt = <1225000>;
229			regulator-max-microvolt = <1225000>;
230		};
231		pm8226_l27: l27 {
232			regulator-min-microvolt = <2050000>;
233			regulator-max-microvolt = <2050000>;
234		};
235		pm8226_l28: l28 {
236			regulator-min-microvolt = <2700000>;
237			regulator-max-microvolt = <3000000>;
238		};
239
240		pm8226_lvs1: lvs1 {};
241	};
242};
243
244&sdhc_1 {
245	status = "okay";
246
247	vmmc-supply = <&pm8226_l17>;
248	vqmmc-supply = <&pm8226_l6>;
249
250	bus-width = <8>;
251	non-removable;
252};
253
254&sdhc_3 {
255	status = "okay";
256
257	max-frequency = <100000000>;
258	non-removable;
259
260	vmmc-supply = <&vreg_wlan>;
261	vqmmc-supply = <&pm8226_l6>;
262
263	#address-cells = <1>;
264	#size-cells = <0>;
265
266	wifi@1 {
267		compatible = "brcm,bcm43430a0-fmac", "brcm,bcm4329-fmac";
268		reg = <1>;
269
270		interrupts-extended = <&tlmm 37 IRQ_TYPE_EDGE_FALLING>;
271		interrupt-names = "host-wake";
272
273		pinctrl-names = "default";
274		pinctrl-0 = <&wlan_hostwake_default_state>;
275	};
276};
277
278&smbb {
279	qcom,fast-charge-safe-current = <450000>;
280	qcom,fast-charge-current-limit = <400000>;
281	qcom,fast-charge-safe-voltage = <4350000>;
282	qcom,fast-charge-high-threshold-voltage = <4350000>;
283	qcom,auto-recharge-threshold-voltage = <4240000>;
284	qcom,minimum-input-voltage = <4450000>;
285};
286
287&tlmm {
288	blsp1_uart4_default_state: blsp1-uart4-default-state {
289		pins = "gpio12", "gpio13", "gpio14", "gpio15";
290		function = "blsp_uart4";
291		drive-strength = <8>;
292		bias-disable;
293	};
294
295	bluetooth_default_state: bluetooth-default-state {
296		pins = "gpio47", "gpio48";
297		function = "gpio";
298		drive-strength = <2>;
299		bias-disable;
300		input-enable;
301	};
302
303	touch_pins: touch-state {
304		irq-pins {
305			pins = "gpio17";
306			function = "gpio";
307
308			drive-strength = <8>;
309			bias-pull-down;
310			input-enable;
311		};
312
313		reset-pins {
314			pins = "gpio16";
315			function = "gpio";
316
317			drive-strength = <8>;
318			bias-disable;
319			output-high;
320		};
321	};
322
323	wlan_hostwake_default_state: wlan-hostwake-default-state {
324		pins = "gpio37";
325		function = "gpio";
326		drive-strength = <2>;
327		bias-disable;
328		input-enable;
329	};
330
331	wlan_regulator_default_state: wlan-regulator-default-state {
332		pins = "gpio46";
333		function = "gpio";
334		drive-strength = <2>;
335		bias-pull-up;
336	};
337};
338
339&usb {
340	status = "okay";
341	extcon = <&smbb>;
342	dr_mode = "peripheral";
343};
344
345&usb_hs_phy {
346	extcon = <&smbb>;
347	v1p8-supply = <&pm8226_l10>;
348	v3p3-supply = <&pm8226_l20>;
349};