Skip to content

Commit d278d2e

Browse files
author
André Apitzsch
committed
arm64: dts: qcom: msm8939: 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 d278d2e

File tree

2 files changed

+236
-0
lines changed

2 files changed

+236
-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: 235 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,235 @@
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+
status= "okay";
30+
compatible = "simple-framebuffer";
31+
reg = <0x0 0x83200000 0x0 0xfa0000>;
32+
width = <1080>;
33+
height = <1920>;
34+
stride = <(1080 * 3)>;
35+
format = "r8g8b8";
36+
};
37+
};
38+
39+
reserved-memory {
40+
#address-cells = <2>;
41+
#size-cells = <2>;
42+
ranges;
43+
44+
// /delete-node/ venus@8c300000;
45+
46+
cont_splash_mem: framebuffer@83000000 {
47+
compatible = "removed-dma-pool";
48+
reg = <0x0 0x83200000 0x0 0xfa0000>;
49+
no-map;
50+
};
51+
52+
ramoops: ramoops_mem_region@8cb00000 {
53+
compatible = "ramoops";
54+
reg = <0x0 0x8cb00000 0x0 0x100000>;
55+
56+
record-size = <65536>;
57+
console-size = <0x100000>;
58+
ftrace-size = <0>;
59+
pmsg-size = <524288>;
60+
};
61+
62+
htc_reserve_region@8cbd0000 {
63+
reg = <0x00 0x8cbd0000 0x00 0x20000>;
64+
no-map;
65+
};
66+
67+
// venus_mem: venus@8e800000 {
68+
// reg = <0x00 0x8e800000 0x00 0x500000>;
69+
// no-map;
70+
// };
71+
};
72+
73+
gpio-keys {
74+
compatible = "gpio-keys";
75+
76+
pinctrl-0 = <&gpio_keys_default>;
77+
pinctrl-names = "default";
78+
79+
label = "GPIO Buttons";
80+
81+
button-volume-up {
82+
label = "Volume Up";
83+
gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
84+
linux,code = <KEY_VOLUMEUP>;
85+
};
86+
};
87+
88+
usb_id: usb-id {
89+
compatible = "linux,extcon-usb-gpio";
90+
id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>;
91+
pinctrl-0 = <&usb_id_default>;
92+
pinctrl-names = "default";
93+
};
94+
};
95+
96+
&blsp_uart2 {
97+
status = "okay";
98+
};
99+
100+
&mdss {
101+
status = "disabled";
102+
};
103+
104+
&pm8916_resin {
105+
linux,code = <KEY_VOLUMEDOWN>;
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+
status = "okay";
193+
extcon = <&usb_id>, <&usb_id>;
194+
};
195+
196+
&usb_hs_phy {
197+
extcon = <&usb_id>;
198+
v1p8-supply = <&pm8916_l7>;
199+
v3p3-supply = <&pm8916_l13>;
200+
};
201+
202+
&wcnss {
203+
status = "okay";
204+
};
205+
206+
&wcnss_iris {
207+
compatible = "qcom,wcn3680";
208+
};
209+
210+
&wcnss_mem {
211+
status = "okay";
212+
};
213+
214+
&tlmm {
215+
gpio_keys_default: gpio-keys-default-state {
216+
pins = "gpio107";
217+
function = "gpio";
218+
drive-strength = <2>;
219+
bias-pull-up;
220+
};
221+
222+
sdc2_cd_default: sdc2-cd-default-state {
223+
pins = "gpio38";
224+
function = "gpio";
225+
drive-strength = <2>;
226+
bias-disable;
227+
};
228+
229+
usb_id_default: usb-id-default-state {
230+
pins = "gpio110";
231+
function = "gpio";
232+
drive-strength = <8>;
233+
bias-pull-up;
234+
};
235+
};

0 commit comments

Comments
 (0)