xref: /linux/scripts/dtc/include-prefixes/arm/qcom/qcom-msm8974-lge-nexus5-hammerhead.dts (revision 455a4c46e023ab84263eae0fc7acca9a5ee8b7ac)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring#include "qcom-msm8974.dtsi"
3*455a4c46SDmitry Baryshkov#include "pm8841.dtsi"
4*455a4c46SDmitry Baryshkov#include "pm8941.dtsi"
5724ba675SRob Herring#include <dt-bindings/input/input.h>
6724ba675SRob Herring#include <dt-bindings/leds/common.h>
7724ba675SRob Herring#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
8724ba675SRob Herring
9724ba675SRob Herring/ {
10724ba675SRob Herring	model = "LGE MSM 8974 HAMMERHEAD";
11724ba675SRob Herring	compatible = "lge,hammerhead", "qcom,msm8974";
12724ba675SRob Herring	chassis-type = "handset";
13724ba675SRob Herring
14724ba675SRob Herring	aliases {
15724ba675SRob Herring		serial0 = &blsp1_uart1;
16724ba675SRob Herring		serial1 = &blsp2_uart4;
17724ba675SRob Herring	};
18724ba675SRob Herring
19724ba675SRob Herring	chosen {
20724ba675SRob Herring		stdout-path = "serial0:115200n8";
21724ba675SRob Herring	};
22724ba675SRob Herring
23724ba675SRob Herring	gpio-keys {
24724ba675SRob Herring		compatible = "gpio-keys";
25724ba675SRob Herring
26724ba675SRob Herring		pinctrl-names = "default";
27724ba675SRob Herring		pinctrl-0 = <&gpio_keys_pin_a>;
28724ba675SRob Herring
29724ba675SRob Herring		key-volume-up {
30724ba675SRob Herring			label = "volume_up";
31724ba675SRob Herring			gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
32724ba675SRob Herring			linux,input-type = <1>;
33724ba675SRob Herring			linux,code = <KEY_VOLUMEUP>;
34724ba675SRob Herring		};
35724ba675SRob Herring
36724ba675SRob Herring		key-volume-down {
37724ba675SRob Herring			label = "volume_down";
38724ba675SRob Herring			gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
39724ba675SRob Herring			linux,input-type = <1>;
40724ba675SRob Herring			linux,code = <KEY_VOLUMEDOWN>;
41724ba675SRob Herring		};
42724ba675SRob Herring	};
43724ba675SRob Herring
44724ba675SRob Herring	clk_pwm: pwm {
45724ba675SRob Herring		compatible = "clk-pwm";
46724ba675SRob Herring		clocks = <&mmcc CAMSS_GP1_CLK>;
47724ba675SRob Herring
48724ba675SRob Herring		pinctrl-0 = <&vibrator_pin>;
49724ba675SRob Herring		pinctrl-names = "default";
50724ba675SRob Herring
51724ba675SRob Herring		#pwm-cells = <2>;
52724ba675SRob Herring	};
53724ba675SRob Herring
54724ba675SRob Herring	vibrator {
55724ba675SRob Herring		compatible = "pwm-vibrator";
56724ba675SRob Herring		pwms = <&clk_pwm 0 100000>;
57724ba675SRob Herring		pwm-names = "enable";
58724ba675SRob Herring
59724ba675SRob Herring		vcc-supply = <&pm8941_l19>;
60724ba675SRob Herring		enable-gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>;
61724ba675SRob Herring	};
62724ba675SRob Herring
63724ba675SRob Herring	vreg_wlan: wlan-regulator {
64724ba675SRob Herring		compatible = "regulator-fixed";
65724ba675SRob Herring
66724ba675SRob Herring		regulator-name = "wl-reg";
67724ba675SRob Herring		regulator-min-microvolt = <3300000>;
68724ba675SRob Herring		regulator-max-microvolt = <3300000>;
69724ba675SRob Herring
70724ba675SRob Herring		gpio = <&tlmm 26 GPIO_ACTIVE_HIGH>;
71724ba675SRob Herring		enable-active-high;
72724ba675SRob Herring
73724ba675SRob Herring		pinctrl-names = "default";
74724ba675SRob Herring		pinctrl-0 = <&wlan_regulator_pin>;
75724ba675SRob Herring	};
76724ba675SRob Herring};
77724ba675SRob Herring
78724ba675SRob Herring&blsp1_i2c1 {
79724ba675SRob Herring	status = "okay";
80724ba675SRob Herring	clock-frequency = <100000>;
81724ba675SRob Herring
82724ba675SRob Herring	charger: bq24192@6b {
83724ba675SRob Herring		compatible = "ti,bq24192";
84724ba675SRob Herring		reg = <0x6b>;
85724ba675SRob Herring		interrupts-extended = <&spmi_bus 0 0xd5 0 IRQ_TYPE_EDGE_FALLING>;
86724ba675SRob Herring
87724ba675SRob Herring		omit-battery-class;
88724ba675SRob Herring
89724ba675SRob Herring		usb_otg_vbus: usb-otg-vbus { };
90724ba675SRob Herring	};
91724ba675SRob Herring
92724ba675SRob Herring	fuelgauge: max17048@36 {
93724ba675SRob Herring		compatible = "maxim,max17048";
94724ba675SRob Herring		reg = <0x36>;
95724ba675SRob Herring
96724ba675SRob Herring		maxim,double-soc;
97724ba675SRob Herring		maxim,rcomp = /bits/ 8 <0x4d>;
98724ba675SRob Herring
99724ba675SRob Herring		interrupt-parent = <&tlmm>;
100724ba675SRob Herring		interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
101724ba675SRob Herring
102724ba675SRob Herring		pinctrl-names = "default";
103724ba675SRob Herring		pinctrl-0 = <&fuelgauge_pin>;
104724ba675SRob Herring
105724ba675SRob Herring		maxim,alert-low-soc-level = <2>;
106724ba675SRob Herring	};
107724ba675SRob Herring};
108724ba675SRob Herring
109724ba675SRob Herring&blsp1_i2c2 {
110724ba675SRob Herring	status = "okay";
111724ba675SRob Herring	clock-frequency = <355000>;
112724ba675SRob Herring
113724ba675SRob Herring	synaptics@70 {
114724ba675SRob Herring		compatible = "syna,rmi4-i2c";
115724ba675SRob Herring		reg = <0x70>;
116724ba675SRob Herring
117724ba675SRob Herring		interrupts-extended = <&tlmm 5 IRQ_TYPE_EDGE_FALLING>;
118724ba675SRob Herring		vdd-supply = <&pm8941_l22>;
119724ba675SRob Herring		vio-supply = <&pm8941_lvs3>;
120724ba675SRob Herring
121724ba675SRob Herring		pinctrl-names = "default";
122724ba675SRob Herring		pinctrl-0 = <&touch_pin>;
123724ba675SRob Herring
124724ba675SRob Herring		#address-cells = <1>;
125724ba675SRob Herring		#size-cells = <0>;
126724ba675SRob Herring
127724ba675SRob Herring		rmi4-f01@1 {
128724ba675SRob Herring			reg = <0x1>;
129724ba675SRob Herring			syna,nosleep-mode = <1>;
130724ba675SRob Herring		};
131724ba675SRob Herring
132724ba675SRob Herring		rmi4-f12@12 {
133724ba675SRob Herring			reg = <0x12>;
134724ba675SRob Herring			syna,sensor-type = <1>;
135724ba675SRob Herring		};
136724ba675SRob Herring	};
137724ba675SRob Herring};
138724ba675SRob Herring
139724ba675SRob Herring&blsp1_i2c3 {
140724ba675SRob Herring	status = "okay";
141724ba675SRob Herring	clock-frequency = <100000>;
142724ba675SRob Herring
143724ba675SRob Herring	avago_apds993@39 {
144724ba675SRob Herring		compatible = "avago,apds9930";
145724ba675SRob Herring		reg = <0x39>;
146724ba675SRob Herring		interrupts-extended = <&tlmm 61 IRQ_TYPE_EDGE_FALLING>;
147724ba675SRob Herring		vdd-supply = <&pm8941_l17>;
148724ba675SRob Herring		vddio-supply = <&pm8941_lvs1>;
149724ba675SRob Herring		led-max-microamp = <100000>;
150724ba675SRob Herring		amstaos,proximity-diodes = <0>;
151724ba675SRob Herring	};
152724ba675SRob Herring};
153724ba675SRob Herring
154724ba675SRob Herring&blsp2_i2c5 {
155724ba675SRob Herring	status = "okay";
156724ba675SRob Herring	clock-frequency = <355000>;
157724ba675SRob Herring
158724ba675SRob Herring	led-controller@38 {
159724ba675SRob Herring		compatible = "ti,lm3630a";
160724ba675SRob Herring		status = "okay";
161724ba675SRob Herring		reg = <0x38>;
162724ba675SRob Herring
163724ba675SRob Herring		#address-cells = <1>;
164724ba675SRob Herring		#size-cells = <0>;
165724ba675SRob Herring
166724ba675SRob Herring		led@0 {
167724ba675SRob Herring			reg = <0>;
168724ba675SRob Herring			led-sources = <0 1>;
169724ba675SRob Herring			label = "lcd-backlight";
170724ba675SRob Herring			default-brightness = <200>;
171724ba675SRob Herring		};
172724ba675SRob Herring	};
173724ba675SRob Herring};
174724ba675SRob Herring
175724ba675SRob Herring&blsp2_i2c6 {
176724ba675SRob Herring	status = "okay";
177724ba675SRob Herring	clock-frequency = <100000>;
178724ba675SRob Herring
179724ba675SRob Herring	mpu6515@68 {
180724ba675SRob Herring		compatible = "invensense,mpu6515";
181724ba675SRob Herring		reg = <0x68>;
182724ba675SRob Herring		interrupts-extended = <&tlmm 73 IRQ_TYPE_EDGE_FALLING>;
183724ba675SRob Herring		vddio-supply = <&pm8941_lvs1>;
184724ba675SRob Herring
185724ba675SRob Herring		pinctrl-names = "default";
186724ba675SRob Herring		pinctrl-0 = <&mpu6515_pin>;
187724ba675SRob Herring
188724ba675SRob Herring		mount-matrix = "0", "-1", "0",
189724ba675SRob Herring				"-1", "0", "0",
190724ba675SRob Herring				"0", "0", "1";
191724ba675SRob Herring
192724ba675SRob Herring		i2c-gate {
193724ba675SRob Herring			#address-cells = <1>;
194724ba675SRob Herring			#size-cells = <0>;
195724ba675SRob Herring			ak8963@f {
196724ba675SRob Herring				compatible = "asahi-kasei,ak8963";
197724ba675SRob Herring				reg = <0x0f>;
198724ba675SRob Herring				gpios = <&tlmm 67 GPIO_ACTIVE_HIGH>;
199724ba675SRob Herring				vid-supply = <&pm8941_lvs1>;
200724ba675SRob Herring				vdd-supply = <&pm8941_l17>;
201724ba675SRob Herring			};
202724ba675SRob Herring
203724ba675SRob Herring			bmp280@76 {
204724ba675SRob Herring				compatible = "bosch,bmp280";
205724ba675SRob Herring				reg = <0x76>;
206724ba675SRob Herring				vdda-supply = <&pm8941_lvs1>;
207724ba675SRob Herring				vddd-supply = <&pm8941_l17>;
208724ba675SRob Herring			};
209724ba675SRob Herring		};
210724ba675SRob Herring	};
211724ba675SRob Herring};
212724ba675SRob Herring
213724ba675SRob Herring&blsp1_uart1 {
214724ba675SRob Herring	status = "okay";
215724ba675SRob Herring};
216724ba675SRob Herring
217724ba675SRob Herring&blsp2_uart4 {
218724ba675SRob Herring	status = "okay";
219724ba675SRob Herring
220724ba675SRob Herring	bluetooth {
221724ba675SRob Herring		compatible = "brcm,bcm43438-bt";
222724ba675SRob Herring		max-speed = <3000000>;
223724ba675SRob Herring
224724ba675SRob Herring		pinctrl-names = "default";
225724ba675SRob Herring		pinctrl-0 = <&bt_pin>;
226724ba675SRob Herring
227724ba675SRob Herring		host-wakeup-gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
228724ba675SRob Herring		device-wakeup-gpios = <&tlmm 62 GPIO_ACTIVE_HIGH>;
229724ba675SRob Herring		shutdown-gpios = <&tlmm 41 GPIO_ACTIVE_HIGH>;
230724ba675SRob Herring	};
231724ba675SRob Herring};
232724ba675SRob Herring
233724ba675SRob Herring&mdss {
234724ba675SRob Herring	status = "okay";
235724ba675SRob Herring};
236724ba675SRob Herring
237724ba675SRob Herring&mdss_dsi0 {
238724ba675SRob Herring	status = "okay";
239724ba675SRob Herring
240724ba675SRob Herring	vdda-supply = <&pm8941_l2>;
241724ba675SRob Herring	vdd-supply = <&pm8941_lvs3>;
242724ba675SRob Herring	vddio-supply = <&pm8941_l12>;
243724ba675SRob Herring
244724ba675SRob Herring	panel: panel@0 {
245724ba675SRob Herring		reg = <0>;
246724ba675SRob Herring		compatible = "lg,acx467akm-7";
247724ba675SRob Herring
248724ba675SRob Herring		pinctrl-names = "default";
249724ba675SRob Herring		pinctrl-0 = <&panel_pin>;
250724ba675SRob Herring
251724ba675SRob Herring		port {
252724ba675SRob Herring			panel_in: endpoint {
253724ba675SRob Herring				remote-endpoint = <&mdss_dsi0_out>;
254724ba675SRob Herring			};
255724ba675SRob Herring		};
256724ba675SRob Herring	};
257724ba675SRob Herring};
258724ba675SRob Herring
259724ba675SRob Herring&mdss_dsi0_out {
260724ba675SRob Herring	remote-endpoint = <&panel_in>;
261724ba675SRob Herring	data-lanes = <0 1 2 3>;
262724ba675SRob Herring};
263724ba675SRob Herring
264724ba675SRob Herring&mdss_dsi0_phy {
265724ba675SRob Herring	status = "okay";
266724ba675SRob Herring
267724ba675SRob Herring	vddio-supply = <&pm8941_l12>;
268724ba675SRob Herring};
269724ba675SRob Herring
270724ba675SRob Herring&pm8941_gpios {
271724ba675SRob Herring	gpio_keys_pin_a: gpio-keys-active-state {
272724ba675SRob Herring		pins = "gpio2", "gpio3";
273724ba675SRob Herring		function = "normal";
274724ba675SRob Herring
275724ba675SRob Herring		bias-pull-up;
276724ba675SRob Herring		power-source = <PM8941_GPIO_S3>;
277724ba675SRob Herring	};
278724ba675SRob Herring
279724ba675SRob Herring	fuelgauge_pin: fuelgauge-int-state {
280724ba675SRob Herring		pins = "gpio9";
281724ba675SRob Herring		function = "normal";
282724ba675SRob Herring
283724ba675SRob Herring		bias-disable;
284724ba675SRob Herring		input-enable;
285724ba675SRob Herring		power-source = <PM8941_GPIO_S3>;
286724ba675SRob Herring	};
287724ba675SRob Herring
288724ba675SRob Herring	wlan_sleep_clk_pin: wl-sleep-clk-state {
289724ba675SRob Herring		pins = "gpio16";
290724ba675SRob Herring		function = "func2";
291724ba675SRob Herring
292724ba675SRob Herring		output-high;
293724ba675SRob Herring		power-source = <PM8941_GPIO_S3>;
294724ba675SRob Herring	};
295724ba675SRob Herring
296724ba675SRob Herring	wlan_regulator_pin: wl-reg-active-state {
297724ba675SRob Herring		pins = "gpio17";
298724ba675SRob Herring		function = "normal";
299724ba675SRob Herring
300724ba675SRob Herring		bias-disable;
301724ba675SRob Herring		power-source = <PM8941_GPIO_S3>;
302724ba675SRob Herring	};
303724ba675SRob Herring
304724ba675SRob Herring	otg {
305724ba675SRob Herring		gpio-hog;
306724ba675SRob Herring		gpios = <35 GPIO_ACTIVE_HIGH>;
307724ba675SRob Herring		output-high;
308724ba675SRob Herring		line-name = "otg-gpio";
309724ba675SRob Herring	};
310724ba675SRob Herring};
311724ba675SRob Herring
312724ba675SRob Herring&pm8941_lpg {
313724ba675SRob Herring	status = "okay";
314724ba675SRob Herring
315724ba675SRob Herring	qcom,power-source = <1>;
316724ba675SRob Herring
317724ba675SRob Herring	multi-led {
318724ba675SRob Herring		color = <LED_COLOR_ID_RGB>;
319724ba675SRob Herring		function = LED_FUNCTION_STATUS;
320724ba675SRob Herring
321724ba675SRob Herring		#address-cells = <1>;
322724ba675SRob Herring		#size-cells = <0>;
323724ba675SRob Herring
324724ba675SRob Herring		led@7 {
325724ba675SRob Herring			reg = <7>;
326724ba675SRob Herring			color = <LED_COLOR_ID_RED>;
327724ba675SRob Herring		};
328724ba675SRob Herring
329724ba675SRob Herring		led@6 {
330724ba675SRob Herring			reg = <6>;
331724ba675SRob Herring			color = <LED_COLOR_ID_GREEN>;
332724ba675SRob Herring		};
333724ba675SRob Herring
334724ba675SRob Herring		led@5 {
335724ba675SRob Herring			reg = <5>;
336724ba675SRob Herring			color = <LED_COLOR_ID_BLUE>;
337724ba675SRob Herring		};
338724ba675SRob Herring	};
339724ba675SRob Herring};
340724ba675SRob Herring
341724ba675SRob Herring&remoteproc_adsp {
342724ba675SRob Herring	cx-supply = <&pm8841_s2>;
343724ba675SRob Herring};
344724ba675SRob Herring
345724ba675SRob Herring&remoteproc_mss {
346724ba675SRob Herring	cx-supply = <&pm8841_s2>;
347724ba675SRob Herring	mss-supply = <&pm8841_s3>;
348724ba675SRob Herring	mx-supply = <&pm8841_s1>;
349724ba675SRob Herring	pll-supply = <&pm8941_l12>;
350724ba675SRob Herring};
351724ba675SRob Herring
352724ba675SRob Herring&rpm_requests {
353724ba675SRob Herring	regulators-0 {
354724ba675SRob Herring		compatible = "qcom,rpm-pm8841-regulators";
355724ba675SRob Herring
356724ba675SRob Herring		pm8841_s1: s1 {
357724ba675SRob Herring			regulator-min-microvolt = <675000>;
358724ba675SRob Herring			regulator-max-microvolt = <1050000>;
359724ba675SRob Herring		};
360724ba675SRob Herring
361724ba675SRob Herring		pm8841_s2: s2 {
362724ba675SRob Herring			regulator-min-microvolt = <500000>;
363724ba675SRob Herring			regulator-max-microvolt = <1050000>;
364724ba675SRob Herring		};
365724ba675SRob Herring
366724ba675SRob Herring		pm8841_s3: s3 {
367724ba675SRob Herring			regulator-min-microvolt = <1050000>;
368724ba675SRob Herring			regulator-max-microvolt = <1050000>;
369724ba675SRob Herring		};
370724ba675SRob Herring
371724ba675SRob Herring		pm8841_s4: s4 {
372724ba675SRob Herring			regulator-min-microvolt = <815000>;
373724ba675SRob Herring			regulator-max-microvolt = <900000>;
374724ba675SRob Herring		};
375724ba675SRob Herring	};
376724ba675SRob Herring
377724ba675SRob Herring	regulators-1 {
378724ba675SRob Herring		compatible = "qcom,rpm-pm8941-regulators";
379724ba675SRob Herring
380724ba675SRob Herring		vdd_l1_l3-supply = <&pm8941_s1>;
381724ba675SRob Herring		vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
382724ba675SRob Herring		vdd_l4_l11-supply = <&pm8941_s1>;
383724ba675SRob Herring		vdd_l5_l7-supply = <&pm8941_s2>;
384724ba675SRob Herring		vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
385724ba675SRob Herring		vdd_l8_l16_l18_l19-supply = <&vreg_vph_pwr>;
386724ba675SRob Herring		vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
387724ba675SRob Herring		vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
388724ba675SRob Herring		vdd_l21-supply = <&vreg_boost>;
389724ba675SRob Herring
390724ba675SRob Herring		pm8941_s1: s1 {
391724ba675SRob Herring			regulator-min-microvolt = <1300000>;
392724ba675SRob Herring			regulator-max-microvolt = <1300000>;
393724ba675SRob Herring			regulator-always-on;
394724ba675SRob Herring			regulator-boot-on;
395724ba675SRob Herring		};
396724ba675SRob Herring
397724ba675SRob Herring		pm8941_s2: s2 {
398724ba675SRob Herring			regulator-min-microvolt = <2150000>;
399724ba675SRob Herring			regulator-max-microvolt = <2150000>;
400724ba675SRob Herring			regulator-boot-on;
401724ba675SRob Herring		};
402724ba675SRob Herring
403724ba675SRob Herring		pm8941_s3: s3 {
404724ba675SRob Herring			regulator-min-microvolt = <1800000>;
405724ba675SRob Herring			regulator-max-microvolt = <1800000>;
406724ba675SRob Herring			regulator-always-on;
407724ba675SRob Herring			regulator-boot-on;
408724ba675SRob Herring		};
409724ba675SRob Herring
410724ba675SRob Herring		pm8941_l1: l1 {
411724ba675SRob Herring			regulator-min-microvolt = <1225000>;
412724ba675SRob Herring			regulator-max-microvolt = <1225000>;
413724ba675SRob Herring			regulator-always-on;
414724ba675SRob Herring			regulator-boot-on;
415724ba675SRob Herring		};
416724ba675SRob Herring
417724ba675SRob Herring		pm8941_l2: l2 {
418724ba675SRob Herring			regulator-min-microvolt = <1200000>;
419724ba675SRob Herring			regulator-max-microvolt = <1200000>;
420724ba675SRob Herring		};
421724ba675SRob Herring
422724ba675SRob Herring		pm8941_l3: l3 {
423724ba675SRob Herring			regulator-min-microvolt = <1225000>;
424724ba675SRob Herring			regulator-max-microvolt = <1225000>;
425724ba675SRob Herring		};
426724ba675SRob Herring
427724ba675SRob Herring		pm8941_l4: l4 {
428724ba675SRob Herring			regulator-min-microvolt = <1225000>;
429724ba675SRob Herring			regulator-max-microvolt = <1225000>;
430724ba675SRob Herring		};
431724ba675SRob Herring
432724ba675SRob Herring		pm8941_l5: l5 {
433724ba675SRob Herring			regulator-min-microvolt = <1800000>;
434724ba675SRob Herring			regulator-max-microvolt = <1800000>;
435724ba675SRob Herring		};
436724ba675SRob Herring
437724ba675SRob Herring		pm8941_l6: l6 {
438724ba675SRob Herring			regulator-min-microvolt = <1800000>;
439724ba675SRob Herring			regulator-max-microvolt = <1800000>;
440724ba675SRob Herring			regulator-boot-on;
441724ba675SRob Herring		};
442724ba675SRob Herring
443724ba675SRob Herring		pm8941_l7: l7 {
444724ba675SRob Herring			regulator-min-microvolt = <1800000>;
445724ba675SRob Herring			regulator-max-microvolt = <1800000>;
446724ba675SRob Herring			regulator-boot-on;
447724ba675SRob Herring		};
448724ba675SRob Herring
449724ba675SRob Herring		pm8941_l8: l8 {
450724ba675SRob Herring			regulator-min-microvolt = <1800000>;
451724ba675SRob Herring			regulator-max-microvolt = <1800000>;
452724ba675SRob Herring		};
453724ba675SRob Herring
454724ba675SRob Herring		pm8941_l9: l9 {
455724ba675SRob Herring			regulator-min-microvolt = <1800000>;
456724ba675SRob Herring			regulator-max-microvolt = <2950000>;
457724ba675SRob Herring		};
458724ba675SRob Herring
459724ba675SRob Herring		pm8941_l10: l10 {
460724ba675SRob Herring			regulator-min-microvolt = <1800000>;
461724ba675SRob Herring			regulator-max-microvolt = <2950000>;
462724ba675SRob Herring		};
463724ba675SRob Herring
464724ba675SRob Herring		pm8941_l11: l11 {
465724ba675SRob Herring			regulator-min-microvolt = <1300000>;
466724ba675SRob Herring			regulator-max-microvolt = <1300000>;
467724ba675SRob Herring		};
468724ba675SRob Herring
469724ba675SRob Herring		pm8941_l12: l12 {
470724ba675SRob Herring			regulator-min-microvolt = <1800000>;
471724ba675SRob Herring			regulator-max-microvolt = <1800000>;
472724ba675SRob Herring			regulator-always-on;
473724ba675SRob Herring			regulator-boot-on;
474724ba675SRob Herring		};
475724ba675SRob Herring
476724ba675SRob Herring		pm8941_l13: l13 {
477724ba675SRob Herring			regulator-min-microvolt = <1800000>;
478724ba675SRob Herring			regulator-max-microvolt = <2950000>;
479724ba675SRob Herring			regulator-boot-on;
480724ba675SRob Herring		};
481724ba675SRob Herring
482724ba675SRob Herring		pm8941_l14: l14 {
483724ba675SRob Herring			regulator-min-microvolt = <1800000>;
484724ba675SRob Herring			regulator-max-microvolt = <1800000>;
485724ba675SRob Herring		};
486724ba675SRob Herring
487724ba675SRob Herring		pm8941_l15: l15 {
488724ba675SRob Herring			regulator-min-microvolt = <2050000>;
489724ba675SRob Herring			regulator-max-microvolt = <2050000>;
490724ba675SRob Herring		};
491724ba675SRob Herring
492724ba675SRob Herring		pm8941_l16: l16 {
493724ba675SRob Herring			regulator-min-microvolt = <2700000>;
494724ba675SRob Herring			regulator-max-microvolt = <2700000>;
495724ba675SRob Herring		};
496724ba675SRob Herring
497724ba675SRob Herring		pm8941_l17: l17 {
498724ba675SRob Herring			regulator-min-microvolt = <2850000>;
499724ba675SRob Herring			regulator-max-microvolt = <2850000>;
500724ba675SRob Herring		};
501724ba675SRob Herring
502724ba675SRob Herring		pm8941_l18: l18 {
503724ba675SRob Herring			regulator-min-microvolt = <2850000>;
504724ba675SRob Herring			regulator-max-microvolt = <2850000>;
505724ba675SRob Herring		};
506724ba675SRob Herring
507724ba675SRob Herring		pm8941_l19: l19 {
508724ba675SRob Herring			regulator-min-microvolt = <3000000>;
509724ba675SRob Herring			regulator-max-microvolt = <3300000>;
510724ba675SRob Herring		};
511724ba675SRob Herring
512724ba675SRob Herring		pm8941_l20: l20 {
513724ba675SRob Herring			regulator-min-microvolt = <2950000>;
514724ba675SRob Herring			regulator-max-microvolt = <2950000>;
515724ba675SRob Herring			regulator-system-load = <200000>;
516724ba675SRob Herring			regulator-allow-set-load;
517724ba675SRob Herring			regulator-boot-on;
518724ba675SRob Herring		};
519724ba675SRob Herring
520724ba675SRob Herring		pm8941_l21: l21 {
521724ba675SRob Herring			regulator-min-microvolt = <2950000>;
522724ba675SRob Herring			regulator-max-microvolt = <2950000>;
523724ba675SRob Herring			regulator-boot-on;
524724ba675SRob Herring		};
525724ba675SRob Herring
526724ba675SRob Herring		pm8941_l22: l22 {
527724ba675SRob Herring			regulator-min-microvolt = <3000000>;
528724ba675SRob Herring			regulator-max-microvolt = <3300000>;
529724ba675SRob Herring		};
530724ba675SRob Herring
531724ba675SRob Herring		pm8941_l23: l23 {
532724ba675SRob Herring			regulator-min-microvolt = <3000000>;
533724ba675SRob Herring			regulator-max-microvolt = <3000000>;
534724ba675SRob Herring		};
535724ba675SRob Herring
536724ba675SRob Herring		pm8941_l24: l24 {
537724ba675SRob Herring			regulator-min-microvolt = <3075000>;
538724ba675SRob Herring			regulator-max-microvolt = <3075000>;
539724ba675SRob Herring			regulator-boot-on;
540724ba675SRob Herring		};
541724ba675SRob Herring
542724ba675SRob Herring		pm8941_lvs1: lvs1 {};
543724ba675SRob Herring		pm8941_lvs3: lvs3 {};
544724ba675SRob Herring	};
545724ba675SRob Herring};
546724ba675SRob Herring
547724ba675SRob Herring&sdhc_1 {
548724ba675SRob Herring	status = "okay";
549724ba675SRob Herring
550724ba675SRob Herring	vmmc-supply = <&pm8941_l20>;
551724ba675SRob Herring	vqmmc-supply = <&pm8941_s3>;
552724ba675SRob Herring
553724ba675SRob Herring	pinctrl-names = "default", "sleep";
554724ba675SRob Herring	pinctrl-0 = <&sdc1_on>;
555724ba675SRob Herring	pinctrl-1 = <&sdc1_off>;
556724ba675SRob Herring};
557724ba675SRob Herring
558724ba675SRob Herring&sdhc_2 {
559724ba675SRob Herring	status = "okay";
560724ba675SRob Herring
561724ba675SRob Herring	max-frequency = <100000000>;
562724ba675SRob Herring	vmmc-supply = <&vreg_wlan>;
563724ba675SRob Herring	vqmmc-supply = <&pm8941_s3>;
564724ba675SRob Herring	non-removable;
565724ba675SRob Herring
566724ba675SRob Herring	pinctrl-names = "default", "sleep";
567724ba675SRob Herring	pinctrl-0 = <&sdc2_on>;
568724ba675SRob Herring	pinctrl-1 = <&sdc2_off>;
569724ba675SRob Herring
570724ba675SRob Herring	bcrmf@1 {
571724ba675SRob Herring		compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
572724ba675SRob Herring		reg = <1>;
573724ba675SRob Herring
574724ba675SRob Herring		brcm,drive-strength = <10>;
575724ba675SRob Herring
576724ba675SRob Herring		pinctrl-names = "default";
577724ba675SRob Herring		pinctrl-0 = <&wlan_sleep_clk_pin>;
578724ba675SRob Herring	};
579724ba675SRob Herring};
580724ba675SRob Herring
581724ba675SRob Herring&tlmm {
582724ba675SRob Herring	sdc1_on: sdc1-on-state {
583724ba675SRob Herring		clk-pins {
584724ba675SRob Herring			pins = "sdc1_clk";
585724ba675SRob Herring			drive-strength = <16>;
586724ba675SRob Herring			bias-disable;
587724ba675SRob Herring		};
588724ba675SRob Herring
589724ba675SRob Herring		cmd-data-pins {
590724ba675SRob Herring			pins = "sdc1_cmd", "sdc1_data";
591724ba675SRob Herring			drive-strength = <10>;
592724ba675SRob Herring			bias-pull-up;
593724ba675SRob Herring		};
594724ba675SRob Herring	};
595724ba675SRob Herring
596724ba675SRob Herring	sdc2_on: sdc2-on-state {
597724ba675SRob Herring		clk-pins {
598724ba675SRob Herring			pins = "sdc2_clk";
599724ba675SRob Herring			drive-strength = <6>;
600724ba675SRob Herring			bias-disable;
601724ba675SRob Herring		};
602724ba675SRob Herring
603724ba675SRob Herring		cmd-data-pins {
604724ba675SRob Herring			pins = "sdc2_cmd", "sdc2_data";
605724ba675SRob Herring			drive-strength = <6>;
606724ba675SRob Herring			bias-pull-up;
607724ba675SRob Herring		};
608724ba675SRob Herring	};
609724ba675SRob Herring
610724ba675SRob Herring	mpu6515_pin: mpu6515-state {
611724ba675SRob Herring		pins = "gpio73";
612724ba675SRob Herring		function = "gpio";
613724ba675SRob Herring		bias-disable;
614724ba675SRob Herring	};
615724ba675SRob Herring
616724ba675SRob Herring	touch_pin: touch-state {
617724ba675SRob Herring		int-pins {
618724ba675SRob Herring			pins = "gpio5";
619724ba675SRob Herring			function = "gpio";
620724ba675SRob Herring
621724ba675SRob Herring			drive-strength = <2>;
622724ba675SRob Herring			bias-disable;
623724ba675SRob Herring		};
624724ba675SRob Herring
625724ba675SRob Herring		reset-pins {
626724ba675SRob Herring			pins = "gpio8";
627724ba675SRob Herring			function = "gpio";
628724ba675SRob Herring
629724ba675SRob Herring			drive-strength = <2>;
630724ba675SRob Herring			bias-pull-up;
631724ba675SRob Herring		};
632724ba675SRob Herring	};
633724ba675SRob Herring
634724ba675SRob Herring	panel_pin: panel-state {
635724ba675SRob Herring		pins = "gpio12";
636724ba675SRob Herring		function = "mdp_vsync";
637724ba675SRob Herring		drive-strength = <2>;
638724ba675SRob Herring		bias-disable;
639724ba675SRob Herring	};
640724ba675SRob Herring
641724ba675SRob Herring	bt_pin: bt-state {
642724ba675SRob Herring		hostwake-pins {
643724ba675SRob Herring			pins = "gpio42";
644724ba675SRob Herring			function = "gpio";
645724ba675SRob Herring		};
646724ba675SRob Herring
647724ba675SRob Herring		devwake-pins {
648724ba675SRob Herring			pins = "gpio62";
649724ba675SRob Herring			function = "gpio";
650724ba675SRob Herring		};
651724ba675SRob Herring
652724ba675SRob Herring		shutdown-pins {
653724ba675SRob Herring			pins = "gpio41";
654724ba675SRob Herring			function = "gpio";
655724ba675SRob Herring		};
656724ba675SRob Herring	};
657724ba675SRob Herring
658724ba675SRob Herring	vibrator_pin: vibrator-state {
659724ba675SRob Herring		core-pins {
660724ba675SRob Herring			pins = "gpio27";
661724ba675SRob Herring			function = "gp1_clk";
662724ba675SRob Herring			drive-strength = <6>;
663724ba675SRob Herring			bias-disable;
664724ba675SRob Herring		};
665724ba675SRob Herring
666724ba675SRob Herring		enable-pins {
667724ba675SRob Herring			pins = "gpio60";
668724ba675SRob Herring			function = "gpio";
669724ba675SRob Herring			drive-strength = <2>;
670724ba675SRob Herring			bias-disable;
671724ba675SRob Herring		};
672724ba675SRob Herring	};
673724ba675SRob Herring};
674724ba675SRob Herring
675724ba675SRob Herring&usb {
676724ba675SRob Herring	status = "okay";
677724ba675SRob Herring
678724ba675SRob Herring	phys = <&usb_hs1_phy>;
679724ba675SRob Herring	phy-select = <&tcsr 0xb000 0>;
680724ba675SRob Herring
681724ba675SRob Herring	extcon = <&charger>, <&usb_id>;
682724ba675SRob Herring	vbus-supply = <&usb_otg_vbus>;
683724ba675SRob Herring
684724ba675SRob Herring	hnp-disable;
685724ba675SRob Herring	srp-disable;
686724ba675SRob Herring	adp-disable;
687724ba675SRob Herring};
688724ba675SRob Herring
689724ba675SRob Herring&usb_hs1_phy {
690724ba675SRob Herring	status = "okay";
691724ba675SRob Herring
692724ba675SRob Herring	v1p8-supply = <&pm8941_l6>;
693724ba675SRob Herring	v3p3-supply = <&pm8941_l24>;
694724ba675SRob Herring
695724ba675SRob Herring	qcom,init-seq = /bits/ 8 <0x1 0x64>;
696724ba675SRob Herring};
697