xref: /freebsd-src/sys/contrib/device-tree/src/arm64/qcom/msm8916-thwc-ufi001c.dts (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1cb7aa33aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2cb7aa33aSEmmanuel Vadot
3cb7aa33aSEmmanuel Vadot/dts-v1/;
4cb7aa33aSEmmanuel Vadot
5cb7aa33aSEmmanuel Vadot#include "msm8916-ufi.dtsi"
6cb7aa33aSEmmanuel Vadot
7cb7aa33aSEmmanuel Vadot/ {
8cb7aa33aSEmmanuel Vadot	model = "ufi-001c/ufi-001b 4G Modem Stick";
9cb7aa33aSEmmanuel Vadot	compatible = "thwc,ufi001c", "qcom,msm8916";
10cb7aa33aSEmmanuel Vadot};
11cb7aa33aSEmmanuel Vadot
12cb7aa33aSEmmanuel Vadot&button_restart {
13f126890aSEmmanuel Vadot	gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
14cb7aa33aSEmmanuel Vadot};
15cb7aa33aSEmmanuel Vadot
16*8d13bc63SEmmanuel Vadot&led_b {
17*8d13bc63SEmmanuel Vadot	gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>;
18cb7aa33aSEmmanuel Vadot};
19cb7aa33aSEmmanuel Vadot
20cb7aa33aSEmmanuel Vadot&led_g {
21f126890aSEmmanuel Vadot	gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
22cb7aa33aSEmmanuel Vadot};
23cb7aa33aSEmmanuel Vadot
24*8d13bc63SEmmanuel Vadot&led_r {
25*8d13bc63SEmmanuel Vadot	gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
26cb7aa33aSEmmanuel Vadot};
27cb7aa33aSEmmanuel Vadot
28cb7aa33aSEmmanuel Vadot&mpss {
29cb7aa33aSEmmanuel Vadot	pinctrl-0 = <&sim_ctrl_default>;
30cb7aa33aSEmmanuel Vadot	pinctrl-names = "default";
31cb7aa33aSEmmanuel Vadot};
32cb7aa33aSEmmanuel Vadot
33cb7aa33aSEmmanuel Vadot&button_default {
34cb7aa33aSEmmanuel Vadot	pins = "gpio37";
35cb7aa33aSEmmanuel Vadot	bias-pull-down;
36cb7aa33aSEmmanuel Vadot};
37cb7aa33aSEmmanuel Vadot
38cb7aa33aSEmmanuel Vadot&gpio_leds_default {
39cb7aa33aSEmmanuel Vadot	pins = "gpio20", "gpio21", "gpio22";
40cb7aa33aSEmmanuel Vadot};
41cb7aa33aSEmmanuel Vadot
42cb7aa33aSEmmanuel Vadot/* This selects the external SIM card slot by default */
43f126890aSEmmanuel Vadot&tlmm {
44cb7aa33aSEmmanuel Vadot	sim_ctrl_default: sim-ctrl-default-state {
45cb7aa33aSEmmanuel Vadot		esim-sel-pins {
46cb7aa33aSEmmanuel Vadot			pins = "gpio0", "gpio3";
47fac71e4eSEmmanuel Vadot			function = "gpio";
48cb7aa33aSEmmanuel Vadot			bias-disable;
49cb7aa33aSEmmanuel Vadot			output-low;
50cb7aa33aSEmmanuel Vadot		};
51cb7aa33aSEmmanuel Vadot
52cb7aa33aSEmmanuel Vadot		sim-en-pins {
53cb7aa33aSEmmanuel Vadot			pins = "gpio1";
54fac71e4eSEmmanuel Vadot			function = "gpio";
55cb7aa33aSEmmanuel Vadot			bias-disable;
56cb7aa33aSEmmanuel Vadot			output-low;
57cb7aa33aSEmmanuel Vadot		};
58cb7aa33aSEmmanuel Vadot
59cb7aa33aSEmmanuel Vadot		sim-sel-pins {
60cb7aa33aSEmmanuel Vadot			pins = "gpio2";
61fac71e4eSEmmanuel Vadot			function = "gpio";
62cb7aa33aSEmmanuel Vadot			bias-disable;
63cb7aa33aSEmmanuel Vadot			output-high;
64cb7aa33aSEmmanuel Vadot		};
65cb7aa33aSEmmanuel Vadot	};
66cb7aa33aSEmmanuel Vadot};
67