| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | | - * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 6 | | - * published by the Free Software Foundation. |
|---|
| 3 | + * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/ |
|---|
| 7 | 4 | */ |
|---|
| 8 | 5 | |
|---|
| 9 | 6 | /* AM437x GP EVM */ |
|---|
| .. | .. |
|---|
| 67 | 64 | debounce-delay-ms = <5>; |
|---|
| 68 | 65 | col-scan-delay-us = <2>; |
|---|
| 69 | 66 | |
|---|
| 70 | | - row-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH /* Bank3, pin21 */ |
|---|
| 67 | + pinctrl-names = "default", "sleep"; |
|---|
| 68 | + pinctrl-0 = <&matrix_keypad_default>; |
|---|
| 69 | + pinctrl-1 = <&matrix_keypad_sleep>; |
|---|
| 70 | + |
|---|
| 71 | + wakeup-source; |
|---|
| 72 | + |
|---|
| 73 | + row-gpios = <&gpio0 3 GPIO_ACTIVE_HIGH /* Bank0, pin3 */ |
|---|
| 71 | 74 | &gpio4 3 GPIO_ACTIVE_HIGH /* Bank4, pin3 */ |
|---|
| 72 | 75 | &gpio4 2 GPIO_ACTIVE_HIGH>; /* Bank4, pin2 */ |
|---|
| 73 | 76 | |
|---|
| .. | .. |
|---|
| 87 | 90 | label = "lcd"; |
|---|
| 88 | 91 | |
|---|
| 89 | 92 | backlight = <&lcd_bl>; |
|---|
| 90 | | - |
|---|
| 91 | | - panel-timing { |
|---|
| 92 | | - clock-frequency = <33000000>; |
|---|
| 93 | | - hactive = <800>; |
|---|
| 94 | | - vactive = <480>; |
|---|
| 95 | | - hfront-porch = <210>; |
|---|
| 96 | | - hback-porch = <16>; |
|---|
| 97 | | - hsync-len = <30>; |
|---|
| 98 | | - vback-porch = <10>; |
|---|
| 99 | | - vfront-porch = <22>; |
|---|
| 100 | | - vsync-len = <13>; |
|---|
| 101 | | - hsync-active = <0>; |
|---|
| 102 | | - vsync-active = <0>; |
|---|
| 103 | | - de-active = <1>; |
|---|
| 104 | | - pixelclk-active = <1>; |
|---|
| 105 | | - }; |
|---|
| 106 | 93 | |
|---|
| 107 | 94 | port { |
|---|
| 108 | 95 | lcd_in: endpoint { |
|---|
| .. | .. |
|---|
| 155 | 142 | beeper: beeper { |
|---|
| 156 | 143 | compatible = "gpio-beeper"; |
|---|
| 157 | 144 | pinctrl-names = "default"; |
|---|
| 158 | | - pinctrl-0 = <&beeper_pins>; |
|---|
| 145 | + pinctrl-0 = <&beeper_pins_default>; |
|---|
| 146 | + pinctrl-1 = <&beeper_pins_sleep>; |
|---|
| 159 | 147 | gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>; |
|---|
| 160 | 148 | }; |
|---|
| 161 | 149 | }; |
|---|
| 162 | 150 | |
|---|
| 163 | 151 | &am43xx_pinmux { |
|---|
| 164 | 152 | pinctrl-names = "default", "sleep"; |
|---|
| 165 | | - pinctrl-0 = <&wlan_pins_default>; |
|---|
| 153 | + pinctrl-0 = <&wlan_pins_default &ddr3_vtt_toggle_default &unused_pins &debugss_pins>; |
|---|
| 166 | 154 | pinctrl-1 = <&wlan_pins_sleep>; |
|---|
| 155 | + |
|---|
| 156 | + ddr3_vtt_toggle_default: ddr_vtt_toggle_default { |
|---|
| 157 | + pinctrl-single,pins = < |
|---|
| 158 | + 0x25C (DS0_PULL_UP_DOWN_EN | PIN_OUTPUT_PULLUP | DS0_FORCE_OFF_MODE | MUX_MODE7) /* spi0_cs0.gpio5_7 */ |
|---|
| 159 | + >; |
|---|
| 160 | + }; |
|---|
| 167 | 161 | |
|---|
| 168 | 162 | i2c0_pins: i2c0_pins { |
|---|
| 169 | 163 | pinctrl-single,pins = < |
|---|
| .. | .. |
|---|
| 511 | 505 | >; |
|---|
| 512 | 506 | }; |
|---|
| 513 | 507 | |
|---|
| 514 | | - uart0_pins_default: uart0_pins_default { |
|---|
| 515 | | - pinctrl-single,pins = < |
|---|
| 516 | | - AM4372_IOPAD(0x968, PIN_INPUT | MUX_MODE0) /* uart0_ctsn.uart0_ctsn */ |
|---|
| 517 | | - AM4372_IOPAD(0x96C, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_rtsn.uart0_rtsn */ |
|---|
| 518 | | - AM4372_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */ |
|---|
| 519 | | - AM4372_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */ |
|---|
| 520 | | - >; |
|---|
| 521 | | - }; |
|---|
| 522 | | - |
|---|
| 523 | | - beeper_pins: beeper_pins { |
|---|
| 508 | + beeper_pins_default: beeper_pins_default { |
|---|
| 524 | 509 | pinctrl-single,pins = < |
|---|
| 525 | 510 | AM4372_IOPAD(0x9e0, PIN_OUTPUT_PULLUP | MUX_MODE7) /* cam1_field.gpio4_12 */ |
|---|
| 526 | 511 | >; |
|---|
| 527 | 512 | }; |
|---|
| 528 | 513 | |
|---|
| 514 | + beeper_pins_sleep: beeper_pins_sleep { |
|---|
| 515 | + pinctrl-single,pins = < |
|---|
| 516 | + AM4372_IOPAD(0x9e0, PIN_INPUT_PULLDOWN | MUX_MODE7) /* cam1_field.gpio4_12 */ |
|---|
| 517 | + >; |
|---|
| 518 | + }; |
|---|
| 519 | + |
|---|
| 520 | + unused_pins: unused_pins { |
|---|
| 521 | + pinctrl-single,pins = < |
|---|
| 522 | + AM4372_IOPAD(0x854, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 523 | + AM4372_IOPAD(0x858, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 524 | + AM4372_IOPAD(0x860, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 525 | + AM4372_IOPAD(0x864, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 526 | + AM4372_IOPAD(0x868, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 527 | + AM4372_IOPAD(0x86c, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 528 | + AM4372_IOPAD(0x950, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 529 | + AM4372_IOPAD(0x990, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 530 | + AM4372_IOPAD(0x994, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 531 | + AM4372_IOPAD(0x998, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 532 | + AM4372_IOPAD(0x99c, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 533 | + AM4372_IOPAD(0x9a0, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 534 | + AM4372_IOPAD(0xa3c, PIN_INPUT | PULL_DISABLE | MUX_MODE7) |
|---|
| 535 | + AM4372_IOPAD(0xa40, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 536 | + AM4372_IOPAD(0xa44, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 537 | + AM4372_IOPAD(0xa48, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 538 | + AM4372_IOPAD(0xa4c, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 539 | + AM4372_IOPAD(0xa50, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 540 | + AM4372_IOPAD(0xa54, PIN_INPUT | PULL_DISABLE | MUX_MODE7) |
|---|
| 541 | + AM4372_IOPAD(0xa58, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 542 | + AM4372_IOPAD(0xa60, PIN_INPUT | PULL_DISABLE | MUX_MODE7) |
|---|
| 543 | + AM4372_IOPAD(0xa68, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 544 | + AM4372_IOPAD(0xa70, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 545 | + AM4372_IOPAD(0xa78, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 546 | + AM4372_IOPAD(0xa7c, PIN_INPUT | PULL_DISABLE) |
|---|
| 547 | + AM4372_IOPAD(0xac8, PIN_INPUT_PULLDOWN) |
|---|
| 548 | + AM4372_IOPAD(0xad4, PIN_INPUT_PULLDOWN) |
|---|
| 549 | + AM4372_IOPAD(0xad8, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 550 | + AM4372_IOPAD(0xadc, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 551 | + AM4372_IOPAD(0xae0, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 552 | + AM4372_IOPAD(0xae4, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 553 | + AM4372_IOPAD(0xae8, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 554 | + AM4372_IOPAD(0xaec, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 555 | + AM4372_IOPAD(0xaf0, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 556 | + AM4372_IOPAD(0xaf4, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 557 | + AM4372_IOPAD(0xaf8, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 558 | + AM4372_IOPAD(0xafc, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 559 | + AM4372_IOPAD(0xb00, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 560 | + AM4372_IOPAD(0xb04, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 561 | + AM4372_IOPAD(0xb08, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 562 | + AM4372_IOPAD(0xb0c, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 563 | + AM4372_IOPAD(0xb10, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 564 | + AM4372_IOPAD(0xb14, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 565 | + AM4372_IOPAD(0xb18, PIN_INPUT_PULLDOWN | MUX_MODE7) |
|---|
| 566 | + >; |
|---|
| 567 | + }; |
|---|
| 568 | + |
|---|
| 569 | + debugss_pins: pinmux_debugss_pins { |
|---|
| 570 | + pinctrl-single,pins = < |
|---|
| 571 | + AM4372_IOPAD(0xa90, PIN_INPUT_PULLDOWN) |
|---|
| 572 | + AM4372_IOPAD(0xa94, PIN_INPUT_PULLDOWN) |
|---|
| 573 | + AM4372_IOPAD(0xa98, PIN_INPUT_PULLDOWN) |
|---|
| 574 | + AM4372_IOPAD(0xa9c, PIN_INPUT_PULLDOWN) |
|---|
| 575 | + AM4372_IOPAD(0xaa0, PIN_INPUT_PULLDOWN) |
|---|
| 576 | + AM4372_IOPAD(0xaa4, PIN_INPUT_PULLDOWN) |
|---|
| 577 | + AM4372_IOPAD(0xaa8, PIN_INPUT_PULLDOWN) |
|---|
| 578 | + >; |
|---|
| 579 | + }; |
|---|
| 580 | + |
|---|
| 581 | + uart0_pins_default: uart0_pins_default { |
|---|
| 582 | + pinctrl-single,pins = < |
|---|
| 583 | + AM4372_IOPAD(0x968, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE0) /* uart0_ctsn.uart0_ctsn */ |
|---|
| 584 | + AM4372_IOPAD(0x96C, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE0) /* uart0_rtsn.uart0_rtsn */ |
|---|
| 585 | + AM4372_IOPAD(0x970, PIN_INPUT_PULLUP | SLEWCTRL_FAST | DS0_PULL_UP_DOWN_EN | MUX_MODE0) /* uart0_rxd.uart0_rxd */ |
|---|
| 586 | + AM4372_IOPAD(0x974, PIN_INPUT | PULL_DISABLE | SLEWCTRL_FAST | DS0_PULL_UP_DOWN_EN | MUX_MODE0) /* uart0_txd.uart0_txd */ |
|---|
| 587 | + >; |
|---|
| 588 | + }; |
|---|
| 589 | + |
|---|
| 590 | + uart0_pins_sleep: uart0_pins_sleep { |
|---|
| 591 | + pinctrl-single,pins = < |
|---|
| 592 | + AM4372_IOPAD(0x968, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* uart0_ctsn.uart0_ctsn */ |
|---|
| 593 | + AM4372_IOPAD(0x96C, DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* uart0_rtsn.uart0_rtsn */ |
|---|
| 594 | + AM4372_IOPAD(0x970, PIN_INPUT_PULLUP | SLEWCTRL_FAST | DS0_PULL_UP_DOWN_EN | MUX_MODE0) /* uart0_rxd.uart0_rxd */ |
|---|
| 595 | + AM4372_IOPAD(0x974, PIN_INPUT_PULLDOWN | SLEWCTRL_FAST | DS0_PULL_UP_DOWN_EN | MUX_MODE0) /* uart0_txd.uart0_txd */ |
|---|
| 596 | + >; |
|---|
| 597 | + }; |
|---|
| 598 | + |
|---|
| 599 | + matrix_keypad_default: matrix_keypad_default { |
|---|
| 600 | + pinctrl-single,pins = < |
|---|
| 601 | + AM4372_IOPAD(0x9a4, PIN_OUTPUT | MUX_MODE7) |
|---|
| 602 | + AM4372_IOPAD(0x9a8, PIN_OUTPUT | MUX_MODE7) |
|---|
| 603 | + AM4372_IOPAD(0x9ac, PIN_INPUT | PULL_DISABLE | MUX_MODE9) |
|---|
| 604 | + AM4372_IOPAD(0x954, PIN_INPUT_PULLDOWN | MUX_MODE0) |
|---|
| 605 | + >; |
|---|
| 606 | + }; |
|---|
| 607 | + |
|---|
| 608 | + matrix_keypad_sleep: matrix_keypad_sleep { |
|---|
| 609 | + pinctrl-single,pins = < |
|---|
| 610 | + AM4372_IOPAD(0x9a4, PULL_UP | MUX_MODE7) |
|---|
| 611 | + AM4372_IOPAD(0x9a8, PULL_UP | MUX_MODE7) |
|---|
| 612 | + AM4372_IOPAD(0x9ac, PIN_INPUT | PULL_DISABLE | MUX_MODE9) |
|---|
| 613 | + AM4372_IOPAD(0x954, PIN_INPUT_PULLDOWN | MUX_MODE0) |
|---|
| 614 | + >; |
|---|
| 615 | + }; |
|---|
| 529 | 616 | }; |
|---|
| 530 | 617 | |
|---|
| 531 | 618 | &uart0 { |
|---|
| 532 | 619 | status = "okay"; |
|---|
| 533 | | - pinctrl-names = "default"; |
|---|
| 620 | + pinctrl-names = "default", "sleep"; |
|---|
| 534 | 621 | pinctrl-0 = <&uart0_pins_default>; |
|---|
| 622 | + pinctrl-1 = <&uart0_pins_sleep>; |
|---|
| 535 | 623 | }; |
|---|
| 536 | 624 | |
|---|
| 537 | 625 | &i2c0 { |
|---|
| .. | .. |
|---|
| 725 | 813 | status = "okay"; |
|---|
| 726 | 814 | }; |
|---|
| 727 | 815 | |
|---|
| 816 | +&gpio5_target { |
|---|
| 817 | + ti,no-reset-on-init; |
|---|
| 818 | +}; |
|---|
| 819 | + |
|---|
| 728 | 820 | &gpio5 { |
|---|
| 729 | 821 | pinctrl-names = "default"; |
|---|
| 730 | 822 | pinctrl-0 = <&display_mux_pins>; |
|---|
| 731 | 823 | status = "okay"; |
|---|
| 732 | | - ti,no-reset-on-init; |
|---|
| 733 | 824 | |
|---|
| 734 | 825 | p8 { |
|---|
| 735 | 826 | /* |
|---|
| .. | .. |
|---|
| 765 | 856 | pinctrl-names = "default", "sleep"; |
|---|
| 766 | 857 | pinctrl-0 = <&emmc_pins_default>; |
|---|
| 767 | 858 | pinctrl-1 = <&emmc_pins_sleep>; |
|---|
| 768 | | - ti,non-removable; |
|---|
| 859 | + non-removable; |
|---|
| 769 | 860 | }; |
|---|
| 770 | 861 | |
|---|
| 771 | 862 | &mmc3 { |
|---|
| .. | .. |
|---|
| 782 | 873 | pinctrl-1 = <&mmc3_pins_sleep>; |
|---|
| 783 | 874 | cap-power-off-card; |
|---|
| 784 | 875 | keep-power-in-suspend; |
|---|
| 785 | | - ti,non-removable; |
|---|
| 876 | + non-removable; |
|---|
| 786 | 877 | |
|---|
| 787 | 878 | #address-cells = <1>; |
|---|
| 788 | 879 | #size-cells = <0>; |
|---|
| .. | .. |
|---|
| 818 | 909 | status = "okay"; |
|---|
| 819 | 910 | }; |
|---|
| 820 | 911 | |
|---|
| 821 | | -&mac { |
|---|
| 822 | | - slaves = <1>; |
|---|
| 912 | +&mac_sw { |
|---|
| 823 | 913 | pinctrl-names = "default", "sleep"; |
|---|
| 824 | 914 | pinctrl-0 = <&cpsw_default>; |
|---|
| 825 | 915 | pinctrl-1 = <&cpsw_sleep>; |
|---|
| 826 | 916 | status = "okay"; |
|---|
| 827 | 917 | }; |
|---|
| 828 | 918 | |
|---|
| 829 | | -&davinci_mdio { |
|---|
| 919 | +&davinci_mdio_sw { |
|---|
| 830 | 920 | pinctrl-names = "default", "sleep"; |
|---|
| 831 | 921 | pinctrl-0 = <&davinci_mdio_default>; |
|---|
| 832 | 922 | pinctrl-1 = <&davinci_mdio_sleep>; |
|---|
| 833 | | - status = "okay"; |
|---|
| 923 | + |
|---|
| 924 | + ethphy0: ethernet-phy@0 { |
|---|
| 925 | + reg = <0>; |
|---|
| 926 | + }; |
|---|
| 834 | 927 | }; |
|---|
| 835 | 928 | |
|---|
| 836 | | -&cpsw_emac0 { |
|---|
| 837 | | - phy_id = <&davinci_mdio>, <0>; |
|---|
| 838 | | - phy-mode = "rgmii"; |
|---|
| 929 | +&cpsw_port1 { |
|---|
| 930 | + phy-handle = <ðphy0>; |
|---|
| 931 | + phy-mode = "rgmii-rxid"; |
|---|
| 932 | + ti,dual-emac-pvid = <1>; |
|---|
| 933 | +}; |
|---|
| 934 | + |
|---|
| 935 | +&cpsw_port2 { |
|---|
| 936 | + status = "disabled"; |
|---|
| 839 | 937 | }; |
|---|
| 840 | 938 | |
|---|
| 841 | 939 | &elm { |
|---|
| .. | .. |
|---|
| 932 | 1030 | }; |
|---|
| 933 | 1031 | |
|---|
| 934 | 1032 | &dss { |
|---|
| 935 | | - status = "ok"; |
|---|
| 1033 | + status = "okay"; |
|---|
| 936 | 1034 | |
|---|
| 937 | 1035 | pinctrl-names = "default"; |
|---|
| 938 | 1036 | pinctrl-0 = <&dss_pins>; |
|---|