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";
16 serial0 = &blsp1_uart2;
20 stdout-path = "serial0";
24 // wcnss.mdt is not relocatable, so it must be loaded at 0x8b600000
25 /delete-node/ wcnss@89300000;
27 wcnss_mem: wcnss@8b600000 {
28 reg = <0x0 0x8b600000 0x0 0x600000>;
33 // FIXME: Use extcon device provided by charger driver when available
35 compatible = "linux,extcon-usb-gpio";
36 vbus-gpio = <&msmgpio 62 GPIO_ACTIVE_HIGH>;
37 pinctrl-names = "default";
38 pinctrl-0 = <&usb_vbus_default>;
42 compatible = "gpio-keys";
44 pinctrl-names = "default";
45 pinctrl-0 = <&gpio_keys_default>;
47 label = "GPIO Buttons";
51 gpios = <&msmgpio 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 = <&msmgpio 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 = <&msmgpio 31 GPIO_ACTIVE_HIGH>;
73 enable-gpios = <&msmgpio 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,bmc150_accel";
127 vdd-supply = <&pm8916_l17>;
128 vddio-supply = <&pm8916_l6>;
130 mount-matrix = "0", "1", "0",
136 compatible = "bosch,bmc150_magn";
139 vdd-supply = <&pm8916_l17>;
140 vddio-supply = <&pm8916_l6>;
144 compatible = "bosch,bmg160";
147 interrupt-parent = <&msmgpio>;
148 interrupts = <23 IRQ_TYPE_EDGE_RISING>;
150 pinctrl-names = "default";
151 pinctrl-0 = <&gyro_int_default>;
153 vdd-supply = <&pm8916_l17>;
154 vddio-supply = <&pm8916_l6>;
162 compatible = "syna,rmi4-i2c";
164 #address-cells = <1>;
167 interrupt-parent = <&msmgpio>;
168 interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
170 vdd-supply = <®_ctp>;
171 vio-supply = <&pm8916_l6>;
173 pinctrl-names = "default";
174 pinctrl-0 = <&tp_int_default>;
176 syna,startup-delay-ms = <10>;
180 syna,nosleep-mode = <1>; // Allow sleeping
185 syna,sensor-type = <1>; // Touchscreen
196 linux,code = <KEY_VOLUMEDOWN>;
210 pinctrl-names = "default", "sleep";
211 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
212 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
218 pinctrl-names = "default", "sleep";
219 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>;
220 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>;
227 dr_mode = "peripheral";
228 extcon = <&usb_vbus>;
232 extcon = <&usb_vbus>;
235 &smd_rpm_regulators {
236 vdd_l1_l2_l3-supply = <&pm8916_s3>;
237 vdd_l4_l5_l6-supply = <&pm8916_s4>;
238 vdd_l7-supply = <&pm8916_s4>;
241 regulator-min-microvolt = <1200000>;
242 regulator-max-microvolt = <1300000>;
246 regulator-min-microvolt = <1800000>;
247 regulator-max-microvolt = <2100000>;
251 regulator-min-microvolt = <1225000>;
252 regulator-max-microvolt = <1225000>;
256 regulator-min-microvolt = <1200000>;
257 regulator-max-microvolt = <1200000>;
261 regulator-min-microvolt = <2050000>;
262 regulator-max-microvolt = <2050000>;
266 regulator-min-microvolt = <1800000>;
267 regulator-max-microvolt = <1800000>;
271 regulator-min-microvolt = <1800000>;
272 regulator-max-microvolt = <1800000>;
276 regulator-min-microvolt = <1800000>;
277 regulator-max-microvolt = <1800000>;
281 regulator-min-microvolt = <2850000>;
282 regulator-max-microvolt = <2900000>;
286 regulator-min-microvolt = <3300000>;
287 regulator-max-microvolt = <3300000>;
291 regulator-min-microvolt = <2700000>;
292 regulator-max-microvolt = <2800000>;
296 regulator-min-microvolt = <1800000>;
297 regulator-max-microvolt = <2950000>;
298 regulator-allow-set-load;
299 regulator-system-load = <200000>;
303 regulator-min-microvolt = <1800000>;
304 regulator-max-microvolt = <2950000>;
308 regulator-min-microvolt = <3075000>;
309 regulator-max-microvolt = <3075000>;
313 regulator-min-microvolt = <1800000>;
314 regulator-max-microvolt = <3300000>;
318 regulator-min-microvolt = <1800000>;
319 regulator-max-microvolt = <3300000>;
323 regulator-min-microvolt = <1800000>;
324 regulator-max-microvolt = <3300000>;
328 regulator-min-microvolt = <2850000>;
329 regulator-max-microvolt = <2850000>;
333 regulator-min-microvolt = <2700000>;
334 regulator-max-microvolt = <2700000>;
339 camera_flash_default: camera-flash-default {
340 pins = "gpio31", "gpio32";
343 drive-strength = <2>;
347 ctp_pwr_en_default: ctp-pwr-en-default {
351 drive-strength = <2>;
355 gpio_keys_default: gpio-keys-default {
359 drive-strength = <2>;
363 gyro_int_default: gyro-int-default {
367 drive-strength = <2>;
371 tp_int_default: tp-int-default {
375 drive-strength = <2>;
379 usb_vbus_default: usb-vbus-default {