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