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 mmc0 = &sdhc_1; /* eMMC */
18 mmc1 = &sdhc_2; /* SD card */
19 serial0 = &blsp_uart2;
23 stdout-path = "serial0";
27 * For some reason, the signed wcnss firmware is not relocatable.
28 * It must be loaded at 0x8b600000. All other firmware is relocatable,
29 * so place wcnss at the fixed address and then all other firmware
30 * regions will be automatically allocated at a fitting place.
35 wcnss_mem: wcnss@8b600000 {
36 reg = <0x0 0x8b600000 0x0 0x600000>;
42 compatible = "gpio-keys";
44 pinctrl-names = "default";
45 pinctrl-0 = <&gpio_keys_default>;
47 label = "GPIO Buttons";
51 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_VOLUMEUP>;
56 reg_ctp: regulator-ctp {
57 compatible = "regulator-fixed";
58 regulator-name = "ctp";
60 regulator-min-microvolt = <2800000>;
61 regulator-max-microvolt = <2800000>;
63 gpio = <&tlmm 17 GPIO_ACTIVE_HIGH>;
66 pinctrl-names = "default";
67 pinctrl-0 = <&ctp_pwr_en_default>;
70 flash-led-controller {
71 compatible = "sgmicro,sgm3140";
72 flash-gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>;
73 enable-gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>;
75 pinctrl-names = "default";
76 pinctrl-0 = <&camera_flash_default>;
79 function = LED_FUNCTION_FLASH;
80 color = <LED_COLOR_ID_WHITE>;
81 flash-max-timeout-us = <250000>;
90 compatible = "awinic,aw2013";
95 vcc-supply = <&pm8916_l17>;
99 led-max-microamp = <5000>;
100 function = LED_FUNCTION_INDICATOR;
101 color = <LED_COLOR_ID_RED>;
106 led-max-microamp = <5000>;
107 function = LED_FUNCTION_INDICATOR;
108 color = <LED_COLOR_ID_GREEN>;
113 led-max-microamp = <5000>;
114 function = LED_FUNCTION_INDICATOR;
115 color = <LED_COLOR_ID_BLUE>;
124 compatible = "bosch,bmc156_accel";
128 * For some reason the interrupt line is usually not connected
129 * to the BMC156. However, there are two pads next to the chip
130 * that can be shorted to make it work if needed.
132 * interrupt-parent = <&tlmm>;
133 * interrupts = <116 IRQ_TYPE_EDGE_RISING>;
136 pinctrl-names = "default";
137 pinctrl-0 = <&accel_int_default>;
139 vdd-supply = <&pm8916_l17>;
140 vddio-supply = <&pm8916_l6>;
142 mount-matrix = "0", "1", "0",
148 compatible = "bosch,bmc156_magn";
151 interrupt-parent = <&tlmm>;
152 interrupts = <113 IRQ_TYPE_EDGE_RISING>;
154 pinctrl-names = "default";
155 pinctrl-0 = <&magn_int_default>;
157 vdd-supply = <&pm8916_l17>;
158 vddio-supply = <&pm8916_l6>;
162 compatible = "liteon,ltr559";
164 proximity-near-level = <75>;
166 interrupt-parent = <&tlmm>;
167 interrupts = <115 IRQ_TYPE_EDGE_FALLING>;
169 pinctrl-names = "default";
170 pinctrl-0 = <&light_int_default>;
172 vdd-supply = <&pm8916_l17>;
173 vddio-supply = <&pm8916_l6>;
177 compatible = "bosch,bmg160";
180 interrupt-parent = <&tlmm>;
181 interrupts = <23 IRQ_TYPE_EDGE_RISING>,
182 <22 IRQ_TYPE_EDGE_RISING>;
184 pinctrl-names = "default";
185 pinctrl-0 = <&gyro_int_default>;
187 vdd-supply = <&pm8916_l17>;
188 vddio-supply = <&pm8916_l6>;
196 compatible = "syna,rmi4-i2c";
198 #address-cells = <1>;
201 interrupt-parent = <&tlmm>;
202 interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
204 vdd-supply = <®_ctp>;
205 vio-supply = <&pm8916_l6>;
207 pinctrl-names = "default";
208 pinctrl-0 = <&tp_int_default>;
210 syna,startup-delay-ms = <10>;
214 syna,nosleep-mode = <1>; /* Allow sleeping */
219 syna,sensor-type = <1>; /* Touchscreen */
230 linux,code = <KEY_VOLUMEDOWN>;
233 &pm8916_rpm_regulators {
235 regulator-min-microvolt = <2850000>;
236 regulator-max-microvolt = <2850000>;
259 dr_mode = "peripheral";
260 extcon = <&pm8916_usbin>;
264 extcon = <&pm8916_usbin>;
280 compatible = "qcom,wcn3620";
288 accel_int_default: accel-int-default-state {
292 drive-strength = <2>;
296 camera_flash_default: camera-flash-default-state {
297 pins = "gpio31", "gpio32";
300 drive-strength = <2>;
304 ctp_pwr_en_default: ctp-pwr-en-default-state {
308 drive-strength = <2>;
312 gpio_keys_default: gpio-keys-default-state {
316 drive-strength = <2>;
320 gyro_int_default: gyro-int-default-state {
321 pins = "gpio22", "gpio23";
324 drive-strength = <2>;
328 light_int_default: light-int-default-state {
332 drive-strength = <2>;
336 magn_int_default: magn-int-default-state {
340 drive-strength = <2>;
344 tp_int_default: tp-int-default-state {
348 drive-strength = <2>;