Skip to content

Commit 2a8c0f7

Browse files
author
André Apitzsch
committed
arm64: dts: qcom: msm8939-htc-m8qlul: Add initial device tree
This dts adds support for HTC One M8s smartphone released in 2015. Signed-off-by: Stefan Hansson <[email protected]> [André: rebased] Signed-off-by: André Apitzsch <[email protected]>
1 parent 977f2f5 commit 2a8c0f7

File tree

2 files changed

+237
-0
lines changed

2 files changed

+237
-0
lines changed

arch/arm64/boot/dts/qcom/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-yiming-uz801v3.dtb
7777
dtb-$(CONFIG_ARCH_QCOM) += msm8917-xiaomi-riva.dtb
7878
dtb-$(CONFIG_ARCH_QCOM) += msm8929-wingtech-wt82918hd.dtb
7979
dtb-$(CONFIG_ARCH_QCOM) += msm8939-alcatel-idol3.dtb
80+
dtb-$(CONFIG_ARCH_QCOM) += msm8939-htc-m8qlul.dtb
8081
dtb-$(CONFIG_ARCH_QCOM) += msm8939-huawei-kiwi.dtb
8182
dtb-$(CONFIG_ARCH_QCOM) += msm8939-longcheer-l9100.dtb
8283
dtb-$(CONFIG_ARCH_QCOM) += msm8939-samsung-a7.dtb
Lines changed: 236 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,236 @@
1+
// SPDX-License-Identifier: GPL-2.0-only
2+
3+
/dts-v1/;
4+
5+
#include "msm8939-pm8916.dtsi"
6+
7+
#include <dt-bindings/gpio/gpio.h>
8+
9+
/ {
10+
model = "HTC One M8s";
11+
compatible = "htc,m8qlul", "qcom,msm8939";
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+
bootargs = "earlycon=tty0 console=tty0";
22+
stdout-path = "framebuffer0";
23+
24+
#address-cells = <2>;
25+
#size-cells = <2>;
26+
ranges;
27+
28+
framebuffer0: framebuffer@83003000 {
29+
compatible = "simple-framebuffer";
30+
reg = <0x0 0x83200000 0x0 0xfa0000>;
31+
width = <1080>;
32+
height = <1920>;
33+
stride = <(1080 * 3)>;
34+
format = "r8g8b8";
35+
};
36+
};
37+
38+
reserved-memory {
39+
#address-cells = <2>;
40+
#size-cells = <2>;
41+
ranges;
42+
43+
// /delete-node/ venus@8c300000;
44+
45+
cont_splash_mem: framebuffer@83000000 {
46+
compatible = "removed-dma-pool";
47+
reg = <0x0 0x83200000 0x0 0xfa0000>;
48+
no-map;
49+
};
50+
51+
ramoops: ramoops_mem_region@8cb00000 {
52+
compatible = "ramoops";
53+
reg = <0x0 0x8cb00000 0x0 0x100000>;
54+
55+
record-size = <65536>;
56+
console-size = <0x100000>;
57+
ftrace-size = <0>;
58+
pmsg-size = <524288>;
59+
};
60+
61+
htc_reserve_region@8cbd0000 {
62+
reg = <0x00 0x8cbd0000 0x00 0x20000>;
63+
no-map;
64+
};
65+
66+
// venus_mem: venus@8e800000 {
67+
// reg = <0x00 0x8e800000 0x00 0x500000>;
68+
// no-map;
69+
// };
70+
};
71+
72+
gpio-keys {
73+
compatible = "gpio-keys";
74+
75+
pinctrl-0 = <&gpio_keys_default>;
76+
pinctrl-names = "default";
77+
78+
label = "GPIO Buttons";
79+
80+
button-volume-up {
81+
label = "Volume Up";
82+
gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
83+
linux,code = <KEY_VOLUMEUP>;
84+
};
85+
};
86+
87+
usb_id: usb-id {
88+
compatible = "linux,extcon-usb-gpio";
89+
id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>;
90+
pinctrl-0 = <&usb_id_default>;
91+
pinctrl-names = "default";
92+
};
93+
};
94+
95+
&blsp_uart2 {
96+
status = "okay";
97+
};
98+
99+
&mdss {
100+
status = "disabled";
101+
};
102+
103+
&pm8916_resin {
104+
linux,code = <KEY_VOLUMEDOWN>;
105+
106+
status = "okay";
107+
};
108+
109+
&pm8916_rpm_regulators {
110+
pm8916_s3: s3 { // ok
111+
regulator-min-microvolt = <1200000>;
112+
regulator-max-microvolt = <1300000>;
113+
};
114+
115+
pm8916_s4: s4 { // ok
116+
regulator-min-microvolt = <1800000>;
117+
regulator-max-microvolt = <2100000>;
118+
};
119+
120+
pm8916_l1: l1 { // ok
121+
regulator-min-microvolt = <1225000>;
122+
regulator-max-microvolt = <1225000>;
123+
};
124+
125+
pm8916_l4: l4 { // ok
126+
regulator-min-microvolt = <2050000>;
127+
regulator-max-microvolt = <2050000>;
128+
};
129+
130+
pm8916_l6: l6 { // ok
131+
regulator-always-on;
132+
regulator-boot-on;
133+
};
134+
135+
pm8916_l10: l10 { // ok, didn't originally match downstream
136+
regulator-min-microvolt = <1800000>;
137+
regulator-max-microvolt = <1800000>;
138+
regulator-always-on; /* comment from downstream: V_AUD_1V8 need always on as audio request */
139+
};
140+
141+
pm8916_l14: l14 { // ok
142+
regulator-min-microvolt = <1800000>;
143+
regulator-max-microvolt = <3300000>;
144+
};
145+
146+
pm8916_l15: l15 { // ok
147+
regulator-min-microvolt = <1800000>;
148+
regulator-max-microvolt = <3300000>;
149+
};
150+
151+
pm8916_l16: l16 { // ok
152+
regulator-min-microvolt = <1800000>;
153+
regulator-max-microvolt = <3300000>;
154+
};
155+
156+
pm8916_l17: l17 { // ok, didn't originally match downstream
157+
regulator-min-microvolt = <3300000>;
158+
regulator-max-microvolt = <3300000>;
159+
};
160+
161+
pm8916_l18: l18 { // ok
162+
regulator-min-microvolt = <2700000>;
163+
regulator-max-microvolt = <2700000>;
164+
};
165+
};
166+
167+
&pm8916_vib {
168+
status = "okay";
169+
};
170+
171+
&sdhc_1 {
172+
vmmc-supply = <&pm8916_l8>;
173+
vqmmc-supply = <&pm8916_l5>;
174+
175+
status = "okay";
176+
};
177+
178+
&sdhc_2 {
179+
vmmc-supply = <&pm8916_l11>;
180+
vqmmc-supply = <&pm8916_l12>;
181+
182+
pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
183+
pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
184+
pinctrl-names = "default", "sleep";
185+
186+
cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
187+
188+
status = "okay";
189+
};
190+
191+
&usb {
192+
extcon = <&usb_id>, <&usb_id>;
193+
194+
status = "okay";
195+
};
196+
197+
&usb_hs_phy {
198+
extcon = <&usb_id>;
199+
v1p8-supply = <&pm8916_l7>;
200+
v3p3-supply = <&pm8916_l13>;
201+
};
202+
203+
&wcnss {
204+
status = "okay";
205+
};
206+
207+
&wcnss_iris {
208+
compatible = "qcom,wcn3680";
209+
};
210+
211+
&wcnss_mem {
212+
status = "okay";
213+
};
214+
215+
&tlmm {
216+
gpio_keys_default: gpio-keys-default-state {
217+
pins = "gpio107";
218+
function = "gpio";
219+
drive-strength = <2>;
220+
bias-pull-up;
221+
};
222+
223+
sdc2_cd_default: sdc2-cd-default-state {
224+
pins = "gpio38";
225+
function = "gpio";
226+
drive-strength = <2>;
227+
bias-disable;
228+
};
229+
230+
usb_id_default: usb-id-default-state {
231+
pins = "gpio110";
232+
function = "gpio";
233+
drive-strength = <8>;
234+
bias-pull-up;
235+
};
236+
};

0 commit comments

Comments
 (0)