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-mpp.h>
14 model = "BQ Aquaris M5 (Longcheer L9100)";
15 compatible = "longcheer,l9100", "qcom,msm8939";
16 chassis-type = "handset";
19 mmc0 = &sdhc_1; /* eMMC */
20 mmc1 = &sdhc_2; /* SD card */
21 serial0 = &blsp_uart2;
25 stdout-path = "serial0";
29 compatible = "gpio-keys";
31 pinctrl-0 = <&gpio_hall_sensor_default>;
32 pinctrl-names = "default";
34 label = "GPIO Hall Effect Sensor";
37 label = "Hall Effect Sensor";
38 gpios = <&tlmm 20 GPIO_ACTIVE_LOW>;
39 linux,input-type = <EV_SW>;
40 linux,code = <SW_LID>;
46 compatible = "gpio-keys";
48 pinctrl-0 = <&gpio_keys_default>;
49 pinctrl-names = "default";
51 label = "GPIO Buttons";
55 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_VOLUMEUP>;
61 compatible = "gpio-leds";
64 gpios = <&tlmm 17 GPIO_ACTIVE_HIGH>;
65 color = <LED_COLOR_ID_WHITE>;
66 default-state = "off";
67 function = LED_FUNCTION_KBD_BACKLIGHT;
69 pinctrl-0 = <&button_backlight_default>;
70 pinctrl-names = "default";
74 reg_ts_vdd: regulator-vdd-ts {
75 compatible = "regulator-fixed";
76 regulator-name = "regulator-vdd-ts";
77 regulator-min-microvolt = <2850000>;
78 regulator-max-microvolt = <2850000>;
80 gpio = <&tlmm 78 GPIO_ACTIVE_HIGH>;
83 pinctrl-0 = <&ts_vdd_default>;
84 pinctrl-names = "default";
88 compatible = "pwm-backlight";
89 pwms = <&pm8916_pwm 0 100000>;
90 brightness-levels = <0 255>;
91 num-interpolated-steps = <255>;
92 default-brightness-level = <128>;
93 enable-gpios = <&tlmm 98 GPIO_ACTIVE_HIGH>;
95 pinctrl-0 = <&lcd_bl_en_default>;
96 pinctrl-names = "default";
99 flash-led-controller {
100 compatible = "ocs,ocp8110";
101 flash-gpios = <&tlmm 8 GPIO_ACTIVE_HIGH>;
102 enable-gpios = <&tlmm 49 GPIO_ACTIVE_HIGH>;
104 pinctrl-0 = <&camera_front_flash_default>;
105 pinctrl-names = "default";
108 function = LED_FUNCTION_FLASH;
109 color = <LED_COLOR_ID_WHITE>;
110 flash-max-timeout-us = <250000>;
115 compatible = "linux,extcon-usb-gpio";
116 id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>;
117 pinctrl-0 = <&usb_id_default &usb_id_switch_default>;
118 pinctrl-names = "default";
127 compatible = "asahi-kasei,ak09911";
130 vdd-supply = <&pm8916_l17>;
131 vid-supply = <&pm8916_l6>;
133 reset-gpios = <&tlmm 68 GPIO_ACTIVE_HIGH>;
135 pinctrl-0 = <&mag_reset_default>;
136 pinctrl-names = "default";
140 compatible = "liteon,ltr559";
143 vdd-supply = <&pm8916_l17>;
144 vddio-supply = <&pm8916_l5>;
146 interrupts-extended = <&tlmm 113 IRQ_TYPE_EDGE_FALLING>;
148 pinctrl-0 = <&light_int_default>;
149 pinctrl-names = "default";
153 compatible = "bosch,bmi160";
156 vdd-supply = <&pm8916_l17>;
157 vddio-supply = <&pm8916_l6>;
165 compatible = "atmel,maxtouch";
168 interrupts-extended = <&tlmm 13 IRQ_TYPE_LEVEL_LOW>;
170 reset-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
172 vdda-supply = <&pm8916_l6>;
173 vdd-supply = <®_ts_vdd>;
175 pinctrl-0 = <&ts_int_reset_default>;
176 pinctrl-names = "default";
178 /* Keys listed from right to left */
179 linux,keycodes = <KEY_APPSELECT KEY_HOMEPAGE KEY_BACK>;
188 pwm_out: mpp4-state {
190 function = "digital";
191 power-source = <PM8916_MPP_VPH>;
198 pinctrl-0 = <&pwm_out>;
199 pinctrl-names = "default";
204 linux,code = <KEY_VOLUMEDOWN>;
208 &pm8916_rpm_regulators {
210 regulator-min-microvolt = <2850000>;
211 regulator-max-microvolt = <2850000>;
224 pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
225 pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
226 pinctrl-names = "default", "sleep";
228 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
234 extcon = <&usb_id>, <&usb_id>;
247 compatible = "qcom,wcn3620";
251 button_backlight_default: button-backlight-default-state {
254 drive-strength = <2>;
258 camera_front_flash_default: camera-front-flash-default-state {
259 pins = "gpio8", "gpio49";
261 drive-strength = <2>;
265 gpio_hall_sensor_default: gpio-hall-sensor-default-state {
268 drive-strength = <2>;
272 gpio_keys_default: gpio-keys-default-state {
275 drive-strength = <2>;
279 lcd_bl_en_default: lcd-bl-en-default-state {
282 drive-strength = <2>;
286 light_int_default: light-int-default-state {
289 drive-strength = <2>;
293 mag_reset_default: mag-reset-default-state {
296 drive-strength = <2>;
300 sdc2_cd_default: sdc2-cd-default-state {
303 drive-strength = <2>;
307 ts_int_reset_default: ts-int-reset-default-state {
308 pins = "gpio12", "gpio13";
310 drive-strength = <2>;
314 ts_vdd_default: ts-vdd-default-state {
317 drive-strength = <2>;
321 usb_id_default: usb-id-default-state {
324 drive-strength = <8>;
328 usb_id_switch_default: usb-id-switch-default-state {
331 drive-strength = <2>;