1// SPDX-License-Identifier: BSD-3-Clause 2 3/dts-v1/; 4 5#include "qcom-msm8226.dtsi" 6#include "pm8226.dtsi" 7 8/delete-node/ &smem_region; 9 10/ { 11 model = "Samsung Galaxy Grand 2"; 12 compatible = "samsung,ms013g", "qcom,msm8226"; 13 chassis-type = "handset"; 14 15 aliases { 16 mmc0 = &sdhc_1; /* SDC1 eMMC slot */ 17 mmc1 = &sdhc_2; /* SDC2 SD card slot */ 18 serial0 = &blsp1_uart3; 19 }; 20 21 chosen { 22 stdout-path = "serial0:115200n8"; 23 }; 24 25 gpio-hall-sensor { 26 compatible = "gpio-keys"; 27 28 pinctrl-0 = <&gpio_hall_sensor_default>; 29 pinctrl-names = "default"; 30 31 label = "GPIO Hall Effect Sensor"; 32 33 event-hall-sensor { 34 label = "Hall Effect Sensor"; 35 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>; 36 linux,input-type = <EV_SW>; 37 linux,code = <SW_LID>; 38 linux,can-disable; 39 }; 40 }; 41 42 gpio-keys { 43 compatible = "gpio-keys"; 44 45 pinctrl-0 = <&gpio_keys_default>; 46 pinctrl-names = "default"; 47 48 label = "GPIO Buttons"; 49 50 button-volume-up { 51 label = "Volume Up"; 52 gpios = <&tlmm 106 GPIO_ACTIVE_LOW>; 53 linux,code = <KEY_VOLUMEUP>; 54 }; 55 56 button-volume-down { 57 label = "Volume Down"; 58 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; 59 linux,code = <KEY_VOLUMEDOWN>; 60 }; 61 62 button-home { 63 label = "Home Key"; 64 gpios = <&tlmm 108 GPIO_ACTIVE_LOW>; 65 linux,code = <KEY_HOMEPAGE>; 66 }; 67 }; 68 69 reg_motor_vdd: regulator-motor-vdd { 70 compatible = "regulator-fixed"; 71 regulator-name = "motor_vdd"; 72 regulator-min-microvolt = <3300000>; 73 regulator-max-microvolt = <3300000>; 74 75 gpio = <&tlmm 111 GPIO_ACTIVE_HIGH>; 76 enable-active-high; 77 78 pinctrl-0 = <&motor_en_default>; 79 pinctrl-names = "default"; 80 }; 81 82 reg_vdd_tsp_a: regulator-vdd-tsp-a { 83 compatible = "regulator-fixed"; 84 regulator-name = "tsp_3p3v"; 85 regulator-min-microvolt = <3300000>; 86 regulator-max-microvolt = <3300000>; 87 88 gpio = <&tlmm 31 GPIO_ACTIVE_HIGH>; 89 enable-active-high; 90 91 pinctrl-0 = <&tsp_en_default>; 92 pinctrl-names = "default"; 93 }; 94 95 reserved-memory { 96 smem_region: smem@fa00000 { 97 reg = <0x0fa00000 0x100000>; 98 no-map; 99 }; 100 }; 101 102 vibrator { 103 compatible = "regulator-haptic"; 104 haptic-supply = <®_motor_vdd>; 105 min-microvolt = <3300000>; 106 max-microvolt = <3300000>; 107 }; 108}; 109 110&blsp1_i2c2 { 111 status = "okay"; 112 113 accelerometer@18 { 114 compatible = "bosch,bma255"; 115 reg = <0x18>; 116 interrupts-extended = <&tlmm 64 IRQ_TYPE_EDGE_RISING>; 117 118 vdd-supply = <&pm8226_l19>; 119 vddio-supply = <&pm8226_lvs1>; 120 121 pinctrl-0 = <&accel_int_default>; 122 pinctrl-names = "default"; 123 124 mount-matrix = "0", "1", "0", 125 "-1", "0", "0", 126 "0", "0", "-1"; 127 }; 128}; 129 130&blsp1_i2c5 { 131 status = "okay"; 132 133 touchscreen@20 { 134 compatible = "zinitix,bt541"; 135 136 reg = <0x20>; 137 interrupts-extended = <&tlmm 17 IRQ_TYPE_EDGE_FALLING>; 138 139 touchscreen-size-x = <720>; 140 touchscreen-size-y = <1280>; 141 142 vcca-supply = <®_vdd_tsp_a>; 143 vdd-supply = <&pm8226_lvs1>; 144 145 pinctrl-0 = <&tsp_int_default>; 146 pinctrl-names = "default"; 147 148 linux,keycodes = <KEY_APPSELECT KEY_BACK>; 149 }; 150}; 151 152&blsp1_uart3 { 153 status = "okay"; 154}; 155 156&rpm_requests { 157 regulators { 158 compatible = "qcom,rpm-pm8226-regulators"; 159 160 pm8226_s3: s3 { 161 regulator-min-microvolt = <1200000>; 162 regulator-max-microvolt = <1300000>; 163 }; 164 165 pm8226_s4: s4 { 166 regulator-min-microvolt = <1800000>; 167 regulator-max-microvolt = <2200000>; 168 }; 169 170 pm8226_s5: s5 { 171 regulator-min-microvolt = <1150000>; 172 regulator-max-microvolt = <1150000>; 173 }; 174 175 pm8226_l1: l1 { 176 regulator-min-microvolt = <1225000>; 177 regulator-max-microvolt = <1225000>; 178 }; 179 180 pm8226_l2: l2 { 181 regulator-min-microvolt = <1200000>; 182 regulator-max-microvolt = <1200000>; 183 }; 184 185 pm8226_l3: l3 { 186 regulator-min-microvolt = <750000>; 187 regulator-max-microvolt = <1337500>; 188 }; 189 190 pm8226_l4: l4 { 191 regulator-min-microvolt = <1200000>; 192 regulator-max-microvolt = <1200000>; 193 }; 194 195 pm8226_l5: l5 { 196 regulator-min-microvolt = <1200000>; 197 regulator-max-microvolt = <1200000>; 198 }; 199 200 pm8226_l6: l6 { 201 regulator-min-microvolt = <1800000>; 202 regulator-max-microvolt = <1800000>; 203 regulator-allow-set-load; 204 regulator-always-on; 205 }; 206 207 pm8226_l7: l7 { 208 regulator-min-microvolt = <1850000>; 209 regulator-max-microvolt = <1850000>; 210 }; 211 212 pm8226_l8: l8 { 213 regulator-min-microvolt = <1800000>; 214 regulator-max-microvolt = <1800000>; 215 }; 216 217 pm8226_l9: l9 { 218 regulator-min-microvolt = <2050000>; 219 regulator-max-microvolt = <2050000>; 220 }; 221 222 pm8226_l10: l10 { 223 regulator-min-microvolt = <1800000>; 224 regulator-max-microvolt = <1800000>; 225 }; 226 227 pm8226_l12: l12 { 228 regulator-min-microvolt = <1800000>; 229 regulator-max-microvolt = <1800000>; 230 }; 231 232 pm8226_l14: l14 { 233 regulator-min-microvolt = <2750000>; 234 regulator-max-microvolt = <2750000>; 235 }; 236 237 pm8226_l15: l15 { 238 regulator-min-microvolt = <2800000>; 239 regulator-max-microvolt = <2800000>; 240 }; 241 242 pm8226_l16: l16 { 243 regulator-min-microvolt = <3000000>; 244 regulator-max-microvolt = <3350000>; 245 }; 246 247 pm8226_l17: l17 { 248 regulator-min-microvolt = <2950000>; 249 regulator-max-microvolt = <2950000>; 250 251 regulator-system-load = <200000>; 252 regulator-allow-set-load; 253 regulator-always-on; 254 }; 255 256 pm8226_l18: l18 { 257 regulator-min-microvolt = <2950000>; 258 regulator-max-microvolt = <2950000>; 259 }; 260 261 pm8226_l19: l19 { 262 regulator-min-microvolt = <2850000>; 263 regulator-max-microvolt = <3000000>; 264 }; 265 266 pm8226_l20: l20 { 267 regulator-min-microvolt = <3075000>; 268 regulator-max-microvolt = <3075000>; 269 }; 270 271 pm8226_l21: l21 { 272 regulator-min-microvolt = <1800000>; 273 regulator-max-microvolt = <2950000>; 274 regulator-allow-set-load; 275 }; 276 277 pm8226_l22: l22 { 278 regulator-min-microvolt = <1800000>; 279 regulator-max-microvolt = <2950000>; 280 }; 281 282 pm8226_l23: l23 { 283 regulator-min-microvolt = <1800000>; 284 regulator-max-microvolt = <3300000>; 285 }; 286 287 pm8226_l24: l24 { 288 regulator-min-microvolt = <1300000>; 289 regulator-max-microvolt = <1350000>; 290 }; 291 292 pm8226_l25: l25 { 293 regulator-min-microvolt = <1775000>; 294 regulator-max-microvolt = <2125000>; 295 }; 296 297 pm8226_l26: l26 { 298 regulator-min-microvolt = <1225000>; 299 regulator-max-microvolt = <1300000>; 300 }; 301 302 pm8226_l27: l27 { 303 regulator-min-microvolt = <2050000>; 304 regulator-max-microvolt = <2050000>; 305 }; 306 307 pm8226_l28: l28 { 308 regulator-min-microvolt = <1800000>; 309 regulator-max-microvolt = <2950000>; 310 }; 311 312 pm8226_lvs1: lvs1 {}; 313 }; 314}; 315 316&sdhc_1 { 317 vmmc-supply = <&pm8226_l17>; 318 vqmmc-supply = <&pm8226_l6>; 319 320 bus-width = <8>; 321 non-removable; 322 323 status = "okay"; 324}; 325 326&sdhc_2 { 327 vmmc-supply = <&pm8226_l18>; 328 vqmmc-supply = <&pm8226_l21>; 329 330 bus-width = <4>; 331 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; 332 333 pinctrl-0 = <&sdhc2_default_state &sdhc2_cd_default>; 334 pinctrl-names = "default"; 335 336 status = "okay"; 337}; 338 339&tlmm { 340 accel_int_default: accel-int-default-state { 341 pins = "gpio64"; 342 function = "gpio"; 343 drive-strength = <2>; 344 bias-disable; 345 }; 346 347 gpio_hall_sensor_default: gpio-hall-sensor-default-state { 348 pins = "gpio50"; 349 function = "gpio"; 350 drive-strength = <2>; 351 bias-pull-up; 352 }; 353 354 gpio_keys_default: gpio-keys-default-state { 355 pins = "gpio106", "gpio107", "gpio108"; 356 function = "gpio"; 357 drive-strength = <2>; 358 bias-pull-up; 359 }; 360 361 motor_en_default: motor-en-default-state { 362 pins = "gpio111"; 363 function = "gpio"; 364 drive-strength = <2>; 365 bias-disable; 366 }; 367 368 sdhc2_cd_default: sdhc2-cd-default-state { 369 pins = "gpio38"; 370 function = "gpio"; 371 drive-strength = <2>; 372 bias-disable; 373 }; 374 375 tsp_en_default: tsp-en-default-state { 376 pins = "gpio31"; 377 function = "gpio"; 378 drive-strength = <2>; 379 bias-disable; 380 }; 381 382 tsp_int_default: tsp-int-default-state { 383 pins = "gpio17"; 384 function = "gpio"; 385 drive-strength = <2>; 386 bias-disable; 387 }; 388}; 389