Skip to content

Commit 19d30bd

Browse files
committed
openstick: add uf896-v1_1 support
1 parent f17addf commit 19d30bd

File tree

2 files changed

+102
-0
lines changed

2 files changed

+102
-0
lines changed

arch/arm64/boot/dts/qcom/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-wingtech-wt88047.dtb
3737
dtb-$(CONFIG_ARCH_QCOM) += msm8916-handsome-openstick-ufi001b.dtb
3838
dtb-$(CONFIG_ARCH_QCOM) += msm8916-handsome-openstick-ufi001c.dtb
3939
dtb-$(CONFIG_ARCH_QCOM) += msm8916-handsome-openstick-sp970.dtb
40+
dtb-$(CONFIG_ARCH_QCOM) += msm8916-handsome-openstick-uf896-v1_1.dtb
4041
dtb-$(CONFIG_ARCH_QCOM) += msm8916-handsome-openstick-uz801.dtb
4142
dtb-$(CONFIG_ARCH_QCOM) += msm8992-bullhead-rev-101.dtb
4243
dtb-$(CONFIG_ARCH_QCOM) += msm8992-msft-lumia-octagon-talkman.dtb
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
// SPDX-License-Identifier: GPL-2.0-only
2+
/*
3+
* Copyright (C) 2021-2022 HandsomeYingyan <[email protected]>
4+
*
5+
*/
6+
7+
/dts-v1/;
8+
#include "msm8916-handsome-openstick-common.dtsi"
9+
10+
/ {
11+
model = "Handsome OpenStick UF896-V1_1";
12+
compatible = "handsome,openstick", "qcom,msm8916";
13+
14+
gpio-keys {
15+
compatible = "gpio-keys";
16+
#address-cells = <1>;
17+
#size-cells = <0>;
18+
autorepeat;
19+
20+
pinctrl-names = "default";
21+
pinctrl-0 = <&gpio_keys_default>;
22+
label = "GPIO Buttons";
23+
24+
reset {
25+
label = "Restart";
26+
gpios = <&msmgpio 35 GPIO_ACTIVE_LOW>;
27+
linux,code = <KEY_RESTART>;
28+
};
29+
};
30+
31+
leds {
32+
pinctrl-names = "default";
33+
pinctrl-0 = <&msmgpio_leds>;
34+
35+
compatible = "gpio-leds";
36+
37+
wifi {
38+
label = "blue:wifi";
39+
gpios = <&msmgpio 81 GPIO_ACTIVE_HIGH>;
40+
linux,default-trigger = "phy0tx";
41+
default-state = "off";
42+
};
43+
44+
led_internet: internet {
45+
label = "green:internet";
46+
gpios = <&msmgpio 83 GPIO_ACTIVE_HIGH>;
47+
default-state = "off";
48+
};
49+
50+
os {
51+
label = "red:os";
52+
gpios = <&msmgpio 82 GPIO_ACTIVE_HIGH>;
53+
linux,default-trigger = "heartbeat";
54+
default-state = "on";
55+
};
56+
57+
sim_sel {
58+
label = "sim:sel";
59+
gpios = <&msmgpio 2 GPIO_ACTIVE_HIGH>;
60+
default-state = "on";
61+
};
62+
63+
sim_en {
64+
label = "sim:en";
65+
gpios = <&msmgpio 1 GPIO_ACTIVE_HIGH>;
66+
default-state = "off";
67+
};
68+
69+
sim_sel2 {
70+
label = "sim:sel2";
71+
gpios = <&msmgpio 0 GPIO_ACTIVE_HIGH>;
72+
default-state = "off";
73+
};
74+
75+
sim_en2 {
76+
label = "sim:en2";
77+
gpios = <&msmgpio 3 GPIO_ACTIVE_HIGH>;
78+
default-state = "off";
79+
};
80+
81+
82+
};
83+
};
84+
85+
&msmgpio {
86+
msmgpio_leds: msmgpio-leds {
87+
pins = "gpio0","gpio1","gpio2","gpio3","gpio20","gpio21","gpio22","gpio81","gpio82","gpio83";
88+
function = "gpio";
89+
90+
bias-disabled;
91+
};
92+
93+
gpio_keys_default: gpio_keys_default {
94+
pins = "gpio35";
95+
function = "gpio";
96+
97+
drive-strength = <8>;
98+
input-enable;
99+
bias-pull-up;
100+
};
101+
};

0 commit comments

Comments
 (0)