xref: /linux/arch/arm64/boot/dts/qcom/msm8916-ufi.dtsi (revision d6296cb65320be16dbf20f2fd584ddc25f3437cd)
1// SPDX-License-Identifier: GPL-2.0-only
2
3#include "msm8916-pm8916.dtsi"
4
5#include <dt-bindings/gpio/gpio.h>
6#include <dt-bindings/leds/common.h>
7
8/ {
9	chassis-type = "embedded";
10
11	aliases {
12		serial0 = &blsp1_uart2;
13	};
14
15	chosen {
16		stdout-path = "serial0";
17	};
18
19	reserved-memory {
20		mpss_mem: mpss@86800000 {
21			reg = <0x0 0x86800000 0x0 0x5500000>;
22			no-map;
23		};
24
25		gps_mem: gps@8bd00000 {
26			reg = <0x0 0x8bd00000 0x0 0x200000>;
27			no-map;
28		};
29	};
30
31	gpio-keys {
32		compatible = "gpio-keys";
33
34		pinctrl-0 = <&button_default>;
35		pinctrl-names = "default";
36
37		label = "GPIO Buttons";
38
39		/* GPIO is board-specific */
40		button_restart: button-restart {
41			label = "Restart";
42			linux,code = <KEY_RESTART>;
43		};
44	};
45
46	leds {
47		compatible = "gpio-leds";
48
49		pinctrl-0 = <&gpio_leds_default>;
50		pinctrl-names = "default";
51
52		/*
53		 * GPIOs are board-specific.
54		 * Functions and default-states defined here are fallbacks.
55		 * Feel free to override them if your board is different.
56		 */
57		led_r: led-r {
58			color = <LED_COLOR_ID_RED>;
59			default-state = "on";
60			function = LED_FUNCTION_POWER;
61		};
62
63		led_g: led-g {
64			color = <LED_COLOR_ID_GREEN>;
65			default-state = "off";
66			function = LED_FUNCTION_WLAN;
67		};
68
69		led_b: led-b {
70			color = <LED_COLOR_ID_BLUE>;
71			default-state = "off";
72			function = LED_FUNCTION_WAN;
73		};
74	};
75};
76
77&bam_dmux {
78	status = "okay";
79};
80
81&bam_dmux_dma {
82	status = "okay";
83};
84
85&blsp1_uart2 {
86	status = "okay";
87};
88
89/* Remove &dsi_phy0 from clocks to make sure that gcc probes with display disabled */
90&gcc {
91	clocks = <&xo_board>, <&sleep_clk>, <0>, <0>, <0>, <0>, <0>;
92};
93
94&mpss {
95	pinctrl-0 = <&sim_ctrl_default>;
96	pinctrl-names = "default";
97
98	status = "okay";
99};
100
101&pm8916_usbin {
102	status = "okay";
103};
104
105&pronto {
106	status = "okay";
107};
108
109&sdhc_1 {
110	pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
111	pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
112	pinctrl-names = "default", "sleep";
113
114	status = "okay";
115};
116
117&usb {
118	extcon = <&pm8916_usbin>;
119	dr_mode = "peripheral";
120
121	status = "okay";
122};
123
124&usb_hs_phy {
125	extcon = <&pm8916_usbin>;
126};
127
128&smd_rpm_regulators {
129	vdd_l1_l2_l3-supply = <&pm8916_s3>;
130	vdd_l4_l5_l6-supply = <&pm8916_s4>;
131	vdd_l7-supply = <&pm8916_s4>;
132
133	s3 {
134		regulator-min-microvolt = <1200000>;
135		regulator-max-microvolt = <1300000>;
136	};
137
138	s4 {
139		regulator-min-microvolt = <1800000>;
140		regulator-max-microvolt = <2100000>;
141	};
142
143	l1 {
144		regulator-min-microvolt = <1225000>;
145		regulator-max-microvolt = <1225000>;
146	};
147
148	l2 {
149		regulator-min-microvolt = <1200000>;
150		regulator-max-microvolt = <1200000>;
151	};
152
153	l4 {
154		regulator-min-microvolt = <2050000>;
155		regulator-max-microvolt = <2050000>;
156	};
157
158	l5 {
159		regulator-min-microvolt = <1800000>;
160		regulator-max-microvolt = <1800000>;
161	};
162
163	l6 {
164		regulator-min-microvolt = <1800000>;
165		regulator-max-microvolt = <1800000>;
166	};
167
168	l7 {
169		regulator-min-microvolt = <1800000>;
170		regulator-max-microvolt = <1800000>;
171	};
172
173	l8 {
174		regulator-min-microvolt = <2850000>;
175		regulator-max-microvolt = <2900000>;
176	};
177
178	l9 {
179		regulator-min-microvolt = <3300000>;
180		regulator-max-microvolt = <3300000>;
181	};
182
183	l10 {
184		regulator-min-microvolt = <2700000>;
185		regulator-max-microvolt = <2800000>;
186	};
187
188	l11 {
189		regulator-min-microvolt = <1800000>;
190		regulator-max-microvolt = <2950000>;
191		regulator-system-load = <200000>;
192		regulator-allow-set-load;
193	};
194
195	l12 {
196		regulator-min-microvolt = <1800000>;
197		regulator-max-microvolt = <2950000>;
198	};
199
200	l13 {
201		regulator-min-microvolt = <3075000>;
202		regulator-max-microvolt = <3075000>;
203	};
204
205	l14 {
206		regulator-min-microvolt = <1800000>;
207		regulator-max-microvolt = <3300000>;
208	};
209
210	l15 {
211		regulator-min-microvolt = <1800000>;
212		regulator-max-microvolt = <3300000>;
213	};
214
215	l16 {
216		regulator-min-microvolt = <1800000>;
217		regulator-max-microvolt = <3300000>;
218	};
219
220	l17 {
221		regulator-min-microvolt = <2850000>;
222		regulator-max-microvolt = <2850000>;
223	};
224
225	l18 {
226		regulator-min-microvolt = <2700000>;
227		regulator-max-microvolt = <2700000>;
228	};
229};
230
231&msmgpio {
232	/* pins are board-specific */
233	button_default: button-default-state {
234		function = "gpio";
235		drive-strength = <2>;
236	};
237
238	gpio_leds_default: gpio-leds-default-state {
239		function = "gpio";
240		drive-strength = <2>;
241		bias-disable;
242	};
243
244	sim_ctrl_default: sim-ctrl-default-state {
245		function = "gpio";
246		drive-strength = <2>;
247		bias-disable;
248		output-low;
249	};
250};
251