xref: /freebsd-src/sys/contrib/device-tree/src/arm/qcom/qcom-msm8974pro-sony-xperia-shinano-common.dtsi (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
17d0873ebSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
27d0873ebSEmmanuel Vadot#include "qcom-msm8974pro.dtsi"
37d0873ebSEmmanuel Vadot#include "pm8841.dtsi"
47d0873ebSEmmanuel Vadot#include "pm8941.dtsi"
57d0873ebSEmmanuel Vadot#include <dt-bindings/input/input.h>
67d0873ebSEmmanuel Vadot#include <dt-bindings/leds/common.h>
77d0873ebSEmmanuel Vadot#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
87d0873ebSEmmanuel Vadot
97d0873ebSEmmanuel Vadot/ {
107d0873ebSEmmanuel Vadot	aliases {
117d0873ebSEmmanuel Vadot		mmc0 = &sdhc_1;
127d0873ebSEmmanuel Vadot		mmc1 = &sdhc_2;
137d0873ebSEmmanuel Vadot		serial0 = &blsp1_uart2;
147d0873ebSEmmanuel Vadot		serial1 = &blsp2_uart1;
157d0873ebSEmmanuel Vadot	};
167d0873ebSEmmanuel Vadot
177d0873ebSEmmanuel Vadot	chosen {
187d0873ebSEmmanuel Vadot		stdout-path = "serial0:115200n8";
197d0873ebSEmmanuel Vadot	};
207d0873ebSEmmanuel Vadot
217d0873ebSEmmanuel Vadot	gpio-keys {
227d0873ebSEmmanuel Vadot		compatible = "gpio-keys";
237d0873ebSEmmanuel Vadot
247d0873ebSEmmanuel Vadot		pinctrl-0 = <&gpio_keys_pin_a>;
257d0873ebSEmmanuel Vadot		pinctrl-names = "default";
267d0873ebSEmmanuel Vadot
277d0873ebSEmmanuel Vadot		key-volume-down {
287d0873ebSEmmanuel Vadot			label = "volume_down";
297d0873ebSEmmanuel Vadot			gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
307d0873ebSEmmanuel Vadot			linux,code = <KEY_VOLUMEDOWN>;
317d0873ebSEmmanuel Vadot			debounce-interval = <15>;
327d0873ebSEmmanuel Vadot		};
337d0873ebSEmmanuel Vadot
347d0873ebSEmmanuel Vadot		key-volume-up {
357d0873ebSEmmanuel Vadot			label = "volume_up";
367d0873ebSEmmanuel Vadot			gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
377d0873ebSEmmanuel Vadot			linux,code = <KEY_VOLUMEUP>;
387d0873ebSEmmanuel Vadot			debounce-interval = <15>;
397d0873ebSEmmanuel Vadot		};
407d0873ebSEmmanuel Vadot	};
417d0873ebSEmmanuel Vadot
427d0873ebSEmmanuel Vadot	vreg_vsp: lcd-dcdc-regulator {
437d0873ebSEmmanuel Vadot		compatible = "regulator-fixed";
447d0873ebSEmmanuel Vadot		regulator-name = "vreg_vsp";
457d0873ebSEmmanuel Vadot		regulator-min-microvolt = <5600000>;
467d0873ebSEmmanuel Vadot		regulator-max-microvolt = <5600000>;
477d0873ebSEmmanuel Vadot
487d0873ebSEmmanuel Vadot		gpio = <&pm8941_gpios 20 GPIO_ACTIVE_HIGH>;
497d0873ebSEmmanuel Vadot		enable-active-high;
507d0873ebSEmmanuel Vadot
517d0873ebSEmmanuel Vadot		pinctrl-0 = <&lcd_dcdc_en_pin_a>;
527d0873ebSEmmanuel Vadot		pinctrl-names = "default";
537d0873ebSEmmanuel Vadot	};
547d0873ebSEmmanuel Vadot
557d0873ebSEmmanuel Vadot	vreg_boost: vreg-boost {
567d0873ebSEmmanuel Vadot		compatible = "regulator-fixed";
577d0873ebSEmmanuel Vadot
587d0873ebSEmmanuel Vadot		regulator-name = "vreg-boost";
597d0873ebSEmmanuel Vadot		regulator-min-microvolt = <3150000>;
607d0873ebSEmmanuel Vadot		regulator-max-microvolt = <3150000>;
617d0873ebSEmmanuel Vadot
627d0873ebSEmmanuel Vadot		regulator-always-on;
637d0873ebSEmmanuel Vadot		regulator-boot-on;
647d0873ebSEmmanuel Vadot
657d0873ebSEmmanuel Vadot		gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
667d0873ebSEmmanuel Vadot		enable-active-high;
677d0873ebSEmmanuel Vadot
687d0873ebSEmmanuel Vadot		pinctrl-names = "default";
697d0873ebSEmmanuel Vadot		pinctrl-0 = <&boost_bypass_n_pin>;
707d0873ebSEmmanuel Vadot	};
717d0873ebSEmmanuel Vadot
727d0873ebSEmmanuel Vadot	vreg_vph_pwr: vreg-vph-pwr {
737d0873ebSEmmanuel Vadot		compatible = "regulator-fixed";
747d0873ebSEmmanuel Vadot		regulator-name = "vph-pwr";
757d0873ebSEmmanuel Vadot
767d0873ebSEmmanuel Vadot		regulator-min-microvolt = <3600000>;
777d0873ebSEmmanuel Vadot		regulator-max-microvolt = <3600000>;
787d0873ebSEmmanuel Vadot
797d0873ebSEmmanuel Vadot		regulator-always-on;
807d0873ebSEmmanuel Vadot	};
817d0873ebSEmmanuel Vadot
827d0873ebSEmmanuel Vadot	vreg_wlan: wlan-regulator {
837d0873ebSEmmanuel Vadot		compatible = "regulator-fixed";
847d0873ebSEmmanuel Vadot
857d0873ebSEmmanuel Vadot		regulator-name = "wl-reg";
867d0873ebSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
877d0873ebSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
887d0873ebSEmmanuel Vadot
897d0873ebSEmmanuel Vadot		gpio = <&pm8941_gpios 18 GPIO_ACTIVE_HIGH>;
907d0873ebSEmmanuel Vadot		enable-active-high;
917d0873ebSEmmanuel Vadot
927d0873ebSEmmanuel Vadot		pinctrl-0 = <&wlan_regulator_pin>;
937d0873ebSEmmanuel Vadot		pinctrl-names = "default";
947d0873ebSEmmanuel Vadot	};
957d0873ebSEmmanuel Vadot};
967d0873ebSEmmanuel Vadot
977d0873ebSEmmanuel Vadot&blsp1_uart2 {
987d0873ebSEmmanuel Vadot	status = "okay";
997d0873ebSEmmanuel Vadot};
1007d0873ebSEmmanuel Vadot
1017d0873ebSEmmanuel Vadot&blsp2_i2c2 {
1027d0873ebSEmmanuel Vadot	clock-frequency = <355000>;
1037d0873ebSEmmanuel Vadot
1047d0873ebSEmmanuel Vadot	status = "okay";
1057d0873ebSEmmanuel Vadot
1067d0873ebSEmmanuel Vadot	synaptics_touchscreen: synaptics@2c {
1077d0873ebSEmmanuel Vadot		compatible = "syna,rmi4-i2c";
1087d0873ebSEmmanuel Vadot		reg = <0x2c>;
1097d0873ebSEmmanuel Vadot
1107d0873ebSEmmanuel Vadot		interrupt-parent = <&tlmm>;
1117d0873ebSEmmanuel Vadot		interrupts = <86 IRQ_TYPE_EDGE_FALLING>;
1127d0873ebSEmmanuel Vadot
1137d0873ebSEmmanuel Vadot		#address-cells = <1>;
1147d0873ebSEmmanuel Vadot		#size-cells = <0>;
1157d0873ebSEmmanuel Vadot
1167d0873ebSEmmanuel Vadot		vdd-supply = <&pm8941_l22>;
1177d0873ebSEmmanuel Vadot		/* vio-supply is set in dts */
1187d0873ebSEmmanuel Vadot
1197d0873ebSEmmanuel Vadot		pinctrl-0 = <&ts_int_pin>;
1207d0873ebSEmmanuel Vadot		pinctrl-names = "default";
1217d0873ebSEmmanuel Vadot
1227d0873ebSEmmanuel Vadot		syna,startup-delay-ms = <100>;
1237d0873ebSEmmanuel Vadot
1247d0873ebSEmmanuel Vadot		rmi4-f01@1 {
1257d0873ebSEmmanuel Vadot			reg = <0x1>;
1267d0873ebSEmmanuel Vadot			syna,nosleep-mode = <1>;
1277d0873ebSEmmanuel Vadot		};
1287d0873ebSEmmanuel Vadot
1297d0873ebSEmmanuel Vadot		rmi4-f11@11 {
1307d0873ebSEmmanuel Vadot			reg = <0x11>;
1317d0873ebSEmmanuel Vadot			syna,sensor-type = <1>;
1327d0873ebSEmmanuel Vadot			touchscreen-inverted-x;
1337d0873ebSEmmanuel Vadot		};
1347d0873ebSEmmanuel Vadot	};
1357d0873ebSEmmanuel Vadot};
1367d0873ebSEmmanuel Vadot
1377d0873ebSEmmanuel Vadot&pm8941_coincell {
1387d0873ebSEmmanuel Vadot	qcom,rset-ohms = <2100>;
1397d0873ebSEmmanuel Vadot	qcom,vset-millivolts = <3000>;
1407d0873ebSEmmanuel Vadot
1417d0873ebSEmmanuel Vadot	status = "okay";
1427d0873ebSEmmanuel Vadot};
1437d0873ebSEmmanuel Vadot
1447d0873ebSEmmanuel Vadot&pm8941_gpios {
1457d0873ebSEmmanuel Vadot	gpio_keys_pin_a: gpio-keys-active-state {
1467d0873ebSEmmanuel Vadot		pins = "gpio2", "gpio5";
1477d0873ebSEmmanuel Vadot		function = "normal";
1487d0873ebSEmmanuel Vadot		bias-pull-up;
1497d0873ebSEmmanuel Vadot		power-source = <PM8941_GPIO_S3>;
1507d0873ebSEmmanuel Vadot	};
1517d0873ebSEmmanuel Vadot
1527d0873ebSEmmanuel Vadot	wlan_sleep_clk_pin: wl-sleep-clk-state {
1537d0873ebSEmmanuel Vadot		pins = "gpio17";
1547d0873ebSEmmanuel Vadot		function = "func2";
1557d0873ebSEmmanuel Vadot		output-high;
1567d0873ebSEmmanuel Vadot		power-source = <PM8941_GPIO_S3>;
1577d0873ebSEmmanuel Vadot	};
1587d0873ebSEmmanuel Vadot
1597d0873ebSEmmanuel Vadot	wlan_regulator_pin: wl-reg-active-state {
1607d0873ebSEmmanuel Vadot		pins = "gpio18";
1617d0873ebSEmmanuel Vadot		function = "normal";
1627d0873ebSEmmanuel Vadot		bias-disable;
1637d0873ebSEmmanuel Vadot		power-source = <PM8941_GPIO_S3>;
1647d0873ebSEmmanuel Vadot	};
1657d0873ebSEmmanuel Vadot
1667d0873ebSEmmanuel Vadot	lcd_dcdc_en_pin_a: lcd-dcdc-en-active-state {
1677d0873ebSEmmanuel Vadot		pins = "gpio20";
1687d0873ebSEmmanuel Vadot		function = "normal";
1697d0873ebSEmmanuel Vadot		bias-disable;
1707d0873ebSEmmanuel Vadot		power-source = <PM8941_GPIO_S3>;
1717d0873ebSEmmanuel Vadot		input-disable;
1727d0873ebSEmmanuel Vadot		output-low;
1737d0873ebSEmmanuel Vadot	};
1747d0873ebSEmmanuel Vadot};
1757d0873ebSEmmanuel Vadot
1767d0873ebSEmmanuel Vadot&pm8941_lpg {
1777d0873ebSEmmanuel Vadot	qcom,power-source = <1>;
1787d0873ebSEmmanuel Vadot
1797d0873ebSEmmanuel Vadot	status = "okay";
1807d0873ebSEmmanuel Vadot
1817d0873ebSEmmanuel Vadot	multi-led {
1827d0873ebSEmmanuel Vadot		color = <LED_COLOR_ID_RGB>;
1837d0873ebSEmmanuel Vadot		function = LED_FUNCTION_STATUS;
1847d0873ebSEmmanuel Vadot
1857d0873ebSEmmanuel Vadot		#address-cells = <1>;
1867d0873ebSEmmanuel Vadot		#size-cells = <0>;
1877d0873ebSEmmanuel Vadot
1887d0873ebSEmmanuel Vadot		led@5 {
1897d0873ebSEmmanuel Vadot			reg = <5>;
1907d0873ebSEmmanuel Vadot			color = <LED_COLOR_ID_BLUE>;
1917d0873ebSEmmanuel Vadot		};
1927d0873ebSEmmanuel Vadot
1937d0873ebSEmmanuel Vadot		led@6 {
1947d0873ebSEmmanuel Vadot			reg = <6>;
1957d0873ebSEmmanuel Vadot			color = <LED_COLOR_ID_GREEN>;
1967d0873ebSEmmanuel Vadot		};
1977d0873ebSEmmanuel Vadot
1987d0873ebSEmmanuel Vadot		led@7 {
1997d0873ebSEmmanuel Vadot			reg = <7>;
2007d0873ebSEmmanuel Vadot			color = <LED_COLOR_ID_RED>;
2017d0873ebSEmmanuel Vadot		};
2027d0873ebSEmmanuel Vadot	};
2037d0873ebSEmmanuel Vadot};
2047d0873ebSEmmanuel Vadot
2057d0873ebSEmmanuel Vadot&pm8941_vib {
2067d0873ebSEmmanuel Vadot	status = "okay";
2077d0873ebSEmmanuel Vadot};
2087d0873ebSEmmanuel Vadot
2097d0873ebSEmmanuel Vadot&remoteproc_adsp {
2107d0873ebSEmmanuel Vadot	cx-supply = <&pm8841_s2>;
2117d0873ebSEmmanuel Vadot	status = "okay";
2127d0873ebSEmmanuel Vadot};
2137d0873ebSEmmanuel Vadot
2147d0873ebSEmmanuel Vadot&remoteproc_mss {
2157d0873ebSEmmanuel Vadot	cx-supply = <&pm8841_s2>;
2167d0873ebSEmmanuel Vadot	mss-supply = <&pm8841_s3>;
2177d0873ebSEmmanuel Vadot	mx-supply = <&pm8841_s1>;
2187d0873ebSEmmanuel Vadot	pll-supply = <&pm8941_l12>;
2197d0873ebSEmmanuel Vadot	status = "okay";
2207d0873ebSEmmanuel Vadot};
2217d0873ebSEmmanuel Vadot
2227d0873ebSEmmanuel Vadot&rpm_requests {
2237d0873ebSEmmanuel Vadot	regulators-0 {
2247d0873ebSEmmanuel Vadot		compatible = "qcom,rpm-pm8841-regulators";
2257d0873ebSEmmanuel Vadot
2267d0873ebSEmmanuel Vadot		pm8841_s1: s1 {
2277d0873ebSEmmanuel Vadot			regulator-min-microvolt = <675000>;
2287d0873ebSEmmanuel Vadot			regulator-max-microvolt = <1050000>;
2297d0873ebSEmmanuel Vadot		};
2307d0873ebSEmmanuel Vadot
2317d0873ebSEmmanuel Vadot		pm8841_s2: s2 {
2327d0873ebSEmmanuel Vadot			regulator-min-microvolt = <500000>;
2337d0873ebSEmmanuel Vadot			regulator-max-microvolt = <1050000>;
2347d0873ebSEmmanuel Vadot		};
2357d0873ebSEmmanuel Vadot
2367d0873ebSEmmanuel Vadot		pm8841_s3: s3 {
2377d0873ebSEmmanuel Vadot			regulator-min-microvolt = <500000>;
2387d0873ebSEmmanuel Vadot			regulator-max-microvolt = <1050000>;
2397d0873ebSEmmanuel Vadot		};
2407d0873ebSEmmanuel Vadot
2417d0873ebSEmmanuel Vadot		pm8841_s4: s4 {
2427d0873ebSEmmanuel Vadot			regulator-min-microvolt = <500000>;
2437d0873ebSEmmanuel Vadot			regulator-max-microvolt = <1050000>;
2447d0873ebSEmmanuel Vadot		};
2457d0873ebSEmmanuel Vadot	};
2467d0873ebSEmmanuel Vadot
2477d0873ebSEmmanuel Vadot	regulators-1 {
2487d0873ebSEmmanuel Vadot		compatible = "qcom,rpm-pm8941-regulators";
2497d0873ebSEmmanuel Vadot
2507d0873ebSEmmanuel Vadot		vdd_l1_l3-supply = <&pm8941_s1>;
2517d0873ebSEmmanuel Vadot		vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
2527d0873ebSEmmanuel Vadot		vdd_l4_l11-supply = <&pm8941_s1>;
2537d0873ebSEmmanuel Vadot		vdd_l5_l7-supply = <&pm8941_s2>;
2547d0873ebSEmmanuel Vadot		vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
2557d0873ebSEmmanuel Vadot		vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
2567d0873ebSEmmanuel Vadot		vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
2577d0873ebSEmmanuel Vadot		vdd_l21-supply = <&vreg_boost>;
2587d0873ebSEmmanuel Vadot
2597d0873ebSEmmanuel Vadot		pm8941_s1: s1 {
2607d0873ebSEmmanuel Vadot			regulator-min-microvolt = <1300000>;
2617d0873ebSEmmanuel Vadot			regulator-max-microvolt = <1300000>;
2627d0873ebSEmmanuel Vadot			regulator-always-on;
2637d0873ebSEmmanuel Vadot			regulator-boot-on;
2647d0873ebSEmmanuel Vadot		};
2657d0873ebSEmmanuel Vadot
2667d0873ebSEmmanuel Vadot		pm8941_s2: s2 {
2677d0873ebSEmmanuel Vadot			regulator-min-microvolt = <2150000>;
2687d0873ebSEmmanuel Vadot			regulator-max-microvolt = <2150000>;
2697d0873ebSEmmanuel Vadot			regulator-boot-on;
2707d0873ebSEmmanuel Vadot		};
2717d0873ebSEmmanuel Vadot
2727d0873ebSEmmanuel Vadot		pm8941_s3: s3 {
2737d0873ebSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
2747d0873ebSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
2757d0873ebSEmmanuel Vadot			regulator-system-load = <154000>;
2767d0873ebSEmmanuel Vadot			regulator-always-on;
2777d0873ebSEmmanuel Vadot			regulator-boot-on;
2787d0873ebSEmmanuel Vadot		};
2797d0873ebSEmmanuel Vadot
2807d0873ebSEmmanuel Vadot		pm8941_s4: s4 {
2817d0873ebSEmmanuel Vadot			regulator-min-microvolt = <5000000>;
2827d0873ebSEmmanuel Vadot			regulator-max-microvolt = <5000000>;
2837d0873ebSEmmanuel Vadot		};
2847d0873ebSEmmanuel Vadot
2857d0873ebSEmmanuel Vadot		pm8941_l1: l1 {
2867d0873ebSEmmanuel Vadot			regulator-min-microvolt = <1225000>;
2877d0873ebSEmmanuel Vadot			regulator-max-microvolt = <1225000>;
2887d0873ebSEmmanuel Vadot			regulator-always-on;
2897d0873ebSEmmanuel Vadot			regulator-boot-on;
2907d0873ebSEmmanuel Vadot		};
2917d0873ebSEmmanuel Vadot
2927d0873ebSEmmanuel Vadot		pm8941_l2: l2 {
2937d0873ebSEmmanuel Vadot			regulator-min-microvolt = <1200000>;
2947d0873ebSEmmanuel Vadot			regulator-max-microvolt = <1200000>;
2957d0873ebSEmmanuel Vadot		};
2967d0873ebSEmmanuel Vadot
2977d0873ebSEmmanuel Vadot		pm8941_l3: l3 {
2987d0873ebSEmmanuel Vadot			regulator-min-microvolt = <1200000>;
2997d0873ebSEmmanuel Vadot			regulator-max-microvolt = <1200000>;
3007d0873ebSEmmanuel Vadot		};
3017d0873ebSEmmanuel Vadot
3027d0873ebSEmmanuel Vadot		pm8941_l4: l4 {
3037d0873ebSEmmanuel Vadot			regulator-min-microvolt = <1225000>;
3047d0873ebSEmmanuel Vadot			regulator-max-microvolt = <1225000>;
3057d0873ebSEmmanuel Vadot		};
3067d0873ebSEmmanuel Vadot
3077d0873ebSEmmanuel Vadot		pm8941_l5: l5 {
3087d0873ebSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
3097d0873ebSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
3107d0873ebSEmmanuel Vadot		};
3117d0873ebSEmmanuel Vadot
3127d0873ebSEmmanuel Vadot		pm8941_l6: l6 {
3137d0873ebSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
3147d0873ebSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
3157d0873ebSEmmanuel Vadot			regulator-boot-on;
3167d0873ebSEmmanuel Vadot		};
3177d0873ebSEmmanuel Vadot
3187d0873ebSEmmanuel Vadot		pm8941_l7: l7 {
3197d0873ebSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
3207d0873ebSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
3217d0873ebSEmmanuel Vadot			regulator-boot-on;
3227d0873ebSEmmanuel Vadot		};
3237d0873ebSEmmanuel Vadot
3247d0873ebSEmmanuel Vadot		pm8941_l8: l8 {
3257d0873ebSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
3267d0873ebSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
3277d0873ebSEmmanuel Vadot		};
3287d0873ebSEmmanuel Vadot
3297d0873ebSEmmanuel Vadot		pm8941_l9: l9 {
3307d0873ebSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
3317d0873ebSEmmanuel Vadot			regulator-max-microvolt = <2950000>;
3327d0873ebSEmmanuel Vadot		};
3337d0873ebSEmmanuel Vadot
3347d0873ebSEmmanuel Vadot		pm8941_l12: l12 {
3357d0873ebSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
3367d0873ebSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
3377d0873ebSEmmanuel Vadot			regulator-always-on;
3387d0873ebSEmmanuel Vadot			regulator-boot-on;
3397d0873ebSEmmanuel Vadot		};
3407d0873ebSEmmanuel Vadot
3417d0873ebSEmmanuel Vadot		pm8941_l13: l13 {
3427d0873ebSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
3437d0873ebSEmmanuel Vadot			regulator-max-microvolt = <2950000>;
3447d0873ebSEmmanuel Vadot			regulator-boot-on;
3457d0873ebSEmmanuel Vadot		};
3467d0873ebSEmmanuel Vadot
3477d0873ebSEmmanuel Vadot		pm8941_l14: l14 {
3487d0873ebSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
3497d0873ebSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
3507d0873ebSEmmanuel Vadot		};
3517d0873ebSEmmanuel Vadot
3527d0873ebSEmmanuel Vadot		pm8941_l15: l15 {
3537d0873ebSEmmanuel Vadot			regulator-min-microvolt = <2050000>;
3547d0873ebSEmmanuel Vadot			regulator-max-microvolt = <2050000>;
3557d0873ebSEmmanuel Vadot		};
3567d0873ebSEmmanuel Vadot
3577d0873ebSEmmanuel Vadot		pm8941_l16: l16 {
3587d0873ebSEmmanuel Vadot			regulator-min-microvolt = <2700000>;
3597d0873ebSEmmanuel Vadot			regulator-max-microvolt = <2700000>;
3607d0873ebSEmmanuel Vadot		};
3617d0873ebSEmmanuel Vadot
3627d0873ebSEmmanuel Vadot		pm8941_l17: l17 {
3637d0873ebSEmmanuel Vadot			regulator-min-microvolt = <2700000>;
3647d0873ebSEmmanuel Vadot			regulator-max-microvolt = <2700000>;
3657d0873ebSEmmanuel Vadot		};
3667d0873ebSEmmanuel Vadot
3677d0873ebSEmmanuel Vadot		pm8941_l18: l18 {
3687d0873ebSEmmanuel Vadot			regulator-min-microvolt = <2850000>;
3697d0873ebSEmmanuel Vadot			regulator-max-microvolt = <2850000>;
3707d0873ebSEmmanuel Vadot		};
3717d0873ebSEmmanuel Vadot
3727d0873ebSEmmanuel Vadot		pm8941_l20: l20 {
3737d0873ebSEmmanuel Vadot			regulator-min-microvolt = <2950000>;
3747d0873ebSEmmanuel Vadot			regulator-max-microvolt = <2950000>;
3757d0873ebSEmmanuel Vadot			regulator-system-load = <500000>;
3767d0873ebSEmmanuel Vadot			regulator-allow-set-load;
3777d0873ebSEmmanuel Vadot			regulator-boot-on;
3787d0873ebSEmmanuel Vadot		};
3797d0873ebSEmmanuel Vadot
3807d0873ebSEmmanuel Vadot		pm8941_l21: l21 {
3817d0873ebSEmmanuel Vadot			regulator-min-microvolt = <2950000>;
3827d0873ebSEmmanuel Vadot			regulator-max-microvolt = <2950000>;
383*0e8011faSEmmanuel Vadot			regulator-system-load = <500000>;
384*0e8011faSEmmanuel Vadot			regulator-allow-set-load;
3857d0873ebSEmmanuel Vadot			regulator-boot-on;
3867d0873ebSEmmanuel Vadot		};
3877d0873ebSEmmanuel Vadot
3887d0873ebSEmmanuel Vadot		pm8941_l22: l22 {
3897d0873ebSEmmanuel Vadot			regulator-min-microvolt = <3000000>;
3907d0873ebSEmmanuel Vadot			regulator-max-microvolt = <3000000>;
3917d0873ebSEmmanuel Vadot		};
3927d0873ebSEmmanuel Vadot
3937d0873ebSEmmanuel Vadot		pm8941_l23: l23 {
3947d0873ebSEmmanuel Vadot			regulator-min-microvolt = <2800000>;
3957d0873ebSEmmanuel Vadot			regulator-max-microvolt = <2800000>;
3967d0873ebSEmmanuel Vadot		};
3977d0873ebSEmmanuel Vadot
3987d0873ebSEmmanuel Vadot		pm8941_l24: l24 {
3997d0873ebSEmmanuel Vadot			regulator-min-microvolt = <3075000>;
4007d0873ebSEmmanuel Vadot			regulator-max-microvolt = <3075000>;
4017d0873ebSEmmanuel Vadot			regulator-boot-on;
4027d0873ebSEmmanuel Vadot		};
4037d0873ebSEmmanuel Vadot
4047d0873ebSEmmanuel Vadot		pm8941_lvs3: lvs3 {};
4057d0873ebSEmmanuel Vadot	};
4067d0873ebSEmmanuel Vadot};
4077d0873ebSEmmanuel Vadot
4087d0873ebSEmmanuel Vadot&sdhc_1 {
4097d0873ebSEmmanuel Vadot	vmmc-supply = <&pm8941_l20>;
4107d0873ebSEmmanuel Vadot	vqmmc-supply = <&pm8941_s3>;
4117d0873ebSEmmanuel Vadot
4127d0873ebSEmmanuel Vadot	pinctrl-0 = <&sdc1_on>;
4137d0873ebSEmmanuel Vadot	pinctrl-1 = <&sdc1_off>;
4147d0873ebSEmmanuel Vadot	pinctrl-names = "default", "sleep";
4157d0873ebSEmmanuel Vadot
4167d0873ebSEmmanuel Vadot	status = "okay";
4177d0873ebSEmmanuel Vadot};
4187d0873ebSEmmanuel Vadot
4197d0873ebSEmmanuel Vadot&sdhc_2 {
4207d0873ebSEmmanuel Vadot	vmmc-supply = <&pm8941_l21>;
4217d0873ebSEmmanuel Vadot	vqmmc-supply = <&pm8941_l13>;
4227d0873ebSEmmanuel Vadot
4237d0873ebSEmmanuel Vadot	cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
4247d0873ebSEmmanuel Vadot
4257d0873ebSEmmanuel Vadot	pinctrl-0 = <&sdc2_on>;
4267d0873ebSEmmanuel Vadot	pinctrl-1 = <&sdc2_off>;
4277d0873ebSEmmanuel Vadot	pinctrl-names = "default", "sleep";
4287d0873ebSEmmanuel Vadot
4297d0873ebSEmmanuel Vadot	status = "okay";
4307d0873ebSEmmanuel Vadot};
4317d0873ebSEmmanuel Vadot
4327d0873ebSEmmanuel Vadot&sdhc_3 {
4337d0873ebSEmmanuel Vadot	max-frequency = <100000000>;
4347d0873ebSEmmanuel Vadot	vmmc-supply = <&vreg_wlan>;
4357d0873ebSEmmanuel Vadot	non-removable;
4367d0873ebSEmmanuel Vadot
4377d0873ebSEmmanuel Vadot	pinctrl-0 = <&sdc3_on>;
4387d0873ebSEmmanuel Vadot	pinctrl-names = "default";
4397d0873ebSEmmanuel Vadot
4407d0873ebSEmmanuel Vadot	status = "okay";
4417d0873ebSEmmanuel Vadot
4427d0873ebSEmmanuel Vadot	wifi@1 {
4437d0873ebSEmmanuel Vadot		compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
4447d0873ebSEmmanuel Vadot		reg = <1>;
4457d0873ebSEmmanuel Vadot
4467d0873ebSEmmanuel Vadot		brcm,drive-strength = <10>;
4477d0873ebSEmmanuel Vadot
4487d0873ebSEmmanuel Vadot		pinctrl-0 = <&wlan_sleep_clk_pin>;
4497d0873ebSEmmanuel Vadot		pinctrl-names = "default";
4507d0873ebSEmmanuel Vadot	};
4517d0873ebSEmmanuel Vadot};
4527d0873ebSEmmanuel Vadot
4537d0873ebSEmmanuel Vadot&tlmm {
4547d0873ebSEmmanuel Vadot	sdc1_on: sdc1-on-state {
4557d0873ebSEmmanuel Vadot		clk-pins {
4567d0873ebSEmmanuel Vadot			pins = "sdc1_clk";
4577d0873ebSEmmanuel Vadot			drive-strength = <16>;
4587d0873ebSEmmanuel Vadot			bias-disable;
4597d0873ebSEmmanuel Vadot		};
4607d0873ebSEmmanuel Vadot
4617d0873ebSEmmanuel Vadot		cmd-data-pins {
4627d0873ebSEmmanuel Vadot			pins = "sdc1_cmd", "sdc1_data";
4637d0873ebSEmmanuel Vadot			drive-strength = <10>;
4647d0873ebSEmmanuel Vadot			bias-pull-up;
4657d0873ebSEmmanuel Vadot		};
4667d0873ebSEmmanuel Vadot	};
4677d0873ebSEmmanuel Vadot
4687d0873ebSEmmanuel Vadot	sdc2_on: sdc2-on-state {
4697d0873ebSEmmanuel Vadot		clk-pins {
4707d0873ebSEmmanuel Vadot			pins = "sdc2_clk";
4717d0873ebSEmmanuel Vadot			drive-strength = <6>;
4727d0873ebSEmmanuel Vadot			bias-disable;
4737d0873ebSEmmanuel Vadot		};
4747d0873ebSEmmanuel Vadot
4757d0873ebSEmmanuel Vadot		cmd-data-pins {
4767d0873ebSEmmanuel Vadot			pins = "sdc2_cmd", "sdc2_data";
4777d0873ebSEmmanuel Vadot			drive-strength = <6>;
4787d0873ebSEmmanuel Vadot			bias-pull-up;
4797d0873ebSEmmanuel Vadot		};
4807d0873ebSEmmanuel Vadot
4817d0873ebSEmmanuel Vadot		cd-pins {
4827d0873ebSEmmanuel Vadot			pins = "gpio62";
4837d0873ebSEmmanuel Vadot			function = "gpio";
4847d0873ebSEmmanuel Vadot			drive-strength = <2>;
4857d0873ebSEmmanuel Vadot			bias-disable;
4867d0873ebSEmmanuel Vadot		};
4877d0873ebSEmmanuel Vadot	};
4887d0873ebSEmmanuel Vadot
4897d0873ebSEmmanuel Vadot	sdc3_on: sdc3-on-state {
4907d0873ebSEmmanuel Vadot		clk-pins {
4917d0873ebSEmmanuel Vadot			pins = "gpio40";
4927d0873ebSEmmanuel Vadot			function = "sdc3";
4937d0873ebSEmmanuel Vadot			drive-strength = <10>;
4947d0873ebSEmmanuel Vadot			bias-disable;
4957d0873ebSEmmanuel Vadot		};
4967d0873ebSEmmanuel Vadot
4977d0873ebSEmmanuel Vadot		cmd-pins {
4987d0873ebSEmmanuel Vadot			pins = "gpio39";
4997d0873ebSEmmanuel Vadot			function = "sdc3";
5007d0873ebSEmmanuel Vadot			drive-strength = <10>;
5017d0873ebSEmmanuel Vadot			bias-pull-up;
5027d0873ebSEmmanuel Vadot		};
5037d0873ebSEmmanuel Vadot
5047d0873ebSEmmanuel Vadot		data-pins {
5057d0873ebSEmmanuel Vadot			pins = "gpio35", "gpio36", "gpio37", "gpio38";
5067d0873ebSEmmanuel Vadot			function = "sdc3";
5077d0873ebSEmmanuel Vadot			drive-strength = <10>;
5087d0873ebSEmmanuel Vadot			bias-pull-up;
5097d0873ebSEmmanuel Vadot		};
5107d0873ebSEmmanuel Vadot	};
5117d0873ebSEmmanuel Vadot
5127d0873ebSEmmanuel Vadot	ts_int_pin: ts-int-pin-state {
5137d0873ebSEmmanuel Vadot		pins = "gpio86";
5147d0873ebSEmmanuel Vadot		function = "gpio";
5157d0873ebSEmmanuel Vadot		drive-strength = <2>;
5167d0873ebSEmmanuel Vadot		bias-disable;
5177d0873ebSEmmanuel Vadot	};
5187d0873ebSEmmanuel Vadot};
5197d0873ebSEmmanuel Vadot
5207d0873ebSEmmanuel Vadot&usb {
5217d0873ebSEmmanuel Vadot	phys = <&usb_hs1_phy>;
5227d0873ebSEmmanuel Vadot	phy-select = <&tcsr 0xb000 0>;
5237d0873ebSEmmanuel Vadot	extcon = <&smbb>, <&usb_id>;
5247d0873ebSEmmanuel Vadot	vbus-supply = <&chg_otg>;
5257d0873ebSEmmanuel Vadot
5267d0873ebSEmmanuel Vadot	hnp-disable;
5277d0873ebSEmmanuel Vadot	srp-disable;
5287d0873ebSEmmanuel Vadot	adp-disable;
5297d0873ebSEmmanuel Vadot
5307d0873ebSEmmanuel Vadot	status = "okay";
5317d0873ebSEmmanuel Vadot};
5327d0873ebSEmmanuel Vadot
5337d0873ebSEmmanuel Vadot&usb_hs1_phy {
5347d0873ebSEmmanuel Vadot	v1p8-supply = <&pm8941_l6>;
5357d0873ebSEmmanuel Vadot	v3p3-supply = <&pm8941_l24>;
5367d0873ebSEmmanuel Vadot
5377d0873ebSEmmanuel Vadot	extcon = <&smbb>;
5387d0873ebSEmmanuel Vadot	qcom,init-seq = /bits/ 8 <0x1 0x64>;
5397d0873ebSEmmanuel Vadot
5407d0873ebSEmmanuel Vadot	status = "okay";
5417d0873ebSEmmanuel Vadot};
542