xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/msm8916-ufi.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
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		mmc0 = &sdhc_1; /* eMMC */
13		serial0 = &blsp_uart2;
14	};
15
16	chosen {
17		stdout-path = "serial0";
18	};
19
20	reserved-memory {
21		mpss_mem: mpss@86800000 {
22			reg = <0x0 0x86800000 0x0 0x5500000>;
23			no-map;
24		};
25
26		gps_mem: gps@8bd00000 {
27			reg = <0x0 0x8bd00000 0x0 0x200000>;
28			no-map;
29		};
30	};
31
32	gpio-keys {
33		compatible = "gpio-keys";
34
35		pinctrl-0 = <&button_default>;
36		pinctrl-names = "default";
37
38		label = "GPIO Buttons";
39
40		/* GPIO is board-specific */
41		button_restart: button-restart {
42			label = "Restart";
43			linux,code = <KEY_RESTART>;
44		};
45	};
46
47	leds {
48		compatible = "gpio-leds";
49
50		pinctrl-0 = <&gpio_leds_default>;
51		pinctrl-names = "default";
52
53		/*
54		 * GPIOs are board-specific.
55		 * Functions and default-states defined here are fallbacks.
56		 * Feel free to override them if your board is different.
57		 */
58		led_r: led-r {
59			color = <LED_COLOR_ID_RED>;
60			default-state = "on";
61			function = LED_FUNCTION_POWER;
62		};
63
64		led_g: led-g {
65			color = <LED_COLOR_ID_GREEN>;
66			default-state = "off";
67			function = LED_FUNCTION_WLAN;
68		};
69
70		led_b: led-b {
71			color = <LED_COLOR_ID_BLUE>;
72			default-state = "off";
73			function = LED_FUNCTION_WAN;
74		};
75	};
76};
77
78&bam_dmux {
79	status = "okay";
80};
81
82&bam_dmux_dma {
83	status = "okay";
84};
85
86&blsp_uart2 {
87	status = "okay";
88};
89
90/* Remove &mdss_dsi0_phy from clocks to make sure that gcc probes with display disabled */
91&gcc {
92	clocks = <&xo_board>, <&sleep_clk>, <0>, <0>, <0>, <0>, <0>;
93};
94
95&mpss {
96	status = "okay";
97};
98
99&pm8916_usbin {
100	status = "okay";
101};
102
103&sdhc_1 {
104	status = "okay";
105};
106
107&usb {
108	extcon = <&pm8916_usbin>;
109	usb-role-switch;
110
111	status = "okay";
112};
113
114&usb_hs_phy {
115	extcon = <&pm8916_usbin>;
116};
117
118&wcnss {
119	status = "okay";
120};
121
122&wcnss_iris {
123	compatible = "qcom,wcn3620";
124};
125
126&tlmm {
127	/* pins are board-specific */
128	button_default: button-default-state {
129		function = "gpio";
130		drive-strength = <2>;
131	};
132
133	gpio_leds_default: gpio-leds-default-state {
134		function = "gpio";
135		drive-strength = <2>;
136		bias-disable;
137	};
138};
139