arm64: dts: qcom: msm8916-longcheer-l8150: Enable PM8916 vibrator
[linux-2.6-block.git] / arch / arm64 / boot / dts / qcom / msm8916-longcheer-l8150.dts
CommitLineData
16e8e807
SG
1// SPDX-License-Identifier: GPL-2.0-only
2
3/dts-v1/;
4
bfe9d754 5#include "msm8916-pm8916.dtsi"
16e8e807 6#include <dt-bindings/gpio/gpio.h>
3ba8bbc4 7#include <dt-bindings/input/input.h>
16e8e807
SG
8
9/ {
10 model = "Longcheer L8150";
11 compatible = "longcheer,l8150", "qcom,msm8916-v1-qrd/9-v1", "qcom,msm8916";
12
13 aliases {
14 serial0 = &blsp1_uart2;
15 };
16
17 chosen {
18 stdout-path = "serial0";
19 };
20
b0e1600d
NT
21 reserved-memory {
22 // wcnss.mdt is not relocatable, so it must be loaded at 0x8b600000
23 /delete-node/ wcnss@89300000;
24
25 wcnss_mem: wcnss@8b600000 {
26 reg = <0x0 0x8b600000 0x0 0x600000>;
27 no-map;
28 };
29 };
30
16e8e807
SG
31 // FIXME: Use extcon device provided by charger driver when available
32 usb_vbus: usb-vbus {
33 compatible = "linux,extcon-usb-gpio";
34 vbus-gpio = <&msmgpio 62 GPIO_ACTIVE_HIGH>;
35 pinctrl-names = "default";
36 pinctrl-0 = <&usb_vbus_default>;
37 };
3ba8bbc4
NT
38
39 gpio-keys {
40 compatible = "gpio-keys";
41
42 pinctrl-names = "default";
43 pinctrl-0 = <&gpio_keys_default>;
44
45 label = "GPIO Buttons";
46
47 volume-up {
48 label = "Volume Up";
49 gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_VOLUMEUP>;
51 };
52 };
16e8e807
SG
53};
54
e2f6482a
SG
55&blsp1_uart2 {
56 status = "okay";
e2f6482a
SG
57};
58
4eb7b63d
SG
59&pm8916_resin {
60 status = "okay";
61 linux,code = <KEY_VOLUMEDOWN>;
62};
63
0af8bbdb
NT
64&pm8916_vib {
65 status = "okay";
66};
67
e2f6482a
SG
68&pronto {
69 status = "okay";
70};
71
72&sdhc_1 {
73 status = "okay";
74
e2f6482a
SG
75 pinctrl-names = "default", "sleep";
76 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
77 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
78};
79
80&sdhc_2 {
81 status = "okay";
82
e2f6482a
SG
83 pinctrl-names = "default", "sleep";
84 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>;
85 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>;
86
87 non-removable;
88};
89
e2f6482a
SG
90&usb {
91 status = "okay";
92 dr_mode = "peripheral";
93 extcon = <&usb_vbus>;
e2f6482a
SG
94};
95
96&usb_hs_phy {
97 extcon = <&usb_vbus>;
e2f6482a
SG
98};
99
16e8e807
SG
100&smd_rpm_regulators {
101 vdd_l1_l2_l3-supply = <&pm8916_s3>;
102 vdd_l4_l5_l6-supply = <&pm8916_s4>;
103 vdd_l7-supply = <&pm8916_s4>;
104
16e8e807
SG
105 s3 {
106 regulator-min-microvolt = <1200000>;
107 regulator-max-microvolt = <1300000>;
108 };
109
110 s4 {
111 regulator-min-microvolt = <1800000>;
112 regulator-max-microvolt = <2100000>;
113 };
114
115 l1 {
116 regulator-min-microvolt = <1225000>;
117 regulator-max-microvolt = <1225000>;
118 };
119
120 l2 {
121 regulator-min-microvolt = <1200000>;
122 regulator-max-microvolt = <1200000>;
123 };
124
16e8e807
SG
125 l4 {
126 regulator-min-microvolt = <2050000>;
127 regulator-max-microvolt = <2050000>;
128 };
129
130 l5 {
131 regulator-min-microvolt = <1800000>;
132 regulator-max-microvolt = <1800000>;
133 };
134
135 l6 {
136 regulator-min-microvolt = <1800000>;
137 regulator-max-microvolt = <1800000>;
138 };
139
140 l7 {
141 regulator-min-microvolt = <1800000>;
142 regulator-max-microvolt = <1800000>;
143 };
144
145 l8 {
146 regulator-min-microvolt = <2850000>;
147 regulator-max-microvolt = <2900000>;
148 };
149
150 l9 {
151 regulator-min-microvolt = <3300000>;
152 regulator-max-microvolt = <3300000>;
153 };
154
155 l10 {
156 regulator-min-microvolt = <2700000>;
157 regulator-max-microvolt = <2800000>;
158 };
159
160 l11 {
161 regulator-min-microvolt = <1800000>;
162 regulator-max-microvolt = <2950000>;
163 regulator-allow-set-load;
164 regulator-system-load = <200000>;
165 };
166
167 l12 {
168 regulator-min-microvolt = <1800000>;
169 regulator-max-microvolt = <2950000>;
170 };
171
172 l13 {
173 regulator-min-microvolt = <3075000>;
174 regulator-max-microvolt = <3075000>;
175 };
176
177 l14 {
178 regulator-min-microvolt = <1800000>;
179 regulator-max-microvolt = <3300000>;
180 };
181
182 l15 {
183 regulator-min-microvolt = <1800000>;
184 regulator-max-microvolt = <3300000>;
185 };
186
187 l16 {
188 regulator-min-microvolt = <1800000>;
189 regulator-max-microvolt = <3300000>;
190 };
191
192 l17 {
193 regulator-min-microvolt = <2850000>;
194 regulator-max-microvolt = <2850000>;
195 };
196
197 l18 {
198 regulator-min-microvolt = <2700000>;
199 regulator-max-microvolt = <2700000>;
200 };
201};
f7f394f0
SG
202
203&msmgpio {
204 gpio_keys_default: gpio-keys-default {
6554a295
SG
205 pins = "gpio107";
206 function = "gpio";
207
208 drive-strength = <2>;
209 bias-pull-up;
f7f394f0
SG
210 };
211
212 usb_vbus_default: usb-vbus-default {
6554a295
SG
213 pins = "gpio62";
214 function = "gpio";
215
216 bias-pull-up;
f7f394f0
SG
217 };
218};