xref: /linux/scripts/dtc/include-prefixes/arm/qcom/qcom-msm8974pro-sony-xperia-shinano-castor.dts (revision 724ba6751532055db75992fc6ae21c3e322e94a7)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2*724ba675SRob Herring#include "qcom-msm8974pro.dtsi"
3*724ba675SRob Herring#include "qcom-pm8841.dtsi"
4*724ba675SRob Herring#include "qcom-pm8941.dtsi"
5*724ba675SRob Herring#include <dt-bindings/input/input.h>
6*724ba675SRob Herring#include <dt-bindings/leds/common.h>
7*724ba675SRob Herring#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
8*724ba675SRob Herring
9*724ba675SRob Herring/ {
10*724ba675SRob Herring	model = "Sony Xperia Z2 Tablet";
11*724ba675SRob Herring	compatible = "sony,xperia-castor", "qcom,msm8974pro", "qcom,msm8974";
12*724ba675SRob Herring	chassis-type = "tablet";
13*724ba675SRob Herring
14*724ba675SRob Herring	aliases {
15*724ba675SRob Herring		serial0 = &blsp1_uart2;
16*724ba675SRob Herring		serial1 = &blsp2_uart1;
17*724ba675SRob Herring	};
18*724ba675SRob Herring
19*724ba675SRob Herring	chosen {
20*724ba675SRob Herring		stdout-path = "serial0:115200n8";
21*724ba675SRob Herring	};
22*724ba675SRob Herring
23*724ba675SRob Herring	gpio-keys {
24*724ba675SRob Herring		compatible = "gpio-keys";
25*724ba675SRob Herring
26*724ba675SRob Herring		pinctrl-names = "default";
27*724ba675SRob Herring		pinctrl-0 = <&gpio_keys_pin_a>;
28*724ba675SRob Herring
29*724ba675SRob Herring		key-volume-down {
30*724ba675SRob Herring			label = "volume_down";
31*724ba675SRob Herring			gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
32*724ba675SRob Herring			linux,input-type = <1>;
33*724ba675SRob Herring			linux,code = <KEY_VOLUMEDOWN>;
34*724ba675SRob Herring		};
35*724ba675SRob Herring
36*724ba675SRob Herring		key-camera-snapshot {
37*724ba675SRob Herring			label = "camera_snapshot";
38*724ba675SRob Herring			gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
39*724ba675SRob Herring			linux,input-type = <1>;
40*724ba675SRob Herring			linux,code = <KEY_CAMERA>;
41*724ba675SRob Herring		};
42*724ba675SRob Herring
43*724ba675SRob Herring		key-camera-focus {
44*724ba675SRob Herring			label = "camera_focus";
45*724ba675SRob Herring			gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
46*724ba675SRob Herring			linux,input-type = <1>;
47*724ba675SRob Herring			linux,code = <KEY_CAMERA_FOCUS>;
48*724ba675SRob Herring		};
49*724ba675SRob Herring
50*724ba675SRob Herring		key-volume-up {
51*724ba675SRob Herring			label = "volume_up";
52*724ba675SRob Herring			gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
53*724ba675SRob Herring			linux,input-type = <1>;
54*724ba675SRob Herring			linux,code = <KEY_VOLUMEUP>;
55*724ba675SRob Herring		};
56*724ba675SRob Herring	};
57*724ba675SRob Herring
58*724ba675SRob Herring	vreg_bl_vddio: lcd-backlight-vddio {
59*724ba675SRob Herring		compatible = "regulator-fixed";
60*724ba675SRob Herring		regulator-name = "vreg_bl_vddio";
61*724ba675SRob Herring		regulator-min-microvolt = <3150000>;
62*724ba675SRob Herring		regulator-max-microvolt = <3150000>;
63*724ba675SRob Herring
64*724ba675SRob Herring		gpio = <&tlmm 69 0>;
65*724ba675SRob Herring		enable-active-high;
66*724ba675SRob Herring
67*724ba675SRob Herring		vin-supply = <&pm8941_s3>;
68*724ba675SRob Herring		startup-delay-us = <70000>;
69*724ba675SRob Herring
70*724ba675SRob Herring		pinctrl-names = "default";
71*724ba675SRob Herring		pinctrl-0 = <&lcd_backlight_en_pin_a>;
72*724ba675SRob Herring	};
73*724ba675SRob Herring
74*724ba675SRob Herring	vreg_vsp: lcd-dcdc-regulator {
75*724ba675SRob Herring		compatible = "regulator-fixed";
76*724ba675SRob Herring		regulator-name = "vreg_vsp";
77*724ba675SRob Herring		regulator-min-microvolt = <5600000>;
78*724ba675SRob Herring		regulator-max-microvolt = <5600000>;
79*724ba675SRob Herring
80*724ba675SRob Herring		gpio = <&pm8941_gpios 20 GPIO_ACTIVE_HIGH>;
81*724ba675SRob Herring		enable-active-high;
82*724ba675SRob Herring
83*724ba675SRob Herring		pinctrl-names = "default";
84*724ba675SRob Herring		pinctrl-0 = <&lcd_dcdc_en_pin_a>;
85*724ba675SRob Herring	};
86*724ba675SRob Herring
87*724ba675SRob Herring	vreg_wlan: wlan-regulator {
88*724ba675SRob Herring		compatible = "regulator-fixed";
89*724ba675SRob Herring
90*724ba675SRob Herring		regulator-name = "wl-reg";
91*724ba675SRob Herring		regulator-min-microvolt = <3300000>;
92*724ba675SRob Herring		regulator-max-microvolt = <3300000>;
93*724ba675SRob Herring
94*724ba675SRob Herring		gpio = <&pm8941_gpios 18 GPIO_ACTIVE_HIGH>;
95*724ba675SRob Herring		enable-active-high;
96*724ba675SRob Herring
97*724ba675SRob Herring		pinctrl-names = "default";
98*724ba675SRob Herring		pinctrl-0 = <&wlan_regulator_pin>;
99*724ba675SRob Herring	};
100*724ba675SRob Herring};
101*724ba675SRob Herring
102*724ba675SRob Herring&blsp1_uart2 {
103*724ba675SRob Herring	status = "okay";
104*724ba675SRob Herring};
105*724ba675SRob Herring
106*724ba675SRob Herring&blsp2_i2c2 {
107*724ba675SRob Herring	status = "okay";
108*724ba675SRob Herring	clock-frequency = <355000>;
109*724ba675SRob Herring
110*724ba675SRob Herring	synaptics@2c {
111*724ba675SRob Herring		compatible = "syna,rmi4-i2c";
112*724ba675SRob Herring		reg = <0x2c>;
113*724ba675SRob Herring
114*724ba675SRob Herring		interrupt-parent = <&tlmm>;
115*724ba675SRob Herring		interrupts = <86 IRQ_TYPE_EDGE_FALLING>;
116*724ba675SRob Herring
117*724ba675SRob Herring		#address-cells = <1>;
118*724ba675SRob Herring		#size-cells = <0>;
119*724ba675SRob Herring
120*724ba675SRob Herring		vdd-supply = <&pm8941_l22>;
121*724ba675SRob Herring		vio-supply = <&pm8941_lvs3>;
122*724ba675SRob Herring
123*724ba675SRob Herring		pinctrl-names = "default";
124*724ba675SRob Herring		pinctrl-0 = <&ts_int_pin>;
125*724ba675SRob Herring
126*724ba675SRob Herring		syna,startup-delay-ms = <100>;
127*724ba675SRob Herring
128*724ba675SRob Herring		rmi-f01@1 {
129*724ba675SRob Herring			reg = <0x1>;
130*724ba675SRob Herring			syna,nosleep = <1>;
131*724ba675SRob Herring		};
132*724ba675SRob Herring
133*724ba675SRob Herring		rmi-f11@11 {
134*724ba675SRob Herring			reg = <0x11>;
135*724ba675SRob Herring			syna,f11-flip-x = <1>;
136*724ba675SRob Herring			syna,sensor-type = <1>;
137*724ba675SRob Herring		};
138*724ba675SRob Herring	};
139*724ba675SRob Herring};
140*724ba675SRob Herring
141*724ba675SRob Herring&blsp2_i2c5 {
142*724ba675SRob Herring	status = "okay";
143*724ba675SRob Herring	clock-frequency = <355000>;
144*724ba675SRob Herring
145*724ba675SRob Herring	lp8566_wled: backlight@2c {
146*724ba675SRob Herring		compatible = "ti,lp8556";
147*724ba675SRob Herring		reg = <0x2c>;
148*724ba675SRob Herring		power-supply = <&vreg_bl_vddio>;
149*724ba675SRob Herring
150*724ba675SRob Herring		bl-name = "backlight";
151*724ba675SRob Herring		dev-ctrl = /bits/ 8 <0x05>;
152*724ba675SRob Herring		init-brt = /bits/ 8 <0x3f>;
153*724ba675SRob Herring
154*724ba675SRob Herring		rom-a0h {
155*724ba675SRob Herring			rom-addr = /bits/ 8 <0xa0>;
156*724ba675SRob Herring			rom-val = /bits/ 8 <0xff>;
157*724ba675SRob Herring		};
158*724ba675SRob Herring		rom-a1h {
159*724ba675SRob Herring			rom-addr = /bits/ 8 <0xa1>;
160*724ba675SRob Herring			rom-val = /bits/ 8 <0x3f>;
161*724ba675SRob Herring		};
162*724ba675SRob Herring		rom-a2h {
163*724ba675SRob Herring			rom-addr = /bits/ 8 <0xa2>;
164*724ba675SRob Herring			rom-val = /bits/ 8 <0x20>;
165*724ba675SRob Herring		};
166*724ba675SRob Herring		rom-a3h {
167*724ba675SRob Herring			rom-addr = /bits/ 8 <0xa3>;
168*724ba675SRob Herring			rom-val = /bits/ 8 <0x5e>;
169*724ba675SRob Herring		};
170*724ba675SRob Herring		rom-a4h {
171*724ba675SRob Herring			rom-addr = /bits/ 8 <0xa4>;
172*724ba675SRob Herring			rom-val = /bits/ 8 <0x02>;
173*724ba675SRob Herring		};
174*724ba675SRob Herring		rom-a5h {
175*724ba675SRob Herring			rom-addr = /bits/ 8 <0xa5>;
176*724ba675SRob Herring			rom-val = /bits/ 8 <0x04>;
177*724ba675SRob Herring		};
178*724ba675SRob Herring		rom-a6h {
179*724ba675SRob Herring			rom-addr = /bits/ 8 <0xa6>;
180*724ba675SRob Herring			rom-val = /bits/ 8 <0x80>;
181*724ba675SRob Herring		};
182*724ba675SRob Herring		rom-a7h {
183*724ba675SRob Herring			rom-addr = /bits/ 8 <0xa7>;
184*724ba675SRob Herring			rom-val = /bits/ 8 <0xf7>;
185*724ba675SRob Herring		};
186*724ba675SRob Herring		rom-a9h {
187*724ba675SRob Herring			rom-addr = /bits/ 8 <0xa9>;
188*724ba675SRob Herring			rom-val = /bits/ 8 <0x80>;
189*724ba675SRob Herring		};
190*724ba675SRob Herring		rom-aah {
191*724ba675SRob Herring			rom-addr = /bits/ 8 <0xaa>;
192*724ba675SRob Herring			rom-val = /bits/ 8 <0x0f>;
193*724ba675SRob Herring		};
194*724ba675SRob Herring		rom-aeh {
195*724ba675SRob Herring			rom-addr = /bits/ 8 <0xae>;
196*724ba675SRob Herring			rom-val = /bits/ 8 <0x0f>;
197*724ba675SRob Herring		};
198*724ba675SRob Herring	};
199*724ba675SRob Herring};
200*724ba675SRob Herring
201*724ba675SRob Herring&blsp2_uart1 {
202*724ba675SRob Herring	status = "okay";
203*724ba675SRob Herring
204*724ba675SRob Herring	bluetooth {
205*724ba675SRob Herring		compatible = "brcm,bcm43438-bt";
206*724ba675SRob Herring		max-speed = <3000000>;
207*724ba675SRob Herring
208*724ba675SRob Herring		pinctrl-names = "default";
209*724ba675SRob Herring		pinctrl-0 = <&bt_host_wake_pin>, <&bt_dev_wake_pin>, <&bt_reg_on_pin>;
210*724ba675SRob Herring
211*724ba675SRob Herring		host-wakeup-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>;
212*724ba675SRob Herring		device-wakeup-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>;
213*724ba675SRob Herring		shutdown-gpios = <&pm8941_gpios 16 GPIO_ACTIVE_HIGH>;
214*724ba675SRob Herring	};
215*724ba675SRob Herring};
216*724ba675SRob Herring
217*724ba675SRob Herring&pm8941_coincell {
218*724ba675SRob Herring	status = "okay";
219*724ba675SRob Herring
220*724ba675SRob Herring	qcom,rset-ohms = <2100>;
221*724ba675SRob Herring	qcom,vset-millivolts = <3000>;
222*724ba675SRob Herring};
223*724ba675SRob Herring
224*724ba675SRob Herring&pm8941_gpios {
225*724ba675SRob Herring	gpio_keys_pin_a: gpio-keys-active-state {
226*724ba675SRob Herring		pins = "gpio2", "gpio5";
227*724ba675SRob Herring		function = "normal";
228*724ba675SRob Herring
229*724ba675SRob Herring		bias-pull-up;
230*724ba675SRob Herring		power-source = <PM8941_GPIO_S3>;
231*724ba675SRob Herring	};
232*724ba675SRob Herring
233*724ba675SRob Herring	bt_reg_on_pin: bt-reg-on-state {
234*724ba675SRob Herring		pins = "gpio16";
235*724ba675SRob Herring		function = "normal";
236*724ba675SRob Herring
237*724ba675SRob Herring		output-low;
238*724ba675SRob Herring		power-source = <PM8941_GPIO_S3>;
239*724ba675SRob Herring	};
240*724ba675SRob Herring
241*724ba675SRob Herring	wlan_sleep_clk_pin: wl-sleep-clk-state {
242*724ba675SRob Herring		pins = "gpio17";
243*724ba675SRob Herring		function = "func2";
244*724ba675SRob Herring
245*724ba675SRob Herring		output-high;
246*724ba675SRob Herring		power-source = <PM8941_GPIO_S3>;
247*724ba675SRob Herring	};
248*724ba675SRob Herring
249*724ba675SRob Herring	wlan_regulator_pin: wl-reg-active-state {
250*724ba675SRob Herring		pins = "gpio18";
251*724ba675SRob Herring		function = "normal";
252*724ba675SRob Herring
253*724ba675SRob Herring		bias-disable;
254*724ba675SRob Herring		power-source = <PM8941_GPIO_S3>;
255*724ba675SRob Herring	};
256*724ba675SRob Herring
257*724ba675SRob Herring	lcd_dcdc_en_pin_a: lcd-dcdc-en-active-state {
258*724ba675SRob Herring		pins = "gpio20";
259*724ba675SRob Herring		function = "normal";
260*724ba675SRob Herring
261*724ba675SRob Herring		bias-disable;
262*724ba675SRob Herring		power-source = <PM8941_GPIO_S3>;
263*724ba675SRob Herring		input-disable;
264*724ba675SRob Herring		output-low;
265*724ba675SRob Herring	};
266*724ba675SRob Herring
267*724ba675SRob Herring};
268*724ba675SRob Herring
269*724ba675SRob Herring&pm8941_lpg {
270*724ba675SRob Herring	status = "okay";
271*724ba675SRob Herring
272*724ba675SRob Herring	qcom,power-source = <1>;
273*724ba675SRob Herring
274*724ba675SRob Herring	multi-led {
275*724ba675SRob Herring		color = <LED_COLOR_ID_RGB>;
276*724ba675SRob Herring		function = LED_FUNCTION_STATUS;
277*724ba675SRob Herring
278*724ba675SRob Herring		#address-cells = <1>;
279*724ba675SRob Herring		#size-cells = <0>;
280*724ba675SRob Herring
281*724ba675SRob Herring		led@5 {
282*724ba675SRob Herring			reg = <5>;
283*724ba675SRob Herring			color = <LED_COLOR_ID_BLUE>;
284*724ba675SRob Herring		};
285*724ba675SRob Herring
286*724ba675SRob Herring		led@6 {
287*724ba675SRob Herring			reg = <6>;
288*724ba675SRob Herring			color = <LED_COLOR_ID_GREEN>;
289*724ba675SRob Herring		};
290*724ba675SRob Herring
291*724ba675SRob Herring		led@7 {
292*724ba675SRob Herring			reg = <7>;
293*724ba675SRob Herring			color = <LED_COLOR_ID_RED>;
294*724ba675SRob Herring		};
295*724ba675SRob Herring	};
296*724ba675SRob Herring};
297*724ba675SRob Herring
298*724ba675SRob Herring&remoteproc_adsp {
299*724ba675SRob Herring	cx-supply = <&pm8841_s2>;
300*724ba675SRob Herring};
301*724ba675SRob Herring
302*724ba675SRob Herring&remoteproc_mss {
303*724ba675SRob Herring	cx-supply = <&pm8841_s2>;
304*724ba675SRob Herring	mss-supply = <&pm8841_s3>;
305*724ba675SRob Herring	mx-supply = <&pm8841_s1>;
306*724ba675SRob Herring	pll-supply = <&pm8941_l12>;
307*724ba675SRob Herring};
308*724ba675SRob Herring
309*724ba675SRob Herring&rpm_requests {
310*724ba675SRob Herring	regulators-0 {
311*724ba675SRob Herring		compatible = "qcom,rpm-pm8841-regulators";
312*724ba675SRob Herring
313*724ba675SRob Herring		pm8841_s1: s1 {
314*724ba675SRob Herring			regulator-min-microvolt = <675000>;
315*724ba675SRob Herring			regulator-max-microvolt = <1050000>;
316*724ba675SRob Herring		};
317*724ba675SRob Herring
318*724ba675SRob Herring		pm8841_s2: s2 {
319*724ba675SRob Herring			regulator-min-microvolt = <500000>;
320*724ba675SRob Herring			regulator-max-microvolt = <1050000>;
321*724ba675SRob Herring		};
322*724ba675SRob Herring
323*724ba675SRob Herring		pm8841_s3: s3 {
324*724ba675SRob Herring			regulator-min-microvolt = <500000>;
325*724ba675SRob Herring			regulator-max-microvolt = <1050000>;
326*724ba675SRob Herring		};
327*724ba675SRob Herring
328*724ba675SRob Herring		pm8841_s4: s4 {
329*724ba675SRob Herring			regulator-min-microvolt = <500000>;
330*724ba675SRob Herring			regulator-max-microvolt = <1050000>;
331*724ba675SRob Herring		};
332*724ba675SRob Herring	};
333*724ba675SRob Herring
334*724ba675SRob Herring	regulators-1 {
335*724ba675SRob Herring		compatible = "qcom,rpm-pm8941-regulators";
336*724ba675SRob Herring
337*724ba675SRob Herring		vdd_l1_l3-supply = <&pm8941_s1>;
338*724ba675SRob Herring		vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
339*724ba675SRob Herring		vdd_l4_l11-supply = <&pm8941_s1>;
340*724ba675SRob Herring		vdd_l5_l7-supply = <&pm8941_s2>;
341*724ba675SRob Herring		vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
342*724ba675SRob Herring		vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
343*724ba675SRob Herring		vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
344*724ba675SRob Herring		vdd_l21-supply = <&vreg_boost>;
345*724ba675SRob Herring
346*724ba675SRob Herring		pm8941_s1: s1 {
347*724ba675SRob Herring			regulator-min-microvolt = <1300000>;
348*724ba675SRob Herring			regulator-max-microvolt = <1300000>;
349*724ba675SRob Herring			regulator-always-on;
350*724ba675SRob Herring			regulator-boot-on;
351*724ba675SRob Herring		};
352*724ba675SRob Herring
353*724ba675SRob Herring		pm8941_s2: s2 {
354*724ba675SRob Herring			regulator-min-microvolt = <2150000>;
355*724ba675SRob Herring			regulator-max-microvolt = <2150000>;
356*724ba675SRob Herring			regulator-boot-on;
357*724ba675SRob Herring		};
358*724ba675SRob Herring
359*724ba675SRob Herring		pm8941_s3: s3 {
360*724ba675SRob Herring			regulator-min-microvolt = <1800000>;
361*724ba675SRob Herring			regulator-max-microvolt = <1800000>;
362*724ba675SRob Herring			regulator-system-load = <154000>;
363*724ba675SRob Herring			regulator-always-on;
364*724ba675SRob Herring			regulator-boot-on;
365*724ba675SRob Herring		};
366*724ba675SRob Herring
367*724ba675SRob Herring		pm8941_s4: s4 {
368*724ba675SRob Herring			regulator-min-microvolt = <5000000>;
369*724ba675SRob Herring			regulator-max-microvolt = <5000000>;
370*724ba675SRob Herring		};
371*724ba675SRob Herring
372*724ba675SRob Herring		pm8941_l1: l1 {
373*724ba675SRob Herring			regulator-min-microvolt = <1225000>;
374*724ba675SRob Herring			regulator-max-microvolt = <1225000>;
375*724ba675SRob Herring			regulator-always-on;
376*724ba675SRob Herring			regulator-boot-on;
377*724ba675SRob Herring		};
378*724ba675SRob Herring
379*724ba675SRob Herring		pm8941_l2: l2 {
380*724ba675SRob Herring			regulator-min-microvolt = <1200000>;
381*724ba675SRob Herring			regulator-max-microvolt = <1200000>;
382*724ba675SRob Herring		};
383*724ba675SRob Herring
384*724ba675SRob Herring		pm8941_l3: l3 {
385*724ba675SRob Herring			regulator-min-microvolt = <1200000>;
386*724ba675SRob Herring			regulator-max-microvolt = <1200000>;
387*724ba675SRob Herring		};
388*724ba675SRob Herring
389*724ba675SRob Herring		pm8941_l4: l4 {
390*724ba675SRob Herring			regulator-min-microvolt = <1225000>;
391*724ba675SRob Herring			regulator-max-microvolt = <1225000>;
392*724ba675SRob Herring		};
393*724ba675SRob Herring
394*724ba675SRob Herring		pm8941_l5: l5 {
395*724ba675SRob Herring			regulator-min-microvolt = <1800000>;
396*724ba675SRob Herring			regulator-max-microvolt = <1800000>;
397*724ba675SRob Herring		};
398*724ba675SRob Herring
399*724ba675SRob Herring		pm8941_l6: l6 {
400*724ba675SRob Herring			regulator-min-microvolt = <1800000>;
401*724ba675SRob Herring			regulator-max-microvolt = <1800000>;
402*724ba675SRob Herring			regulator-boot-on;
403*724ba675SRob Herring		};
404*724ba675SRob Herring
405*724ba675SRob Herring		pm8941_l7: l7 {
406*724ba675SRob Herring			regulator-min-microvolt = <1800000>;
407*724ba675SRob Herring			regulator-max-microvolt = <1800000>;
408*724ba675SRob Herring			regulator-boot-on;
409*724ba675SRob Herring		};
410*724ba675SRob Herring
411*724ba675SRob Herring		pm8941_l8: l8 {
412*724ba675SRob Herring			regulator-min-microvolt = <1800000>;
413*724ba675SRob Herring			regulator-max-microvolt = <1800000>;
414*724ba675SRob Herring		};
415*724ba675SRob Herring
416*724ba675SRob Herring		pm8941_l9: l9 {
417*724ba675SRob Herring			regulator-min-microvolt = <1800000>;
418*724ba675SRob Herring			regulator-max-microvolt = <2950000>;
419*724ba675SRob Herring		};
420*724ba675SRob Herring
421*724ba675SRob Herring		pm8941_l11: l11 {
422*724ba675SRob Herring			regulator-min-microvolt = <1300000>;
423*724ba675SRob Herring			regulator-max-microvolt = <1350000>;
424*724ba675SRob Herring		};
425*724ba675SRob Herring
426*724ba675SRob Herring		pm8941_l12: l12 {
427*724ba675SRob Herring			regulator-min-microvolt = <1800000>;
428*724ba675SRob Herring			regulator-max-microvolt = <1800000>;
429*724ba675SRob Herring			regulator-always-on;
430*724ba675SRob Herring			regulator-boot-on;
431*724ba675SRob Herring		};
432*724ba675SRob Herring
433*724ba675SRob Herring		pm8941_l13: l13 {
434*724ba675SRob Herring			regulator-min-microvolt = <1800000>;
435*724ba675SRob Herring			regulator-max-microvolt = <2950000>;
436*724ba675SRob Herring			regulator-boot-on;
437*724ba675SRob Herring		};
438*724ba675SRob Herring
439*724ba675SRob Herring		pm8941_l14: l14 {
440*724ba675SRob Herring			regulator-min-microvolt = <1800000>;
441*724ba675SRob Herring			regulator-max-microvolt = <1800000>;
442*724ba675SRob Herring		};
443*724ba675SRob Herring
444*724ba675SRob Herring		pm8941_l15: l15 {
445*724ba675SRob Herring			regulator-min-microvolt = <2050000>;
446*724ba675SRob Herring			regulator-max-microvolt = <2050000>;
447*724ba675SRob Herring		};
448*724ba675SRob Herring
449*724ba675SRob Herring		pm8941_l16: l16 {
450*724ba675SRob Herring			regulator-min-microvolt = <2700000>;
451*724ba675SRob Herring			regulator-max-microvolt = <2700000>;
452*724ba675SRob Herring		};
453*724ba675SRob Herring
454*724ba675SRob Herring		pm8941_l17: l17 {
455*724ba675SRob Herring			regulator-min-microvolt = <2700000>;
456*724ba675SRob Herring			regulator-max-microvolt = <2700000>;
457*724ba675SRob Herring		};
458*724ba675SRob Herring
459*724ba675SRob Herring		pm8941_l18: l18 {
460*724ba675SRob Herring			regulator-min-microvolt = <2850000>;
461*724ba675SRob Herring			regulator-max-microvolt = <2850000>;
462*724ba675SRob Herring		};
463*724ba675SRob Herring
464*724ba675SRob Herring		pm8941_l19: l19 {
465*724ba675SRob Herring			regulator-min-microvolt = <2850000>;
466*724ba675SRob Herring			regulator-max-microvolt = <2850000>;
467*724ba675SRob Herring		};
468*724ba675SRob Herring
469*724ba675SRob Herring		pm8941_l20: l20 {
470*724ba675SRob Herring			regulator-min-microvolt = <2950000>;
471*724ba675SRob Herring			regulator-max-microvolt = <2950000>;
472*724ba675SRob Herring			regulator-system-load = <500000>;
473*724ba675SRob Herring			regulator-allow-set-load;
474*724ba675SRob Herring			regulator-boot-on;
475*724ba675SRob Herring		};
476*724ba675SRob Herring
477*724ba675SRob Herring		pm8941_l21: l21 {
478*724ba675SRob Herring			regulator-min-microvolt = <2950000>;
479*724ba675SRob Herring			regulator-max-microvolt = <2950000>;
480*724ba675SRob Herring			regulator-boot-on;
481*724ba675SRob Herring		};
482*724ba675SRob Herring
483*724ba675SRob Herring		pm8941_l22: l22 {
484*724ba675SRob Herring			regulator-min-microvolt = <3000000>;
485*724ba675SRob Herring			regulator-max-microvolt = <3000000>;
486*724ba675SRob Herring		};
487*724ba675SRob Herring
488*724ba675SRob Herring		pm8941_l23: l23 {
489*724ba675SRob Herring			regulator-min-microvolt = <2800000>;
490*724ba675SRob Herring			regulator-max-microvolt = <2800000>;
491*724ba675SRob Herring		};
492*724ba675SRob Herring
493*724ba675SRob Herring		pm8941_l24: l24 {
494*724ba675SRob Herring			regulator-min-microvolt = <3075000>;
495*724ba675SRob Herring			regulator-max-microvolt = <3075000>;
496*724ba675SRob Herring			regulator-boot-on;
497*724ba675SRob Herring		};
498*724ba675SRob Herring
499*724ba675SRob Herring		pm8941_lvs3: lvs3 {};
500*724ba675SRob Herring	};
501*724ba675SRob Herring};
502*724ba675SRob Herring
503*724ba675SRob Herring&sdhc_1 {
504*724ba675SRob Herring	status = "okay";
505*724ba675SRob Herring
506*724ba675SRob Herring	vmmc-supply = <&pm8941_l20>;
507*724ba675SRob Herring	vqmmc-supply = <&pm8941_s3>;
508*724ba675SRob Herring
509*724ba675SRob Herring	pinctrl-names = "default", "sleep";
510*724ba675SRob Herring	pinctrl-0 = <&sdc1_on>;
511*724ba675SRob Herring	pinctrl-1 = <&sdc1_off>;
512*724ba675SRob Herring};
513*724ba675SRob Herring
514*724ba675SRob Herring&sdhc_2 {
515*724ba675SRob Herring	status = "okay";
516*724ba675SRob Herring
517*724ba675SRob Herring	vmmc-supply = <&pm8941_l21>;
518*724ba675SRob Herring	vqmmc-supply = <&pm8941_l13>;
519*724ba675SRob Herring
520*724ba675SRob Herring	cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
521*724ba675SRob Herring
522*724ba675SRob Herring	pinctrl-names = "default", "sleep";
523*724ba675SRob Herring	pinctrl-0 = <&sdc2_on>;
524*724ba675SRob Herring	pinctrl-1 = <&sdc2_off>;
525*724ba675SRob Herring};
526*724ba675SRob Herring
527*724ba675SRob Herring&sdhc_3 {
528*724ba675SRob Herring	status = "okay";
529*724ba675SRob Herring
530*724ba675SRob Herring	max-frequency = <100000000>;
531*724ba675SRob Herring	vmmc-supply = <&vreg_wlan>;
532*724ba675SRob Herring	non-removable;
533*724ba675SRob Herring
534*724ba675SRob Herring	pinctrl-names = "default";
535*724ba675SRob Herring	pinctrl-0 = <&sdc3_on>;
536*724ba675SRob Herring
537*724ba675SRob Herring	#address-cells = <1>;
538*724ba675SRob Herring	#size-cells = <0>;
539*724ba675SRob Herring
540*724ba675SRob Herring	bcrmf@1 {
541*724ba675SRob Herring		compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
542*724ba675SRob Herring		reg = <1>;
543*724ba675SRob Herring
544*724ba675SRob Herring		brcm,drive-strength = <10>;
545*724ba675SRob Herring
546*724ba675SRob Herring		pinctrl-names = "default";
547*724ba675SRob Herring		pinctrl-0 = <&wlan_sleep_clk_pin>;
548*724ba675SRob Herring	};
549*724ba675SRob Herring};
550*724ba675SRob Herring
551*724ba675SRob Herring&smbb {
552*724ba675SRob Herring	qcom,fast-charge-safe-current = <1500000>;
553*724ba675SRob Herring	qcom,fast-charge-current-limit = <1500000>;
554*724ba675SRob Herring	qcom,dc-current-limit = <1800000>;
555*724ba675SRob Herring	usb-charge-current-limit = <1800000>;
556*724ba675SRob Herring	qcom,fast-charge-safe-voltage = <4400000>;
557*724ba675SRob Herring	qcom,fast-charge-high-threshold-voltage = <4350000>;
558*724ba675SRob Herring	qcom,fast-charge-low-threshold-voltage = <3400000>;
559*724ba675SRob Herring	qcom,auto-recharge-threshold-voltage = <4200000>;
560*724ba675SRob Herring	qcom,minimum-input-voltage = <4300000>;
561*724ba675SRob Herring};
562*724ba675SRob Herring
563*724ba675SRob Herring&tlmm {
564*724ba675SRob Herring	lcd_backlight_en_pin_a: lcd-backlight-vddio-state {
565*724ba675SRob Herring		pins = "gpio69";
566*724ba675SRob Herring		function = "gpio";
567*724ba675SRob Herring		drive-strength = <10>;
568*724ba675SRob Herring		output-low;
569*724ba675SRob Herring		bias-disable;
570*724ba675SRob Herring	};
571*724ba675SRob Herring
572*724ba675SRob Herring	sdc1_on: sdc1-on-state {
573*724ba675SRob Herring		clk-pins {
574*724ba675SRob Herring			pins = "sdc1_clk";
575*724ba675SRob Herring			drive-strength = <16>;
576*724ba675SRob Herring			bias-disable;
577*724ba675SRob Herring		};
578*724ba675SRob Herring
579*724ba675SRob Herring		cmd-data-pins {
580*724ba675SRob Herring			pins = "sdc1_cmd", "sdc1_data";
581*724ba675SRob Herring			drive-strength = <10>;
582*724ba675SRob Herring			bias-pull-up;
583*724ba675SRob Herring		};
584*724ba675SRob Herring	};
585*724ba675SRob Herring
586*724ba675SRob Herring	sdc2_on: sdc2-on-state {
587*724ba675SRob Herring		clk-pins {
588*724ba675SRob Herring			pins = "sdc2_clk";
589*724ba675SRob Herring			drive-strength = <6>;
590*724ba675SRob Herring			bias-disable;
591*724ba675SRob Herring		};
592*724ba675SRob Herring
593*724ba675SRob Herring		cmd-data-pins {
594*724ba675SRob Herring			pins = "sdc2_cmd", "sdc2_data";
595*724ba675SRob Herring			drive-strength = <6>;
596*724ba675SRob Herring			bias-pull-up;
597*724ba675SRob Herring		};
598*724ba675SRob Herring
599*724ba675SRob Herring		cd-pins {
600*724ba675SRob Herring			pins = "gpio62";
601*724ba675SRob Herring			function = "gpio";
602*724ba675SRob Herring			drive-strength = <2>;
603*724ba675SRob Herring			bias-disable;
604*724ba675SRob Herring		};
605*724ba675SRob Herring	};
606*724ba675SRob Herring
607*724ba675SRob Herring	sdc3_on: sdc3-on-state {
608*724ba675SRob Herring		clk-pins {
609*724ba675SRob Herring			pins = "gpio40";
610*724ba675SRob Herring			function = "sdc3";
611*724ba675SRob Herring			drive-strength = <10>;
612*724ba675SRob Herring			bias-disable;
613*724ba675SRob Herring		};
614*724ba675SRob Herring
615*724ba675SRob Herring		cmd-pins {
616*724ba675SRob Herring			pins = "gpio39";
617*724ba675SRob Herring			function = "sdc3";
618*724ba675SRob Herring			drive-strength = <10>;
619*724ba675SRob Herring			bias-pull-up;
620*724ba675SRob Herring		};
621*724ba675SRob Herring
622*724ba675SRob Herring		data-pins {
623*724ba675SRob Herring			pins = "gpio35", "gpio36", "gpio37", "gpio38";
624*724ba675SRob Herring			function = "sdc3";
625*724ba675SRob Herring			drive-strength = <10>;
626*724ba675SRob Herring			bias-pull-up;
627*724ba675SRob Herring		};
628*724ba675SRob Herring	};
629*724ba675SRob Herring
630*724ba675SRob Herring	ts_int_pin: ts-int-pin-state {
631*724ba675SRob Herring		pins = "gpio86";
632*724ba675SRob Herring		function = "gpio";
633*724ba675SRob Herring		drive-strength = <2>;
634*724ba675SRob Herring		bias-disable;
635*724ba675SRob Herring		input-enable;
636*724ba675SRob Herring	};
637*724ba675SRob Herring
638*724ba675SRob Herring	bt_host_wake_pin: bt-host-wake-state {
639*724ba675SRob Herring		pins = "gpio95";
640*724ba675SRob Herring		function = "gpio";
641*724ba675SRob Herring		drive-strength = <2>;
642*724ba675SRob Herring		bias-disable;
643*724ba675SRob Herring		output-low;
644*724ba675SRob Herring	};
645*724ba675SRob Herring
646*724ba675SRob Herring	bt_dev_wake_pin: bt-dev-wake-state {
647*724ba675SRob Herring		pins = "gpio96";
648*724ba675SRob Herring		function = "gpio";
649*724ba675SRob Herring		drive-strength = <2>;
650*724ba675SRob Herring		bias-disable;
651*724ba675SRob Herring	};
652*724ba675SRob Herring};
653*724ba675SRob Herring
654*724ba675SRob Herring&usb {
655*724ba675SRob Herring	status = "okay";
656*724ba675SRob Herring
657*724ba675SRob Herring	phys = <&usb_hs1_phy>;
658*724ba675SRob Herring	phy-select = <&tcsr 0xb000 0>;
659*724ba675SRob Herring	extcon = <&smbb>, <&usb_id>;
660*724ba675SRob Herring	vbus-supply = <&chg_otg>;
661*724ba675SRob Herring
662*724ba675SRob Herring	hnp-disable;
663*724ba675SRob Herring	srp-disable;
664*724ba675SRob Herring	adp-disable;
665*724ba675SRob Herring};
666*724ba675SRob Herring
667*724ba675SRob Herring&usb_hs1_phy {
668*724ba675SRob Herring	status = "okay";
669*724ba675SRob Herring
670*724ba675SRob Herring	v1p8-supply = <&pm8941_l6>;
671*724ba675SRob Herring	v3p3-supply = <&pm8941_l24>;
672*724ba675SRob Herring
673*724ba675SRob Herring	extcon = <&smbb>;
674*724ba675SRob Herring	qcom,init-seq = /bits/ 8 <0x1 0x64>;
675*724ba675SRob Herring};
676