1 // SPDX-License-Identifier: GPL-2.0-only
5 #include "msm8939-pm8916.dtsi"
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
12 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
15 model = "BQ Aquaris M5 (Longcheer L9100)";
16 compatible = "longcheer,l9100", "qcom,msm8939";
17 chassis-type = "handset";
20 mmc0 = &sdhc_1; /* eMMC */
21 mmc1 = &sdhc_2; /* SD card */
22 serial0 = &blsp_uart2;
26 stdout-path = "serial0";
30 compatible = "gpio-keys";
32 pinctrl-0 = <&gpio_hall_sensor_default>;
33 pinctrl-names = "default";
35 label = "GPIO Hall Effect Sensor";
38 label = "Hall Effect Sensor";
39 gpios = <&tlmm 20 GPIO_ACTIVE_LOW>;
40 linux,input-type = <EV_SW>;
41 linux,code = <SW_LID>;
47 compatible = "gpio-keys";
49 pinctrl-0 = <&gpio_keys_default>;
50 pinctrl-names = "default";
52 label = "GPIO Buttons";
56 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_VOLUMEUP>;
62 compatible = "gpio-leds";
65 gpios = <&tlmm 17 GPIO_ACTIVE_HIGH>;
66 color = <LED_COLOR_ID_WHITE>;
67 default-state = "off";
68 function = LED_FUNCTION_KBD_BACKLIGHT;
70 pinctrl-0 = <&button_backlight_default>;
71 pinctrl-names = "default";
75 reg_ts_vdd: regulator-vdd-ts {
76 compatible = "regulator-fixed";
77 regulator-name = "regulator-vdd-ts";
78 regulator-min-microvolt = <2850000>;
79 regulator-max-microvolt = <2850000>;
81 gpio = <&tlmm 78 GPIO_ACTIVE_HIGH>;
84 pinctrl-0 = <&ts_vdd_default>;
85 pinctrl-names = "default";
89 compatible = "pwm-backlight";
90 pwms = <&pm8916_pwm 0 100000>;
91 brightness-levels = <0 255>;
92 num-interpolated-steps = <255>;
93 default-brightness-level = <128>;
94 enable-gpios = <&tlmm 98 GPIO_ACTIVE_HIGH>;
96 pinctrl-0 = <&lcd_bl_en_default>;
97 pinctrl-names = "default";
100 flash-led-controller {
101 compatible = "ocs,ocp8110";
102 flash-gpios = <&tlmm 8 GPIO_ACTIVE_HIGH>;
103 enable-gpios = <&tlmm 49 GPIO_ACTIVE_HIGH>;
105 pinctrl-0 = <&camera_front_flash_default>;
106 pinctrl-names = "default";
109 function = LED_FUNCTION_FLASH;
110 color = <LED_COLOR_ID_WHITE>;
111 flash-max-timeout-us = <250000>;
116 compatible = "linux,extcon-usb-gpio";
117 id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>;
118 pinctrl-0 = <&usb_id_default &usb_id_switch_default>;
119 pinctrl-names = "default";
128 compatible = "kinetic,ktd2026";
130 #address-cells = <1>;
133 vin-supply = <&pm8916_l17>;
134 vio-supply = <&pm8916_l6>;
136 pinctrl-0 = <&status_led_default>;
137 pinctrl-names = "default";
140 color = <LED_COLOR_ID_RGB>;
141 function = LED_FUNCTION_STATUS;
143 #address-cells = <1>;
148 color = <LED_COLOR_ID_RED>;
153 color = <LED_COLOR_ID_GREEN>;
158 color = <LED_COLOR_ID_BLUE>;
168 compatible = "asahi-kasei,ak09911";
171 vdd-supply = <&pm8916_l17>;
172 vid-supply = <&pm8916_l6>;
174 reset-gpios = <&tlmm 68 GPIO_ACTIVE_HIGH>;
176 pinctrl-0 = <&mag_reset_default>;
177 pinctrl-names = "default";
181 compatible = "liteon,ltr559";
183 proximity-near-level = <75>;
185 vdd-supply = <&pm8916_l17>;
186 vddio-supply = <&pm8916_l5>;
188 interrupts-extended = <&tlmm 113 IRQ_TYPE_EDGE_FALLING>;
190 pinctrl-0 = <&light_int_default>;
191 pinctrl-names = "default";
195 compatible = "bosch,bmi160";
198 vdd-supply = <&pm8916_l17>;
199 vddio-supply = <&pm8916_l6>;
207 compatible = "atmel,maxtouch";
210 interrupts-extended = <&tlmm 13 IRQ_TYPE_LEVEL_LOW>;
212 reset-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
214 vdda-supply = <&pm8916_l6>;
215 vdd-supply = <®_ts_vdd>;
217 pinctrl-0 = <&ts_int_reset_default>;
218 pinctrl-names = "default";
220 /* Keys listed from right to left */
221 linux,keycodes = <KEY_APPSELECT KEY_HOMEPAGE KEY_BACK>;
230 status_led_default: status-led-default-state {
232 function = PMIC_GPIO_FUNC_NORMAL;
233 power-source = <PM8916_GPIO_VPH>;
240 pwm_out: mpp4-state {
242 function = "digital";
243 power-source = <PM8916_MPP_VPH>;
250 pinctrl-0 = <&pwm_out>;
251 pinctrl-names = "default";
256 linux,code = <KEY_VOLUMEDOWN>;
260 &pm8916_rpm_regulators {
262 regulator-min-microvolt = <2850000>;
263 regulator-max-microvolt = <2850000>;
276 pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
277 pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
278 pinctrl-names = "default", "sleep";
280 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
286 extcon = <&usb_id>, <&usb_id>;
299 compatible = "qcom,wcn3620";
307 button_backlight_default: button-backlight-default-state {
310 drive-strength = <2>;
314 camera_front_flash_default: camera-front-flash-default-state {
315 pins = "gpio8", "gpio49";
317 drive-strength = <2>;
321 gpio_hall_sensor_default: gpio-hall-sensor-default-state {
324 drive-strength = <2>;
328 gpio_keys_default: gpio-keys-default-state {
331 drive-strength = <2>;
335 lcd_bl_en_default: lcd-bl-en-default-state {
338 drive-strength = <2>;
342 light_int_default: light-int-default-state {
345 drive-strength = <2>;
349 mag_reset_default: mag-reset-default-state {
352 drive-strength = <2>;
356 sdc2_cd_default: sdc2-cd-default-state {
359 drive-strength = <2>;
363 ts_int_reset_default: ts-int-reset-default-state {
364 pins = "gpio12", "gpio13";
366 drive-strength = <2>;
370 ts_vdd_default: ts-vdd-default-state {
373 drive-strength = <2>;
377 usb_id_default: usb-id-default-state {
380 drive-strength = <8>;
384 usb_id_switch_default: usb-id-switch-default-state {
387 drive-strength = <2>;