1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Samsung's Exynos4412 based p4note device fa 4 * Based on exynos4412-midas.dtsi. 5 * 6 * Copyright (c) 2013 Samsung Electronics Co., 7 * http://www.samsung.com 8 */ 9 10 /dts-v1/; 11 #include "exynos4412.dtsi" 12 #include "exynos4412-ppmu-common.dtsi" 13 14 #include <dt-bindings/clock/maxim,max77686.h> 15 #include <dt-bindings/gpio/gpio.h> 16 #include <dt-bindings/input/linux-event-codes. 17 #include <dt-bindings/interrupt-controller/irq 18 #include <dt-bindings/power/summit,smb347-char 19 #include "exynos-pinctrl.h" 20 21 / { 22 compatible = "samsung,p4note", "samsun 23 24 memory@40000000 { 25 device_type = "memory"; 26 reg = <0x40000000 0x7fc00000>; 27 }; 28 29 aliases { 30 mmc0 = &mshc_0; 31 mmc2 = &sdhci_2; 32 mmc3 = &sdhci_3; 33 }; 34 35 chosen { 36 stdout-path = &serial_2; 37 }; 38 39 firmware@204f000 { 40 compatible = "samsung,secure-f 41 reg = <0x0204f000 0x1000>; 42 }; 43 44 fixed-rate-clocks { 45 xxti { 46 compatible = "samsung, 47 clock-frequency = <0>; 48 }; 49 50 xusbxti { 51 compatible = "samsung, 52 clock-frequency = <240 53 }; 54 }; 55 56 gpio-keys { 57 compatible = "gpio-keys"; 58 pinctrl-names = "default"; 59 pinctrl-0 = <&gpio_keys>; 60 61 key-down { 62 gpios = <&gpx2 2 GPIO_ 63 linux,code = <KEY_VOLU 64 label = "volume down"; 65 debounce-interval = <1 66 }; 67 68 key-up { 69 gpios = <&gpx3 3 GPIO_ 70 linux,code = <KEY_VOLU 71 label = "volume up"; 72 debounce-interval = <1 73 }; 74 75 key-power { 76 gpios = <&gpx2 7 GPIO_ 77 linux,code = <KEY_POWE 78 label = "power"; 79 debounce-interval = <1 80 wakeup-source; 81 }; 82 }; 83 84 voltage-regulator-1 { 85 compatible = "regulator-fixed" 86 regulator-name = "TSP_LDO1"; 87 pinctrl-names = "default"; 88 pinctrl-0 = <&tsp_reg_gpio_1>; 89 gpios = <&gpm4 5 GPIO_ACTIVE_H 90 enable-active-high; 91 regulator-always-on; 92 }; 93 94 voltage-regulator-2 { 95 compatible = "regulator-fixed" 96 regulator-name = "TSP_LDO2"; 97 pinctrl-names = "default"; 98 pinctrl-0 = <&tsp_reg_gpio_2>; 99 gpios = <&gpb 5 GPIO_ACTIVE_HI 100 enable-active-high; 101 regulator-always-on; 102 }; 103 104 voltage-regulator-3 { 105 compatible = "regulator-fixed" 106 regulator-name = "TSP_LDO3"; 107 pinctrl-names = "default"; 108 pinctrl-0 = <&tsp_reg_gpio_3>; 109 gpios = <&gpb 7 GPIO_ACTIVE_HI 110 startup-delay-us = <20000>; 111 enable-active-high; 112 regulator-always-on; 113 }; 114 115 panel_vdd: voltage-regulator-4 { 116 compatible = "regulator-fixed" 117 regulator-name = "LCD_ENABLE"; 118 pinctrl-names = "default"; 119 pinctrl-0 = <&lcd_enable>; 120 gpios = <&gpc0 1 GPIO_ACTIVE_H 121 enable-active-high; 122 regulator-boot-on; 123 }; 124 125 wlan_pwrseq: sdhci3-pwrseq { 126 compatible = "mmc-pwrseq-simpl 127 reset-gpios = <&gpm3 5 GPIO_AC 128 pinctrl-0 = <&wifi_reset>; 129 pinctrl-names = "default"; 130 clocks = <&max77686 MAX77686_C 131 clock-names = "ext_clock"; 132 }; 133 134 battery_cell: battery-cell { 135 compatible = "simple-battery"; 136 device-chemistry = "lithium-io 137 constant-charge-current-max-mi 138 precharge-current-microamp = < 139 charge-term-current-microamp = 140 constant-charge-voltage-max-mi 141 }; 142 143 i2c-gpio-1 { 144 compatible = "i2c-gpio"; 145 sda-gpios = <&gpy2 4 (GPIO_ACT 146 scl-gpios = <&gpy2 5 (GPIO_ACT 147 i2c-gpio,delay-us = <2>; 148 #address-cells = <1>; 149 #size-cells = <0>; 150 151 magnetometer@c { 152 compatible = "asahi-ka 153 reg = <0x0c>; 154 pinctrl-0 = <&ak8975_i 155 pinctrl-names = "defau 156 interrupt-parent = <&g 157 interrupts = <7 IRQ_TY 158 }; 159 }; 160 161 i2c-gpio-2 { 162 compatible = "i2c-gpio"; 163 sda-gpios = <&gpy0 2 (GPIO_ACT 164 scl-gpios = <&gpy0 3 (GPIO_ACT 165 i2c-gpio,delay-us = <2>; 166 #address-cells = <1>; 167 #size-cells = <0>; 168 169 fuel-gauge@36 { 170 compatible = "maxim,ma 171 reg = <0x36>; 172 pinctrl-0 = <&fuel_ale 173 pinctrl-names = "defau 174 interrupt-parent = <&g 175 interrupts = <3 IRQ_TY 176 maxim,rsns-microohm = 177 maxim,over-heat-temp = 178 maxim,over-volt = <430 179 }; 180 }; 181 182 i2c-gpio-3 { 183 compatible = "i2c-gpio"; 184 sda-gpios = <&gpm4 1 (GPIO_ACT 185 scl-gpios = <&gpm4 0 (GPIO_ACT 186 i2c-gpio,delay-us = <5>; 187 #address-cells = <1>; 188 #size-cells = <0>; 189 190 adc@41 { 191 compatible = "st,stmpe 192 reg = <0x41>; 193 pinctrl-0 = <&stmpe_ad 194 pinctrl-names = "defau 195 interrupt-parent = <&g 196 interrupts = <1 IRQ_TY 197 st,adc-freq = <3>; 198 st,mod-12b = <1>; 199 st,ref-sel = <0>; 200 st,sample-time = <3>; 201 202 adc { 203 compatible = " 204 #io-channel-ce 205 st,norequest-m 206 }; 207 }; 208 }; 209 210 i2c-gpio-4 { 211 compatible = "i2c-gpio"; 212 sda-gpios = <&gpm2 0 (GPIO_ACT 213 scl-gpios = <&gpm2 1 (GPIO_ACT 214 215 i2c-gpio,delay-us = <2>; 216 #address-cells = <1>; 217 #size-cells = <0>; 218 219 power_supply: charger@6 { 220 compatible = "summit,s 221 reg = <0x6>; 222 summit,enable-usb-char 223 summit,enable-charge-c 224 summit,fast-voltage-th 225 summit,chip-temperatur 226 summit,usb-current-lim 227 228 monitored-battery = <& 229 }; 230 }; 231 232 panel { 233 compatible = "samsung,ltl101al 234 pinctrl-0 = <&lvds_nshdn>; 235 pinctrl-names = "default"; 236 power-supply = <&panel_vdd>; 237 enable-gpios = <&gpm0 5 GPIO_A 238 backlight = <&backlight>; 239 240 port { 241 lcd_ep: endpoint { 242 remote-endpoin 243 }; 244 }; 245 }; 246 247 backlight: backlight { 248 compatible = "pwm-backlight"; 249 pinctrl-0 = <&led_bl_reset>; 250 pinctrl-names = "default"; 251 enable-gpios = <&gpm0 1 GPIO_A 252 power-supply = <&panel_vdd>; 253 pwms = <&pwm 1 78770 0>; 254 brightness-levels = <0 48 128 255 num-interpolated-steps = <8>; 256 default-brightness-level = <12 257 }; 258 }; 259 260 &adc { 261 vdd-supply = <&ldo3_reg>; 262 /* not verified */ 263 status = "okay"; 264 }; 265 266 &bus_dmc { 267 devfreq-events = <&ppmu_dmc0_3>, <&ppm 268 vdd-supply = <&buck1_reg>; 269 status = "okay"; 270 }; 271 272 &bus_acp { 273 devfreq = <&bus_dmc>; 274 status = "okay"; 275 }; 276 277 &bus_c2c { 278 devfreq = <&bus_dmc>; 279 status = "okay"; 280 }; 281 282 &bus_leftbus { 283 devfreq-events = <&ppmu_leftbus_3>, <& 284 vdd-supply = <&buck3_reg>; 285 status = "okay"; 286 }; 287 288 &bus_rightbus { 289 devfreq = <&bus_leftbus>; 290 status = "okay"; 291 }; 292 293 &bus_display { 294 devfreq = <&bus_leftbus>; 295 status = "okay"; 296 }; 297 298 &bus_fsys { 299 devfreq = <&bus_leftbus>; 300 status = "okay"; 301 }; 302 303 &bus_peri { 304 devfreq = <&bus_leftbus>; 305 status = "okay"; 306 }; 307 308 &bus_mfc { 309 devfreq = <&bus_leftbus>; 310 status = "okay"; 311 }; 312 313 &cpu0 { 314 cpu0-supply = <&buck2_reg>; 315 }; 316 317 &cpu_thermal { 318 cooling-maps { 319 map0 { 320 /* Corresponds to 800M 321 cooling-device = <&cpu 322 <&cpu 323 }; 324 map1 { 325 /* Corresponds to 200M 326 cooling-device = <&cpu 327 <&cpu 328 }; 329 }; 330 }; 331 332 &exynos_usbphy { 333 status = "okay"; 334 }; 335 336 &fimd { 337 pinctrl-0 = <&lcd_clk &lcd_data24>; 338 pinctrl-names = "default"; 339 #address-cells = <1>; 340 #size-cells = <0>; 341 status = "okay"; 342 343 samsung,invert-vclk; 344 345 port@3 { 346 reg = <3>; 347 348 fimd_ep: endpoint { 349 remote-endpoint = <&lc 350 }; 351 }; 352 }; 353 354 &gpu { 355 mali-supply = <&buck4_reg>; 356 status = "okay"; 357 }; 358 359 &hsotg { 360 vusb_a-supply = <&ldo12_reg>; 361 dr_mode = "peripheral"; 362 status = "okay"; 363 }; 364 365 &i2c_1 { 366 samsung,i2c-sda-delay = <100>; 367 samsung,i2c-slave-addr = <0x10>; 368 samsung,i2c-max-bus-freq = <400000>; 369 pinctrl-0 = <&i2c1_bus>; 370 pinctrl-names = "default"; 371 status = "okay"; 372 373 accelerometer@19 { 374 compatible = "st,lsm330dlc-acc 375 reg = <0x19>; 376 interrupt-parent = <&gpx0>; 377 interrupts = <0 IRQ_TYPE_EDGE_ 378 pinctrl-0 = <&accelerometer_ir 379 pinctrl-names = "default"; 380 mount-matrix = "1", "0", "0 381 "0", "-1", "0 382 "0", "0", "-1 383 }; 384 385 gyro@6b { 386 compatible = "st,lsm330dlc-gyr 387 reg = <0x6b>; 388 interrupt-parent = <&gpx0>; 389 interrupts = <6 IRQ_TYPE_EDGE_ 390 pinctrl-0 = <&gyro_data_enable 391 pinctrl-names = "default"; 392 mount-matrix = "1", "0", "0 393 "0", "-1", "0 394 "0", "0", "-1 395 }; 396 }; 397 398 &i2c_3 { 399 samsung,i2c-sda-delay = <100>; 400 samsung,i2c-slave-addr = <0x10>; 401 samsung,i2c-max-bus-freq = <400000>; 402 pinctrl-0 = <&i2c3_bus>; 403 pinctrl-names = "default"; 404 status = "okay"; 405 406 touchscreen@4a { 407 compatible = "atmel,maxtouch"; 408 reg = <0x4a>; 409 pinctrl-0 = <&tsp_rst &tsp_irq 410 pinctrl-names = "default"; 411 interrupt-parent = <&gpm2>; 412 interrupts = <3 IRQ_TYPE_LEVEL 413 reset-gpios = <&gpm0 4 GPIO_AC 414 }; 415 }; 416 417 &i2c_7 { 418 samsung,i2c-sda-delay = <100>; 419 samsung,i2c-slave-addr = <0x10>; 420 samsung,i2c-max-bus-freq = <400000>; 421 pinctrl-0 = <&i2c7_bus>; 422 pinctrl-names = "default"; 423 status = "okay"; 424 425 max77686: pmic@9 { 426 compatible = "maxim,max77686"; 427 interrupt-parent = <&gpx0>; 428 interrupts = <7 IRQ_TYPE_LEVEL 429 pinctrl-0 = <&max77686_irq>; 430 pinctrl-names = "default"; 431 wakeup-source; 432 reg = <0x09>; 433 #clock-cells = <1>; 434 435 voltage-regulators { 436 ldo1_reg: LDO1 { 437 regulator-name 438 regulator-alwa 439 }; 440 441 ldo2_reg: LDO2 { 442 regulator-name 443 regulator-alwa 444 }; 445 446 /* WM8994 audio */ 447 ldo3_reg: LDO3 { 448 regulator-name 449 regulator-min- 450 regulator-max- 451 regulator-alwa 452 regulator-boot 453 454 regulator-stat 455 regula 456 }; 457 }; 458 459 ldo4_reg: LDO4 { 460 regulator-name 461 regulator-alwa 462 }; 463 464 ldo5_reg: LDO5 { 465 regulator-name 466 regulator-min- 467 regulator-max- 468 469 regulator-stat 470 regula 471 }; 472 }; 473 474 ldo6_reg: LDO6 { 475 regulator-name 476 regulator-alwa 477 }; 478 479 ldo7_reg: LDO7 { 480 regulator-name 481 regulator-alwa 482 }; 483 484 /* CSI IP block */ 485 ldo8_reg: LDO8 { 486 regulator-name 487 regulator-min- 488 regulator-max- 489 regulator-alwa 490 regulator-boot 491 492 regulator-stat 493 regula 494 }; 495 }; 496 497 /* IR LED on/off */ 498 ldo9_reg: LDO9 { 499 regulator-name 500 regulator-min- 501 regulator-max- 502 503 regulator-stat 504 regula 505 }; 506 }; 507 508 /* CSI IP block */ 509 ldo10_reg: LDO10 { 510 regulator-name 511 regulator-min- 512 regulator-max- 513 regulator-alwa 514 regulator-boot 515 516 regulator-stat 517 regula 518 }; 519 }; 520 521 ldo11_reg: LDO11 { 522 regulator-name 523 regulator-min- 524 regulator-max- 525 regulator-alwa 526 regulator-boot 527 528 regulator-stat 529 regula 530 }; 531 }; 532 533 /* USB OTG */ 534 ldo12_reg: LDO12 { 535 regulator-name 536 regulator-min- 537 regulator-max- 538 regulator-alwa 539 regulator-boot 540 541 regulator-stat 542 regula 543 }; 544 }; 545 546 /* not connected */ 547 ldo13_reg: LDO13 { 548 regulator-name 549 }; 550 551 ldo14_reg: LDO14 { 552 regulator-name 553 regulator-min- 554 regulator-max- 555 regulator-alwa 556 regulator-boot 557 558 regulator-stat 559 regula 560 }; 561 }; 562 563 ldo15_reg: LDO15 { 564 regulator-name 565 regulator-alwa 566 }; 567 568 ldo16_reg: LDO16 { 569 regulator-name 570 regulator-alwa 571 }; 572 573 /* not connected */ 574 ldo17_reg: LDO17 { 575 regulator-name 576 }; 577 578 /* Camera ISX012 */ 579 ldo18_reg: LDO18 { 580 regulator-name 581 regulator-min- 582 regulator-max- 583 584 regulator-stat 585 regula 586 }; 587 }; 588 589 /* Camera S5K6A3 */ 590 ldo19_reg: LDO19 { 591 regulator-name 592 regulator-min- 593 regulator-max- 594 595 regulator-stat 596 regula 597 }; 598 }; 599 600 /* not connected */ 601 ldo20_reg: LDO20 { 602 regulator-name 603 }; 604 605 /* MMC2 */ 606 ldo21_reg: LDO21 { 607 regulator-name 608 regulator-min- 609 regulator-max- 610 maxim,ena-gpio 611 }; 612 613 /* not connected */ 614 ldo22_reg: LDO22 { 615 regulator-name 616 }; 617 618 /* ADC */ 619 ldo23_reg: LDO23 { 620 regulator-name 621 regulator-min- 622 regulator-max- 623 regulator-alwa 624 regulator-boot 625 626 regulator-stat 627 regula 628 }; 629 }; 630 631 /* Camera S5K6A3 */ 632 ldo24_reg: LDO24 { 633 regulator-name 634 regulator-min- 635 regulator-max- 636 637 regulator-stat 638 regula 639 }; 640 }; 641 642 ldo25_reg: LDO25 { 643 regulator-name 644 regulator-min- 645 regulator-max- 646 647 regulator-stat 648 regula 649 }; 650 }; 651 652 /* Camera ISX012 */ 653 ldo26_reg: LDO26 { 654 regulator-name 655 regulator-min- 656 regulator-max- 657 658 regulator-stat 659 regula 660 }; 661 }; 662 663 buck1_reg: BUCK1 { 664 regulator-name 665 regulator-min- 666 regulator-max- 667 regulator-alwa 668 regulator-boot 669 }; 670 671 buck2_reg: BUCK2 { 672 regulator-name 673 regulator-min- 674 regulator-max- 675 regulator-alwa 676 regulator-boot 677 }; 678 679 buck3_reg: BUCK3 { 680 regulator-name 681 regulator-min- 682 regulator-max- 683 regulator-alwa 684 regulator-boot 685 }; 686 687 buck4_reg: BUCK4 { 688 regulator-name 689 regulator-min- 690 regulator-max- 691 regulator-boot 692 }; 693 694 buck5_reg: BUCK5 { 695 regulator-name 696 regulator-alwa 697 }; 698 699 buck6_reg: BUCK6 { 700 regulator-name 701 regulator-alwa 702 }; 703 704 buck7_reg: BUCK7 { 705 regulator-name 706 regulator-alwa 707 }; 708 709 /* not connected */ 710 buck8_reg: BUCK8 { 711 regulator-name 712 }; 713 714 buck9_reg: BUCK9 { 715 regulator-name 716 regulator-min- 717 regulator-max- 718 719 regulator-stat 720 regula 721 }; 722 }; 723 }; 724 }; 725 }; 726 727 &mshc_0 { 728 broken-cd; 729 non-removable; 730 card-detect-delay = <200>; 731 clock-frequency = <400000000>; 732 samsung,dw-mshc-ciu-div = <0>; 733 samsung,dw-mshc-sdr-timing = <2 3>; 734 samsung,dw-mshc-ddr-timing = <1 2>; 735 mmc-ddr-1_8v; 736 pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bu 737 pinctrl-names = "default"; 738 bus-width = <4>; 739 cap-mmc-highspeed; 740 cap-sd-highspeed; 741 status = "okay"; 742 }; 743 744 &pinctrl_0 { 745 pinctrl-names = "default"; 746 pinctrl-0 = <&sleep0>; 747 748 tsp_reg_gpio_2: tsp-reg-gpio-2-pins { 749 samsung,pins = "gpb-5"; 750 samsung,pin-function = <EXYNOS 751 samsung,pin-pud = <EXYNOS_PIN_ 752 }; 753 754 tsp_reg_gpio_3: tsp-reg-gpio-3-pins { 755 samsung,pins = "gpb-7"; 756 samsung,pin-function = <EXYNOS 757 samsung,pin-pud = <EXYNOS_PIN_ 758 }; 759 760 lcd_enable: lcd-enable-pins { 761 samsung,pins = "gpc0-1"; 762 samsung,pin-function = <EXYNOS 763 samsung,pin-pud = <EXYNOS_PIN_ 764 }; 765 766 sleep0: sleep-state { 767 PIN_SLP(gpa0-0, INPUT, NONE); 768 PIN_SLP(gpa0-1, OUT0, NONE); 769 PIN_SLP(gpa0-2, INPUT, NONE); 770 PIN_SLP(gpa0-3, INPUT, UP); 771 PIN_SLP(gpa0-4, INPUT, NONE); 772 PIN_SLP(gpa0-5, INPUT, DOWN); 773 PIN_SLP(gpa0-6, INPUT, DOWN); 774 PIN_SLP(gpa0-7, INPUT, UP); 775 776 PIN_SLP(gpa1-0, INPUT, DOWN); 777 PIN_SLP(gpa1-1, INPUT, DOWN); 778 PIN_SLP(gpa1-2, INPUT, DOWN); 779 PIN_SLP(gpa1-3, INPUT, DOWN); 780 PIN_SLP(gpa1-4, INPUT, DOWN); 781 PIN_SLP(gpa1-5, INPUT, DOWN); 782 783 PIN_SLP(gpb-0, INPUT, NONE); 784 PIN_SLP(gpb-1, INPUT, NONE); 785 PIN_SLP(gpb-2, INPUT, NONE); 786 PIN_SLP(gpb-3, INPUT, NONE); 787 PIN_SLP(gpb-4, INPUT, DOWN); 788 PIN_SLP(gpb-5, INPUT, DOWN); 789 PIN_SLP(gpb-6, INPUT, DOWN); 790 PIN_SLP(gpb-7, INPUT, DOWN); 791 792 PIN_SLP(gpc0-0, INPUT, DOWN); 793 PIN_SLP(gpc0-1, INPUT, DOWN); 794 PIN_SLP(gpc0-2, INPUT, DOWN); 795 PIN_SLP(gpc0-3, INPUT, DOWN); 796 PIN_SLP(gpc0-4, INPUT, DOWN); 797 798 PIN_SLP(gpc1-0, INPUT, UP); 799 PIN_SLP(gpc1-1, PREV, NONE); 800 PIN_SLP(gpc1-2, INPUT, UP); 801 PIN_SLP(gpc1-3, INPUT, UP); 802 PIN_SLP(gpc1-4, INPUT, UP); 803 804 PIN_SLP(gpd0-0, INPUT, DOWN); 805 PIN_SLP(gpd0-1, OUT0, NONE); 806 PIN_SLP(gpd0-2, INPUT, NONE); 807 PIN_SLP(gpd0-3, INPUT, NONE); 808 809 PIN_SLP(gpd1-0, INPUT, DOWN); 810 PIN_SLP(gpd1-1, INPUT, DOWN); 811 PIN_SLP(gpd1-2, INPUT, NONE); 812 PIN_SLP(gpd1-3, INPUT, NONE); 813 814 PIN_SLP(gpf0-0, OUT0, NONE); 815 PIN_SLP(gpf0-1, OUT0, NONE); 816 PIN_SLP(gpf0-2, OUT0, NONE); 817 PIN_SLP(gpf0-3, OUT0, NONE); 818 PIN_SLP(gpf0-4, OUT0, NONE); 819 PIN_SLP(gpf0-5, OUT0, NONE); 820 PIN_SLP(gpf0-6, OUT0, NONE); 821 PIN_SLP(gpf0-7, OUT0, NONE); 822 823 PIN_SLP(gpf1-0, OUT0, NONE); 824 PIN_SLP(gpf1-1, OUT0, NONE); 825 PIN_SLP(gpf1-2, OUT0, NONE); 826 PIN_SLP(gpf1-3, OUT0, NONE); 827 PIN_SLP(gpf1-4, OUT0, NONE); 828 PIN_SLP(gpf1-5, OUT0, NONE); 829 PIN_SLP(gpf1-6, OUT0, NONE); 830 PIN_SLP(gpf1-7, OUT0, NONE); 831 832 PIN_SLP(gpf2-0, OUT0, NONE); 833 PIN_SLP(gpf2-1, OUT0, NONE); 834 PIN_SLP(gpf2-2, OUT0, NONE); 835 PIN_SLP(gpf2-3, OUT0, NONE); 836 PIN_SLP(gpf2-4, OUT0, NONE); 837 PIN_SLP(gpf2-5, OUT0, NONE); 838 PIN_SLP(gpf2-6, OUT0, NONE); 839 PIN_SLP(gpf2-7, OUT0, NONE); 840 841 PIN_SLP(gpf3-0, OUT0, NONE); 842 PIN_SLP(gpf3-1, OUT0, NONE); 843 PIN_SLP(gpf3-2, OUT0, NONE); 844 PIN_SLP(gpf3-3, OUT0, NONE); 845 PIN_SLP(gpf3-4, OUT0, NONE); 846 PIN_SLP(gpf3-5, OUT0, NONE); 847 848 PIN_SLP(gpj0-0, INPUT, DOWN); 849 PIN_SLP(gpj0-1, INPUT, DOWN); 850 PIN_SLP(gpj0-2, INPUT, DOWN); 851 PIN_SLP(gpj0-3, PREV, NONE); 852 PIN_SLP(gpj0-4, PREV, NONE); 853 PIN_SLP(gpj0-5, OUT0, NONE); 854 PIN_SLP(gpj0-6, OUT0, NONE); 855 PIN_SLP(gpj0-7, OUT0, NONE); 856 857 PIN_SLP(gpj1-0, OUT0, NONE); 858 PIN_SLP(gpj1-1, INPUT, DOWN); 859 PIN_SLP(gpj1-2, PREV, NONE); 860 PIN_SLP(gpj1-3, OUT0, NONE); 861 }; 862 }; 863 864 &pinctrl_1 { 865 pinctrl-names = "default"; 866 pinctrl-0 = <&sleep1>; 867 868 sd3_wifi: sd3-wifi-pins { 869 samsung,pins = "gpk3-3", "gpk3 870 samsung,pin-function = <EXYNOS 871 samsung,pin-pud = <EXYNOS_PIN_ 872 }; 873 874 bt_shutdown: bt-shutdown-pins { 875 samsung,pins = "gpl0-6"; 876 samsung,pin-function = <EXYNOS 877 samsung,pin-pud = <EXYNOS_PIN_ 878 }; 879 880 gyro_data_enable: gyro-data-enable-pin 881 samsung,pins = "gpl2-0"; 882 samsung,pin-function = <EXYNOS 883 samsung,pin-pud = <EXYNOS_PIN_ 884 }; 885 886 uart_sel: uart-sel-pins { 887 samsung,pins = "gpl2-7"; 888 samsung,pin-function = <EXYNOS 889 samsung,pin-pud = <EXYNOS_PIN_ 890 samsung,pin-val = <1>; 891 /* 0 = CP, 1 = AP (serial outp 892 }; 893 894 led_bl_reset: led-bl-reset-pins { 895 samsung,pins = "gpm0-1"; 896 samsung,pin-function = <EXYNOS 897 samsung,pin-pud = <EXYNOS_PIN_ 898 }; 899 900 tsp_rst: tsp-rst-pins { 901 samsung,pins = "gpm0-4"; 902 samsung,pin-function = <EXYNOS 903 samsung,pin-pud = <EXYNOS_PIN_ 904 }; 905 906 lvds_nshdn: lvds-nshdn-pins { 907 samsung,pins = "gpm0-5"; 908 samsung,pin-function = <EXYNOS 909 samsung,pin-pud = <EXYNOS_PIN_ 910 }; 911 912 tsp_irq: tsp-irq-pins { 913 samsung,pins = "gpm2-3"; 914 samsung,pin-function = <EXYNOS 915 samsung,pin-pud = <EXYNOS_PIN_ 916 }; 917 918 wifi_reset: wifi-reset-pins { 919 samsung,pins = "gpm3-5"; 920 samsung,pin-function = <EXYNOS 921 samsung,pin-pud = <EXYNOS_PIN_ 922 }; 923 924 tsp_reg_gpio_1: tsp-reg-gpio-1-pins { 925 samsung,pins = "gpm4-5"; 926 samsung,pin-function = <EXYNOS 927 samsung,pin-pud = <EXYNOS_PIN_ 928 }; 929 930 ak8975_irq: ak8975-irq-pins { 931 samsung,pins = "gpm4-7"; 932 samsung,pin-function = <EXYNOS 933 samsung,pin-pud = <EXYNOS_PIN_ 934 }; 935 936 accelerometer_irq: accelerometer-irq-p 937 samsung,pins = "gpx0-0"; 938 samsung,pin-function = <EXYNOS 939 samsung,pin-pud = <EXYNOS_PIN_ 940 }; 941 942 stmpe_adc_irq: stmpe-adc-irq-pins { 943 samsung,pins = "gpx0-1"; 944 samsung,pin-function = <EXYNOS 945 samsung,pin-pud = <EXYNOS_PIN_ 946 }; 947 948 gyro_irq: gyro-irq-pins { 949 samsung,pins = "gpx0-6"; 950 samsung,pin-function = <EXYNOS 951 samsung,pin-pud = <EXYNOS_PIN_ 952 }; 953 954 max77686_irq: max77686-irq-pins { 955 samsung,pins = "gpx0-7"; 956 samsung,pin-pud = <EXYNOS_PIN_ 957 }; 958 959 gpio_keys: gpio-keys-pins { 960 samsung,pins = "gpx2-2", "gpx2 961 samsung,pin-pud = <EXYNOS_PIN_ 962 }; 963 964 fuel_alert_irq: fuel-alert-irq-pins { 965 samsung,pins = "gpx2-3"; 966 samsung,pin-function = <EXYNOS 967 samsung,pin-pud = <EXYNOS_PIN_ 968 }; 969 970 wifi_host_wake: wifi-host-wake-pins { 971 samsung,pins = "gpx2-5"; 972 samsung,pin-function = <EXYNOS 973 samsung,pin-pud = <EXYNOS_PIN_ 974 }; 975 976 bt_host_wakeup: bt-host-wakeup-pins { 977 samsung,pins = "gpx2-6"; 978 samsung,pin-function = <EXYNOS 979 samsung,pin-pud = <EXYNOS_PIN_ 980 }; 981 982 bt_device_wakeup: bt-device-wakeup-pin 983 samsung,pins = "gpx3-1"; 984 samsung,pin-function = <EXYNOS 985 samsung,pin-pud = <EXYNOS_PIN_ 986 }; 987 988 sdhci2_cd: sdhci2-cd-pins { 989 samsung,pins = "gpx3-4"; 990 samsung,pin-pud = <EXYNOS_PIN_ 991 }; 992 993 sleep1: sleep-state { 994 PIN_SLP(gpk0-0, PREV, NONE); 995 PIN_SLP(gpk0-1, PREV, NONE); 996 PIN_SLP(gpk0-2, PREV, NONE); 997 PIN_SLP(gpk0-3, PREV, NONE); 998 PIN_SLP(gpk0-4, PREV, NONE); 999 PIN_SLP(gpk0-5, PREV, NONE); 1000 PIN_SLP(gpk0-6, PREV, NONE); 1001 1002 PIN_SLP(gpk1-0, INPUT, DOWN); 1003 PIN_SLP(gpk1-1, INPUT, DOWN); 1004 PIN_SLP(gpk1-2, INPUT, DOWN); 1005 PIN_SLP(gpk1-3, PREV, NONE); 1006 PIN_SLP(gpk1-4, PREV, NONE); 1007 PIN_SLP(gpk1-5, PREV, NONE); 1008 PIN_SLP(gpk1-6, PREV, NONE); 1009 1010 PIN_SLP(gpk2-0, INPUT, DOWN); 1011 PIN_SLP(gpk2-1, INPUT, DOWN); 1012 PIN_SLP(gpk2-2, INPUT, DOWN); 1013 PIN_SLP(gpk2-3, INPUT, DOWN); 1014 PIN_SLP(gpk2-4, INPUT, DOWN); 1015 PIN_SLP(gpk2-5, INPUT, DOWN); 1016 PIN_SLP(gpk2-6, INPUT, DOWN); 1017 1018 PIN_SLP(gpk3-0, OUT0, NONE); 1019 PIN_SLP(gpk3-1, INPUT, NONE); 1020 PIN_SLP(gpk3-2, INPUT, DOWN); 1021 PIN_SLP(gpk3-3, INPUT, NONE); 1022 PIN_SLP(gpk3-4, INPUT, NONE); 1023 PIN_SLP(gpk3-5, INPUT, NONE); 1024 PIN_SLP(gpk3-6, INPUT, NONE); 1025 1026 PIN_SLP(gpl0-0, OUT0, NONE); 1027 PIN_SLP(gpl0-1, INPUT, NONE); 1028 PIN_SLP(gpl0-2, INPUT, NONE); 1029 PIN_SLP(gpl0-3, INPUT, DOWN); 1030 PIN_SLP(gpl0-4, PREV, NONE); 1031 PIN_SLP(gpl0-6, PREV, NONE); 1032 1033 PIN_SLP(gpl1-0, OUT0, NONE); 1034 PIN_SLP(gpl1-1, OUT0, NONE); 1035 1036 PIN_SLP(gpl2-0, INPUT, DOWN); 1037 PIN_SLP(gpl2-1, INPUT, DOWN); 1038 PIN_SLP(gpl2-2, INPUT, DOWN); 1039 PIN_SLP(gpl2-3, INPUT, DOWN); 1040 PIN_SLP(gpl2-4, OUT0, NONE); 1041 PIN_SLP(gpl2-5, INPUT, DOWN); 1042 PIN_SLP(gpl2-6, PREV, NONE); 1043 PIN_SLP(gpl2-7, PREV, NONE); 1044 1045 PIN_SLP(gpm0-0, PREV, NONE); 1046 PIN_SLP(gpm0-1, OUT0, NONE); 1047 PIN_SLP(gpm0-2, INPUT, DOWN); 1048 PIN_SLP(gpm0-3, INPUT, NONE); 1049 PIN_SLP(gpm0-4, OUT0, NONE); 1050 PIN_SLP(gpm0-5, OUT0, NONE); 1051 PIN_SLP(gpm0-6, INPUT, DOWN); 1052 PIN_SLP(gpm0-7, OUT0, NONE); 1053 1054 PIN_SLP(gpm1-0, INPUT, NONE); 1055 PIN_SLP(gpm1-1, INPUT, NONE); 1056 PIN_SLP(gpm1-2, INPUT, NONE); 1057 PIN_SLP(gpm1-3, INPUT, NONE); 1058 PIN_SLP(gpm1-4, INPUT, NONE); 1059 PIN_SLP(gpm1-5, INPUT, NONE); 1060 PIN_SLP(gpm1-6, INPUT, DOWN); 1061 1062 PIN_SLP(gpm2-0, INPUT, NONE); 1063 PIN_SLP(gpm2-1, INPUT, NONE); 1064 PIN_SLP(gpm2-2, OUT0, NONE); 1065 PIN_SLP(gpm2-3, OUT0, DOWN); 1066 PIN_SLP(gpm2-4, INPUT, DOWN); 1067 1068 PIN_SLP(gpm3-0, PREV, NONE); 1069 PIN_SLP(gpm3-1, PREV, NONE); 1070 PIN_SLP(gpm3-2, PREV, NONE); 1071 PIN_SLP(gpm3-3, OUT1, NONE); 1072 PIN_SLP(gpm3-4, OUT0, DOWN); 1073 PIN_SLP(gpm3-5, PREV, NONE); 1074 PIN_SLP(gpm3-6, PREV, NONE); 1075 PIN_SLP(gpm3-7, OUT0, NONE); 1076 1077 PIN_SLP(gpm4-0, INPUT, NONE); 1078 PIN_SLP(gpm4-1, INPUT, NONE); 1079 PIN_SLP(gpm4-2, INPUT, DOWN); 1080 PIN_SLP(gpm4-3, INPUT, DOWN); 1081 PIN_SLP(gpm4-4, PREV, NONE); 1082 PIN_SLP(gpm4-5, OUT0, NONE); 1083 PIN_SLP(gpm4-6, OUT0, NONE); 1084 PIN_SLP(gpm4-7, INPUT, DOWN); 1085 1086 PIN_SLP(gpy0-0, INPUT, DOWN); 1087 PIN_SLP(gpy0-1, INPUT, DOWN); 1088 PIN_SLP(gpy0-2, INPUT, NONE); 1089 PIN_SLP(gpy0-3, INPUT, NONE); 1090 PIN_SLP(gpy0-4, INPUT, NONE); 1091 PIN_SLP(gpy0-5, INPUT, NONE); 1092 1093 PIN_SLP(gpy1-0, INPUT, DOWN); 1094 PIN_SLP(gpy1-1, INPUT, DOWN); 1095 PIN_SLP(gpy1-2, INPUT, DOWN); 1096 PIN_SLP(gpy1-3, INPUT, DOWN); 1097 1098 PIN_SLP(gpy2-0, PREV, NONE); 1099 PIN_SLP(gpy2-1, INPUT, DOWN); 1100 PIN_SLP(gpy2-2, INPUT, NONE); 1101 PIN_SLP(gpy2-3, INPUT, NONE); 1102 PIN_SLP(gpy2-4, INPUT, NONE); 1103 PIN_SLP(gpy2-5, INPUT, NONE); 1104 1105 PIN_SLP(gpy3-0, INPUT, DOWN); 1106 PIN_SLP(gpy3-1, INPUT, DOWN); 1107 PIN_SLP(gpy3-2, INPUT, DOWN); 1108 PIN_SLP(gpy3-3, INPUT, DOWN); 1109 PIN_SLP(gpy3-4, INPUT, DOWN); 1110 PIN_SLP(gpy3-5, INPUT, DOWN); 1111 PIN_SLP(gpy3-6, INPUT, DOWN); 1112 PIN_SLP(gpy3-7, INPUT, DOWN); 1113 1114 PIN_SLP(gpy4-0, INPUT, DOWN); 1115 PIN_SLP(gpy4-1, INPUT, DOWN); 1116 PIN_SLP(gpy4-2, INPUT, DOWN); 1117 PIN_SLP(gpy4-3, INPUT, DOWN); 1118 PIN_SLP(gpy4-4, INPUT, DOWN); 1119 PIN_SLP(gpy4-5, INPUT, DOWN); 1120 PIN_SLP(gpy4-6, INPUT, DOWN); 1121 PIN_SLP(gpy4-7, INPUT, DOWN); 1122 1123 PIN_SLP(gpy5-0, INPUT, DOWN); 1124 PIN_SLP(gpy5-1, INPUT, DOWN); 1125 PIN_SLP(gpy5-2, INPUT, DOWN); 1126 PIN_SLP(gpy5-3, INPUT, DOWN); 1127 PIN_SLP(gpy5-4, INPUT, DOWN); 1128 PIN_SLP(gpy5-5, INPUT, DOWN); 1129 PIN_SLP(gpy5-6, INPUT, DOWN); 1130 PIN_SLP(gpy5-7, INPUT, DOWN); 1131 1132 PIN_SLP(gpy6-0, INPUT, DOWN); 1133 PIN_SLP(gpy6-1, INPUT, DOWN); 1134 PIN_SLP(gpy6-2, INPUT, DOWN); 1135 PIN_SLP(gpy6-3, INPUT, DOWN); 1136 PIN_SLP(gpy6-4, INPUT, DOWN); 1137 PIN_SLP(gpy6-5, INPUT, DOWN); 1138 PIN_SLP(gpy6-6, INPUT, DOWN); 1139 PIN_SLP(gpy6-7, INPUT, DOWN); 1140 }; 1141 }; 1142 1143 &pinctrl_2 { 1144 pinctrl-names = "default"; 1145 pinctrl-0 = <&sleep2>; 1146 1147 sleep2: sleep-state { 1148 PIN_SLP(gpz-0, INPUT, DOWN); 1149 PIN_SLP(gpz-1, INPUT, DOWN); 1150 PIN_SLP(gpz-2, INPUT, DOWN); 1151 PIN_SLP(gpz-3, INPUT, DOWN); 1152 PIN_SLP(gpz-4, INPUT, DOWN); 1153 PIN_SLP(gpz-5, INPUT, DOWN); 1154 PIN_SLP(gpz-6, INPUT, DOWN); 1155 }; 1156 }; 1157 1158 &pinctrl_3 { 1159 pinctrl-names = "default"; 1160 pinctrl-0 = <&sleep3>; 1161 1162 sleep3: sleep-state { 1163 PIN_SLP(gpv0-0, INPUT, DOWN); 1164 PIN_SLP(gpv0-1, INPUT, DOWN); 1165 PIN_SLP(gpv0-2, INPUT, DOWN); 1166 PIN_SLP(gpv0-3, INPUT, DOWN); 1167 PIN_SLP(gpv0-4, INPUT, DOWN); 1168 PIN_SLP(gpv0-5, INPUT, DOWN); 1169 PIN_SLP(gpv0-6, INPUT, DOWN); 1170 PIN_SLP(gpv0-7, INPUT, DOWN); 1171 1172 PIN_SLP(gpv1-0, INPUT, DOWN); 1173 PIN_SLP(gpv1-1, INPUT, DOWN); 1174 PIN_SLP(gpv1-2, INPUT, DOWN); 1175 PIN_SLP(gpv1-3, INPUT, DOWN); 1176 PIN_SLP(gpv1-4, INPUT, DOWN); 1177 PIN_SLP(gpv1-5, INPUT, DOWN); 1178 PIN_SLP(gpv1-6, INPUT, DOWN); 1179 PIN_SLP(gpv1-7, INPUT, DOWN); 1180 1181 PIN_SLP(gpv2-0, INPUT, DOWN); 1182 PIN_SLP(gpv2-1, INPUT, DOWN); 1183 PIN_SLP(gpv2-2, INPUT, DOWN); 1184 PIN_SLP(gpv2-3, INPUT, DOWN); 1185 PIN_SLP(gpv2-4, INPUT, DOWN); 1186 PIN_SLP(gpv2-5, INPUT, DOWN); 1187 PIN_SLP(gpv2-6, INPUT, DOWN); 1188 PIN_SLP(gpv2-7, INPUT, DOWN); 1189 1190 PIN_SLP(gpv3-0, INPUT, DOWN); 1191 PIN_SLP(gpv3-1, INPUT, DOWN); 1192 PIN_SLP(gpv3-2, INPUT, DOWN); 1193 PIN_SLP(gpv3-3, INPUT, DOWN); 1194 PIN_SLP(gpv3-4, INPUT, DOWN); 1195 PIN_SLP(gpv3-5, INPUT, DOWN); 1196 PIN_SLP(gpv3-6, INPUT, DOWN); 1197 PIN_SLP(gpv3-7, INPUT, DOWN); 1198 1199 PIN_SLP(gpv4-0, INPUT, DOWN); 1200 PIN_SLP(gpv4-1, INPUT, DOWN); 1201 }; 1202 }; 1203 1204 &pmu_system_controller { 1205 assigned-clocks = <&pmu_system_contro 1206 assigned-clock-parents = <&clock CLK_ 1207 }; 1208 1209 &pwm { 1210 pinctrl-0 = <&pwm1_out>; 1211 pinctrl-names = "default"; 1212 samsung,pwm-outputs = <1>; 1213 status = "okay"; 1214 }; 1215 1216 &rtc { 1217 clocks = <&clock CLK_RTC>, <&max77686 1218 clock-names = "rtc", "rtc_src"; 1219 status = "okay"; 1220 }; 1221 1222 &sdhci_2 { 1223 bus-width = <4>; 1224 cd-gpios = <&gpx3 4 GPIO_ACTIVE_LOW>; 1225 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_b 1226 pinctrl-names = "default"; 1227 vmmc-supply = <&ldo21_reg>; 1228 status = "okay"; 1229 }; 1230 1231 &sdhci_3 { 1232 #address-cells = <1>; 1233 #size-cells = <0>; 1234 non-removable; 1235 bus-width = <4>; 1236 mmc-pwrseq = <&wlan_pwrseq>; 1237 1238 pinctrl-names = "default"; 1239 pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_w 1240 status = "okay"; 1241 1242 wifi@1 { 1243 compatible = "brcm,bcm4329-fm 1244 reg = <0x1>; 1245 pinctrl-names = "default"; 1246 pinctrl-0 = <&wifi_host_wake> 1247 interrupt-parent = <&gpx2>; 1248 interrupts = <5 IRQ_TYPE_LEVE 1249 interrupt-names = "host-wake" 1250 }; 1251 }; 1252 1253 &serial_0 { 1254 pinctrl-0 = <&uart0_data &uart0_fctl> 1255 pinctrl-names = "default"; 1256 status = "okay"; 1257 1258 bluetooth { 1259 compatible = "brcm,bcm4330-bt 1260 pinctrl-0 = <&bt_shutdown &bt 1261 pinctrl-names = "default"; 1262 1263 max-speed = <2000000>; 1264 shutdown-gpios = <&gpl0 6 GPI 1265 device-wakeup-gpios = <&gpx3 1266 host-wakeup-gpios = <&gpx2 6 1267 clocks = <&max77686 MAX77686_ 1268 clock-names = "lpo"; 1269 }; 1270 }; 1271 1272 &serial_2 { 1273 pinctrl-0 = <&uart_sel>; 1274 pinctrl-names = "default"; 1275 status = "okay"; 1276 }; 1277 1278 &tmu { 1279 status = "okay"; 1280 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.