xref: /linux/arch/arm/boot/dts/qcom/qcom-msm8974pro-sony-xperia-shinano-castor.dts (revision c0b9c616e881a1ea6b158dcad73e2198c483a56a)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring#include "qcom-msm8974pro.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 = "Sony Xperia Z2 Tablet";
11724ba675SRob Herring	compatible = "sony,xperia-castor", "qcom,msm8974pro", "qcom,msm8974";
12724ba675SRob Herring	chassis-type = "tablet";
13724ba675SRob Herring
14724ba675SRob Herring	aliases {
15724ba675SRob Herring		serial0 = &blsp1_uart2;
16724ba675SRob Herring		serial1 = &blsp2_uart1;
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-0 = <&gpio_keys_pin_a>;
27*c0b9c616SLuca Weiss		pinctrl-names = "default";
28724ba675SRob Herring
29724ba675SRob Herring		key-volume-down {
30724ba675SRob Herring			label = "volume_down";
31724ba675SRob Herring			gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
32724ba675SRob Herring			linux,code = <KEY_VOLUMEDOWN>;
33724ba675SRob Herring		};
34724ba675SRob Herring
35724ba675SRob Herring		key-camera-snapshot {
36724ba675SRob Herring			label = "camera_snapshot";
37724ba675SRob Herring			gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
38724ba675SRob Herring			linux,code = <KEY_CAMERA>;
39724ba675SRob Herring		};
40724ba675SRob Herring
41724ba675SRob Herring		key-camera-focus {
42724ba675SRob Herring			label = "camera_focus";
43724ba675SRob Herring			gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
44724ba675SRob Herring			linux,code = <KEY_CAMERA_FOCUS>;
45724ba675SRob Herring		};
46724ba675SRob Herring
47724ba675SRob Herring		key-volume-up {
48724ba675SRob Herring			label = "volume_up";
49724ba675SRob Herring			gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
50724ba675SRob Herring			linux,code = <KEY_VOLUMEUP>;
51724ba675SRob Herring		};
52724ba675SRob Herring	};
53724ba675SRob Herring
54724ba675SRob Herring	vreg_bl_vddio: lcd-backlight-vddio {
55724ba675SRob Herring		compatible = "regulator-fixed";
56724ba675SRob Herring		regulator-name = "vreg_bl_vddio";
57724ba675SRob Herring		regulator-min-microvolt = <3150000>;
58724ba675SRob Herring		regulator-max-microvolt = <3150000>;
59724ba675SRob Herring
60724ba675SRob Herring		gpio = <&tlmm 69 0>;
61724ba675SRob Herring		enable-active-high;
62724ba675SRob Herring
63724ba675SRob Herring		vin-supply = <&pm8941_s3>;
64724ba675SRob Herring		startup-delay-us = <70000>;
65724ba675SRob Herring
66724ba675SRob Herring		pinctrl-0 = <&lcd_backlight_en_pin_a>;
67*c0b9c616SLuca Weiss		pinctrl-names = "default";
68724ba675SRob Herring	};
69724ba675SRob Herring
70724ba675SRob Herring	vreg_vsp: lcd-dcdc-regulator {
71724ba675SRob Herring		compatible = "regulator-fixed";
72724ba675SRob Herring		regulator-name = "vreg_vsp";
73724ba675SRob Herring		regulator-min-microvolt = <5600000>;
74724ba675SRob Herring		regulator-max-microvolt = <5600000>;
75724ba675SRob Herring
76724ba675SRob Herring		gpio = <&pm8941_gpios 20 GPIO_ACTIVE_HIGH>;
77724ba675SRob Herring		enable-active-high;
78724ba675SRob Herring
79724ba675SRob Herring		pinctrl-0 = <&lcd_dcdc_en_pin_a>;
80*c0b9c616SLuca Weiss		pinctrl-names = "default";
81724ba675SRob Herring	};
82724ba675SRob Herring
8374eafc5fSDmitry Baryshkov	vreg_boost: vreg-boost {
8474eafc5fSDmitry Baryshkov		compatible = "regulator-fixed";
8574eafc5fSDmitry Baryshkov
8674eafc5fSDmitry Baryshkov		regulator-name = "vreg-boost";
8774eafc5fSDmitry Baryshkov		regulator-min-microvolt = <3150000>;
8874eafc5fSDmitry Baryshkov		regulator-max-microvolt = <3150000>;
8974eafc5fSDmitry Baryshkov
9074eafc5fSDmitry Baryshkov		regulator-always-on;
9174eafc5fSDmitry Baryshkov		regulator-boot-on;
9274eafc5fSDmitry Baryshkov
9374eafc5fSDmitry Baryshkov		gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
9474eafc5fSDmitry Baryshkov		enable-active-high;
9574eafc5fSDmitry Baryshkov
9674eafc5fSDmitry Baryshkov		pinctrl-names = "default";
9774eafc5fSDmitry Baryshkov		pinctrl-0 = <&boost_bypass_n_pin>;
9874eafc5fSDmitry Baryshkov	};
9974eafc5fSDmitry Baryshkov
10074eafc5fSDmitry Baryshkov	vreg_vph_pwr: vreg-vph-pwr {
10174eafc5fSDmitry Baryshkov		compatible = "regulator-fixed";
10274eafc5fSDmitry Baryshkov		regulator-name = "vph-pwr";
10374eafc5fSDmitry Baryshkov
10474eafc5fSDmitry Baryshkov		regulator-min-microvolt = <3600000>;
10574eafc5fSDmitry Baryshkov		regulator-max-microvolt = <3600000>;
10674eafc5fSDmitry Baryshkov
10774eafc5fSDmitry Baryshkov		regulator-always-on;
10874eafc5fSDmitry Baryshkov	};
10974eafc5fSDmitry Baryshkov
110724ba675SRob Herring	vreg_wlan: wlan-regulator {
111724ba675SRob Herring		compatible = "regulator-fixed";
112724ba675SRob Herring
113724ba675SRob Herring		regulator-name = "wl-reg";
114724ba675SRob Herring		regulator-min-microvolt = <3300000>;
115724ba675SRob Herring		regulator-max-microvolt = <3300000>;
116724ba675SRob Herring
117724ba675SRob Herring		gpio = <&pm8941_gpios 18 GPIO_ACTIVE_HIGH>;
118724ba675SRob Herring		enable-active-high;
119724ba675SRob Herring
120724ba675SRob Herring		pinctrl-0 = <&wlan_regulator_pin>;
121*c0b9c616SLuca Weiss		pinctrl-names = "default";
122724ba675SRob Herring	};
123724ba675SRob Herring};
124724ba675SRob Herring
125724ba675SRob Herring&blsp1_uart2 {
126724ba675SRob Herring	status = "okay";
127724ba675SRob Herring};
128724ba675SRob Herring
129724ba675SRob Herring&blsp2_i2c2 {
130724ba675SRob Herring	clock-frequency = <355000>;
131724ba675SRob Herring
132*c0b9c616SLuca Weiss	status = "okay";
133*c0b9c616SLuca Weiss
134724ba675SRob Herring	synaptics@2c {
135724ba675SRob Herring		compatible = "syna,rmi4-i2c";
136724ba675SRob Herring		reg = <0x2c>;
137724ba675SRob Herring
138724ba675SRob Herring		interrupt-parent = <&tlmm>;
139724ba675SRob Herring		interrupts = <86 IRQ_TYPE_EDGE_FALLING>;
140724ba675SRob Herring
141724ba675SRob Herring		#address-cells = <1>;
142724ba675SRob Herring		#size-cells = <0>;
143724ba675SRob Herring
144724ba675SRob Herring		vdd-supply = <&pm8941_l22>;
145724ba675SRob Herring		vio-supply = <&pm8941_lvs3>;
146724ba675SRob Herring
147724ba675SRob Herring		pinctrl-0 = <&ts_int_pin>;
148*c0b9c616SLuca Weiss		pinctrl-names = "default";
149724ba675SRob Herring
150724ba675SRob Herring		syna,startup-delay-ms = <100>;
151724ba675SRob Herring
15231fba16cSKrzysztof Kozlowski		rmi4-f01@1 {
153724ba675SRob Herring			reg = <0x1>;
1547c74379aSKrzysztof Kozlowski			syna,nosleep-mode = <1>;
155724ba675SRob Herring		};
156724ba675SRob Herring
15731fba16cSKrzysztof Kozlowski		rmi4-f11@11 {
158724ba675SRob Herring			reg = <0x11>;
159724ba675SRob Herring			syna,sensor-type = <1>;
16043db6926SKrzysztof Kozlowski			touchscreen-inverted-x;
161724ba675SRob Herring		};
162724ba675SRob Herring	};
163724ba675SRob Herring};
164724ba675SRob Herring
165724ba675SRob Herring&blsp2_i2c5 {
166724ba675SRob Herring	clock-frequency = <355000>;
167724ba675SRob Herring
168*c0b9c616SLuca Weiss	status = "okay";
169*c0b9c616SLuca Weiss
170724ba675SRob Herring	lp8566_wled: backlight@2c {
171724ba675SRob Herring		compatible = "ti,lp8556";
172724ba675SRob Herring		reg = <0x2c>;
173724ba675SRob Herring		power-supply = <&vreg_bl_vddio>;
174724ba675SRob Herring
175724ba675SRob Herring		bl-name = "backlight";
176724ba675SRob Herring		dev-ctrl = /bits/ 8 <0x05>;
177724ba675SRob Herring		init-brt = /bits/ 8 <0x3f>;
178724ba675SRob Herring
179724ba675SRob Herring		rom-a0h {
180724ba675SRob Herring			rom-addr = /bits/ 8 <0xa0>;
181724ba675SRob Herring			rom-val = /bits/ 8 <0xff>;
182724ba675SRob Herring		};
183724ba675SRob Herring		rom-a1h {
184724ba675SRob Herring			rom-addr = /bits/ 8 <0xa1>;
185724ba675SRob Herring			rom-val = /bits/ 8 <0x3f>;
186724ba675SRob Herring		};
187724ba675SRob Herring		rom-a2h {
188724ba675SRob Herring			rom-addr = /bits/ 8 <0xa2>;
189724ba675SRob Herring			rom-val = /bits/ 8 <0x20>;
190724ba675SRob Herring		};
191724ba675SRob Herring		rom-a3h {
192724ba675SRob Herring			rom-addr = /bits/ 8 <0xa3>;
193724ba675SRob Herring			rom-val = /bits/ 8 <0x5e>;
194724ba675SRob Herring		};
195724ba675SRob Herring		rom-a4h {
196724ba675SRob Herring			rom-addr = /bits/ 8 <0xa4>;
197724ba675SRob Herring			rom-val = /bits/ 8 <0x02>;
198724ba675SRob Herring		};
199724ba675SRob Herring		rom-a5h {
200724ba675SRob Herring			rom-addr = /bits/ 8 <0xa5>;
201724ba675SRob Herring			rom-val = /bits/ 8 <0x04>;
202724ba675SRob Herring		};
203724ba675SRob Herring		rom-a6h {
204724ba675SRob Herring			rom-addr = /bits/ 8 <0xa6>;
205724ba675SRob Herring			rom-val = /bits/ 8 <0x80>;
206724ba675SRob Herring		};
207724ba675SRob Herring		rom-a7h {
208724ba675SRob Herring			rom-addr = /bits/ 8 <0xa7>;
209724ba675SRob Herring			rom-val = /bits/ 8 <0xf7>;
210724ba675SRob Herring		};
211724ba675SRob Herring		rom-a9h {
212724ba675SRob Herring			rom-addr = /bits/ 8 <0xa9>;
213724ba675SRob Herring			rom-val = /bits/ 8 <0x80>;
214724ba675SRob Herring		};
215724ba675SRob Herring		rom-aah {
216724ba675SRob Herring			rom-addr = /bits/ 8 <0xaa>;
217724ba675SRob Herring			rom-val = /bits/ 8 <0x0f>;
218724ba675SRob Herring		};
219724ba675SRob Herring		rom-aeh {
220724ba675SRob Herring			rom-addr = /bits/ 8 <0xae>;
221724ba675SRob Herring			rom-val = /bits/ 8 <0x0f>;
222724ba675SRob Herring		};
223724ba675SRob Herring	};
224724ba675SRob Herring};
225724ba675SRob Herring
226724ba675SRob Herring&blsp2_uart1 {
227724ba675SRob Herring	status = "okay";
228724ba675SRob Herring
229724ba675SRob Herring	bluetooth {
230724ba675SRob Herring		compatible = "brcm,bcm43438-bt";
231724ba675SRob Herring		max-speed = <3000000>;
232724ba675SRob Herring
233724ba675SRob Herring		pinctrl-0 = <&bt_host_wake_pin>, <&bt_dev_wake_pin>, <&bt_reg_on_pin>;
234*c0b9c616SLuca Weiss		pinctrl-names = "default";
235724ba675SRob Herring
236724ba675SRob Herring		host-wakeup-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>;
237724ba675SRob Herring		device-wakeup-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>;
238724ba675SRob Herring		shutdown-gpios = <&pm8941_gpios 16 GPIO_ACTIVE_HIGH>;
239724ba675SRob Herring	};
240724ba675SRob Herring};
241724ba675SRob Herring
242724ba675SRob Herring&pm8941_coincell {
243724ba675SRob Herring	qcom,rset-ohms = <2100>;
244724ba675SRob Herring	qcom,vset-millivolts = <3000>;
245*c0b9c616SLuca Weiss
246*c0b9c616SLuca Weiss	status = "okay";
247724ba675SRob Herring};
248724ba675SRob Herring
249724ba675SRob Herring&pm8941_gpios {
250724ba675SRob Herring	gpio_keys_pin_a: gpio-keys-active-state {
251724ba675SRob Herring		pins = "gpio2", "gpio5";
252724ba675SRob Herring		function = "normal";
253724ba675SRob Herring		bias-pull-up;
254724ba675SRob Herring		power-source = <PM8941_GPIO_S3>;
255724ba675SRob Herring	};
256724ba675SRob Herring
257724ba675SRob Herring	bt_reg_on_pin: bt-reg-on-state {
258724ba675SRob Herring		pins = "gpio16";
259724ba675SRob Herring		function = "normal";
260724ba675SRob Herring		output-low;
261724ba675SRob Herring		power-source = <PM8941_GPIO_S3>;
262724ba675SRob Herring	};
263724ba675SRob Herring
264724ba675SRob Herring	wlan_sleep_clk_pin: wl-sleep-clk-state {
265724ba675SRob Herring		pins = "gpio17";
266724ba675SRob Herring		function = "func2";
267724ba675SRob Herring		output-high;
268724ba675SRob Herring		power-source = <PM8941_GPIO_S3>;
269724ba675SRob Herring	};
270724ba675SRob Herring
271724ba675SRob Herring	wlan_regulator_pin: wl-reg-active-state {
272724ba675SRob Herring		pins = "gpio18";
273724ba675SRob Herring		function = "normal";
274724ba675SRob Herring		bias-disable;
275724ba675SRob Herring		power-source = <PM8941_GPIO_S3>;
276724ba675SRob Herring	};
277724ba675SRob Herring
278724ba675SRob Herring	lcd_dcdc_en_pin_a: lcd-dcdc-en-active-state {
279724ba675SRob Herring		pins = "gpio20";
280724ba675SRob Herring		function = "normal";
281724ba675SRob Herring		bias-disable;
282724ba675SRob Herring		power-source = <PM8941_GPIO_S3>;
283724ba675SRob Herring		input-disable;
284724ba675SRob Herring		output-low;
285724ba675SRob Herring	};
286724ba675SRob Herring};
287724ba675SRob Herring
288724ba675SRob Herring&pm8941_lpg {
289724ba675SRob Herring	qcom,power-source = <1>;
290724ba675SRob Herring
291*c0b9c616SLuca Weiss	status = "okay";
292*c0b9c616SLuca Weiss
293724ba675SRob Herring	multi-led {
294724ba675SRob Herring		color = <LED_COLOR_ID_RGB>;
295724ba675SRob Herring		function = LED_FUNCTION_STATUS;
296724ba675SRob Herring
297724ba675SRob Herring		#address-cells = <1>;
298724ba675SRob Herring		#size-cells = <0>;
299724ba675SRob Herring
300724ba675SRob Herring		led@5 {
301724ba675SRob Herring			reg = <5>;
302724ba675SRob Herring			color = <LED_COLOR_ID_BLUE>;
303724ba675SRob Herring		};
304724ba675SRob Herring
305724ba675SRob Herring		led@6 {
306724ba675SRob Herring			reg = <6>;
307724ba675SRob Herring			color = <LED_COLOR_ID_GREEN>;
308724ba675SRob Herring		};
309724ba675SRob Herring
310724ba675SRob Herring		led@7 {
311724ba675SRob Herring			reg = <7>;
312724ba675SRob Herring			color = <LED_COLOR_ID_RED>;
313724ba675SRob Herring		};
314724ba675SRob Herring	};
315724ba675SRob Herring};
316724ba675SRob Herring
317724ba675SRob Herring&remoteproc_adsp {
318724ba675SRob Herring	cx-supply = <&pm8841_s2>;
319648002a2SLuca Weiss	status = "okay";
320724ba675SRob Herring};
321724ba675SRob Herring
322724ba675SRob Herring&remoteproc_mss {
323724ba675SRob Herring	cx-supply = <&pm8841_s2>;
324724ba675SRob Herring	mss-supply = <&pm8841_s3>;
325724ba675SRob Herring	mx-supply = <&pm8841_s1>;
326724ba675SRob Herring	pll-supply = <&pm8941_l12>;
327648002a2SLuca Weiss	status = "okay";
328724ba675SRob Herring};
329724ba675SRob Herring
330724ba675SRob Herring&rpm_requests {
331724ba675SRob Herring	regulators-0 {
332724ba675SRob Herring		compatible = "qcom,rpm-pm8841-regulators";
333724ba675SRob Herring
334724ba675SRob Herring		pm8841_s1: s1 {
335724ba675SRob Herring			regulator-min-microvolt = <675000>;
336724ba675SRob Herring			regulator-max-microvolt = <1050000>;
337724ba675SRob Herring		};
338724ba675SRob Herring
339724ba675SRob Herring		pm8841_s2: s2 {
340724ba675SRob Herring			regulator-min-microvolt = <500000>;
341724ba675SRob Herring			regulator-max-microvolt = <1050000>;
342724ba675SRob Herring		};
343724ba675SRob Herring
344724ba675SRob Herring		pm8841_s3: s3 {
345724ba675SRob Herring			regulator-min-microvolt = <500000>;
346724ba675SRob Herring			regulator-max-microvolt = <1050000>;
347724ba675SRob Herring		};
348724ba675SRob Herring
349724ba675SRob Herring		pm8841_s4: s4 {
350724ba675SRob Herring			regulator-min-microvolt = <500000>;
351724ba675SRob Herring			regulator-max-microvolt = <1050000>;
352724ba675SRob Herring		};
353724ba675SRob Herring	};
354724ba675SRob Herring
355724ba675SRob Herring	regulators-1 {
356724ba675SRob Herring		compatible = "qcom,rpm-pm8941-regulators";
357724ba675SRob Herring
358724ba675SRob Herring		vdd_l1_l3-supply = <&pm8941_s1>;
359724ba675SRob Herring		vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
360724ba675SRob Herring		vdd_l4_l11-supply = <&pm8941_s1>;
361724ba675SRob Herring		vdd_l5_l7-supply = <&pm8941_s2>;
362724ba675SRob Herring		vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
363724ba675SRob Herring		vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
364724ba675SRob Herring		vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
365724ba675SRob Herring		vdd_l21-supply = <&vreg_boost>;
366724ba675SRob Herring
367724ba675SRob Herring		pm8941_s1: s1 {
368724ba675SRob Herring			regulator-min-microvolt = <1300000>;
369724ba675SRob Herring			regulator-max-microvolt = <1300000>;
370724ba675SRob Herring			regulator-always-on;
371724ba675SRob Herring			regulator-boot-on;
372724ba675SRob Herring		};
373724ba675SRob Herring
374724ba675SRob Herring		pm8941_s2: s2 {
375724ba675SRob Herring			regulator-min-microvolt = <2150000>;
376724ba675SRob Herring			regulator-max-microvolt = <2150000>;
377724ba675SRob Herring			regulator-boot-on;
378724ba675SRob Herring		};
379724ba675SRob Herring
380724ba675SRob Herring		pm8941_s3: s3 {
381724ba675SRob Herring			regulator-min-microvolt = <1800000>;
382724ba675SRob Herring			regulator-max-microvolt = <1800000>;
383724ba675SRob Herring			regulator-system-load = <154000>;
384724ba675SRob Herring			regulator-always-on;
385724ba675SRob Herring			regulator-boot-on;
386724ba675SRob Herring		};
387724ba675SRob Herring
388724ba675SRob Herring		pm8941_s4: s4 {
389724ba675SRob Herring			regulator-min-microvolt = <5000000>;
390724ba675SRob Herring			regulator-max-microvolt = <5000000>;
391724ba675SRob Herring		};
392724ba675SRob Herring
393724ba675SRob Herring		pm8941_l1: l1 {
394724ba675SRob Herring			regulator-min-microvolt = <1225000>;
395724ba675SRob Herring			regulator-max-microvolt = <1225000>;
396724ba675SRob Herring			regulator-always-on;
397724ba675SRob Herring			regulator-boot-on;
398724ba675SRob Herring		};
399724ba675SRob Herring
400724ba675SRob Herring		pm8941_l2: l2 {
401724ba675SRob Herring			regulator-min-microvolt = <1200000>;
402724ba675SRob Herring			regulator-max-microvolt = <1200000>;
403724ba675SRob Herring		};
404724ba675SRob Herring
405724ba675SRob Herring		pm8941_l3: l3 {
406724ba675SRob Herring			regulator-min-microvolt = <1200000>;
407724ba675SRob Herring			regulator-max-microvolt = <1200000>;
408724ba675SRob Herring		};
409724ba675SRob Herring
410724ba675SRob Herring		pm8941_l4: l4 {
411724ba675SRob Herring			regulator-min-microvolt = <1225000>;
412724ba675SRob Herring			regulator-max-microvolt = <1225000>;
413724ba675SRob Herring		};
414724ba675SRob Herring
415724ba675SRob Herring		pm8941_l5: l5 {
416724ba675SRob Herring			regulator-min-microvolt = <1800000>;
417724ba675SRob Herring			regulator-max-microvolt = <1800000>;
418724ba675SRob Herring		};
419724ba675SRob Herring
420724ba675SRob Herring		pm8941_l6: l6 {
421724ba675SRob Herring			regulator-min-microvolt = <1800000>;
422724ba675SRob Herring			regulator-max-microvolt = <1800000>;
423724ba675SRob Herring			regulator-boot-on;
424724ba675SRob Herring		};
425724ba675SRob Herring
426724ba675SRob Herring		pm8941_l7: l7 {
427724ba675SRob Herring			regulator-min-microvolt = <1800000>;
428724ba675SRob Herring			regulator-max-microvolt = <1800000>;
429724ba675SRob Herring			regulator-boot-on;
430724ba675SRob Herring		};
431724ba675SRob Herring
432724ba675SRob Herring		pm8941_l8: l8 {
433724ba675SRob Herring			regulator-min-microvolt = <1800000>;
434724ba675SRob Herring			regulator-max-microvolt = <1800000>;
435724ba675SRob Herring		};
436724ba675SRob Herring
437724ba675SRob Herring		pm8941_l9: l9 {
438724ba675SRob Herring			regulator-min-microvolt = <1800000>;
439724ba675SRob Herring			regulator-max-microvolt = <2950000>;
440724ba675SRob Herring		};
441724ba675SRob Herring
442724ba675SRob Herring		pm8941_l11: l11 {
443724ba675SRob Herring			regulator-min-microvolt = <1300000>;
444724ba675SRob Herring			regulator-max-microvolt = <1350000>;
445724ba675SRob Herring		};
446724ba675SRob Herring
447724ba675SRob Herring		pm8941_l12: l12 {
448724ba675SRob Herring			regulator-min-microvolt = <1800000>;
449724ba675SRob Herring			regulator-max-microvolt = <1800000>;
450724ba675SRob Herring			regulator-always-on;
451724ba675SRob Herring			regulator-boot-on;
452724ba675SRob Herring		};
453724ba675SRob Herring
454724ba675SRob Herring		pm8941_l13: l13 {
455724ba675SRob Herring			regulator-min-microvolt = <1800000>;
456724ba675SRob Herring			regulator-max-microvolt = <2950000>;
457724ba675SRob Herring			regulator-boot-on;
458724ba675SRob Herring		};
459724ba675SRob Herring
460724ba675SRob Herring		pm8941_l14: l14 {
461724ba675SRob Herring			regulator-min-microvolt = <1800000>;
462724ba675SRob Herring			regulator-max-microvolt = <1800000>;
463724ba675SRob Herring		};
464724ba675SRob Herring
465724ba675SRob Herring		pm8941_l15: l15 {
466724ba675SRob Herring			regulator-min-microvolt = <2050000>;
467724ba675SRob Herring			regulator-max-microvolt = <2050000>;
468724ba675SRob Herring		};
469724ba675SRob Herring
470724ba675SRob Herring		pm8941_l16: l16 {
471724ba675SRob Herring			regulator-min-microvolt = <2700000>;
472724ba675SRob Herring			regulator-max-microvolt = <2700000>;
473724ba675SRob Herring		};
474724ba675SRob Herring
475724ba675SRob Herring		pm8941_l17: l17 {
476724ba675SRob Herring			regulator-min-microvolt = <2700000>;
477724ba675SRob Herring			regulator-max-microvolt = <2700000>;
478724ba675SRob Herring		};
479724ba675SRob Herring
480724ba675SRob Herring		pm8941_l18: l18 {
481724ba675SRob Herring			regulator-min-microvolt = <2850000>;
482724ba675SRob Herring			regulator-max-microvolt = <2850000>;
483724ba675SRob Herring		};
484724ba675SRob Herring
485724ba675SRob Herring		pm8941_l19: l19 {
486724ba675SRob Herring			regulator-min-microvolt = <2850000>;
487724ba675SRob Herring			regulator-max-microvolt = <2850000>;
488724ba675SRob Herring		};
489724ba675SRob Herring
490724ba675SRob Herring		pm8941_l20: l20 {
491724ba675SRob Herring			regulator-min-microvolt = <2950000>;
492724ba675SRob Herring			regulator-max-microvolt = <2950000>;
493724ba675SRob Herring			regulator-system-load = <500000>;
494724ba675SRob Herring			regulator-allow-set-load;
495724ba675SRob Herring			regulator-boot-on;
496724ba675SRob Herring		};
497724ba675SRob Herring
498724ba675SRob Herring		pm8941_l21: l21 {
499724ba675SRob Herring			regulator-min-microvolt = <2950000>;
500724ba675SRob Herring			regulator-max-microvolt = <2950000>;
501724ba675SRob Herring			regulator-boot-on;
502724ba675SRob Herring		};
503724ba675SRob Herring
504724ba675SRob Herring		pm8941_l22: l22 {
505724ba675SRob Herring			regulator-min-microvolt = <3000000>;
506724ba675SRob Herring			regulator-max-microvolt = <3000000>;
507724ba675SRob Herring		};
508724ba675SRob Herring
509724ba675SRob Herring		pm8941_l23: l23 {
510724ba675SRob Herring			regulator-min-microvolt = <2800000>;
511724ba675SRob Herring			regulator-max-microvolt = <2800000>;
512724ba675SRob Herring		};
513724ba675SRob Herring
514724ba675SRob Herring		pm8941_l24: l24 {
515724ba675SRob Herring			regulator-min-microvolt = <3075000>;
516724ba675SRob Herring			regulator-max-microvolt = <3075000>;
517724ba675SRob Herring			regulator-boot-on;
518724ba675SRob Herring		};
519724ba675SRob Herring
520724ba675SRob Herring		pm8941_lvs3: lvs3 {};
521724ba675SRob Herring	};
522724ba675SRob Herring};
523724ba675SRob Herring
524724ba675SRob Herring&sdhc_1 {
525724ba675SRob Herring	vmmc-supply = <&pm8941_l20>;
526724ba675SRob Herring	vqmmc-supply = <&pm8941_s3>;
527724ba675SRob Herring
528724ba675SRob Herring	pinctrl-0 = <&sdc1_on>;
529724ba675SRob Herring	pinctrl-1 = <&sdc1_off>;
530*c0b9c616SLuca Weiss	pinctrl-names = "default", "sleep";
531*c0b9c616SLuca Weiss
532*c0b9c616SLuca Weiss	status = "okay";
533724ba675SRob Herring};
534724ba675SRob Herring
535724ba675SRob Herring&sdhc_2 {
536724ba675SRob Herring	vmmc-supply = <&pm8941_l21>;
537724ba675SRob Herring	vqmmc-supply = <&pm8941_l13>;
538724ba675SRob Herring
539724ba675SRob Herring	cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
540724ba675SRob Herring
541724ba675SRob Herring	pinctrl-0 = <&sdc2_on>;
542724ba675SRob Herring	pinctrl-1 = <&sdc2_off>;
543*c0b9c616SLuca Weiss	pinctrl-names = "default", "sleep";
544*c0b9c616SLuca Weiss
545*c0b9c616SLuca Weiss	status = "okay";
546724ba675SRob Herring};
547724ba675SRob Herring
548724ba675SRob Herring&sdhc_3 {
549724ba675SRob Herring	max-frequency = <100000000>;
550724ba675SRob Herring	vmmc-supply = <&vreg_wlan>;
551724ba675SRob Herring	non-removable;
552724ba675SRob Herring
553724ba675SRob Herring	pinctrl-0 = <&sdc3_on>;
554*c0b9c616SLuca Weiss	pinctrl-names = "default";
555724ba675SRob Herring
556*c0b9c616SLuca Weiss	status = "okay";
557724ba675SRob Herring
558724ba675SRob Herring	bcrmf@1 {
559724ba675SRob Herring		compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
560724ba675SRob Herring		reg = <1>;
561724ba675SRob Herring
562724ba675SRob Herring		brcm,drive-strength = <10>;
563724ba675SRob Herring
564724ba675SRob Herring		pinctrl-0 = <&wlan_sleep_clk_pin>;
565*c0b9c616SLuca Weiss		pinctrl-names = "default";
566724ba675SRob Herring	};
567724ba675SRob Herring};
568724ba675SRob Herring
569724ba675SRob Herring&smbb {
570724ba675SRob Herring	qcom,fast-charge-safe-current = <1500000>;
571724ba675SRob Herring	qcom,fast-charge-current-limit = <1500000>;
572724ba675SRob Herring	qcom,dc-current-limit = <1800000>;
573724ba675SRob Herring	usb-charge-current-limit = <1800000>;
574724ba675SRob Herring	qcom,fast-charge-safe-voltage = <4400000>;
575724ba675SRob Herring	qcom,fast-charge-high-threshold-voltage = <4350000>;
576724ba675SRob Herring	qcom,fast-charge-low-threshold-voltage = <3400000>;
577724ba675SRob Herring	qcom,auto-recharge-threshold-voltage = <4200000>;
578724ba675SRob Herring	qcom,minimum-input-voltage = <4300000>;
579c9c8179dSBryant Mairs
580c9c8179dSBryant Mairs	status = "okay";
581724ba675SRob Herring};
582724ba675SRob Herring
583724ba675SRob Herring&tlmm {
584724ba675SRob Herring	lcd_backlight_en_pin_a: lcd-backlight-vddio-state {
585724ba675SRob Herring		pins = "gpio69";
586724ba675SRob Herring		function = "gpio";
587724ba675SRob Herring		drive-strength = <10>;
588724ba675SRob Herring		output-low;
589724ba675SRob Herring		bias-disable;
590724ba675SRob Herring	};
591724ba675SRob Herring
592724ba675SRob Herring	sdc1_on: sdc1-on-state {
593724ba675SRob Herring		clk-pins {
594724ba675SRob Herring			pins = "sdc1_clk";
595724ba675SRob Herring			drive-strength = <16>;
596724ba675SRob Herring			bias-disable;
597724ba675SRob Herring		};
598724ba675SRob Herring
599724ba675SRob Herring		cmd-data-pins {
600724ba675SRob Herring			pins = "sdc1_cmd", "sdc1_data";
601724ba675SRob Herring			drive-strength = <10>;
602724ba675SRob Herring			bias-pull-up;
603724ba675SRob Herring		};
604724ba675SRob Herring	};
605724ba675SRob Herring
606724ba675SRob Herring	sdc2_on: sdc2-on-state {
607724ba675SRob Herring		clk-pins {
608724ba675SRob Herring			pins = "sdc2_clk";
609724ba675SRob Herring			drive-strength = <6>;
610724ba675SRob Herring			bias-disable;
611724ba675SRob Herring		};
612724ba675SRob Herring
613724ba675SRob Herring		cmd-data-pins {
614724ba675SRob Herring			pins = "sdc2_cmd", "sdc2_data";
615724ba675SRob Herring			drive-strength = <6>;
616724ba675SRob Herring			bias-pull-up;
617724ba675SRob Herring		};
618724ba675SRob Herring
619724ba675SRob Herring		cd-pins {
620724ba675SRob Herring			pins = "gpio62";
621724ba675SRob Herring			function = "gpio";
622724ba675SRob Herring			drive-strength = <2>;
623724ba675SRob Herring			bias-disable;
624724ba675SRob Herring		};
625724ba675SRob Herring	};
626724ba675SRob Herring
627724ba675SRob Herring	sdc3_on: sdc3-on-state {
628724ba675SRob Herring		clk-pins {
629724ba675SRob Herring			pins = "gpio40";
630724ba675SRob Herring			function = "sdc3";
631724ba675SRob Herring			drive-strength = <10>;
632724ba675SRob Herring			bias-disable;
633724ba675SRob Herring		};
634724ba675SRob Herring
635724ba675SRob Herring		cmd-pins {
636724ba675SRob Herring			pins = "gpio39";
637724ba675SRob Herring			function = "sdc3";
638724ba675SRob Herring			drive-strength = <10>;
639724ba675SRob Herring			bias-pull-up;
640724ba675SRob Herring		};
641724ba675SRob Herring
642724ba675SRob Herring		data-pins {
643724ba675SRob Herring			pins = "gpio35", "gpio36", "gpio37", "gpio38";
644724ba675SRob Herring			function = "sdc3";
645724ba675SRob Herring			drive-strength = <10>;
646724ba675SRob Herring			bias-pull-up;
647724ba675SRob Herring		};
648724ba675SRob Herring	};
649724ba675SRob Herring
650724ba675SRob Herring	ts_int_pin: ts-int-pin-state {
651724ba675SRob Herring		pins = "gpio86";
652724ba675SRob Herring		function = "gpio";
653724ba675SRob Herring		drive-strength = <2>;
654724ba675SRob Herring		bias-disable;
655724ba675SRob Herring	};
656724ba675SRob Herring
657724ba675SRob Herring	bt_host_wake_pin: bt-host-wake-state {
658724ba675SRob Herring		pins = "gpio95";
659724ba675SRob Herring		function = "gpio";
660724ba675SRob Herring		drive-strength = <2>;
661724ba675SRob Herring		bias-disable;
662724ba675SRob Herring		output-low;
663724ba675SRob Herring	};
664724ba675SRob Herring
665724ba675SRob Herring	bt_dev_wake_pin: bt-dev-wake-state {
666724ba675SRob Herring		pins = "gpio96";
667724ba675SRob Herring		function = "gpio";
668724ba675SRob Herring		drive-strength = <2>;
669724ba675SRob Herring		bias-disable;
670724ba675SRob Herring	};
671724ba675SRob Herring};
672724ba675SRob Herring
673724ba675SRob Herring&usb {
674724ba675SRob Herring	phys = <&usb_hs1_phy>;
675724ba675SRob Herring	phy-select = <&tcsr 0xb000 0>;
676724ba675SRob Herring	extcon = <&smbb>, <&usb_id>;
677724ba675SRob Herring	vbus-supply = <&chg_otg>;
678724ba675SRob Herring
679724ba675SRob Herring	hnp-disable;
680724ba675SRob Herring	srp-disable;
681724ba675SRob Herring	adp-disable;
682*c0b9c616SLuca Weiss
683*c0b9c616SLuca Weiss	status = "okay";
684724ba675SRob Herring};
685724ba675SRob Herring
686724ba675SRob Herring&usb_hs1_phy {
687724ba675SRob Herring	v1p8-supply = <&pm8941_l6>;
688724ba675SRob Herring	v3p3-supply = <&pm8941_l24>;
689724ba675SRob Herring
690724ba675SRob Herring	extcon = <&smbb>;
691724ba675SRob Herring	qcom,init-seq = /bits/ 8 <0x1 0x64>;
692*c0b9c616SLuca Weiss
693*c0b9c616SLuca Weiss	status = "okay";
694724ba675SRob Herring};
695