Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 88bf3be

Browse files
Anton Bamburaandersson
authored andcommitted
arm64: dts: qcom: msm8916-lg-c50: add initial dts for LG Leon LTE
Add initial device-tree for LG Leon LTE (lg-c50), currently supported features: - eMMC; - MicroSD; - usb in peripheral mode; - WiFi/BT; - vibration; - keys. Signed-off-by: Anton Bambura <jenneron@postmarketos.org> Signed-off-by: Nikita Travkin <nikita@trvn.ru> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Link: https://lore.kernel.org/r/20240623-msm8916-lg-initial-v1-3-6fbcf714d69b@trvn.ru Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 0655b44 commit 88bf3be

File tree

2 files changed

+141
-0
lines changed

2 files changed

+141
-0
lines changed

arch/arm64/boot/dts/qcom/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-alcatel-idol347.dtb
3131
dtb-$(CONFIG_ARCH_QCOM) += msm8916-asus-z00l.dtb
3232
dtb-$(CONFIG_ARCH_QCOM) += msm8916-gplus-fl8005a.dtb
3333
dtb-$(CONFIG_ARCH_QCOM) += msm8916-huawei-g7.dtb
34+
dtb-$(CONFIG_ARCH_QCOM) += msm8916-lg-c50.dtb
3435
dtb-$(CONFIG_ARCH_QCOM) += msm8916-lg-m216.dtb
3536
dtb-$(CONFIG_ARCH_QCOM) += msm8916-longcheer-l8150.dtb
3637
dtb-$(CONFIG_ARCH_QCOM) += msm8916-longcheer-l8910.dtb
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
// SPDX-License-Identifier: GPL-2.0-only
2+
3+
/dts-v1/;
4+
5+
#include "msm8916-pm8916.dtsi"
6+
7+
#include <dt-bindings/gpio/gpio.h>
8+
9+
/ {
10+
model = "LG Leon LTE";
11+
compatible = "lg,c50", "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+
32+
volume-up-button {
33+
label = "Volume Up";
34+
gpios = <&tlmm 108 GPIO_ACTIVE_LOW>;
35+
linux,code = <KEY_VOLUMEUP>;
36+
};
37+
38+
volume-down-button {
39+
label = "Volume Down";
40+
gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
41+
linux,code = <KEY_VOLUMEDOWN>;
42+
};
43+
};
44+
45+
reg_sd_vmmc: regulator-sdcard-vmmc {
46+
compatible = "regulator-fixed";
47+
regulator-name = "sdcard-vmmc";
48+
regulator-min-microvolt = <2950000>;
49+
regulator-max-microvolt = <2950000>;
50+
51+
gpio = <&tlmm 60 GPIO_ACTIVE_HIGH>;
52+
enable-active-high;
53+
54+
startup-delay-us = <5000>;
55+
56+
pinctrl-0 = <&sd_vmmc_en_default>;
57+
pinctrl-names = "default";
58+
};
59+
};
60+
61+
&blsp_uart2 {
62+
status = "okay";
63+
};
64+
65+
&pm8916_usbin {
66+
status = "okay";
67+
};
68+
69+
&pm8916_vib {
70+
status = "okay";
71+
};
72+
73+
&sdhc_1 {
74+
status = "okay";
75+
};
76+
77+
&sdhc_2 {
78+
vmmc-supply = <&reg_sd_vmmc>;
79+
80+
pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
81+
pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
82+
pinctrl-names = "default", "sleep";
83+
84+
cd-gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>;
85+
86+
status = "okay";
87+
};
88+
89+
&usb {
90+
dr_mode = "peripheral";
91+
extcon = <&pm8916_usbin>;
92+
status = "okay";
93+
};
94+
95+
&usb_hs_phy {
96+
extcon = <&pm8916_usbin>;
97+
};
98+
99+
&venus {
100+
status = "okay";
101+
};
102+
103+
&venus_mem {
104+
status = "okay";
105+
};
106+
107+
&wcnss {
108+
status = "okay";
109+
};
110+
111+
&wcnss_iris {
112+
compatible = "qcom,wcn3620";
113+
};
114+
115+
&wcnss_mem {
116+
status = "okay";
117+
};
118+
119+
&tlmm {
120+
gpio_keys_default: gpio-keys-default-state {
121+
pins = "gpio107", "gpio108";
122+
function = "gpio";
123+
drive-strength = <2>;
124+
bias-pull-up;
125+
};
126+
127+
sd_vmmc_en_default: sd-vmmc-en-default-state {
128+
pins = "gpio60";
129+
function = "gpio";
130+
drive-strength = <2>;
131+
bias-disable;
132+
};
133+
134+
sdc2_cd_default: sdc2-cd-default-state {
135+
pins = "gpio38";
136+
function = "gpio";
137+
drive-strength = <2>;
138+
bias-pull-down;
139+
};
140+
};

0 commit comments

Comments
 (0)