1 // SPDX-License-Identifier: GPL-2.0-only
3 #include "msm8916-pm8916.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/interrupt-controller/irq.h>
10 mmc0 = &sdhc_1; /* eMMC */
11 mmc1 = &sdhc_2; /* SD card */
12 serial0 = &blsp_uart2;
16 stdout-path = "serial0";
20 /* Additional memory used by Samsung firmware modifications */
22 reg = <0x0 0x85500000 0x0 0xb00000>;
27 gpio_hall_sensor: gpio-hall-sensor {
28 compatible = "gpio-keys";
30 pinctrl-names = "default";
31 pinctrl-0 = <&gpio_hall_sensor_default>;
33 label = "GPIO Hall Effect Sensor";
36 label = "Hall Effect Sensor";
37 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
38 linux,input-type = <EV_SW>;
39 linux,code = <SW_LID>;
45 compatible = "gpio-keys";
47 pinctrl-names = "default";
48 pinctrl-0 = <&gpio_keys_default>;
50 label = "GPIO Buttons";
54 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_VOLUMEUP>;
60 gpios = <&tlmm 109 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_HOMEPAGE>;
66 compatible = "i2c-gpio";
67 sda-gpios = <&tlmm 105 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
68 scl-gpios = <&tlmm 106 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
70 pinctrl-names = "default";
71 pinctrl-0 = <&muic_i2c_default>;
77 compatible = "siliconmitus,sm5703-muic";
80 interrupt-parent = <&tlmm>;
81 interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
83 pinctrl-names = "default";
84 pinctrl-0 = <&muic_int_default>;
88 i2c_sensors: i2c-sensors {
89 compatible = "i2c-gpio";
91 sda-gpios = <&tlmm 31 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
92 scl-gpios = <&tlmm 32 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
94 pinctrl-0 = <&sensors_i2c_default>;
95 pinctrl-names = "default";
100 accelerometer: accelerometer@1d {
101 compatible = "st,lis2hh12";
104 interrupts-extended = <&tlmm 115 IRQ_TYPE_LEVEL_HIGH>;
106 pinctrl-0 = <&accel_int_default>;
107 pinctrl-names = "default";
109 st,drdy-int-pin = <1>;
117 touchscreen: touchscreen@50 {
118 compatible = "imagis,ist3038c";
121 interrupt-parent = <&tlmm>;
122 interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
124 touchscreen-size-x = <720>;
125 touchscreen-size-y = <1280>;
127 vddio-supply = <&pm8916_l6>;
129 pinctrl-0 = <&tsp_int_default>;
130 pinctrl-names = "default";
140 linux,code = <KEY_VOLUMEDOWN>;
150 pinctrl-names = "default", "sleep";
151 pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
152 pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
154 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
158 extcon = <&muic>, <&muic>;
179 compatible = "qcom,wcn3620";
187 accel_int_default: accel-int-default-state {
190 drive-strength = <2>;
194 gpio_hall_sensor_default: gpio-hall-sensor-default-state {
198 drive-strength = <2>;
202 gpio_keys_default: gpio-keys-default-state {
203 pins = "gpio107", "gpio109";
206 drive-strength = <2>;
210 muic_i2c_default: muic-i2c-default-state {
211 pins = "gpio105", "gpio106";
214 drive-strength = <2>;
218 muic_int_default: muic-int-default-state {
222 drive-strength = <2>;
226 sdc2_cd_default: sdc2-cd-default-state {
230 drive-strength = <2>;
234 sensors_i2c_default: sensors-i2c-default-state {
235 pins = "gpio31", "gpio32";
237 drive-strength = <2>;
241 tsp_int_default: tsp-int-default-state {
245 drive-strength = <2>;