Skip to content

Commit 690e367

Browse files
André Apitzschandersson
authored andcommitted
ARM: dts: qcom: msm8926-motorola-peregrine: Add initial device tree
This dts adds support for Motorola Moto G 4G released in 2013. Add a device tree with initial support for: - GPIO keys - Hall sensor - SDHCI - Vibrator Signed-off-by: André Apitzsch <git@apitzsch.eu> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Link: https://lore.kernel.org/r/20231214-peregrine-v2-2-a35102268442@apitzsch.eu Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 7514b28 commit 690e367

2 files changed

Lines changed: 292 additions & 0 deletions

File tree

arch/arm/boot/dts/qcom/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \
3535
qcom-msm8926-htc-memul.dtb \
3636
qcom-msm8926-microsoft-superman-lte.dtb \
3737
qcom-msm8926-microsoft-tesla.dtb \
38+
qcom-msm8926-motorola-peregrine.dtb \
3839
qcom-msm8960-cdp.dtb \
3940
qcom-msm8960-samsung-expressatt.dtb \
4041
qcom-msm8974-lge-nexus5-hammerhead.dtb \
Lines changed: 291 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,291 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
3+
/dts-v1/;
4+
5+
#include "qcom-msm8226.dtsi"
6+
#include "pm8226.dtsi"
7+
8+
/delete-node/ &smem_region;
9+
10+
/ {
11+
model = "Motorola Moto G 4G (2013)";
12+
compatible = "motorola,peregrine", "qcom,msm8926", "qcom,msm8226";
13+
chassis-type = "handset";
14+
15+
aliases {
16+
mmc0 = &sdhc_1; /* SDC1 eMMC slot */
17+
mmc1 = &sdhc_2; /* SDC2 SD card slot */
18+
};
19+
20+
chosen {
21+
#address-cells = <1>;
22+
#size-cells = <1>;
23+
ranges;
24+
25+
framebuffer0: framebuffer@3200000 {
26+
compatible = "simple-framebuffer";
27+
reg = <0x03200000 0x800000>;
28+
width = <720>;
29+
height = <1280>;
30+
stride = <(720 * 3)>;
31+
format = "r8g8b8";
32+
};
33+
};
34+
35+
gpio-keys {
36+
compatible = "gpio-keys";
37+
38+
event-hall-sensor {
39+
label = "Hall Effect Sensor";
40+
gpios = <&tlmm 51 GPIO_ACTIVE_LOW>;
41+
linux,input-type = <EV_SW>;
42+
linux,code = <SW_LID>;
43+
linux,can-disable;
44+
};
45+
46+
key-volume-up {
47+
label = "Volume Up";
48+
gpios = <&tlmm 106 GPIO_ACTIVE_LOW>;
49+
linux,code = <KEY_VOLUMEUP>;
50+
debounce-interval = <15>;
51+
};
52+
};
53+
54+
reserved-memory {
55+
#address-cells = <1>;
56+
#size-cells = <1>;
57+
ranges;
58+
59+
framebuffer@3200000 {
60+
reg = <0x03200000 0x800000>;
61+
no-map;
62+
};
63+
64+
smem_region: smem@fa00000 {
65+
reg = <0x0fa00000 0x100000>;
66+
no-map;
67+
};
68+
};
69+
};
70+
71+
&blsp1_i2c3 {
72+
status = "okay";
73+
74+
sensor@48 {
75+
compatible = "ti,tmp108";
76+
reg = <0x48>;
77+
};
78+
};
79+
80+
&blsp1_uart3 {
81+
status = "okay";
82+
};
83+
84+
&pm8226_resin {
85+
linux,code = <KEY_VOLUMEDOWN>;
86+
status = "okay";
87+
};
88+
89+
&pm8226_vib {
90+
status = "okay";
91+
};
92+
93+
&rpm_requests {
94+
regulators {
95+
compatible = "qcom,rpm-pm8226-regulators";
96+
97+
pm8226_s3: s3 {
98+
regulator-min-microvolt = <1200000>;
99+
regulator-max-microvolt = <1300000>;
100+
};
101+
102+
pm8226_s4: s4 {
103+
regulator-min-microvolt = <1800000>;
104+
regulator-max-microvolt = <2200000>;
105+
};
106+
107+
pm8226_s5: s5 {
108+
regulator-min-microvolt = <1150000>;
109+
regulator-max-microvolt = <1150000>;
110+
};
111+
112+
pm8226_l1: l1 {
113+
regulator-min-microvolt = <1225000>;
114+
regulator-max-microvolt = <1225000>;
115+
};
116+
117+
pm8226_l2: l2 {
118+
regulator-min-microvolt = <1200000>;
119+
regulator-max-microvolt = <1200000>;
120+
};
121+
122+
pm8226_l3: l3 {
123+
regulator-min-microvolt = <750000>;
124+
regulator-max-microvolt = <1337500>;
125+
};
126+
127+
pm8226_l4: l4 {
128+
regulator-min-microvolt = <1200000>;
129+
regulator-max-microvolt = <1200000>;
130+
};
131+
132+
pm8226_l5: l5 {
133+
regulator-min-microvolt = <1200000>;
134+
regulator-max-microvolt = <1200000>;
135+
};
136+
137+
pm8226_l6: l6 {
138+
regulator-min-microvolt = <1800000>;
139+
regulator-max-microvolt = <1800000>;
140+
regulator-allow-set-load;
141+
};
142+
143+
pm8226_l7: l7 {
144+
regulator-min-microvolt = <1850000>;
145+
regulator-max-microvolt = <1850000>;
146+
};
147+
148+
pm8226_l8: l8 {
149+
regulator-min-microvolt = <1800000>;
150+
regulator-max-microvolt = <1800000>;
151+
};
152+
153+
pm8226_l9: l9 {
154+
regulator-min-microvolt = <2050000>;
155+
regulator-max-microvolt = <2050000>;
156+
};
157+
158+
pm8226_l10: l10 {
159+
regulator-min-microvolt = <1800000>;
160+
regulator-max-microvolt = <1800000>;
161+
};
162+
163+
pm8226_l12: l12 {
164+
regulator-min-microvolt = <1800000>;
165+
regulator-max-microvolt = <1800000>;
166+
};
167+
168+
pm8226_l14: l14 {
169+
regulator-min-microvolt = <2750000>;
170+
regulator-max-microvolt = <2750000>;
171+
};
172+
173+
pm8226_l15: l15 {
174+
regulator-min-microvolt = <2800000>;
175+
regulator-max-microvolt = <2800000>;
176+
};
177+
178+
pm8226_l16: l16 {
179+
regulator-min-microvolt = <3000000>;
180+
regulator-max-microvolt = <3350000>;
181+
};
182+
183+
pm8226_l17: l17 {
184+
regulator-min-microvolt = <2950000>;
185+
regulator-max-microvolt = <2950000>;
186+
};
187+
188+
pm8226_l18: l18 {
189+
regulator-min-microvolt = <2950000>;
190+
regulator-max-microvolt = <2950000>;
191+
};
192+
193+
pm8226_l19: l19 {
194+
regulator-min-microvolt = <2850000>;
195+
regulator-max-microvolt = <2850000>;
196+
};
197+
198+
pm8226_l20: l20 {
199+
regulator-min-microvolt = <3075000>;
200+
regulator-max-microvolt = <3075000>;
201+
};
202+
203+
pm8226_l21: l21 {
204+
regulator-min-microvolt = <1800000>;
205+
regulator-max-microvolt = <2950000>;
206+
regulator-allow-set-load;
207+
};
208+
209+
pm8226_l22: l22 {
210+
regulator-min-microvolt = <1800000>;
211+
regulator-max-microvolt = <2950000>;
212+
};
213+
214+
pm8226_l23: l23 {
215+
regulator-min-microvolt = <1800000>;
216+
regulator-max-microvolt = <2950000>;
217+
};
218+
219+
pm8226_l24: l24 {
220+
regulator-min-microvolt = <1300000>;
221+
regulator-max-microvolt = <1350000>;
222+
};
223+
224+
pm8226_l25: l25 {
225+
regulator-min-microvolt = <1775000>;
226+
regulator-max-microvolt = <2125000>;
227+
};
228+
229+
pm8226_l26: l26 {
230+
regulator-min-microvolt = <1225000>;
231+
regulator-max-microvolt = <1225000>;
232+
};
233+
234+
pm8226_l27: l27 {
235+
regulator-min-microvolt = <2050000>;
236+
regulator-max-microvolt = <2050000>;
237+
};
238+
239+
pm8226_l28: l28 {
240+
regulator-min-microvolt = <1800000>;
241+
regulator-max-microvolt = <3400000>;
242+
regulator-boot-on;
243+
};
244+
245+
pm8226_lvs1: lvs1 {
246+
/* Pull-up for I2C lines */
247+
regulator-always-on;
248+
};
249+
};
250+
};
251+
252+
&sdhc_1 {
253+
vmmc-supply = <&pm8226_l17>;
254+
vqmmc-supply = <&pm8226_l6>;
255+
256+
bus-width = <8>;
257+
non-removable;
258+
259+
status = "okay";
260+
};
261+
262+
&sdhc_2 {
263+
vmmc-supply = <&pm8226_l18>;
264+
vqmmc-supply = <&pm8226_l21>;
265+
266+
bus-width = <4>;
267+
cd-gpios = <&tlmm 115 GPIO_ACTIVE_HIGH>;
268+
269+
status = "okay";
270+
};
271+
272+
&smbb {
273+
qcom,fast-charge-safe-current = <2000000>;
274+
qcom,fast-charge-current-limit = <1900000>;
275+
qcom,fast-charge-safe-voltage = <4400000>;
276+
qcom,minimum-input-voltage = <4300000>;
277+
278+
status = "okay";
279+
};
280+
281+
&usb {
282+
extcon = <&smbb>;
283+
dr_mode = "peripheral";
284+
status = "okay";
285+
};
286+
287+
&usb_hs_phy {
288+
extcon = <&smbb>;
289+
v1p8-supply = <&pm8226_l10>;
290+
v3p3-supply = <&pm8226_l20>;
291+
};

0 commit comments

Comments
 (0)