Skip to content

Commit 863fccf

Browse files
committed
arm64: dts: qcom: msm8916-wiko-chuppito: add initial devicetree
Signed-off-by: Paul Adam <adamp@posteo.de>
1 parent 8eb2fb2 commit 863fccf

File tree

2 files changed

+107
-0
lines changed

2 files changed

+107
-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: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
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+
27+
pinctrl-0 = <&gpio_keys_default>;
28+
pinctrl-names = "default";
29+
30+
label = "GPIO Buttons";
31+
button-volume-up {
32+
label = "Volume up";
33+
gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
34+
linux,code = <KEY_VOLUMEUP>;
35+
};
36+
};
37+
38+
usb_id: usb-id {
39+
compatible = "linux,extcon-usb-gpio";
40+
id-gpios = <&tlmm 110 0>;
41+
pinctrl-0 = <&usb_id_default>;
42+
pinctrl-names = "default";
43+
};
44+
};
45+
46+
&blsp_uart2 {
47+
status = "okay";
48+
};
49+
50+
// make sure gcc is probed with display disabled.
51+
&gcc {
52+
clocks = <&xo_board>, <&sleep_clk>, <0>, <0>, <0>, <0>, <0>;
53+
};
54+
55+
&pm8916_resin {
56+
linux,code = <KEY_VOLUMEDOWN>;
57+
status = "okay";
58+
};
59+
60+
&sdhc_1 {
61+
status = "okay";
62+
};
63+
64+
&sdhc_2 {
65+
pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
66+
pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
67+
pinctrl-names = "default", "sleep";
68+
69+
cd_gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>;
70+
71+
status = "okay";
72+
};
73+
74+
&usb {
75+
extcon = <&usb_id>, <&usb_id>;
76+
status = "okay";
77+
};
78+
79+
&usb_hs_phy {
80+
extcon = <&usb_id>;
81+
};
82+
83+
&tlmm {
84+
gpio_keys_default: gpio-keys-default-state {
85+
pins = "gpio107";
86+
function = "gpio";
87+
88+
drive-strength = <2>;
89+
bias-pull-up;
90+
};
91+
92+
usb_id_default: usb-id-default-state {
93+
pins = "gpio110";
94+
function = "gpio";
95+
96+
drive-strength = <8>;
97+
bias-pull-up;
98+
};
99+
100+
sdc2_cd_default: sdc2-cd-default-state {
101+
pins = "gpio38";
102+
function = "gpio";
103+
drive-strength = <2>;
104+
bias-disable;
105+
};
106+
};

0 commit comments

Comments
 (0)