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