1 // SPDX-License-Identifier: GPL-2.0-only
5 #include "msm8916-pm8916.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/leds/common.h>
12 model = "Longcheer L8150";
13 compatible = "longcheer,l8150", "qcom,msm8916-v1-qrd/9-v1", "qcom,msm8916";
14 chassis-type = "handset";
17 serial0 = &blsp1_uart2;
21 stdout-path = "serial0";
25 // wcnss.mdt is not relocatable, so it must be loaded at 0x8b600000
26 /delete-node/ wcnss@89300000;
28 wcnss_mem: wcnss@8b600000 {
29 reg = <0x0 0x8b600000 0x0 0x600000>;
35 compatible = "gpio-keys";
37 pinctrl-names = "default";
38 pinctrl-0 = <&gpio_keys_default>;
40 label = "GPIO Buttons";
44 gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_VOLUMEUP>;
49 reg_ctp: regulator-ctp {
50 compatible = "regulator-fixed";
51 regulator-name = "ctp";
53 regulator-min-microvolt = <2800000>;
54 regulator-max-microvolt = <2800000>;
56 gpio = <&msmgpio 17 GPIO_ACTIVE_HIGH>;
59 pinctrl-names = "default";
60 pinctrl-0 = <&ctp_pwr_en_default>;
63 flash-led-controller {
64 compatible = "sgmicro,sgm3140";
65 flash-gpios = <&msmgpio 31 GPIO_ACTIVE_HIGH>;
66 enable-gpios = <&msmgpio 32 GPIO_ACTIVE_HIGH>;
68 pinctrl-names = "default";
69 pinctrl-0 = <&camera_flash_default>;
72 function = LED_FUNCTION_FLASH;
73 color = <LED_COLOR_ID_WHITE>;
74 flash-max-timeout-us = <250000>;
83 compatible = "awinic,aw2013";
88 vcc-supply = <&pm8916_l17>;
92 led-max-microamp = <5000>;
93 function = LED_FUNCTION_INDICATOR;
94 color = <LED_COLOR_ID_RED>;
99 led-max-microamp = <5000>;
100 function = LED_FUNCTION_INDICATOR;
101 color = <LED_COLOR_ID_GREEN>;
106 led-max-microamp = <5000>;
107 function = LED_FUNCTION_INDICATOR;
108 color = <LED_COLOR_ID_BLUE>;
117 compatible = "bosch,bmc156_accel";
121 * For some reason the interrupt line is usually not connected
122 * to the BMC156. However, there are two pads next to the chip
123 * that can be shorted to make it work if needed.
125 * interrupt-parent = <&msmgpio>;
126 * interrupts = <116 IRQ_TYPE_EDGE_RISING>;
129 pinctrl-names = "default";
130 pinctrl-0 = <&accel_int_default>;
132 vdd-supply = <&pm8916_l17>;
133 vddio-supply = <&pm8916_l6>;
135 mount-matrix = "0", "1", "0",
141 compatible = "bosch,bmc156_magn";
144 interrupt-parent = <&msmgpio>;
145 interrupts = <113 IRQ_TYPE_EDGE_RISING>;
147 pinctrl-names = "default";
148 pinctrl-0 = <&magn_int_default>;
150 vdd-supply = <&pm8916_l17>;
151 vddio-supply = <&pm8916_l6>;
155 compatible = "liteon,ltr559";
157 proximity-near-level = <75>;
159 interrupt-parent = <&msmgpio>;
160 interrupts = <115 IRQ_TYPE_EDGE_FALLING>;
162 pinctrl-names = "default";
163 pinctrl-0 = <&light_int_default>;
165 vdd-supply = <&pm8916_l17>;
166 vio-supply = <&pm8916_l6>;
170 compatible = "bosch,bmg160";
173 interrupt-parent = <&msmgpio>;
174 interrupts = <23 IRQ_TYPE_EDGE_RISING>,
175 <22 IRQ_TYPE_EDGE_RISING>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&gyro_int_default>;
180 vdd-supply = <&pm8916_l17>;
181 vddio-supply = <&pm8916_l6>;
189 compatible = "syna,rmi4-i2c";
191 #address-cells = <1>;
194 interrupt-parent = <&msmgpio>;
195 interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
197 vdd-supply = <®_ctp>;
198 vio-supply = <&pm8916_l6>;
200 pinctrl-names = "default";
201 pinctrl-0 = <&tp_int_default>;
203 syna,startup-delay-ms = <10>;
207 syna,nosleep-mode = <1>; // Allow sleeping
212 syna,sensor-type = <1>; // Touchscreen
223 linux,code = <KEY_VOLUMEDOWN>;
241 pinctrl-names = "default", "sleep";
242 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
243 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
249 pinctrl-names = "default", "sleep";
250 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>;
251 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>;
258 dr_mode = "peripheral";
259 extcon = <&pm8916_usbin>;
263 extcon = <&pm8916_usbin>;
266 &smd_rpm_regulators {
267 vdd_l1_l2_l3-supply = <&pm8916_s3>;
268 vdd_l4_l5_l6-supply = <&pm8916_s4>;
269 vdd_l7-supply = <&pm8916_s4>;
272 regulator-min-microvolt = <1200000>;
273 regulator-max-microvolt = <1300000>;
277 regulator-min-microvolt = <1800000>;
278 regulator-max-microvolt = <2100000>;
282 regulator-min-microvolt = <1225000>;
283 regulator-max-microvolt = <1225000>;
287 regulator-min-microvolt = <1200000>;
288 regulator-max-microvolt = <1200000>;
292 regulator-min-microvolt = <2050000>;
293 regulator-max-microvolt = <2050000>;
297 regulator-min-microvolt = <1800000>;
298 regulator-max-microvolt = <1800000>;
302 regulator-min-microvolt = <1800000>;
303 regulator-max-microvolt = <1800000>;
307 regulator-min-microvolt = <1800000>;
308 regulator-max-microvolt = <1800000>;
312 regulator-min-microvolt = <2850000>;
313 regulator-max-microvolt = <2900000>;
317 regulator-min-microvolt = <3300000>;
318 regulator-max-microvolt = <3300000>;
322 regulator-min-microvolt = <2700000>;
323 regulator-max-microvolt = <2800000>;
327 regulator-min-microvolt = <1800000>;
328 regulator-max-microvolt = <2950000>;
329 regulator-allow-set-load;
330 regulator-system-load = <200000>;
334 regulator-min-microvolt = <1800000>;
335 regulator-max-microvolt = <2950000>;
339 regulator-min-microvolt = <3075000>;
340 regulator-max-microvolt = <3075000>;
344 regulator-min-microvolt = <1800000>;
345 regulator-max-microvolt = <3300000>;
349 regulator-min-microvolt = <1800000>;
350 regulator-max-microvolt = <3300000>;
354 regulator-min-microvolt = <1800000>;
355 regulator-max-microvolt = <3300000>;
359 regulator-min-microvolt = <2850000>;
360 regulator-max-microvolt = <2850000>;
364 regulator-min-microvolt = <2700000>;
365 regulator-max-microvolt = <2700000>;
370 accel_int_default: accel-int-default {
374 drive-strength = <2>;
378 camera_flash_default: camera-flash-default {
379 pins = "gpio31", "gpio32";
382 drive-strength = <2>;
386 ctp_pwr_en_default: ctp-pwr-en-default {
390 drive-strength = <2>;
394 gpio_keys_default: gpio-keys-default {
398 drive-strength = <2>;
402 gyro_int_default: gyro-int-default {
403 pins = "gpio22", "gpio23";
406 drive-strength = <2>;
410 light_int_default: light-int-default {
414 drive-strength = <2>;
418 magn_int_default: magn-int-default {
422 drive-strength = <2>;
426 tp_int_default: tp-int-default {
430 drive-strength = <2>;