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	usb-role-switch;
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&msmgpio {
130	/* pins are board-specific */
131	button_default: button-default-state {
132		function = "gpio";
133		drive-strength = <2>;
134	};
135
136	gpio_leds_default: gpio-leds-default-state {
137		function = "gpio";
138		drive-strength = <2>;
139		bias-disable;
140	};
141};
142