1// SPDX-License-Identifier: GPL-2.0-only 2 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> 7 8/ { 9 aliases { 10 mmc0 = &sdhc_1; /* eMMC */ 11 mmc1 = &sdhc_2; /* SD card */ 12 serial0 = &blsp_uart2; 13 }; 14 15 chosen { 16 stdout-path = "serial0"; 17 }; 18 19 reserved-memory { 20 /* Additional memory used by Samsung firmware modifications */ 21 tz-apps@85500000 { 22 reg = <0x0 0x85500000 0x0 0xb00000>; 23 no-map; 24 }; 25 }; 26 27 gpio_hall_sensor: gpio-hall-sensor { 28 compatible = "gpio-keys"; 29 30 pinctrl-names = "default"; 31 pinctrl-0 = <&gpio_hall_sensor_default>; 32 33 label = "GPIO Hall Effect Sensor"; 34 35 event-hall-sensor { 36 label = "Hall Effect Sensor"; 37 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>; 38 linux,input-type = <EV_SW>; 39 linux,code = <SW_LID>; 40 linux,can-disable; 41 }; 42 }; 43 44 gpio-keys { 45 compatible = "gpio-keys"; 46 47 pinctrl-names = "default"; 48 pinctrl-0 = <&gpio_keys_default>; 49 50 label = "GPIO Buttons"; 51 52 button-volume-up { 53 label = "Volume Up"; 54 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; 55 linux,code = <KEY_VOLUMEUP>; 56 }; 57 58 button-home { 59 label = "Home Key"; 60 gpios = <&tlmm 109 GPIO_ACTIVE_LOW>; 61 linux,code = <KEY_HOMEPAGE>; 62 }; 63 }; 64 65 i2c_muic: i2c-muic { 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)>; 69 70 pinctrl-names = "default"; 71 pinctrl-0 = <&muic_i2c_default>; 72 73 #address-cells = <1>; 74 #size-cells = <0>; 75 76 muic: extcon@25 { 77 compatible = "siliconmitus,sm5703-muic"; 78 reg = <0x25>; 79 80 interrupt-parent = <&tlmm>; 81 interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 82 83 pinctrl-names = "default"; 84 pinctrl-0 = <&muic_int_default>; 85 }; 86 }; 87 88 i2c_sensors: i2c-sensors { 89 compatible = "i2c-gpio"; 90 91 sda-gpios = <&tlmm 31 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 92 scl-gpios = <&tlmm 32 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 93 94 pinctrl-0 = <&sensors_i2c_default>; 95 pinctrl-names = "default"; 96 97 #address-cells = <1>; 98 #size-cells = <0>; 99 100 accelerometer: accelerometer@1d { 101 compatible = "st,lis2hh12"; 102 reg = <0x1d>; 103 104 interrupts-extended = <&tlmm 115 IRQ_TYPE_LEVEL_HIGH>; 105 106 pinctrl-0 = <&accel_int_default>; 107 pinctrl-names = "default"; 108 109 st,drdy-int-pin = <1>; 110 }; 111 }; 112}; 113 114&blsp_i2c5 { 115 status = "okay"; 116 117 touchscreen: touchscreen@50 { 118 compatible = "imagis,ist3038c"; 119 reg = <0x50>; 120 121 interrupt-parent = <&tlmm>; 122 interrupts = <13 IRQ_TYPE_EDGE_FALLING>; 123 124 touchscreen-size-x = <720>; 125 touchscreen-size-y = <1280>; 126 127 vddio-supply = <&pm8916_l6>; 128 129 pinctrl-0 = <&tsp_int_default>; 130 pinctrl-names = "default"; 131 }; 132}; 133 134&blsp_uart2 { 135 status = "okay"; 136}; 137 138&pm8916_resin { 139 status = "okay"; 140 linux,code = <KEY_VOLUMEDOWN>; 141}; 142 143&sdhc_1 { 144 status = "okay"; 145}; 146 147&sdhc_2 { 148 status = "okay"; 149 150 pinctrl-names = "default", "sleep"; 151 pinctrl-0 = <&sdc2_default &sdc2_cd_default>; 152 pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>; 153 154 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; 155}; 156 157&usb { 158 extcon = <&muic>, <&muic>; 159 status = "okay"; 160}; 161 162&usb_hs_phy { 163 extcon = <&muic>; 164}; 165 166&venus { 167 status = "okay"; 168}; 169 170&venus_mem { 171 status = "okay"; 172}; 173 174&wcnss { 175 status = "okay"; 176}; 177 178&wcnss_iris { 179 compatible = "qcom,wcn3620"; 180}; 181 182&wcnss_mem { 183 status = "okay"; 184}; 185 186&tlmm { 187 accel_int_default: accel-int-default-state { 188 pins = "gpio115"; 189 function = "gpio"; 190 drive-strength = <2>; 191 bias-disable; 192 }; 193 194 gpio_hall_sensor_default: gpio-hall-sensor-default-state { 195 pins = "gpio52"; 196 function = "gpio"; 197 198 drive-strength = <2>; 199 bias-disable; 200 }; 201 202 gpio_keys_default: gpio-keys-default-state { 203 pins = "gpio107", "gpio109"; 204 function = "gpio"; 205 206 drive-strength = <2>; 207 bias-pull-up; 208 }; 209 210 muic_i2c_default: muic-i2c-default-state { 211 pins = "gpio105", "gpio106"; 212 function = "gpio"; 213 214 drive-strength = <2>; 215 bias-disable; 216 }; 217 218 muic_int_default: muic-int-default-state { 219 pins = "gpio12"; 220 function = "gpio"; 221 222 drive-strength = <2>; 223 bias-disable; 224 }; 225 226 sdc2_cd_default: sdc2-cd-default-state { 227 pins = "gpio38"; 228 function = "gpio"; 229 230 drive-strength = <2>; 231 bias-disable; 232 }; 233 234 sensors_i2c_default: sensors-i2c-default-state { 235 pins = "gpio31", "gpio32"; 236 function = "gpio"; 237 drive-strength = <2>; 238 bias-disable; 239 }; 240 241 tsp_int_default: tsp-int-default-state { 242 pins = "gpio13"; 243 function = "gpio"; 244 245 drive-strength = <2>; 246 bias-disable; 247 }; 248}; 249