1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 3 * Copyright (c) 2022, Matti Lehtimäki <matti. 4 * Copyright (c) 2023, Bryant Mairs <bryant@mai 5 */ 6 7 /dts-v1/; 8 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/power/summit,smb347-char 11 #include "qcom-msm8226.dtsi" 12 #include "pm8226.dtsi" 13 14 /delete-node/ &adsp_region; 15 /delete-node/ &smem_region; 16 17 / { 18 model = "Samsung Galaxy Tab 4 8.0 Wi-F 19 compatible = "samsung,milletwifi", "qc 20 chassis-type = "tablet"; 21 22 aliases { 23 display0 = &framebuffer0; 24 mmc0 = &sdhc_1; /* SDC1 eMMC s 25 mmc1 = &sdhc_2; /* SDC2 SD car 26 }; 27 28 chosen { 29 #address-cells = <1>; 30 #size-cells = <1>; 31 ranges; 32 33 stdout-path = "display0"; 34 35 framebuffer0: framebuffer@3200 36 compatible = "simple-f 37 reg = <0x03200000 0x80 38 width = <800>; 39 height = <1280>; 40 stride = <(800 * 3)>; 41 format = "r8g8b8"; 42 }; 43 }; 44 45 gpio-hall-sensor { 46 compatible = "gpio-keys"; 47 48 event-hall-sensor { 49 label = "Cover"; 50 gpios = <&tlmm 37 GPIO 51 linux,input-type = <EV 52 linux,code = <SW_LID>; 53 debounce-interval = <1 54 linux,can-disable; 55 wakeup-source; 56 }; 57 }; 58 59 gpio-keys { 60 compatible = "gpio-keys"; 61 autorepeat; 62 63 key-home { 64 label = "Home"; 65 gpios = <&tlmm 108 GPI 66 linux,code = <KEY_HOME 67 debounce-interval = <1 68 }; 69 70 key-volume-down { 71 label = "Volume Down"; 72 gpios = <&tlmm 107 GPI 73 linux,code = <KEY_VOLU 74 debounce-interval = <1 75 }; 76 77 key-volume-up { 78 label = "Volume Up"; 79 gpios = <&tlmm 106 GPI 80 linux,code = <KEY_VOLU 81 debounce-interval = <1 82 }; 83 }; 84 85 i2c-backlight { 86 compatible = "i2c-gpio"; 87 sda-gpios = <&tlmm 20 (GPIO_AC 88 scl-gpios = <&tlmm 21 (GPIO_AC 89 90 pinctrl-0 = <&backlight_i2c_de 91 pinctrl-names = "default"; 92 93 i2c-gpio,delay-us = <4>; 94 95 #address-cells = <1>; 96 #size-cells = <0>; 97 98 backlight@2c { 99 compatible = "ti,lp855 100 reg = <0x2c>; 101 enable-supply = <®_ 102 103 dev-ctrl = /bits/ 8 <0 104 init-brt = /bits/ 8 <0 105 106 /* 107 * Change transition d 108 * transition strength 109 * 1-bit w/ 8-bit reso 110 */ 111 rom-a3h { 112 rom-addr = /bi 113 rom-val = /bit 114 }; 115 116 /* 117 * PWM phase configura 118 * (0, 120deg, 240deg, 119 * PWM frequency: 9616 120 */ 121 rom-a5h { 122 rom-addr = /bi 123 rom-val = /bit 124 }; 125 126 /* 127 * Enable LED drivers 128 * current limit: 1.5A 129 */ 130 rom-a7h { 131 rom-addr = /bi 132 rom-val = /bit 133 }; 134 }; 135 }; 136 137 reg_backlight_vddio: regulator-backlig 138 compatible = "regulator-fixed" 139 regulator-name = "backlight_vd 140 regulator-min-microvolt = <180 141 regulator-max-microvolt = <180 142 143 gpio = <&tlmm 74 GPIO_ACTIVE_H 144 enable-active-high; 145 146 pinctrl-0 = <&backlight_vddio_ 147 pinctrl-names = "default"; 148 }; 149 150 reg_tsp_1p8v: regulator-tsp-1p8v { 151 compatible = "regulator-fixed" 152 regulator-name = "tsp_1p8v"; 153 regulator-min-microvolt = <180 154 regulator-max-microvolt = <180 155 156 gpio = <&tlmm 114 GPIO_ACTIVE_ 157 enable-active-high; 158 159 pinctrl-0 = <&tsp_en1_default_ 160 pinctrl-names = "default"; 161 }; 162 163 reg_tsp_3p3v: regulator-tsp-3p3v { 164 compatible = "regulator-fixed" 165 regulator-name = "tsp_3p3v"; 166 regulator-min-microvolt = <330 167 regulator-max-microvolt = <330 168 169 gpio = <&tlmm 31 GPIO_ACTIVE_H 170 enable-active-high; 171 172 pinctrl-0 = <&tsp_en_default_s 173 pinctrl-names = "default"; 174 }; 175 176 reserved-memory { 177 #address-cells = <1>; 178 #size-cells = <1>; 179 ranges; 180 181 framebuffer@3200000 { 182 reg = <0x03200000 0x80 183 no-map; 184 }; 185 186 mpss_region: mpss@8400000 { 187 reg = <0x08400000 0x1f 188 no-map; 189 }; 190 191 mba_region: mba@a300000 { 192 reg = <0x0a300000 0x10 193 no-map; 194 }; 195 196 reserved@cb00000 { 197 reg = <0x0cb00000 0x70 198 no-map; 199 }; 200 201 wcnss_region: wcnss@d200000 { 202 reg = <0x0d200000 0x70 203 no-map; 204 }; 205 206 adsp_region: adsp@d900000 { 207 reg = <0x0d900000 0x18 208 no-map; 209 }; 210 211 venus@f100000 { 212 reg = <0x0f100000 0x50 213 no-map; 214 }; 215 216 smem_region: smem@fa00000 { 217 reg = <0x0fa00000 0x10 218 no-map; 219 }; 220 221 reserved@fb00000 { 222 reg = <0x0fb00000 0x26 223 no-map; 224 }; 225 226 rfsa@fd60000 { 227 reg = <0x0fd60000 0x20 228 no-map; 229 }; 230 231 rmtfs@fd80000 { 232 compatible = "qcom,rmt 233 reg = <0x0fd80000 0x18 234 no-map; 235 236 qcom,client-id = <1>; 237 }; 238 }; 239 }; 240 241 &blsp1_i2c2 { 242 status = "okay"; 243 244 accelerometer@1d { 245 compatible = "st,lis2hh12"; 246 reg = <0x1d>; 247 248 interrupts-extended = <&tlmm 5 249 250 pinctrl-0 = <&accel_int_defaul 251 pinctrl-names = "default"; 252 253 vdd-supply = <&pm8226_l19>; 254 vddio-supply = <&pm8226_lvs1>; 255 256 mount-matrix = "0", "1", "0", 257 "-1", "0", "0", 258 "0", "0", "1"; 259 260 st,drdy-int-pin = <1>; 261 }; 262 }; 263 264 &blsp1_i2c3 { 265 status = "okay"; 266 267 charger@6a { 268 compatible = "summit,smb358"; 269 reg = <0x6a>; 270 271 interrupts-extended = <&tlmm 1 272 273 pinctrl-0 = <&charger_int_defa 274 pinctrl-names = "default"; 275 276 summit,enable-usb-charging; 277 summit,enable-charge-control = 278 summit,fast-voltage-threshold- 279 summit,chip-temperature-thresh 280 summit,usb-current-limit-micro 281 }; 282 }; 283 284 &blsp1_i2c4 { 285 status = "okay"; 286 287 muic: usb-switch@25 { 288 compatible = "siliconmitus,sm5 289 reg = <0x25>; 290 291 interrupts-extended = <&tlmm 6 292 293 pinctrl-0 = <&muic_int_default 294 pinctrl-names = "default"; 295 }; 296 }; 297 298 &blsp1_i2c5 { 299 status = "okay"; 300 301 touchscreen@48 { 302 compatible = "melfas,mms252", 303 reg = <0x48>; 304 interrupts-extended = <&tlmm 1 305 touchscreen-size-x = <800>; 306 touchscreen-size-y = <1280>; 307 avdd-supply = <®_tsp_3p3v>; 308 vdd-supply = <®_tsp_1p8v>; 309 linux,keycodes = <KEY_APPSELEC 310 311 pinctrl-0 = <&tsp_int_rst_defa 312 pinctrl-names = "default"; 313 }; 314 }; 315 316 &rpm_requests { 317 regulators { 318 compatible = "qcom,rpm-pm8226- 319 320 pm8226_s3: s3 { 321 regulator-min-microvol 322 regulator-max-microvol 323 }; 324 325 pm8226_s4: s4 { 326 regulator-min-microvol 327 regulator-max-microvol 328 }; 329 330 pm8226_s5: s5 { 331 regulator-min-microvol 332 regulator-max-microvol 333 }; 334 335 pm8226_l1: l1 { 336 regulator-min-microvol 337 regulator-max-microvol 338 }; 339 340 pm8226_l2: l2 { 341 regulator-min-microvol 342 regulator-max-microvol 343 }; 344 345 pm8226_l3: l3 { 346 regulator-min-microvol 347 regulator-max-microvol 348 regulator-always-on; 349 }; 350 351 pm8226_l4: l4 { 352 regulator-min-microvol 353 regulator-max-microvol 354 }; 355 356 pm8226_l5: l5 { 357 regulator-min-microvol 358 regulator-max-microvol 359 }; 360 361 pm8226_l6: l6 { 362 regulator-min-microvol 363 regulator-max-microvol 364 regulator-always-on; 365 }; 366 367 pm8226_l7: l7 { 368 regulator-min-microvol 369 regulator-max-microvol 370 }; 371 372 pm8226_l8: l8 { 373 regulator-min-microvol 374 regulator-max-microvol 375 regulator-always-on; 376 }; 377 378 pm8226_l9: l9 { 379 regulator-min-microvol 380 regulator-max-microvol 381 }; 382 383 pm8226_l10: l10 { 384 regulator-min-microvol 385 regulator-max-microvol 386 }; 387 388 pm8226_l12: l12 { 389 regulator-min-microvol 390 regulator-max-microvol 391 }; 392 393 pm8226_l14: l14 { 394 regulator-min-microvol 395 regulator-max-microvol 396 }; 397 398 pm8226_l15: l15 { 399 regulator-min-microvol 400 regulator-max-microvol 401 }; 402 403 pm8226_l16: l16 { 404 regulator-min-microvol 405 regulator-max-microvol 406 }; 407 408 pm8226_l17: l17 { 409 regulator-min-microvol 410 regulator-max-microvol 411 412 regulator-system-load 413 regulator-allow-set-lo 414 regulator-always-on; 415 }; 416 417 pm8226_l18: l18 { 418 regulator-min-microvol 419 regulator-max-microvol 420 }; 421 422 pm8226_l19: l19 { 423 regulator-min-microvol 424 regulator-max-microvol 425 }; 426 427 pm8226_l20: l20 { 428 regulator-min-microvol 429 regulator-max-microvol 430 }; 431 432 pm8226_l21: l21 { 433 regulator-min-microvol 434 regulator-max-microvol 435 }; 436 437 pm8226_l22: l22 { 438 regulator-min-microvol 439 regulator-max-microvol 440 }; 441 442 pm8226_l23: l23 { 443 regulator-min-microvol 444 regulator-max-microvol 445 }; 446 447 pm8226_l24: l24 { 448 regulator-min-microvol 449 regulator-max-microvol 450 }; 451 452 pm8226_l25: l25 { 453 regulator-min-microvol 454 regulator-max-microvol 455 }; 456 457 pm8226_l26: l26 { 458 regulator-min-microvol 459 regulator-max-microvol 460 }; 461 462 pm8226_l27: l27 { 463 regulator-min-microvol 464 regulator-max-microvol 465 }; 466 467 pm8226_l28: l28 { 468 regulator-min-microvol 469 regulator-max-microvol 470 }; 471 472 pm8226_lvs1: lvs1 {}; 473 }; 474 }; 475 476 &sdhc_1 { 477 vmmc-supply = <&pm8226_l17>; 478 vqmmc-supply = <&pm8226_l6>; 479 480 bus-width = <8>; 481 non-removable; 482 483 status = "okay"; 484 }; 485 486 &sdhc_2 { 487 vmmc-supply = <&pm8226_l18>; 488 vqmmc-supply = <&pm8226_l21>; 489 490 bus-width = <4>; 491 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; 492 493 pinctrl-0 = <&sdhc2_default_state>, <& 494 pinctrl-names = "default"; 495 496 status = "okay"; 497 }; 498 499 &tlmm { 500 accel_int_default_state: accel-int-def 501 pins = "gpio54"; 502 function = "gpio"; 503 drive-strength = <2>; 504 bias-disable; 505 }; 506 507 backlight_i2c_default_state: backlight 508 pins = "gpio20", "gpio21"; 509 function = "gpio"; 510 drive-strength = <2>; 511 bias-disable; 512 }; 513 514 backlight_vddio_default_state: backlig 515 pins = "gpio74"; 516 function = "gpio"; 517 drive-strength = <2>; 518 bias-disable; 519 }; 520 521 charger_int_default_state: charger-int 522 pins = "gpio115"; 523 function = "gpio"; 524 drive-strength = <2>; 525 bias-disable; 526 }; 527 528 muic_int_default_state: muic-int-defau 529 pins = "gpio67"; 530 function = "gpio"; 531 drive-strength = <2>; 532 bias-disable; 533 }; 534 535 sdc2_cd_default_state: sdc2-cd-default 536 pins = "gpio38"; 537 function = "gpio"; 538 drive-strength = <2>; 539 bias-disable; 540 }; 541 542 tsp_en_default_state: tsp-en-default-s 543 pins = "gpio31"; 544 function = "gpio"; 545 drive-strength = <2>; 546 bias-disable; 547 }; 548 549 tsp_en1_default_state: tsp-en1-default 550 pins = "gpio114"; 551 function = "gpio"; 552 drive-strength = <2>; 553 bias-disable; 554 }; 555 556 tsp_int_rst_default_state: tsp-int-rst 557 pins = "gpio17"; 558 function = "gpio"; 559 drive-strength = <10>; 560 bias-pull-up; 561 }; 562 }; 563 564 &usb { 565 extcon = <&muic>, <&muic>; 566 status = "okay"; 567 }; 568 569 &usb_hs_phy { 570 extcon = <&muic>; 571 v1p8-supply = <&pm8226_l10>; 572 v3p3-supply = <&pm8226_l20>; 573 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.