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 = "Alcatel OneTouch Idol 3 (4.7)";
12 compatible = "alcatel,idol347", "qcom,msm8916";
13 chassis-type = "handset";
16 serial0 = &blsp1_uart2;
20 stdout-path = "serial0";
24 compatible = "gpio-keys";
26 pinctrl-names = "default";
27 pinctrl-0 = <&gpio_keys_default>;
29 label = "GPIO Buttons";
33 gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_VOLUMEUP>;
39 compatible = "gpio-leds";
41 pinctrl-names = "default";
42 pinctrl-0 = <&gpio_leds_default>;
45 gpios = <&msmgpio 32 GPIO_ACTIVE_HIGH>;
46 linux,default-trigger = "torch";
47 function = LED_FUNCTION_TORCH;
52 compatible = "linux,extcon-usb-gpio";
53 id-gpio = <&msmgpio 69 GPIO_ACTIVE_HIGH>;
54 pinctrl-names = "default";
55 pinctrl-0 = <&usb_id_default>;
67 compatible = "mstar,msg2638";
69 interrupt-parent = <&msmgpio>;
70 interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
71 reset-gpios = <&msmgpio 100 GPIO_ACTIVE_LOW>;
72 pinctrl-names = "default";
73 pinctrl-0 = <&ts_int_reset_default>;
74 vdd-supply = <&pm8916_l17>;
75 vddio-supply = <&pm8916_l5>;
76 touchscreen-size-x = <2048>;
77 touchscreen-size-y = <2048>;
85 compatible = "asahi-kasei,ak09911";
87 vdd-supply = <&pm8916_l17>;
88 vid-supply = <&pm8916_l6>;
89 reset-gpios = <&msmgpio 8 GPIO_ACTIVE_LOW>;
90 pinctrl-names = "default";
91 pinctrl-0 = <&mag_reset_default>;
92 mount-matrix = "0", "1", "0",
98 compatible = "kionix,kxtj21009";
100 vdd-supply = <&pm8916_l17>;
101 vddio-supply = <&pm8916_l6>;
102 interrupt-parent = <&msmgpio>;
103 interrupts = <31 IRQ_TYPE_EDGE_RISING>;
104 pinctrl-names = "default";
105 pinctrl-0 = <&accel_int_default>;
106 mount-matrix = "-1", "0", "0",
112 compatible = "sensortek,stk3310";
114 interrupt-parent = <&msmgpio>;
115 interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
116 pinctrl-names = "default";
117 pinctrl-0 = <&proximity_int_default>;
121 compatible = "bosch,bmg160";
123 vdd-supply = <&pm8916_l17>;
124 vddio-supply = <&pm8916_l6>;
125 interrupt-parent = <&msmgpio>;
126 interrupts = <97 IRQ_TYPE_EDGE_RISING>,
127 <98 IRQ_TYPE_EDGE_RISING>;
128 pinctrl-names = "default";
129 pinctrl-0 = <&gyro_int_default>;
137 compatible = "si-en,sn3190";
139 shutdown-gpios = <&msmgpio 89 GPIO_ACTIVE_HIGH>;
140 pinctrl-names = "default";
141 pinctrl-0 = <&led_enable_default &led_shutdown_default>;
142 #address-cells = <1>;
147 led-max-microamp = <5000>;
148 function = LED_FUNCTION_INDICATOR;
149 color = <LED_COLOR_ID_WHITE>;
156 linux,code = <KEY_VOLUMEDOWN>;
166 pinctrl-names = "default", "sleep";
167 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
168 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
174 pinctrl-names = "default", "sleep";
175 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
176 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
178 cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>;
183 extcon = <&usb_id>, <&usb_id>;
195 compatible = "qcom,wcn3620";
198 &smd_rpm_regulators {
199 vdd_l1_l2_l3-supply = <&pm8916_s3>;
200 vdd_l4_l5_l6-supply = <&pm8916_s4>;
201 vdd_l7-supply = <&pm8916_s4>;
204 regulator-min-microvolt = <1200000>;
205 regulator-max-microvolt = <1300000>;
209 regulator-min-microvolt = <1800000>;
210 regulator-max-microvolt = <2100000>;
214 regulator-min-microvolt = <1225000>;
215 regulator-max-microvolt = <1225000>;
219 regulator-min-microvolt = <1200000>;
220 regulator-max-microvolt = <1200000>;
224 regulator-min-microvolt = <2050000>;
225 regulator-max-microvolt = <2050000>;
229 regulator-min-microvolt = <1800000>;
230 regulator-max-microvolt = <1800000>;
234 regulator-min-microvolt = <1800000>;
235 regulator-max-microvolt = <1800000>;
239 regulator-min-microvolt = <1800000>;
240 regulator-max-microvolt = <1800000>;
244 regulator-min-microvolt = <2850000>;
245 regulator-max-microvolt = <2900000>;
249 regulator-min-microvolt = <3300000>;
250 regulator-max-microvolt = <3300000>;
254 regulator-min-microvolt = <2700000>;
255 regulator-max-microvolt = <2800000>;
259 regulator-min-microvolt = <1800000>;
260 regulator-max-microvolt = <2950000>;
261 regulator-allow-set-load;
262 regulator-system-load = <200000>;
266 regulator-min-microvolt = <1800000>;
267 regulator-max-microvolt = <2950000>;
271 regulator-min-microvolt = <3075000>;
272 regulator-max-microvolt = <3075000>;
276 regulator-min-microvolt = <1800000>;
277 regulator-max-microvolt = <3300000>;
281 regulator-min-microvolt = <1800000>;
282 regulator-max-microvolt = <3300000>;
286 regulator-min-microvolt = <1800000>;
287 regulator-max-microvolt = <3300000>;
291 regulator-min-microvolt = <2850000>;
292 regulator-max-microvolt = <2850000>;
296 regulator-min-microvolt = <2700000>;
297 regulator-max-microvolt = <2700000>;
302 accel_int_default: accel-int-default-state {
306 drive-strength = <2>;
310 gpio_keys_default: gpio-keys-default-state {
314 drive-strength = <2>;
318 gpio_leds_default: gpio-leds-default-state {
322 drive-strength = <2>;
326 gyro_int_default: gyro-int-default-state {
327 pins = "gpio97", "gpio98";
330 drive-strength = <2>;
335 * The OEM wired an additional GPIO to be asserted so that
336 * the si-en,sn3190 LED IC works. Since this GPIO is not
337 * part of the IC datasheet nor supported by the driver,
338 * force it asserted here.
340 led_enable_default: led-enable-default-state {
344 drive-strength = <2>;
349 led_shutdown_default: led-shutdown-default-state {
353 drive-strength = <2>;
357 mag_reset_default: mag-reset-default-state {
361 drive-strength = <2>;
365 proximity_int_default: proximity-int-default-state {
369 drive-strength = <6>;
373 ts_int_reset_default: ts-int-reset-default-state {
374 pins = "gpio13", "gpio100";
377 drive-strength = <2>;
381 usb_id_default: usb-id-default-state {
385 drive-strength = <8>;