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 mmc0 = &sdhc_1; /* eMMC */
17 mmc1 = &sdhc_2; /* SD card */
18 serial0 = &blsp_uart2;
22 stdout-path = "serial0";
26 compatible = "gpio-keys";
28 pinctrl-names = "default";
29 pinctrl-0 = <&gpio_keys_default>;
31 label = "GPIO Buttons";
35 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_VOLUMEUP>;
41 compatible = "gpio-leds";
43 pinctrl-names = "default";
44 pinctrl-0 = <&gpio_leds_default>;
47 gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>;
48 linux,default-trigger = "torch";
49 function = LED_FUNCTION_TORCH;
54 compatible = "linux,extcon-usb-gpio";
55 id-gpios = <&tlmm 69 GPIO_ACTIVE_HIGH>;
56 pinctrl-names = "default";
57 pinctrl-0 = <&usb_id_default>;
69 compatible = "mstar,msg2638";
71 interrupt-parent = <&tlmm>;
72 interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
73 reset-gpios = <&tlmm 100 GPIO_ACTIVE_LOW>;
74 pinctrl-names = "default";
75 pinctrl-0 = <&ts_int_reset_default>;
76 vdd-supply = <&pm8916_l17>;
77 vddio-supply = <&pm8916_l5>;
78 touchscreen-size-x = <2048>;
79 touchscreen-size-y = <2048>;
87 compatible = "asahi-kasei,ak09911";
89 vdd-supply = <&pm8916_l17>;
90 vid-supply = <&pm8916_l6>;
91 reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
92 pinctrl-names = "default";
93 pinctrl-0 = <&mag_reset_default>;
94 mount-matrix = "0", "1", "0",
100 compatible = "kionix,kxtj21009";
102 vdd-supply = <&pm8916_l17>;
103 vddio-supply = <&pm8916_l6>;
104 interrupt-parent = <&tlmm>;
105 interrupts = <31 IRQ_TYPE_EDGE_RISING>;
106 pinctrl-names = "default";
107 pinctrl-0 = <&accel_int_default>;
108 mount-matrix = "-1", "0", "0",
114 compatible = "sensortek,stk3310";
116 interrupt-parent = <&tlmm>;
117 interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
118 pinctrl-names = "default";
119 pinctrl-0 = <&proximity_int_default>;
123 compatible = "bosch,bmg160";
125 vdd-supply = <&pm8916_l17>;
126 vddio-supply = <&pm8916_l6>;
127 interrupt-parent = <&tlmm>;
128 interrupts = <97 IRQ_TYPE_EDGE_RISING>,
129 <98 IRQ_TYPE_EDGE_RISING>;
130 pinctrl-names = "default";
131 pinctrl-0 = <&gyro_int_default>;
139 compatible = "si-en,sn3190";
141 shutdown-gpios = <&tlmm 89 GPIO_ACTIVE_HIGH>;
142 pinctrl-names = "default";
143 pinctrl-0 = <&led_enable_default &led_shutdown_default>;
144 #address-cells = <1>;
149 led-max-microamp = <5000>;
150 function = LED_FUNCTION_INDICATOR;
151 color = <LED_COLOR_ID_WHITE>;
158 linux,code = <KEY_VOLUMEDOWN>;
161 &pm8916_rpm_regulators {
163 regulator-min-microvolt = <2850000>;
164 regulator-max-microvolt = <2850000>;
179 pinctrl-names = "default", "sleep";
180 pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
181 pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
183 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
188 extcon = <&usb_id>, <&usb_id>;
208 compatible = "qcom,wcn3620";
216 accel_int_default: accel-int-default-state {
220 drive-strength = <2>;
224 gpio_keys_default: gpio-keys-default-state {
228 drive-strength = <2>;
232 gpio_leds_default: gpio-leds-default-state {
236 drive-strength = <2>;
240 gyro_int_default: gyro-int-default-state {
241 pins = "gpio97", "gpio98";
244 drive-strength = <2>;
249 * The OEM wired an additional GPIO to be asserted so that
250 * the si-en,sn3190 LED IC works. Since this GPIO is not
251 * part of the IC datasheet nor supported by the driver,
252 * force it asserted here.
254 led_enable_default: led-enable-default-state {
258 drive-strength = <2>;
263 led_shutdown_default: led-shutdown-default-state {
267 drive-strength = <2>;
271 mag_reset_default: mag-reset-default-state {
275 drive-strength = <2>;
279 proximity_int_default: proximity-int-default-state {
283 drive-strength = <6>;
287 sdc2_cd_default: sdc2-cd-default-state {
290 drive-strength = <2>;
294 ts_int_reset_default: ts-int-reset-default-state {
295 pins = "gpio13", "gpio100";
298 drive-strength = <2>;
302 usb_id_default: usb-id-default-state {
306 drive-strength = <8>;