xref: /linux/scripts/dtc/include-prefixes/arm/qcom/qcom-msm8974-lge-nexus5-hammerhead.dts (revision c34e9ab9a612ee8b18273398ef75c207b01f516d)
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
6374eafc5fSDmitry Baryshkov	vreg_boost: vreg-boost {
6474eafc5fSDmitry Baryshkov		compatible = "regulator-fixed";
6574eafc5fSDmitry Baryshkov
6674eafc5fSDmitry Baryshkov		regulator-name = "vreg-boost";
6774eafc5fSDmitry Baryshkov		regulator-min-microvolt = <3150000>;
6874eafc5fSDmitry Baryshkov		regulator-max-microvolt = <3150000>;
6974eafc5fSDmitry Baryshkov
7074eafc5fSDmitry Baryshkov		regulator-always-on;
7174eafc5fSDmitry Baryshkov		regulator-boot-on;
7274eafc5fSDmitry Baryshkov
7374eafc5fSDmitry Baryshkov		gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
7474eafc5fSDmitry Baryshkov		enable-active-high;
7574eafc5fSDmitry Baryshkov
7674eafc5fSDmitry Baryshkov		pinctrl-names = "default";
7774eafc5fSDmitry Baryshkov		pinctrl-0 = <&boost_bypass_n_pin>;
7874eafc5fSDmitry Baryshkov	};
7974eafc5fSDmitry Baryshkov
8074eafc5fSDmitry Baryshkov	vreg_vph_pwr: vreg-vph-pwr {
8174eafc5fSDmitry Baryshkov		compatible = "regulator-fixed";
8274eafc5fSDmitry Baryshkov		regulator-name = "vph-pwr";
8374eafc5fSDmitry Baryshkov
8474eafc5fSDmitry Baryshkov		regulator-min-microvolt = <3600000>;
8574eafc5fSDmitry Baryshkov		regulator-max-microvolt = <3600000>;
8674eafc5fSDmitry Baryshkov
8774eafc5fSDmitry Baryshkov		regulator-always-on;
8874eafc5fSDmitry Baryshkov	};
8974eafc5fSDmitry 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
170*8bcf9477SKrzysztof Kozlowski	sensor@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
185e23dfb4eSLuca Weiss	backlight: 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
275e23dfb4eSLuca Weiss		backlight = <&backlight>;
276e23dfb4eSLuca Weiss
277724ba675SRob Herring		pinctrl-names = "default";
278724ba675SRob Herring		pinctrl-0 = <&panel_pin>;
279724ba675SRob Herring
280724ba675SRob Herring		port {
281724ba675SRob Herring			panel_in: endpoint {
282724ba675SRob Herring				remote-endpoint = <&mdss_dsi0_out>;
283724ba675SRob Herring			};
284724ba675SRob Herring		};
285724ba675SRob Herring	};
286724ba675SRob Herring};
287724ba675SRob Herring
288724ba675SRob Herring&mdss_dsi0_out {
289724ba675SRob Herring	remote-endpoint = <&panel_in>;
290724ba675SRob Herring	data-lanes = <0 1 2 3>;
291724ba675SRob Herring};
292724ba675SRob Herring
293724ba675SRob Herring&mdss_dsi0_phy {
294724ba675SRob Herring	status = "okay";
295724ba675SRob Herring
296724ba675SRob Herring	vddio-supply = <&pm8941_l12>;
297724ba675SRob Herring};
298724ba675SRob Herring
299724ba675SRob Herring&pm8941_gpios {
300724ba675SRob Herring	gpio_keys_pin_a: gpio-keys-active-state {
301724ba675SRob Herring		pins = "gpio2", "gpio3";
302724ba675SRob Herring		function = "normal";
303724ba675SRob Herring
304724ba675SRob Herring		bias-pull-up;
305724ba675SRob Herring		power-source = <PM8941_GPIO_S3>;
306724ba675SRob Herring	};
307724ba675SRob Herring
308724ba675SRob Herring	fuelgauge_pin: fuelgauge-int-state {
309724ba675SRob Herring		pins = "gpio9";
310724ba675SRob Herring		function = "normal";
311724ba675SRob Herring
312724ba675SRob Herring		bias-disable;
313724ba675SRob Herring		input-enable;
314724ba675SRob Herring		power-source = <PM8941_GPIO_S3>;
315724ba675SRob Herring	};
316724ba675SRob Herring
317724ba675SRob Herring	wlan_sleep_clk_pin: wl-sleep-clk-state {
318724ba675SRob Herring		pins = "gpio16";
319724ba675SRob Herring		function = "func2";
320724ba675SRob Herring
321724ba675SRob Herring		output-high;
322724ba675SRob Herring		power-source = <PM8941_GPIO_S3>;
323724ba675SRob Herring	};
324724ba675SRob Herring
325724ba675SRob Herring	wlan_regulator_pin: wl-reg-active-state {
326724ba675SRob Herring		pins = "gpio17";
327724ba675SRob Herring		function = "normal";
328724ba675SRob Herring
329724ba675SRob Herring		bias-disable;
330724ba675SRob Herring		power-source = <PM8941_GPIO_S3>;
331724ba675SRob Herring	};
332724ba675SRob Herring
33392b9ce5bSLuca Weiss	otg-hog {
334724ba675SRob Herring		gpio-hog;
335724ba675SRob Herring		gpios = <35 GPIO_ACTIVE_HIGH>;
336724ba675SRob Herring		output-high;
337724ba675SRob Herring		line-name = "otg-gpio";
338724ba675SRob Herring	};
339724ba675SRob Herring};
340724ba675SRob Herring
341724ba675SRob Herring&pm8941_lpg {
342724ba675SRob Herring	status = "okay";
343724ba675SRob Herring
344724ba675SRob Herring	qcom,power-source = <1>;
345724ba675SRob Herring
346724ba675SRob Herring	multi-led {
347724ba675SRob Herring		color = <LED_COLOR_ID_RGB>;
348724ba675SRob Herring		function = LED_FUNCTION_STATUS;
349724ba675SRob Herring
350724ba675SRob Herring		#address-cells = <1>;
351724ba675SRob Herring		#size-cells = <0>;
352724ba675SRob Herring
353724ba675SRob Herring		led@7 {
354724ba675SRob Herring			reg = <7>;
355724ba675SRob Herring			color = <LED_COLOR_ID_RED>;
356724ba675SRob Herring		};
357724ba675SRob Herring
358724ba675SRob Herring		led@6 {
359724ba675SRob Herring			reg = <6>;
360724ba675SRob Herring			color = <LED_COLOR_ID_GREEN>;
361724ba675SRob Herring		};
362724ba675SRob Herring
363724ba675SRob Herring		led@5 {
364724ba675SRob Herring			reg = <5>;
365724ba675SRob Herring			color = <LED_COLOR_ID_BLUE>;
366724ba675SRob Herring		};
367724ba675SRob Herring	};
368724ba675SRob Herring};
369724ba675SRob Herring
370724ba675SRob Herring&remoteproc_adsp {
371724ba675SRob Herring	cx-supply = <&pm8841_s2>;
372648002a2SLuca Weiss	status = "okay";
373724ba675SRob Herring};
374724ba675SRob Herring
375724ba675SRob Herring&remoteproc_mss {
376724ba675SRob Herring	cx-supply = <&pm8841_s2>;
377724ba675SRob Herring	mss-supply = <&pm8841_s3>;
378724ba675SRob Herring	mx-supply = <&pm8841_s1>;
379724ba675SRob Herring	pll-supply = <&pm8941_l12>;
380648002a2SLuca Weiss	status = "okay";
381724ba675SRob Herring};
382724ba675SRob Herring
383724ba675SRob Herring&rpm_requests {
384724ba675SRob Herring	regulators-0 {
385724ba675SRob Herring		compatible = "qcom,rpm-pm8841-regulators";
386724ba675SRob Herring
387724ba675SRob Herring		pm8841_s1: s1 {
388724ba675SRob Herring			regulator-min-microvolt = <675000>;
389724ba675SRob Herring			regulator-max-microvolt = <1050000>;
390724ba675SRob Herring		};
391724ba675SRob Herring
392724ba675SRob Herring		pm8841_s2: s2 {
393724ba675SRob Herring			regulator-min-microvolt = <500000>;
394724ba675SRob Herring			regulator-max-microvolt = <1050000>;
395724ba675SRob Herring		};
396724ba675SRob Herring
397724ba675SRob Herring		pm8841_s3: s3 {
398724ba675SRob Herring			regulator-min-microvolt = <1050000>;
399724ba675SRob Herring			regulator-max-microvolt = <1050000>;
400724ba675SRob Herring		};
401724ba675SRob Herring
402724ba675SRob Herring		pm8841_s4: s4 {
403724ba675SRob Herring			regulator-min-microvolt = <815000>;
404724ba675SRob Herring			regulator-max-microvolt = <900000>;
405724ba675SRob Herring		};
406724ba675SRob Herring	};
407724ba675SRob Herring
408724ba675SRob Herring	regulators-1 {
409724ba675SRob Herring		compatible = "qcom,rpm-pm8941-regulators";
410724ba675SRob Herring
411724ba675SRob Herring		vdd_l1_l3-supply = <&pm8941_s1>;
412724ba675SRob Herring		vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
413724ba675SRob Herring		vdd_l4_l11-supply = <&pm8941_s1>;
414724ba675SRob Herring		vdd_l5_l7-supply = <&pm8941_s2>;
415724ba675SRob Herring		vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
416724ba675SRob Herring		vdd_l8_l16_l18_l19-supply = <&vreg_vph_pwr>;
417724ba675SRob Herring		vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
418724ba675SRob Herring		vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
419724ba675SRob Herring		vdd_l21-supply = <&vreg_boost>;
420724ba675SRob Herring
421724ba675SRob Herring		pm8941_s1: s1 {
422724ba675SRob Herring			regulator-min-microvolt = <1300000>;
423724ba675SRob Herring			regulator-max-microvolt = <1300000>;
424724ba675SRob Herring			regulator-always-on;
425724ba675SRob Herring			regulator-boot-on;
426724ba675SRob Herring		};
427724ba675SRob Herring
428724ba675SRob Herring		pm8941_s2: s2 {
429724ba675SRob Herring			regulator-min-microvolt = <2150000>;
430724ba675SRob Herring			regulator-max-microvolt = <2150000>;
431724ba675SRob Herring			regulator-boot-on;
432724ba675SRob Herring		};
433724ba675SRob Herring
434724ba675SRob Herring		pm8941_s3: s3 {
435724ba675SRob Herring			regulator-min-microvolt = <1800000>;
436724ba675SRob Herring			regulator-max-microvolt = <1800000>;
437724ba675SRob Herring			regulator-always-on;
438724ba675SRob Herring			regulator-boot-on;
439724ba675SRob Herring		};
440724ba675SRob Herring
441724ba675SRob Herring		pm8941_l1: l1 {
442724ba675SRob Herring			regulator-min-microvolt = <1225000>;
443724ba675SRob Herring			regulator-max-microvolt = <1225000>;
444724ba675SRob Herring			regulator-always-on;
445724ba675SRob Herring			regulator-boot-on;
446724ba675SRob Herring		};
447724ba675SRob Herring
448724ba675SRob Herring		pm8941_l2: l2 {
449724ba675SRob Herring			regulator-min-microvolt = <1200000>;
450724ba675SRob Herring			regulator-max-microvolt = <1200000>;
451724ba675SRob Herring		};
452724ba675SRob Herring
453724ba675SRob Herring		pm8941_l3: l3 {
454724ba675SRob Herring			regulator-min-microvolt = <1225000>;
455724ba675SRob Herring			regulator-max-microvolt = <1225000>;
456724ba675SRob Herring		};
457724ba675SRob Herring
458724ba675SRob Herring		pm8941_l4: l4 {
459724ba675SRob Herring			regulator-min-microvolt = <1225000>;
460724ba675SRob Herring			regulator-max-microvolt = <1225000>;
461724ba675SRob Herring		};
462724ba675SRob Herring
463724ba675SRob Herring		pm8941_l5: l5 {
464724ba675SRob Herring			regulator-min-microvolt = <1800000>;
465724ba675SRob Herring			regulator-max-microvolt = <1800000>;
466724ba675SRob Herring		};
467724ba675SRob Herring
468724ba675SRob Herring		pm8941_l6: l6 {
469724ba675SRob Herring			regulator-min-microvolt = <1800000>;
470724ba675SRob Herring			regulator-max-microvolt = <1800000>;
471724ba675SRob Herring			regulator-boot-on;
472724ba675SRob Herring		};
473724ba675SRob Herring
474724ba675SRob Herring		pm8941_l7: l7 {
475724ba675SRob Herring			regulator-min-microvolt = <1800000>;
476724ba675SRob Herring			regulator-max-microvolt = <1800000>;
477724ba675SRob Herring			regulator-boot-on;
478724ba675SRob Herring		};
479724ba675SRob Herring
480724ba675SRob Herring		pm8941_l8: l8 {
481724ba675SRob Herring			regulator-min-microvolt = <1800000>;
482724ba675SRob Herring			regulator-max-microvolt = <1800000>;
483724ba675SRob Herring		};
484724ba675SRob Herring
485724ba675SRob Herring		pm8941_l9: l9 {
486724ba675SRob Herring			regulator-min-microvolt = <1800000>;
487724ba675SRob Herring			regulator-max-microvolt = <2950000>;
488724ba675SRob Herring		};
489724ba675SRob Herring
490724ba675SRob Herring		pm8941_l10: l10 {
491724ba675SRob Herring			regulator-min-microvolt = <1800000>;
492724ba675SRob Herring			regulator-max-microvolt = <2950000>;
493724ba675SRob Herring		};
494724ba675SRob Herring
495724ba675SRob Herring		pm8941_l11: l11 {
496724ba675SRob Herring			regulator-min-microvolt = <1300000>;
497724ba675SRob Herring			regulator-max-microvolt = <1300000>;
498724ba675SRob Herring		};
499724ba675SRob Herring
500724ba675SRob Herring		pm8941_l12: l12 {
501724ba675SRob Herring			regulator-min-microvolt = <1800000>;
502724ba675SRob Herring			regulator-max-microvolt = <1800000>;
503724ba675SRob Herring			regulator-always-on;
504724ba675SRob Herring			regulator-boot-on;
505724ba675SRob Herring		};
506724ba675SRob Herring
507724ba675SRob Herring		pm8941_l13: l13 {
508724ba675SRob Herring			regulator-min-microvolt = <1800000>;
509724ba675SRob Herring			regulator-max-microvolt = <2950000>;
510724ba675SRob Herring			regulator-boot-on;
511724ba675SRob Herring		};
512724ba675SRob Herring
513724ba675SRob Herring		pm8941_l14: l14 {
514724ba675SRob Herring			regulator-min-microvolt = <1800000>;
515724ba675SRob Herring			regulator-max-microvolt = <1800000>;
516724ba675SRob Herring		};
517724ba675SRob Herring
518724ba675SRob Herring		pm8941_l15: l15 {
519724ba675SRob Herring			regulator-min-microvolt = <2050000>;
520724ba675SRob Herring			regulator-max-microvolt = <2050000>;
521724ba675SRob Herring		};
522724ba675SRob Herring
523724ba675SRob Herring		pm8941_l16: l16 {
524724ba675SRob Herring			regulator-min-microvolt = <2700000>;
525724ba675SRob Herring			regulator-max-microvolt = <2700000>;
526724ba675SRob Herring		};
527724ba675SRob Herring
528724ba675SRob Herring		pm8941_l17: l17 {
529724ba675SRob Herring			regulator-min-microvolt = <2850000>;
530724ba675SRob Herring			regulator-max-microvolt = <2850000>;
531724ba675SRob Herring		};
532724ba675SRob Herring
533724ba675SRob Herring		pm8941_l18: l18 {
534724ba675SRob Herring			regulator-min-microvolt = <2850000>;
535724ba675SRob Herring			regulator-max-microvolt = <2850000>;
536724ba675SRob Herring		};
537724ba675SRob Herring
538724ba675SRob Herring		pm8941_l19: l19 {
539724ba675SRob Herring			regulator-min-microvolt = <3000000>;
540724ba675SRob Herring			regulator-max-microvolt = <3300000>;
541724ba675SRob Herring		};
542724ba675SRob Herring
543724ba675SRob Herring		pm8941_l20: l20 {
544724ba675SRob Herring			regulator-min-microvolt = <2950000>;
545724ba675SRob Herring			regulator-max-microvolt = <2950000>;
546724ba675SRob Herring			regulator-system-load = <200000>;
547724ba675SRob Herring			regulator-allow-set-load;
548724ba675SRob Herring			regulator-boot-on;
549724ba675SRob Herring		};
550724ba675SRob Herring
551724ba675SRob Herring		pm8941_l21: l21 {
552724ba675SRob Herring			regulator-min-microvolt = <2950000>;
553724ba675SRob Herring			regulator-max-microvolt = <2950000>;
554724ba675SRob Herring			regulator-boot-on;
555724ba675SRob Herring		};
556724ba675SRob Herring
557724ba675SRob Herring		pm8941_l22: l22 {
558724ba675SRob Herring			regulator-min-microvolt = <3000000>;
559724ba675SRob Herring			regulator-max-microvolt = <3300000>;
560724ba675SRob Herring		};
561724ba675SRob Herring
562724ba675SRob Herring		pm8941_l23: l23 {
563724ba675SRob Herring			regulator-min-microvolt = <3000000>;
564724ba675SRob Herring			regulator-max-microvolt = <3000000>;
565724ba675SRob Herring		};
566724ba675SRob Herring
567724ba675SRob Herring		pm8941_l24: l24 {
568724ba675SRob Herring			regulator-min-microvolt = <3075000>;
569724ba675SRob Herring			regulator-max-microvolt = <3075000>;
570724ba675SRob Herring			regulator-boot-on;
571724ba675SRob Herring		};
572724ba675SRob Herring
573724ba675SRob Herring		pm8941_lvs1: lvs1 {};
574724ba675SRob Herring		pm8941_lvs3: lvs3 {};
575724ba675SRob Herring	};
576724ba675SRob Herring};
577724ba675SRob Herring
578724ba675SRob Herring&sdhc_1 {
579724ba675SRob Herring	status = "okay";
580724ba675SRob Herring
581724ba675SRob Herring	vmmc-supply = <&pm8941_l20>;
582724ba675SRob Herring	vqmmc-supply = <&pm8941_s3>;
583724ba675SRob Herring
584724ba675SRob Herring	pinctrl-names = "default", "sleep";
585724ba675SRob Herring	pinctrl-0 = <&sdc1_on>;
586724ba675SRob Herring	pinctrl-1 = <&sdc1_off>;
587724ba675SRob Herring};
588724ba675SRob Herring
589724ba675SRob Herring&sdhc_2 {
590724ba675SRob Herring	status = "okay";
591724ba675SRob Herring
592724ba675SRob Herring	max-frequency = <100000000>;
593724ba675SRob Herring	vmmc-supply = <&vreg_wlan>;
594724ba675SRob Herring	vqmmc-supply = <&pm8941_s3>;
595724ba675SRob Herring	non-removable;
596724ba675SRob Herring
597724ba675SRob Herring	pinctrl-names = "default", "sleep";
598724ba675SRob Herring	pinctrl-0 = <&sdc2_on>;
599724ba675SRob Herring	pinctrl-1 = <&sdc2_off>;
600724ba675SRob Herring
601724ba675SRob Herring	bcrmf@1 {
602724ba675SRob Herring		compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
603724ba675SRob Herring		reg = <1>;
604724ba675SRob Herring
605724ba675SRob Herring		brcm,drive-strength = <10>;
606724ba675SRob Herring
607724ba675SRob Herring		pinctrl-names = "default";
608724ba675SRob Herring		pinctrl-0 = <&wlan_sleep_clk_pin>;
609724ba675SRob Herring	};
610724ba675SRob Herring};
611724ba675SRob Herring
612724ba675SRob Herring&tlmm {
613724ba675SRob Herring	sdc1_on: sdc1-on-state {
614724ba675SRob Herring		clk-pins {
615724ba675SRob Herring			pins = "sdc1_clk";
616724ba675SRob Herring			drive-strength = <16>;
617724ba675SRob Herring			bias-disable;
618724ba675SRob Herring		};
619724ba675SRob Herring
620724ba675SRob Herring		cmd-data-pins {
621724ba675SRob Herring			pins = "sdc1_cmd", "sdc1_data";
622724ba675SRob Herring			drive-strength = <10>;
623724ba675SRob Herring			bias-pull-up;
624724ba675SRob Herring		};
625724ba675SRob Herring	};
626724ba675SRob Herring
627724ba675SRob Herring	sdc2_on: sdc2-on-state {
628724ba675SRob Herring		clk-pins {
629724ba675SRob Herring			pins = "sdc2_clk";
630724ba675SRob Herring			drive-strength = <6>;
631724ba675SRob Herring			bias-disable;
632724ba675SRob Herring		};
633724ba675SRob Herring
634724ba675SRob Herring		cmd-data-pins {
635724ba675SRob Herring			pins = "sdc2_cmd", "sdc2_data";
636724ba675SRob Herring			drive-strength = <6>;
637724ba675SRob Herring			bias-pull-up;
638724ba675SRob Herring		};
639724ba675SRob Herring	};
640724ba675SRob Herring
641724ba675SRob Herring	mpu6515_pin: mpu6515-state {
642724ba675SRob Herring		pins = "gpio73";
643724ba675SRob Herring		function = "gpio";
644724ba675SRob Herring		bias-disable;
645724ba675SRob Herring	};
646724ba675SRob Herring
647724ba675SRob Herring	touch_pin: touch-state {
648724ba675SRob Herring		int-pins {
649724ba675SRob Herring			pins = "gpio5";
650724ba675SRob Herring			function = "gpio";
651724ba675SRob Herring
652724ba675SRob Herring			drive-strength = <2>;
653724ba675SRob Herring			bias-disable;
654724ba675SRob Herring		};
655724ba675SRob Herring
656724ba675SRob Herring		reset-pins {
657724ba675SRob Herring			pins = "gpio8";
658724ba675SRob Herring			function = "gpio";
659724ba675SRob Herring
660724ba675SRob Herring			drive-strength = <2>;
661724ba675SRob Herring			bias-pull-up;
662724ba675SRob Herring		};
663724ba675SRob Herring	};
664724ba675SRob Herring
665724ba675SRob Herring	panel_pin: panel-state {
666724ba675SRob Herring		pins = "gpio12";
667724ba675SRob Herring		function = "mdp_vsync";
668724ba675SRob Herring		drive-strength = <2>;
669724ba675SRob Herring		bias-disable;
670724ba675SRob Herring	};
671724ba675SRob Herring
672724ba675SRob Herring	bt_pin: bt-state {
673724ba675SRob Herring		hostwake-pins {
674724ba675SRob Herring			pins = "gpio42";
675724ba675SRob Herring			function = "gpio";
676724ba675SRob Herring		};
677724ba675SRob Herring
678724ba675SRob Herring		devwake-pins {
679724ba675SRob Herring			pins = "gpio62";
680724ba675SRob Herring			function = "gpio";
681724ba675SRob Herring		};
682724ba675SRob Herring
683724ba675SRob Herring		shutdown-pins {
684724ba675SRob Herring			pins = "gpio41";
685724ba675SRob Herring			function = "gpio";
686724ba675SRob Herring		};
687724ba675SRob Herring	};
688724ba675SRob Herring
689724ba675SRob Herring	vibrator_pin: vibrator-state {
690724ba675SRob Herring		core-pins {
691724ba675SRob Herring			pins = "gpio27";
692724ba675SRob Herring			function = "gp1_clk";
693724ba675SRob Herring			drive-strength = <6>;
694724ba675SRob Herring			bias-disable;
695724ba675SRob Herring		};
696724ba675SRob Herring
697724ba675SRob Herring		enable-pins {
698724ba675SRob Herring			pins = "gpio60";
699724ba675SRob Herring			function = "gpio";
700724ba675SRob Herring			drive-strength = <2>;
701724ba675SRob Herring			bias-disable;
702724ba675SRob Herring		};
703724ba675SRob Herring	};
704724ba675SRob Herring};
705724ba675SRob Herring
706724ba675SRob Herring&usb {
707724ba675SRob Herring	status = "okay";
708724ba675SRob Herring
709724ba675SRob Herring	phys = <&usb_hs1_phy>;
710724ba675SRob Herring	phy-select = <&tcsr 0xb000 0>;
711724ba675SRob Herring
712724ba675SRob Herring	extcon = <&charger>, <&usb_id>;
713724ba675SRob Herring	vbus-supply = <&usb_otg_vbus>;
714724ba675SRob Herring
715724ba675SRob Herring	hnp-disable;
716724ba675SRob Herring	srp-disable;
717724ba675SRob Herring	adp-disable;
718724ba675SRob Herring};
719724ba675SRob Herring
720724ba675SRob Herring&usb_hs1_phy {
721724ba675SRob Herring	status = "okay";
722724ba675SRob Herring
723724ba675SRob Herring	v1p8-supply = <&pm8941_l6>;
724724ba675SRob Herring	v3p3-supply = <&pm8941_l24>;
725724ba675SRob Herring
726724ba675SRob Herring	qcom,init-seq = /bits/ 8 <0x1 0x64>;
727724ba675SRob Herring};
728