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/leds/common.h>
11 model = "BQ Aquaris X5 (Longcheer L8910)";
12 compatible = "longcheer,l8910", "qcom,msm8916";
15 serial0 = &blsp1_uart2;
19 stdout-path = "serial0";
23 compatible = "gpio-keys";
25 pinctrl-names = "default";
26 pinctrl-0 = <&gpio_keys_default>;
28 label = "GPIO Buttons";
32 gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_VOLUMEUP>;
38 compatible = "gpio-leds";
41 gpios = <&msmgpio 17 GPIO_ACTIVE_HIGH>;
42 color = <LED_COLOR_ID_WHITE>;
43 default-state = "off";
44 function = LED_FUNCTION_KBD_BACKLIGHT;
46 pinctrl-names = "default";
47 pinctrl-0 = <&button_backlight_default>;
52 compatible = "linux,extcon-usb-gpio";
53 id-gpio = <&msmgpio 110 GPIO_ACTIVE_HIGH>;
54 pinctrl-names = "default";
55 pinctrl-0 = <&usb_id_default>;
63 compatible = "asahi-kasei,ak09911";
66 vdd-supply = <&pm8916_l17>;
67 vid-supply = <&pm8916_l6>;
69 reset-gpios = <&msmgpio 111 GPIO_ACTIVE_LOW>;
71 pinctrl-names = "default";
72 pinctrl-0 = <&mag_reset_default>;
76 compatible = "bosch,bmi160";
79 vdd-supply = <&pm8916_l17>;
80 vddio-supply = <&pm8916_l6>;
82 mount-matrix = "0", "1", "0",
94 linux,code = <KEY_VOLUMEDOWN>;
108 pinctrl-names = "default", "sleep";
109 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
110 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
116 pinctrl-names = "default", "sleep";
117 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
118 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
120 cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>;
125 extcon = <&usb_id>, <&usb_id>;
132 &smd_rpm_regulators {
133 vdd_l1_l2_l3-supply = <&pm8916_s3>;
134 vdd_l4_l5_l6-supply = <&pm8916_s4>;
135 vdd_l7-supply = <&pm8916_s4>;
138 regulator-min-microvolt = <1200000>;
139 regulator-max-microvolt = <1300000>;
143 regulator-min-microvolt = <1800000>;
144 regulator-max-microvolt = <2100000>;
148 regulator-min-microvolt = <1225000>;
149 regulator-max-microvolt = <1225000>;
153 regulator-min-microvolt = <1200000>;
154 regulator-max-microvolt = <1200000>;
158 regulator-min-microvolt = <2050000>;
159 regulator-max-microvolt = <2050000>;
163 regulator-min-microvolt = <1800000>;
164 regulator-max-microvolt = <1800000>;
168 regulator-min-microvolt = <1800000>;
169 regulator-max-microvolt = <1800000>;
173 regulator-min-microvolt = <1800000>;
174 regulator-max-microvolt = <1800000>;
178 regulator-min-microvolt = <2850000>;
179 regulator-max-microvolt = <2900000>;
183 regulator-min-microvolt = <3300000>;
184 regulator-max-microvolt = <3300000>;
188 regulator-min-microvolt = <2700000>;
189 regulator-max-microvolt = <2800000>;
193 regulator-min-microvolt = <1800000>;
194 regulator-max-microvolt = <2950000>;
195 regulator-allow-set-load;
196 regulator-system-load = <200000>;
200 regulator-min-microvolt = <1800000>;
201 regulator-max-microvolt = <2950000>;
205 regulator-min-microvolt = <3075000>;
206 regulator-max-microvolt = <3075000>;
210 regulator-min-microvolt = <1800000>;
211 regulator-max-microvolt = <3300000>;
215 regulator-min-microvolt = <1800000>;
216 regulator-max-microvolt = <3300000>;
220 regulator-min-microvolt = <1800000>;
221 regulator-max-microvolt = <3300000>;
225 regulator-min-microvolt = <2850000>;
226 regulator-max-microvolt = <2850000>;
230 regulator-min-microvolt = <2700000>;
231 regulator-max-microvolt = <2700000>;
236 button_backlight_default: button-backlight-default {
240 drive-strength = <2>;
244 gpio_keys_default: gpio-keys-default {
248 drive-strength = <2>;
252 mag_reset_default: mag-reset-default {
256 drive-strength = <2>;
260 usb_id_default: usb-id-default {
264 drive-strength = <8>;