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,m 13 chassis-type = "handset"; 14 15 aliases { 16 mmc0 = &sdhc_1; /* SDC1 eMMC s 17 mmc1 = &sdhc_2; /* SDC2 SD car 18 serial0 = &blsp1_uart3; 19 }; 20 21 chosen { 22 stdout-path = "serial0:115200n 23 }; 24 25 gpio-hall-sensor { 26 compatible = "gpio-keys"; 27 28 pinctrl-0 = <&gpio_hall_sensor 29 pinctrl-names = "default"; 30 31 label = "GPIO Hall Effect Sens 32 33 event-hall-sensor { 34 label = "Hall Effect S 35 gpios = <&tlmm 50 GPIO 36 linux,input-type = <EV 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_defaul 46 pinctrl-names = "default"; 47 48 label = "GPIO Buttons"; 49 50 button-volume-up { 51 label = "Volume Up"; 52 gpios = <&tlmm 106 GPI 53 linux,code = <KEY_VOLU 54 }; 55 56 button-volume-down { 57 label = "Volume Down"; 58 gpios = <&tlmm 107 GPI 59 linux,code = <KEY_VOLU 60 }; 61 62 button-home { 63 label = "Home Key"; 64 gpios = <&tlmm 108 GPI 65 linux,code = <KEY_HOME 66 }; 67 }; 68 69 reg_motor_vdd: regulator-motor-vdd { 70 compatible = "regulator-fixed" 71 regulator-name = "motor_vdd"; 72 regulator-min-microvolt = <330 73 regulator-max-microvolt = <330 74 75 gpio = <&tlmm 111 GPIO_ACTIVE_ 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 = <330 86 regulator-max-microvolt = <330 87 88 gpio = <&tlmm 31 GPIO_ACTIVE_H 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 0x10 98 no-map; 99 }; 100 }; 101 102 vibrator { 103 compatible = "regulator-haptic 104 haptic-supply = <®_motor_vd 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 6 117 118 vdd-supply = <&pm8226_l19>; 119 vddio-supply = <&pm8226_lvs1>; 120 121 pinctrl-0 = <&accel_int_defaul 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 1 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 }; 149 150 &blsp1_uart3 { 151 status = "okay"; 152 }; 153 154 &rpm_requests { 155 regulators { 156 compatible = "qcom,rpm-pm8226- 157 158 pm8226_s3: s3 { 159 regulator-min-microvol 160 regulator-max-microvol 161 }; 162 163 pm8226_s4: s4 { 164 regulator-min-microvol 165 regulator-max-microvol 166 }; 167 168 pm8226_s5: s5 { 169 regulator-min-microvol 170 regulator-max-microvol 171 }; 172 173 pm8226_l1: l1 { 174 regulator-min-microvol 175 regulator-max-microvol 176 }; 177 178 pm8226_l2: l2 { 179 regulator-min-microvol 180 regulator-max-microvol 181 }; 182 183 pm8226_l3: l3 { 184 regulator-min-microvol 185 regulator-max-microvol 186 }; 187 188 pm8226_l4: l4 { 189 regulator-min-microvol 190 regulator-max-microvol 191 }; 192 193 pm8226_l5: l5 { 194 regulator-min-microvol 195 regulator-max-microvol 196 }; 197 198 pm8226_l6: l6 { 199 regulator-min-microvol 200 regulator-max-microvol 201 regulator-allow-set-lo 202 regulator-always-on; 203 }; 204 205 pm8226_l7: l7 { 206 regulator-min-microvol 207 regulator-max-microvol 208 }; 209 210 pm8226_l8: l8 { 211 regulator-min-microvol 212 regulator-max-microvol 213 }; 214 215 pm8226_l9: l9 { 216 regulator-min-microvol 217 regulator-max-microvol 218 }; 219 220 pm8226_l10: l10 { 221 regulator-min-microvol 222 regulator-max-microvol 223 }; 224 225 pm8226_l12: l12 { 226 regulator-min-microvol 227 regulator-max-microvol 228 }; 229 230 pm8226_l14: l14 { 231 regulator-min-microvol 232 regulator-max-microvol 233 }; 234 235 pm8226_l15: l15 { 236 regulator-min-microvol 237 regulator-max-microvol 238 }; 239 240 pm8226_l16: l16 { 241 regulator-min-microvol 242 regulator-max-microvol 243 }; 244 245 pm8226_l17: l17 { 246 regulator-min-microvol 247 regulator-max-microvol 248 249 regulator-system-load 250 regulator-allow-set-lo 251 regulator-always-on; 252 }; 253 254 pm8226_l18: l18 { 255 regulator-min-microvol 256 regulator-max-microvol 257 }; 258 259 pm8226_l19: l19 { 260 regulator-min-microvol 261 regulator-max-microvol 262 }; 263 264 pm8226_l20: l20 { 265 regulator-min-microvol 266 regulator-max-microvol 267 }; 268 269 pm8226_l21: l21 { 270 regulator-min-microvol 271 regulator-max-microvol 272 regulator-allow-set-lo 273 }; 274 275 pm8226_l22: l22 { 276 regulator-min-microvol 277 regulator-max-microvol 278 }; 279 280 pm8226_l23: l23 { 281 regulator-min-microvol 282 regulator-max-microvol 283 }; 284 285 pm8226_l24: l24 { 286 regulator-min-microvol 287 regulator-max-microvol 288 }; 289 290 pm8226_l25: l25 { 291 regulator-min-microvol 292 regulator-max-microvol 293 }; 294 295 pm8226_l26: l26 { 296 regulator-min-microvol 297 regulator-max-microvol 298 }; 299 300 pm8226_l27: l27 { 301 regulator-min-microvol 302 regulator-max-microvol 303 }; 304 305 pm8226_l28: l28 { 306 regulator-min-microvol 307 regulator-max-microvol 308 }; 309 310 pm8226_lvs1: lvs1 {}; 311 }; 312 }; 313 314 &sdhc_1 { 315 vmmc-supply = <&pm8226_l17>; 316 vqmmc-supply = <&pm8226_l6>; 317 318 bus-width = <8>; 319 non-removable; 320 321 status = "okay"; 322 }; 323 324 &sdhc_2 { 325 vmmc-supply = <&pm8226_l18>; 326 vqmmc-supply = <&pm8226_l21>; 327 328 bus-width = <4>; 329 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; 330 331 pinctrl-0 = <&sdhc2_default_state &sdh 332 pinctrl-names = "default"; 333 334 status = "okay"; 335 }; 336 337 &tlmm { 338 accel_int_default: accel-int-default-s 339 pins = "gpio64"; 340 function = "gpio"; 341 drive-strength = <2>; 342 bias-disable; 343 }; 344 345 gpio_hall_sensor_default: gpio-hall-se 346 pins = "gpio50"; 347 function = "gpio"; 348 drive-strength = <2>; 349 bias-pull-up; 350 }; 351 352 gpio_keys_default: gpio-keys-default-s 353 pins = "gpio106", "gpio107", " 354 function = "gpio"; 355 drive-strength = <2>; 356 bias-pull-up; 357 }; 358 359 motor_en_default: motor-en-default-sta 360 pins = "gpio111"; 361 function = "gpio"; 362 drive-strength = <2>; 363 bias-disable; 364 }; 365 366 sdhc2_cd_default: sdhc2-cd-default-sta 367 pins = "gpio38"; 368 function = "gpio"; 369 drive-strength = <2>; 370 bias-disable; 371 }; 372 373 tsp_en_default: tsp-en-default-state { 374 pins = "gpio31"; 375 function = "gpio"; 376 drive-strength = <2>; 377 bias-disable; 378 }; 379 380 tsp_int_default: tsp-int-default-state 381 pins = "gpio17"; 382 function = "gpio"; 383 drive-strength = <2>; 384 bias-disable; 385 }; 386 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.