Skip to content

Commit 450da3f

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

File tree

2 files changed

+206
-0
lines changed

2 files changed

+206
-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: 205 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,205 @@
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+
gpio-hall-sensor {
38+
compatible = "gpio-keys";
39+
pinctrl-0 = <&gpio_hall_sensor_default>;
40+
pinctrl-names = "default";
41+
label = "GPIO Hall Effect Sensor";
42+
43+
event-hall-sensor {
44+
label = "Hall Effect Sensor";
45+
gpios = <&tlmm 117 GPIO_ACTIVE_LOW>;
46+
linux,input-type = <EV_SW>;
47+
linux,code = <SW_LID>;
48+
linux,can-disable;
49+
};
50+
};
51+
52+
usb_id: usb-id {
53+
compatible = "linux,extcon-usb-gpio";
54+
id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>;
55+
pinctrl-0 = <&usb_id_default>;
56+
pinctrl-names = "default";
57+
};
58+
};
59+
60+
&blsp_uart2 {
61+
status = "okay";
62+
};
63+
64+
&blsp_i2c2 {
65+
status = "okay";
66+
67+
magnetometer@c {
68+
compatible = "asahi-kasei,ak09911";
69+
reg = <0x0c>;
70+
vdd-supply = <&pm8916_l17>;
71+
vid-supply = <&pm8916_l6>;
72+
reset-gpios = <&tlmm 120 GPIO_ACTIVE_LOW>;
73+
pinctrl-0 = <&mag_reset_default>;
74+
pinctrl-names = "default";
75+
mount-matrix = "1", "0", "0",
76+
"0", "1", "0",
77+
"0", "0", "1";
78+
};
79+
80+
proximity@48 {
81+
compatible = "sensortek,stk3310"; // is it 3310?
82+
reg = <0x48>;
83+
interrupts-extended = <&tlmm 113 IRQ_TYPE_EDGE_FALLING>;
84+
pinctrl-0 = <&proximity_int_default>;
85+
pinctrl-names = "default";
86+
};
87+
88+
imu@68 {
89+
compatible = "invensense,mpu6880";
90+
reg = <0x68>;
91+
interrupts-extended = <&tlmm 115 IRQ_TYPE_EDGE_FALLING>;
92+
vdd-supply = <&pm8916_l17>;
93+
vddio-supply = <&pm8916_l6>;
94+
pinctrl-0 = <&imu_int_default>;
95+
pinctrl-names = "default";
96+
mount-matrix = "0", "-1", "0",
97+
"-1", "0", "0",
98+
"0", "0", "-1";
99+
};
100+
};
101+
102+
// make sure gcc is probed with display disabled.
103+
&gcc {
104+
clocks = <&xo_board>, <&sleep_clk>, <0>, <0>, <0>, <0>, <0>;
105+
};
106+
107+
&pm8916_resin {
108+
linux,code = <KEY_VOLUMEDOWN>;
109+
status = "okay";
110+
};
111+
112+
&pm8916_rpm_regulators {
113+
pm8916_l17: l17 {
114+
regulator-min-microvolt = <2850000>;
115+
regulator-max-microvolt = <2850000>;
116+
};
117+
};
118+
119+
&pm8916_vib {
120+
status = "okay";
121+
};
122+
123+
&sdhc_1 {
124+
status = "okay";
125+
};
126+
127+
&sdhc_2 {
128+
pinctrl-0 = <&sdc2_default>, <&sdc2_cd_default>;
129+
pinctrl-1 = <&sdc2_sleep>, <&sdc2_cd_default>;
130+
pinctrl-names = "default", "sleep";
131+
cd_gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>;
132+
status = "okay";
133+
};
134+
135+
&usb {
136+
extcon = <&usb_id>, <&usb_id>;
137+
status = "okay";
138+
};
139+
140+
&usb_hs_phy {
141+
extcon = <&usb_id>;
142+
};
143+
144+
&wcnss {
145+
status = "okay";
146+
};
147+
148+
&wcnss_iris {
149+
compatible = "qcom,wcn3620";
150+
};
151+
152+
&wcnss_mem {
153+
status = "okay";
154+
};
155+
156+
&tlmm {
157+
gpio_keys_default: gpio-keys-default-state {
158+
pins = "gpio107";
159+
function = "gpio";
160+
drive-strength = <2>;
161+
bias-pull-up;
162+
};
163+
164+
gpio_hall_sensor_default: gpio-hall-sensor-default-state {
165+
pins = "gpio117";
166+
function = "gpio";
167+
drive-strength = <6>;
168+
bias-pull-up;
169+
};
170+
171+
imu_int_default: imu-int-default-state {
172+
pins = "gpio115";
173+
function = "gpio";
174+
drive-strength = <2>;
175+
bias-disable;
176+
};
177+
178+
mag_reset_default: mag-reset-default-state {
179+
pins = "gpio120";
180+
function = "gpio";
181+
drive-strength = <2>;
182+
bias-disable;
183+
};
184+
185+
proximity_int_default: proximity-int-default-state {
186+
pins = "gpio113";
187+
function = "gpio";
188+
drive-strength = <6>;
189+
bias-pull-up;
190+
};
191+
192+
sdc2_cd_default: sdc2-cd-default-state {
193+
pins = "gpio38";
194+
function = "gpio";
195+
drive-strength = <2>;
196+
bias-disable;
197+
};
198+
199+
usb_id_default: usb-id-default-state {
200+
pins = "gpio110";
201+
function = "gpio";
202+
drive-strength = <8>;
203+
bias-pull-up;
204+
};
205+
};

0 commit comments

Comments
 (0)