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	status = "okay";
96};
97
98&pm8916_usbin {
99	status = "okay";
100};
101
102&sdhc_1 {
103	pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
104	pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
105	pinctrl-names = "default", "sleep";
106
107	status = "okay";
108};
109
110&usb {
111	extcon = <&pm8916_usbin>;
112	dr_mode = "peripheral";
113
114	status = "okay";
115};
116
117&usb_hs_phy {
118	extcon = <&pm8916_usbin>;
119};
120
121&wcnss {
122	status = "okay";
123};
124
125&wcnss_iris {
126	compatible = "qcom,wcn3620";
127};
128
129&smd_rpm_regulators {
130	vdd_l1_l2_l3-supply = <&pm8916_s3>;
131	vdd_l4_l5_l6-supply = <&pm8916_s4>;
132	vdd_l7-supply = <&pm8916_s4>;
133
134	s3 {
135		regulator-min-microvolt = <1200000>;
136		regulator-max-microvolt = <1300000>;
137	};
138
139	s4 {
140		regulator-min-microvolt = <1800000>;
141		regulator-max-microvolt = <2100000>;
142	};
143
144	l1 {
145		regulator-min-microvolt = <1225000>;
146		regulator-max-microvolt = <1225000>;
147	};
148
149	l2 {
150		regulator-min-microvolt = <1200000>;
151		regulator-max-microvolt = <1200000>;
152	};
153
154	l4 {
155		regulator-min-microvolt = <2050000>;
156		regulator-max-microvolt = <2050000>;
157	};
158
159	l5 {
160		regulator-min-microvolt = <1800000>;
161		regulator-max-microvolt = <1800000>;
162	};
163
164	l6 {
165		regulator-min-microvolt = <1800000>;
166		regulator-max-microvolt = <1800000>;
167	};
168
169	l7 {
170		regulator-min-microvolt = <1800000>;
171		regulator-max-microvolt = <1800000>;
172	};
173
174	l8 {
175		regulator-min-microvolt = <2850000>;
176		regulator-max-microvolt = <2900000>;
177	};
178
179	l9 {
180		regulator-min-microvolt = <3300000>;
181		regulator-max-microvolt = <3300000>;
182	};
183
184	l10 {
185		regulator-min-microvolt = <2700000>;
186		regulator-max-microvolt = <2800000>;
187	};
188
189	l11 {
190		regulator-min-microvolt = <1800000>;
191		regulator-max-microvolt = <2950000>;
192		regulator-system-load = <200000>;
193		regulator-allow-set-load;
194	};
195
196	l12 {
197		regulator-min-microvolt = <1800000>;
198		regulator-max-microvolt = <2950000>;
199	};
200
201	l13 {
202		regulator-min-microvolt = <3075000>;
203		regulator-max-microvolt = <3075000>;
204	};
205
206	l14 {
207		regulator-min-microvolt = <1800000>;
208		regulator-max-microvolt = <3300000>;
209	};
210
211	l15 {
212		regulator-min-microvolt = <1800000>;
213		regulator-max-microvolt = <3300000>;
214	};
215
216	l16 {
217		regulator-min-microvolt = <1800000>;
218		regulator-max-microvolt = <3300000>;
219	};
220
221	l17 {
222		regulator-min-microvolt = <2850000>;
223		regulator-max-microvolt = <2850000>;
224	};
225
226	l18 {
227		regulator-min-microvolt = <2700000>;
228		regulator-max-microvolt = <2700000>;
229	};
230};
231
232&msmgpio {
233	/* pins are board-specific */
234	button_default: button-default-state {
235		function = "gpio";
236		drive-strength = <2>;
237	};
238
239	gpio_leds_default: gpio-leds-default-state {
240		function = "gpio";
241		drive-strength = <2>;
242		bias-disable;
243	};
244};
245