Skip to content

Commit d6833d0

Browse files
committed
arm64: dts: qcom: msm8916-wiko-chuppito: add initial devicetree
Signed-off-by: Paul Adam <[email protected]> arm64: dts: qcom: msm8916-wiko-chuppito: add wifi/bluetooth Signed-off-by: Paul Adam <[email protected]>
1 parent 8eb2fb2 commit d6833d0

File tree

2 files changed

+114
-0
lines changed

2 files changed

+114
-0
lines changed

arch/arm64/boot/dts/qcom/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-serranove.dtb
6666
dtb-$(CONFIG_ARCH_QCOM) += msm8916-thwc-uf896.dtb
6767
dtb-$(CONFIG_ARCH_QCOM) += msm8916-thwc-ufi001c.dtb
6868
dtb-$(CONFIG_ARCH_QCOM) += msm8916-vivo-y21l.dtb
69+
dtb-$(CONFIG_ARCH_QCOM) += msm8916-wiko-chuppito.dtb
6970
dtb-$(CONFIG_ARCH_QCOM) += msm8916-wingtech-wt86518.dtb
7071
dtb-$(CONFIG_ARCH_QCOM) += msm8916-wingtech-wt86528.dtb
7172
dtb-$(CONFIG_ARCH_QCOM) += msm8916-wingtech-wt88047.dtb
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
// SPDX-License-Identifier: GPL-2.0-only
2+
3+
/dts-v1/;
4+
5+
#include "msm8916-pm8916.dtsi"
6+
#include <dt-bindings/gpio/gpio.h>
7+
#include <dt-bindings/input/input.h>
8+
9+
/ {
10+
model = "Wiko Pulp 4G";
11+
compatible = "wiko,chuppito", "qcom,msm8916";
12+
chassis-type = "handset";
13+
14+
aliases {
15+
mmc0 = &sdhc_1; /* eMMC */
16+
mmc1 = &sdhc_2; /* SD card */
17+
serial0 = &blsp_uart2;
18+
};
19+
20+
chosen {
21+
stdout-path = "serial0";
22+
};
23+
24+
gpio-keys {
25+
compatible = "gpio-keys";
26+
pinctrl-0 = <&gpio_keys_default>;
27+
pinctrl-names = "default";
28+
label = "GPIO Buttons";
29+
30+
button-volume-up {
31+
label = "Volume up";
32+
gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
33+
linux,code = <KEY_VOLUMEUP>;
34+
};
35+
};
36+
37+
usb_id: usb-id {
38+
compatible = "linux,extcon-usb-gpio";
39+
id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>;
40+
pinctrl-0 = <&usb_id_default>;
41+
pinctrl-names = "default";
42+
};
43+
};
44+
45+
&blsp_uart2 {
46+
status = "okay";
47+
};
48+
49+
// make sure gcc is probed with display disabled.
50+
&gcc {
51+
clocks = <&xo_board>, <&sleep_clk>, <0>, <0>, <0>, <0>, <0>;
52+
};
53+
54+
&pm8916_resin {
55+
linux,code = <KEY_VOLUMEDOWN>;
56+
status = "okay";
57+
};
58+
59+
&sdhc_1 {
60+
status = "okay";
61+
};
62+
63+
&sdhc_2 {
64+
pinctrl-0 = <&sdc2_default>, <&sdc2_cd_default>;
65+
pinctrl-1 = <&sdc2_sleep>, <&sdc2_cd_default>;
66+
pinctrl-names = "default", "sleep";
67+
cd_gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>;
68+
status = "okay";
69+
};
70+
71+
&usb {
72+
extcon = <&usb_id>, <&usb_id>;
73+
status = "okay";
74+
};
75+
76+
&usb_hs_phy {
77+
extcon = <&usb_id>;
78+
};
79+
80+
&wcnss {
81+
status = "okay";
82+
};
83+
84+
&wcnss_iris {
85+
compatible = "qcom,wcn3620";
86+
};
87+
88+
&wcnss_mem {
89+
status = "okay";
90+
};
91+
92+
&tlmm {
93+
gpio_keys_default: gpio-keys-default-state {
94+
pins = "gpio107";
95+
function = "gpio";
96+
drive-strength = <2>;
97+
bias-pull-up;
98+
};
99+
100+
usb_id_default: usb-id-default-state {
101+
pins = "gpio110";
102+
function = "gpio";
103+
drive-strength = <8>;
104+
bias-pull-up;
105+
};
106+
107+
sdc2_cd_default: sdc2-cd-default-state {
108+
pins = "gpio38";
109+
function = "gpio";
110+
drive-strength = <2>;
111+
bias-disable;
112+
};
113+
};

0 commit comments

Comments
 (0)