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>
12 model = "Samsung Galaxy A7 (2015)";
13 compatible = "samsung,a7", "qcom,msm8939";
14 chassis-type = "handset";
17 mmc0 = &sdhc_1; /* SDC1 eMMC slot */
18 mmc1 = &sdhc_2; /* SDC2 SD card slot */
19 serial0 = &blsp_uart2;
23 stdout-path = "serial0";
27 /* Additional memory used by Samsung firmware modifications */
29 reg = <0x0 0x85500000 0x0 0xb00000>;
35 compatible = "gpio-keys";
37 pinctrl-0 = <&gpio_hall_sensor_default>;
38 pinctrl-names = "default";
40 label = "GPIO Hall Effect Sensor";
43 label = "Hall Effect Sensor";
44 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
45 linux,input-type = <EV_SW>;
46 linux,code = <SW_LID>;
52 compatible = "gpio-keys";
54 pinctrl-0 = <&gpio_keys_default>;
55 pinctrl-names = "default";
57 label = "GPIO Buttons";
61 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_VOLUMEUP>;
67 gpios = <&tlmm 109 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_HOMEPAGE>;
73 compatible = "i2c-gpio";
74 sda-gpios = <&tlmm 106 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
75 scl-gpios = <&tlmm 105 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
77 pinctrl-0 = <&fg_i2c_default>;
78 pinctrl-names = "default";
84 compatible = "richtek,rt5033-battery";
87 interrupt-parent = <&tlmm>;
88 interrupts = <121 IRQ_TYPE_EDGE_BOTH>;
90 pinctrl-0 = <&fg_alert_default>;
91 pinctrl-names = "default";
96 compatible = "i2c-gpio";
97 sda-gpios = <&tlmm 0 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
98 scl-gpios = <&tlmm 1 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
100 pinctrl-0 = <&nfc_i2c_default>;
101 pinctrl-names = "default";
103 #address-cells = <1>;
107 compatible = "nxp,pn547", "nxp,nxp-nci-i2c";
110 interrupt-parent = <&tlmm>;
111 interrupts = <21 IRQ_TYPE_EDGE_RISING>;
113 enable-gpios = <&tlmm 116 GPIO_ACTIVE_HIGH>;
114 firmware-gpios = <&tlmm 49 GPIO_ACTIVE_HIGH>;
116 pinctrl-0 = <&nfc_default>;
117 pinctrl-names = "default";
122 compatible = "i2c-gpio";
123 sda-gpios = <&tlmm 84 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
124 scl-gpios = <&tlmm 85 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
126 pinctrl-0 = <&sensor_i2c_default>;
127 pinctrl-names = "default";
129 #address-cells = <1>;
132 accelerometer: accelerometer@10 {
133 compatible = "bosch,bmc150_accel";
135 interrupt-parent = <&tlmm>;
136 interrupts = <115 IRQ_TYPE_EDGE_RISING>;
138 vdd-supply = <&pm8916_l17>;
139 vddio-supply = <&pm8916_l5>;
141 pinctrl-0 = <&accel_int_default>;
142 pinctrl-names = "default";
144 mount-matrix = "-1", "0", "0",
150 compatible = "bosch,bmc150_magn";
153 vdd-supply = <&pm8916_l17>;
154 vddio-supply = <&pm8916_l5>;
159 compatible = "i2c-gpio";
160 sda-gpios = <&tlmm 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
161 scl-gpios = <&tlmm 17 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
163 pinctrl-0 = <&tkey_i2c_default>;
164 pinctrl-names = "default";
166 #address-cells = <1>;
170 /* Note: Actually an ABOV MCU that implements same interface */
171 compatible = "coreriver,tc360-touchkey";
174 interrupt-parent = <&tlmm>;
175 interrupts = <20 IRQ_TYPE_EDGE_FALLING>;
177 vcc-supply = <®_touch_key>;
178 vdd-supply = <®_keyled>;
179 vddio-supply = <&pm8916_l6>;
181 linux,keycodes = <KEY_APPSELECT KEY_BACK>;
183 pinctrl-0 = <&tkey_default>;
184 pinctrl-names = "default";
188 pwm_vibrator: pwm-vibrator {
189 compatible = "clk-pwm";
192 clocks = <&gcc GCC_GP2_CLK>;
194 pinctrl-0 = <&motor_pwm_default>;
195 pinctrl-names = "default";
198 reg_keyled: regulator-keyled {
199 compatible = "regulator-fixed";
200 regulator-name = "keyled";
201 regulator-min-microvolt = <3300000>;
202 regulator-max-microvolt = <3300000>;
204 /* NOTE: On some variants e.g. SM-A700FD it's GPIO 91 */
205 gpio = <&tlmm 100 GPIO_ACTIVE_HIGH>;
208 pinctrl-0 = <&tkey_led_en_default>;
209 pinctrl-names = "default";
212 reg_touch_key: regulator-touch-key {
213 compatible = "regulator-fixed";
214 regulator-name = "touch_key";
215 regulator-min-microvolt = <2800000>;
216 regulator-max-microvolt = <2800000>;
218 gpio = <&tlmm 56 GPIO_ACTIVE_HIGH>;
221 pinctrl-0 = <&tkey_en_default>;
222 pinctrl-names = "default";
225 reg_tsp_vdd: regulator-tsp-vdd {
226 compatible = "regulator-fixed";
227 regulator-name = "tsp_vdd";
228 regulator-min-microvolt = <1800000>;
229 regulator-max-microvolt = <1800000>;
230 vin-supply = <&pm8916_s4>;
232 gpio = <&tlmm 8 GPIO_ACTIVE_HIGH>;
235 pinctrl-0 = <®_tsp_io_en_default>;
236 pinctrl-names = "default";
239 reg_vdd_tsp: regulator-vdd-tsp {
240 compatible = "regulator-fixed";
241 regulator-name = "vdd_tsp";
242 regulator-min-microvolt = <3300000>;
243 regulator-max-microvolt = <3300000>;
245 gpio = <&tlmm 73 GPIO_ACTIVE_HIGH>;
248 pinctrl-0 = <®_tsp_en_default>;
249 pinctrl-names = "default";
252 reg_vibrator: regulator-vibrator {
253 compatible = "regulator-fixed";
254 regulator-name = "motor_en";
255 regulator-min-microvolt = <3000000>;
256 regulator-max-microvolt = <3000000>;
258 gpio = <&tlmm 86 GPIO_ACTIVE_HIGH>;
261 pinctrl-0 = <&motor_en_default>;
262 pinctrl-names = "default";
266 compatible = "pwm-vibrator";
268 pwms = <&pwm_vibrator 0 100000>;
269 pwm-names = "enable";
271 vcc-supply = <®_vibrator>;
279 compatible = "siliconmitus,sm5502-muic";
282 interrupt-parent = <&tlmm>;
283 interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
285 pinctrl-0 = <&muic_int_default>;
286 pinctrl-names = "default";
294 compatible = "cypress,tt21000";
297 interrupt-parent = <&tlmm>;
298 interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
300 vdd-supply = <®_vdd_tsp>;
301 vddio-supply = <®_tsp_vdd>;
303 pinctrl-0 = <&tsp_int_default>;
304 pinctrl-names = "default";
313 linux,code = <KEY_VOLUMEDOWN>;
317 &pm8916_rpm_regulators {
319 regulator-min-microvolt = <2850000>;
320 regulator-max-microvolt = <2850000>;
329 pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
330 pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
331 pinctrl-names = "default", "sleep";
333 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
339 extcon = <&muic>, <&muic>;
352 compatible = "qcom,wcn3660b";
360 accel_int_default: accel-int-default-state {
363 drive-strength = <2>;
367 fg_alert_default: fg-alert-default-state {
370 drive-strength = <2>;
374 fg_i2c_default: fg-i2c-default-state {
375 pins = "gpio105", "gpio106";
377 drive-strength = <2>;
381 gpio_hall_sensor_default: gpio-hall-sensor-default-state {
384 drive-strength = <2>;
388 gpio_keys_default: gpio-keys-default-state {
389 pins = "gpio107", "gpio109";
391 drive-strength = <2>;
395 motor_en_default: motor-en-default-state {
398 drive-strength = <2>;
402 motor_pwm_default: motor-pwm-default-state {
404 function = "gcc_gp2_clk_a";
407 muic_int_default: muic-int-default-state {
410 drive-strength = <2>;
414 nfc_default: nfc-default-state {
418 drive-strength = <2>;
423 pins = "gpio49", "gpio116";
425 drive-strength = <2>;
430 nfc_i2c_default: nfc-i2c-default-state {
431 pins = "gpio0", "gpio1";
433 drive-strength = <2>;
437 reg_tsp_en_default: reg-tsp-en-default-state {
440 drive-strength = <2>;
444 reg_tsp_io_en_default: reg-tsp-io-en-default-state {
447 drive-strength = <2>;
451 sdc2_cd_default: sdc2-cd-default-state {
454 drive-strength = <2>;
458 sensor_i2c_default: sensor-i2c-default-state {
459 pins = "gpio84", "gpio85";
461 drive-strength = <2>;
465 tkey_default: tkey-default-state {
468 drive-strength = <2>;
472 tkey_en_default: tkey-en-default-state {
475 drive-strength = <2>;
479 tkey_i2c_default: tkey-i2c-default-state {
480 pins = "gpio16", "gpio17";
482 drive-strength = <2>;
486 tkey_led_en_default: tkey-led-en-default-state {
489 drive-strength = <2>;
493 tsp_int_default: tsp-int-default-state {
496 drive-strength = <2>;