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};
141