1 // SPDX-License-Identifier: GPL-2.0-only 2 /dts-v1/; 3 4 #include "ste-db8500.dtsi" 5 #include "ste-ab8505.dtsi" 6 #include "ste-dbx5x0-pinctrl.dtsi" 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/leds/common.h> 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/interrupt-controller/irq 11 12 /* 13 * Note: This device tree cannot be booted dir 14 * You need an intermediate, device-tree compa 15 * that locks the L2 cache. Otherwise the kern 16 * 17 * There is a port of (mainline) U-Boot, see 18 * https://wiki.postmarketos.org/wiki/ST-Erics 19 */ 20 / { 21 model = "Samsung Galaxy S III mini (GT 22 compatible = "samsung,golden", "st-eri 23 24 chosen { 25 stdout-path = &serial2; 26 }; 27 28 battery: battery { 29 compatible = "samsung,eb-l1m7f 30 }; 31 32 thermal-zones { 33 battery-thermal { 34 /* This zone will be p 35 polling-delay = <0>; 36 polling-delay-passive 37 thermal-sensors = <&ba 38 39 trips { 40 battery-crit-h 41 temper 42 hyster 43 type = 44 }; 45 }; 46 }; 47 }; 48 49 bat_therm: thermistor { 50 compatible = "samsung,1404-001 51 io-channels = <&gpadc 0x02>; / 52 pullup-uv = <1800000>; 53 pullup-ohm = <230000>; 54 pulldown-ohm = <0>; 55 #thermal-sensor-cells = <0>; 56 }; 57 58 i2c-gpio-0 { 59 compatible = "i2c-gpio"; 60 sda-gpios = <&gpio2 14 (GPIO_A 61 scl-gpios = <&gpio2 13 (GPIO_A 62 63 pinctrl-names = "default"; 64 pinctrl-0 = <&i2c_gpio_0_defau 65 66 #address-cells = <1>; 67 #size-cells = <0>; 68 69 touchkey@20 { 70 compatible = "corerive 71 reg = <0x20>; 72 vdd-supply = <&ab8500_ 73 vcc-supply = <&ab8500_ 74 75 interrupt-parent = <&g 76 interrupts = <15 IRQ_T 77 78 pinctrl-names = "defau 79 pinctrl-0 = <&touchkey 80 linux,keycodes = <KEY_ 81 }; 82 }; 83 84 i2c-gpio-1 { 85 compatible = "i2c-gpio"; 86 sda-gpios = <&gpio4 24 (GPIO_A 87 scl-gpios = <&gpio4 23 (GPIO_A 88 89 pinctrl-names = "default"; 90 pinctrl-0 = <&i2c_gpio_1_defau 91 92 #address-cells = <1>; 93 #size-cells = <0>; 94 95 magnetometer@c { 96 compatible = "alps,hsc 97 reg = <0x0c>; 98 99 avdd-supply = <&ab8500 100 dvdd-supply = <&ab8500 101 }; 102 }; 103 104 soc { 105 /* External Micro SD card slot 106 mmc@80126000 { 107 status = "okay"; 108 109 arm,primecell-periphid 110 max-frequency = <10000 111 bus-width = <4>; 112 113 non-removable; 114 /* 115 * Unfortunately, ther 116 * modes due to a limi 117 * It will either tran 118 * DATA lines, so swit 119 */ 120 cap-sd-highspeed; 121 cap-mmc-highspeed; 122 st,sig-pin-fbclk; 123 full-pwr-cycle; 124 125 vmmc-supply = <&ab8500 126 vqmmc-supply = <&sd_le 127 128 pinctrl-names = "defau 129 pinctrl-0 = <&mc0_a_2_ 130 pinctrl-1 = <&mc0_a_2_ 131 }; 132 133 /* WLAN SDIO */ 134 mmc@80118000 { 135 status = "okay"; 136 137 arm,primecell-periphid 138 max-frequency = <50000 139 bus-width = <4>; 140 141 non-removable; 142 cap-sd-highspeed; 143 144 vmmc-supply = <&wl_reg 145 146 pinctrl-names = "defau 147 pinctrl-0 = <&mc1_a_2_ 148 pinctrl-1 = <&mc1_a_2_ 149 150 #address-cells = <1>; 151 #size-cells = <0>; 152 153 wifi@1 { 154 compatible = " 155 reg = <1>; 156 157 /* GPIO216 (WL 158 interrupt-pare 159 interrupts = < 160 interrupt-name 161 162 pinctrl-names 163 pinctrl-0 = <& 164 }; 165 }; 166 167 /* eMMC */ 168 mmc@80005000 { 169 status = "okay"; 170 171 arm,primecell-periphid 172 max-frequency = <10000 173 bus-width = <8>; 174 175 non-removable; 176 cap-mmc-highspeed; 177 mmc-ddr-1_8v; 178 no-sdio; 179 no-sd; 180 181 vmmc-supply = <&vmem_3 182 183 pinctrl-names = "defau 184 pinctrl-0 = <&mc2_a_1_ 185 pinctrl-1 = <&mc2_a_1_ 186 }; 187 188 /* BT UART */ 189 serial@80120000 { 190 status = "okay"; 191 192 pinctrl-names = "defau 193 pinctrl-0 = <&u0_a_1_d 194 pinctrl-1 = <&u0_a_1_s 195 196 bluetooth { 197 /* BCM4334B0 a 198 compatible = " 199 /* GPIO222 (BT 200 shutdown-gpios 201 /* GPIO199 (BT 202 device-wakeup- 203 /* GPIO97 (BT_ 204 host-wakeup-gp 205 206 pinctrl-names 207 pinctrl-0 = <& 208 }; 209 }; 210 211 /* GPF UART */ 212 serial@80121000 { 213 status = "okay"; 214 215 pinctrl-names = "defau 216 pinctrl-0 = <&u1rxtx_a 217 pinctrl-1 = <&u1rxtx_a 218 }; 219 220 /* Debugging console UART */ 221 serial@80007000 { 222 status = "okay"; 223 224 pinctrl-names = "defau 225 pinctrl-0 = <&u2rxtx_c 226 pinctrl-1 = <&u2rxtx_c 227 }; 228 229 i2c@80004000 { 230 status = "okay"; 231 232 pinctrl-names = "defau 233 pinctrl-0 = <&i2c0_a_1 234 pinctrl-1 = <&i2c0_a_1 235 236 proximity@44 { 237 compatible = " 238 reg = <0x44>; 239 240 /* GPIO146 (PS 241 interrupt-pare 242 interrupts = < 243 244 vdd-supply = < 245 vio-supply = < 246 247 pinctrl-names 248 pinctrl-0 = <& 249 250 sharp,proximit 251 sharp,proximit 252 }; 253 }; 254 255 i2c@80128000 { 256 status = "okay"; 257 258 pinctrl-names = "defau 259 pinctrl-0 = <&i2c2_b_2 260 pinctrl-1 = <&i2c2_b_2 261 262 imu@68 { 263 compatible = " 264 reg = <0x68>; 265 266 /* GPIO206 (AC 267 interrupt-pare 268 interrupts = < 269 270 mount-matrix = 271 272 273 274 vdd-supply = < 275 vddio-supply = 276 277 pinctrl-names 278 pinctrl-0 = <& 279 }; 280 }; 281 282 i2c@80110000 { 283 status = "okay"; 284 285 pinctrl-names = "defau 286 pinctrl-0 = <&i2c3_c_2 287 pinctrl-1 = <&i2c3_c_2 288 289 touchscreen@4a { 290 compatible = " 291 reg = <0x4a>; 292 293 /* GPIO218 (TS 294 interrupt-pare 295 interrupts = < 296 297 /* VDDA is "an 298 vdda-supply = 299 /* VDD is "dig 300 vdd-supply = < 301 302 pinctrl-names 303 pinctrl-0 = <& 304 }; 305 }; 306 307 prcmu@80157000 { 308 ab8505 { 309 phy { 310 pinctr 311 pinctr 312 pinctr 313 }; 314 315 ab8500_fg { 316 line-i 317 }; 318 319 regulator { 320 ab8500 321 322 323 324 }; 325 326 ab8500 327 328 329 330 }; 331 332 ab8500 333 334 }; 335 336 ab8500 337 338 339 340 }; 341 342 ab8500 343 344 345 346 }; 347 348 ab8500 349 350 351 352 }; 353 354 ab8500 355 356 }; 357 }; 358 }; 359 }; 360 361 mcde@a0350000 { 362 status = "okay"; 363 pinctrl-names = "defau 364 pinctrl-0 = <&dsi_defa 365 366 dsi@a0351000 { 367 panel@0 { 368 compat 369 reg = 370 max-br 371 vdd3-s 372 vci-su 373 reset- 374 /* ESD 375 interr 376 interr 377 interr 378 pinctr 379 pinctr 380 }; 381 }; 382 }; 383 }; 384 385 gpio-keys { 386 compatible = "gpio-keys"; 387 388 pinctrl-names = "default"; 389 pinctrl-0 = <&gpio_keys_defaul 390 391 label = "GPIO Buttons"; 392 393 volume-up { 394 label = "Volume Up"; 395 /* GPIO67 (VOL_UP) */ 396 gpios = <&gpio2 3 GPIO 397 linux,code = <KEY_VOLU 398 }; 399 400 volume-down { 401 label = "Volume Down"; 402 /* GPIO92 (VOL_DOWN) * 403 gpios = <&gpio2 28 GPI 404 linux,code = <KEY_VOLU 405 }; 406 407 home { 408 label = "Home"; 409 /* GPIO91 (HOME_KEY) * 410 gpios = <&gpio2 27 GPI 411 linux,code = <KEY_HOME 412 }; 413 }; 414 415 /* Richtek RT8515GQW Flash LED Driver 416 flash { 417 compatible = "richtek,rt8515"; 418 /* GPIO 140 */ 419 enf-gpios = <&gpio4 12 GPIO_AC 420 /* GPIO 141 */ 421 ent-gpios = <&gpio4 13 GPIO_AC 422 /* 423 * RFS is 16 kOhm and RTS is 1 424 * the flash max current 343mA 425 * current 55 mA. 426 */ 427 richtek,rfs-ohms = <16000>; 428 richtek,rts-ohms = <100000>; 429 pinctrl-names = "default"; 430 pinctrl-0 = <&gpio_flash_defau 431 432 led { 433 function = LED_FUNCTIO 434 color = <LED_COLOR_ID_ 435 flash-max-timeout-us = 436 flash-max-microamp = < 437 led-max-microamp = <55 438 }; 439 }; 440 441 vibrator { 442 compatible = "gpio-vibrator"; 443 /* GPIO195 (MOT_EN) */ 444 enable-gpios = <&gpio6 3 GPIO_ 445 446 pinctrl-names = "default"; 447 pinctrl-0 = <&vibrator_default 448 }; 449 450 /* External LDO for eMMC */ 451 vmem_3v3: regulator-vmem { 452 compatible = "regulator-fixed" 453 454 regulator-name = "vmem_3v3"; 455 regulator-min-microvolt = <330 456 regulator-max-microvolt = <330 457 regulator-boot-on; 458 459 startup-delay-us = <200>; 460 461 /* GPIO223 (MEM_LDO_EN) */ 462 gpio = <&gpio6 31 GPIO_ACTIVE_ 463 enable-active-high; 464 465 pinctrl-names = "default"; 466 pinctrl-0 = <&mem_ldo_default> 467 }; 468 469 /* TI TXS0206-29 level translator for 470 sd_level_translator: regulator-sd-leve 471 compatible = "regulator-fixed" 472 473 regulator-name = "sd-level-tra 474 regulator-min-microvolt = <290 475 regulator-max-microvolt = <290 476 477 startup-delay-us = <200>; 478 479 /* GPIO87 (TXS0206-29_EN) */ 480 gpios = <&gpio2 23 GPIO_ACTIVE 481 enable-active-high; 482 483 pinctrl-names = "default"; 484 pinctrl-0 = <&sd_level_transla 485 }; 486 487 /* 488 * WL_REG_ON takes WLAN out of reset a 489 * The voltage specified here is only 490 * the BCM chip is actually connected 491 */ 492 wl_reg_on: regulator-wl-reg-on { 493 compatible = "regulator-fixed" 494 495 regulator-name = "wl-reg-on"; 496 regulator-min-microvolt = <300 497 regulator-max-microvolt = <300 498 499 startup-delay-us = <100000>; 500 501 /* GPIO215 (WLAN_EN) */ 502 gpio = <&gpio6 23 GPIO_ACTIVE_ 503 enable-active-high; 504 505 pinctrl-names = "default"; 506 pinctrl-0 = <&wlan_en_default> 507 }; 508 509 /* MIC5366 GPIO-controlled regulator * 510 panel_reg_1v8: regulator-panel-1v8 { 511 compatible = "regulator-fixed" 512 513 regulator-name = "panel-fixed- 514 regulator-min-microvolt = <180 515 regulator-max-microvolt = <180 516 /* GPIO219 */ 517 gpio = <&gpio6 27 GPIO_ACTIVE_ 518 519 startup-delay-us = <200>; 520 enable-active-high; 521 522 pinctrl-names = "default"; 523 pinctrl-0 = <&panel_reg_defaul 524 }; 525 526 /* MIC5366 GPIO-controlled regulator * 527 panel_reg_3v0: regulator-panel-3v0 { 528 compatible = "regulator-fixed" 529 530 regulator-name = "panel-fixed- 531 regulator-min-microvolt = <300 532 regulator-max-microvolt = <300 533 /* GPIO219 */ 534 gpio = <&gpio6 27 GPIO_ACTIVE_ 535 536 startup-delay-us = <200>; 537 enable-active-high; 538 539 pinctrl-names = "default"; 540 pinctrl-0 = <&panel_reg_defaul 541 }; 542 }; 543 544 &pinctrl { 545 gpio-keys { 546 gpio_keys_default: gpio_keys_d 547 golden_cfg1 { 548 pins = "GPIO67 549 "GPIO91 550 "GPIO92 551 ste,config = < 552 }; 553 }; 554 }; 555 556 i2c-gpio-0 { 557 i2c_gpio_0_default: i2c_gpio_0 558 golden_cfg1 { 559 pins = "GPIO77 560 "GPIO78 561 ste,config = < 562 }; 563 }; 564 }; 565 566 flash { 567 gpio_flash_default_mode: flash 568 golden_cfg1 { 569 pins = "GPIO14 570 ste,config = < 571 }; 572 }; 573 }; 574 575 i2c-gpio-1 { 576 i2c_gpio_1_default: i2c_gpio_1 577 golden_cfg1 { 578 pins = "GPIO15 579 "GPIO15 580 ste,config = < 581 }; 582 }; 583 }; 584 585 touchkey { 586 touchkey_default: touchkey_def 587 golden_cfg1 { 588 pins = "GPIO79 589 ste,config = < 590 }; 591 }; 592 }; 593 594 sdi0 { 595 sd_level_translator_default: s 596 golden_cfg1 { 597 pins = "GPIO87 598 ste,config = < 599 }; 600 }; 601 }; 602 603 sdi2 { 604 mem_ldo_default: mem_ldo_defau 605 golden_cfg1 { 606 pins = "GPIO22 607 ste,config = < 608 }; 609 }; 610 }; 611 612 mcde { 613 dsi_default_mode: dsi_default 614 default_mux1 { 615 /* Mux in VSI0 616 function = "lc 617 groups = 618 "lcdvsi0_a_1"; 619 }; 620 default_cfg1 { 621 pins = 622 "GPIO68_E1"; / 623 ste,config = < 624 }; 625 }; 626 }; 627 628 display { 629 display_default_mode: display_ 630 golden_cfg1 { 631 pins = "GPIO13 632 ste,config = < 633 }; 634 golden_cfg2 { 635 pins = "GPIO82 636 ste,config = < 637 }; 638 }; 639 panel_reg_default_mode: panel_ 640 golden_cfg1 { 641 pins = "GPIO21 642 ste,config = < 643 }; 644 }; 645 }; 646 647 proximity { 648 proximity_default: proximity_d 649 golden_cfg1 { 650 pins = "GPIO14 651 ste,config = < 652 }; 653 }; 654 }; 655 656 imu { 657 imu_default: imu_default { 658 golden_cfg1 { 659 pins = "GPIO20 660 ste,config = < 661 }; 662 }; 663 }; 664 665 tsp { 666 tsp_default: tsp_default { 667 golden_cfg1 { 668 pins = "GPIO21 669 ste,config = < 670 }; 671 }; 672 }; 673 674 wlan { 675 wlan_default: wlan_default { 676 golden_cfg1 { 677 pins = "GPIO21 678 ste,config = < 679 }; 680 }; 681 682 wlan_en_default: wlan_en_defau 683 golden_cfg1 { 684 pins = "GPIO21 685 ste,config = < 686 }; 687 }; 688 }; 689 690 bluetooth { 691 bluetooth_default: bluetooth_d 692 golden_cfg1 { 693 pins = "GPIO19 694 "GPIO22 695 ste,config = < 696 }; 697 golden_cfg2 { 698 pins = "GPIO97 699 ste,config = < 700 }; 701 }; 702 }; 703 704 vibrator { 705 vibrator_default: vibrator_def 706 golden_cfg1 { 707 pins = "GPIO19 708 ste,config = < 709 }; 710 }; 711 }; 712 }; 713 714 &ab8505_gpio { 715 /* Hog a few default settings */ 716 pinctrl-names = "default"; 717 pinctrl-0 = <&gpio_default>; 718 719 gpio { 720 gpio_default: gpio_default { 721 golden_mux { 722 /* Change unus 723 function = "gp 724 groups = "gpio 725 "gpio 726 }; 727 golden_cfg1 { 728 pins = "GPIO11 729 bias-disable; 730 }; 731 }; 732 }; 733 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.