1d0a064beSNishanth Menon// SPDX-License-Identifier: GPL-2.0 2d0a064beSNishanth Menon/* 3d0a064beSNishanth Menon * Copyright (C) 2016-2018 Texas Instruments Incorporated - http://www.ti.com/ 4d0a064beSNishanth Menon */ 5d0a064beSNishanth Menon 6d0a064beSNishanth Menon/dts-v1/; 7d0a064beSNishanth Menon 8d0a064beSNishanth Menon#include "k3-am654.dtsi" 9c67f7388SKeerthy#include <dt-bindings/input/input.h> 10d0a064beSNishanth Menon 11d0a064beSNishanth Menon/ { 12d0a064beSNishanth Menon compatible = "ti,am654-evm", "ti,am654"; 13d0a064beSNishanth Menon model = "Texas Instruments AM654 Base Board"; 14d0a064beSNishanth Menon 15d0a064beSNishanth Menon chosen { 16d0a064beSNishanth Menon stdout-path = "serial2:115200n8"; 17d0a064beSNishanth Menon bootargs = "earlycon=ns16550a,mmio32,0x02800000"; 18d0a064beSNishanth Menon }; 19d0a064beSNishanth Menon 20d0a064beSNishanth Menon memory@80000000 { 21d0a064beSNishanth Menon device_type = "memory"; 22d0a064beSNishanth Menon /* 4G RAM */ 23d0a064beSNishanth Menon reg = <0x00000000 0x80000000 0x00000000 0x80000000>, 24d0a064beSNishanth Menon <0x00000008 0x80000000 0x00000000 0x80000000>; 25d0a064beSNishanth Menon }; 26d0a064beSNishanth Menon 27d0a064beSNishanth Menon reserved-memory { 28d0a064beSNishanth Menon #address-cells = <2>; 29d0a064beSNishanth Menon #size-cells = <2>; 30d0a064beSNishanth Menon ranges; 31d0a064beSNishanth Menon secure_ddr: secure_ddr@9e800000 { 32d0a064beSNishanth Menon reg = <0 0x9e800000 0 0x01800000>; /* for OP-TEE */ 33d0a064beSNishanth Menon alignment = <0x1000>; 34d0a064beSNishanth Menon no-map; 35d0a064beSNishanth Menon }; 36d0a064beSNishanth Menon }; 37c67f7388SKeerthy 38c67f7388SKeerthy gpio-keys { 39c67f7388SKeerthy compatible = "gpio-keys"; 40c67f7388SKeerthy autorepeat; 41c67f7388SKeerthy pinctrl-names = "default"; 42c67f7388SKeerthy pinctrl-0 = <&push_button_pins_default>; 43c67f7388SKeerthy 44c67f7388SKeerthy sw5 { 45c67f7388SKeerthy label = "GPIO Key USER1"; 46c67f7388SKeerthy linux,code = <BTN_0>; 47c67f7388SKeerthy gpios = <&wkup_gpio0 24 GPIO_ACTIVE_LOW>; 48c67f7388SKeerthy }; 49c67f7388SKeerthy 50c67f7388SKeerthy sw6 { 51c67f7388SKeerthy label = "GPIO Key USER2"; 52c67f7388SKeerthy linux,code = <BTN_1>; 53c67f7388SKeerthy gpios = <&wkup_gpio0 27 GPIO_ACTIVE_LOW>; 54c67f7388SKeerthy }; 55c67f7388SKeerthy }; 56d0a064beSNishanth Menon}; 574201af25SNishanth Menon 5819a1768fSVignesh R&wkup_pmx0 { 5919a1768fSVignesh R wkup_i2c0_pins_default: wkup-i2c0-pins-default { 6019a1768fSVignesh R pinctrl-single,pins = < 6119a1768fSVignesh R AM65X_WKUP_IOPAD(0x00e0, PIN_INPUT, 0) /* (AC7) WKUP_I2C0_SCL */ 6219a1768fSVignesh R AM65X_WKUP_IOPAD(0x00e4, PIN_INPUT, 0) /* (AD6) WKUP_I2C0_SDA */ 6319a1768fSVignesh R >; 6419a1768fSVignesh R }; 65c67f7388SKeerthy 66c67f7388SKeerthy push_button_pins_default: push_button__pins_default { 67c67f7388SKeerthy pinctrl-single,pins = < 68c67f7388SKeerthy AM65X_WKUP_IOPAD(0x0030, PIN_INPUT, 7) /* (R5) WKUP_GPIO0_24 */ 69c67f7388SKeerthy AM65X_WKUP_IOPAD(0x003c, PIN_INPUT, 7) /* (P2) WKUP_GPIO0_27 */ 70c67f7388SKeerthy >; 71c67f7388SKeerthy }; 7219a1768fSVignesh R}; 7319a1768fSVignesh R 743f94859fSVignesh R&main_pmx0 { 753f94859fSVignesh R main_uart0_pins_default: main-uart0-pins-default { 763f94859fSVignesh R pinctrl-single,pins = < 773f94859fSVignesh R AM65X_IOPAD(0x01e4, PIN_INPUT, 0) /* (AF11) UART0_RXD */ 783f94859fSVignesh R AM65X_IOPAD(0x01e8, PIN_OUTPUT, 0) /* (AE11) UART0_TXD */ 793f94859fSVignesh R AM65X_IOPAD(0x01ec, PIN_INPUT, 0) /* (AG11) UART0_CTSn */ 803f94859fSVignesh R AM65X_IOPAD(0x01f0, PIN_OUTPUT, 0) /* (AD11) UART0_RTSn */ 813f94859fSVignesh R >; 823f94859fSVignesh R }; 8319a1768fSVignesh R 8419a1768fSVignesh R main_i2c2_pins_default: main-i2c2-pins-default { 8519a1768fSVignesh R pinctrl-single,pins = < 8619a1768fSVignesh R AM65X_IOPAD(0x0074, PIN_INPUT, 5) /* (T27) GPMC0_CSn3.I2C2_SCL */ 8719a1768fSVignesh R AM65X_IOPAD(0x0070, PIN_INPUT, 5) /* (R25) GPMC0_CSn2.I2C2_SDA */ 8819a1768fSVignesh R >; 8919a1768fSVignesh R }; 905da94b50SVignesh R 915da94b50SVignesh R main_spi0_pins_default: main-spi0-pins-default { 925da94b50SVignesh R pinctrl-single,pins = < 935da94b50SVignesh R AM65X_IOPAD(0x01c4, PIN_INPUT, 0) /* (AH13) SPI0_CLK */ 945da94b50SVignesh R AM65X_IOPAD(0x01c8, PIN_INPUT, 0) /* (AE13) SPI0_D0 */ 955da94b50SVignesh R AM65X_IOPAD(0x01cc, PIN_INPUT, 0) /* (AD13) SPI0_D1 */ 965da94b50SVignesh R AM65X_IOPAD(0x01bc, PIN_OUTPUT, 0) /* (AG13) SPI0_CS0 */ 975da94b50SVignesh R >; 985da94b50SVignesh R }; 99fd58466aSFaiz Abbas 100fd58466aSFaiz Abbas main_mmc0_pins_default: main-mmc0-pins-default { 101fd58466aSFaiz Abbas pinctrl-single,pins = < 102fd58466aSFaiz Abbas AM65X_IOPAD(0x01a8, PIN_INPUT_PULLDOWN, 0) /* (B25) MMC0_CLK */ 103fd58466aSFaiz Abbas AM65X_IOPAD(0x01ac, PIN_INPUT_PULLUP, 0) /* (B27) MMC0_CMD */ 104fd58466aSFaiz Abbas AM65X_IOPAD(0x01a4, PIN_INPUT_PULLUP, 0) /* (A26) MMC0_DAT0 */ 105fd58466aSFaiz Abbas AM65X_IOPAD(0x01a0, PIN_INPUT_PULLUP, 0) /* (E25) MMC0_DAT1 */ 106fd58466aSFaiz Abbas AM65X_IOPAD(0x019c, PIN_INPUT_PULLUP, 0) /* (C26) MMC0_DAT2 */ 107fd58466aSFaiz Abbas AM65X_IOPAD(0x0198, PIN_INPUT_PULLUP, 0) /* (A25) MMC0_DAT3 */ 108fd58466aSFaiz Abbas AM65X_IOPAD(0x0194, PIN_INPUT_PULLUP, 0) /* (E24) MMC0_DAT4 */ 109fd58466aSFaiz Abbas AM65X_IOPAD(0x0190, PIN_INPUT_PULLUP, 0) /* (A24) MMC0_DAT5 */ 110fd58466aSFaiz Abbas AM65X_IOPAD(0x018c, PIN_INPUT_PULLUP, 0) /* (B26) MMC0_DAT6 */ 111fd58466aSFaiz Abbas AM65X_IOPAD(0x0188, PIN_INPUT_PULLUP, 0) /* (D25) MMC0_DAT7 */ 112fd58466aSFaiz Abbas AM65X_IOPAD(0x01b4, PIN_INPUT_PULLUP, 0) /* (A23) MMC0_SDCD */ 113fd58466aSFaiz Abbas AM65X_IOPAD(0x01b0, PIN_INPUT, 0) /* (C25) MMC0_DS */ 114fd58466aSFaiz Abbas >; 115fd58466aSFaiz Abbas }; 1167e7e7dd5SRoger Quadros 1177e7e7dd5SRoger Quadros usb1_pins_default: usb1_pins_default { 1187e7e7dd5SRoger Quadros pinctrl-single,pins = < 1197e7e7dd5SRoger Quadros AM65X_IOPAD(0x02c0, PIN_OUTPUT, 0) /* (AC8) USB1_DRVVBUS */ 1207e7e7dd5SRoger Quadros >; 1217e7e7dd5SRoger Quadros }; 12219a1768fSVignesh R}; 12319a1768fSVignesh R 12419a1768fSVignesh R&main_pmx1 { 12519a1768fSVignesh R main_i2c0_pins_default: main-i2c0-pins-default { 12619a1768fSVignesh R pinctrl-single,pins = < 12719a1768fSVignesh R AM65X_IOPAD(0x0000, PIN_INPUT, 0) /* (D20) I2C0_SCL */ 12819a1768fSVignesh R AM65X_IOPAD(0x0004, PIN_INPUT, 0) /* (C21) I2C0_SDA */ 12919a1768fSVignesh R >; 13019a1768fSVignesh R }; 13119a1768fSVignesh R 13219a1768fSVignesh R main_i2c1_pins_default: main-i2c1-pins-default { 13319a1768fSVignesh R pinctrl-single,pins = < 13419a1768fSVignesh R AM65X_IOPAD(0x0008, PIN_INPUT, 0) /* (B21) I2C1_SCL */ 13519a1768fSVignesh R AM65X_IOPAD(0x000c, PIN_INPUT, 0) /* (E21) I2C1_SDA */ 13619a1768fSVignesh R >; 13719a1768fSVignesh R }; 138e577d794SVignesh R 139e577d794SVignesh R ecap0_pins_default: ecap0-pins-default { 140e577d794SVignesh R pinctrl-single,pins = < 141e577d794SVignesh R AM65X_IOPAD(0x0010, PIN_INPUT, 0) /* (D21) ECAP0_IN_APWM_OUT */ 142e577d794SVignesh R >; 143e577d794SVignesh R }; 1443f94859fSVignesh R}; 1453f94859fSVignesh R 1464201af25SNishanth Menon&wkup_uart0 { 1474201af25SNishanth Menon /* Wakeup UART is used by System firmware */ 1484201af25SNishanth Menon status = "disabled"; 1494201af25SNishanth Menon}; 1503f94859fSVignesh R 1513f94859fSVignesh R&main_uart0 { 1523f94859fSVignesh R pinctrl-names = "default"; 1533f94859fSVignesh R pinctrl-0 = <&main_uart0_pins_default>; 154*c68272cbSLokesh Vutla power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>; 1553f94859fSVignesh R}; 15619a1768fSVignesh R 15719a1768fSVignesh R&wkup_i2c0 { 15819a1768fSVignesh R pinctrl-names = "default"; 15919a1768fSVignesh R pinctrl-0 = <&wkup_i2c0_pins_default>; 16019a1768fSVignesh R clock-frequency = <400000>; 16119a1768fSVignesh R 16219a1768fSVignesh R pca9554: gpio@39 { 16319a1768fSVignesh R compatible = "nxp,pca9554"; 16419a1768fSVignesh R reg = <0x39>; 16519a1768fSVignesh R gpio-controller; 16619a1768fSVignesh R #gpio-cells = <2>; 16719a1768fSVignesh R }; 16819a1768fSVignesh R}; 16919a1768fSVignesh R 17019a1768fSVignesh R&main_i2c0 { 17119a1768fSVignesh R pinctrl-names = "default"; 17219a1768fSVignesh R pinctrl-0 = <&main_i2c0_pins_default>; 17319a1768fSVignesh R clock-frequency = <400000>; 17419a1768fSVignesh R 17519a1768fSVignesh R pca9555: gpio@21 { 17619a1768fSVignesh R compatible = "nxp,pca9555"; 17719a1768fSVignesh R reg = <0x21>; 17819a1768fSVignesh R gpio-controller; 17919a1768fSVignesh R #gpio-cells = <2>; 18019a1768fSVignesh R }; 18119a1768fSVignesh R}; 18219a1768fSVignesh R 18319a1768fSVignesh R&main_i2c1 { 18419a1768fSVignesh R pinctrl-names = "default"; 18519a1768fSVignesh R pinctrl-0 = <&main_i2c1_pins_default>; 18619a1768fSVignesh R clock-frequency = <400000>; 18719a1768fSVignesh R}; 18819a1768fSVignesh R 18919a1768fSVignesh R&main_i2c2 { 19019a1768fSVignesh R pinctrl-names = "default"; 19119a1768fSVignesh R pinctrl-0 = <&main_i2c2_pins_default>; 19219a1768fSVignesh R clock-frequency = <400000>; 19319a1768fSVignesh R}; 194e577d794SVignesh R 195e577d794SVignesh R&ecap0 { 196e577d794SVignesh R pinctrl-names = "default"; 197e577d794SVignesh R pinctrl-0 = <&ecap0_pins_default>; 198e577d794SVignesh R}; 1995da94b50SVignesh R 2005da94b50SVignesh R&main_spi0 { 2015da94b50SVignesh R pinctrl-names = "default"; 2025da94b50SVignesh R pinctrl-0 = <&main_spi0_pins_default>; 2035da94b50SVignesh R #address-cells = <1>; 2045da94b50SVignesh R #size-cells= <0>; 2055da94b50SVignesh R ti,pindir-d0-out-d1-in = <1>; 2065da94b50SVignesh R 2075da94b50SVignesh R flash@0{ 2085da94b50SVignesh R compatible = "jedec,spi-nor"; 2095da94b50SVignesh R reg = <0x0>; 2105da94b50SVignesh R spi-tx-bus-width = <1>; 2115da94b50SVignesh R spi-rx-bus-width = <1>; 2125da94b50SVignesh R spi-max-frequency = <48000000>; 2135da94b50SVignesh R #address-cells = <1>; 2145da94b50SVignesh R #size-cells= <1>; 2155da94b50SVignesh R }; 2165da94b50SVignesh R}; 217fd58466aSFaiz Abbas 218fd58466aSFaiz Abbas&sdhci0 { 219fd58466aSFaiz Abbas pinctrl-names = "default"; 220fd58466aSFaiz Abbas pinctrl-0 = <&main_mmc0_pins_default>; 221fd58466aSFaiz Abbas bus-width = <8>; 222fd58466aSFaiz Abbas non-removable; 223fd58466aSFaiz Abbas ti,driver-strength-ohm = <50>; 224fd58466aSFaiz Abbas}; 2257e7e7dd5SRoger Quadros 2267e7e7dd5SRoger Quadros&dwc3_1 { 2277e7e7dd5SRoger Quadros status = "okay"; 2287e7e7dd5SRoger Quadros}; 2297e7e7dd5SRoger Quadros 2307e7e7dd5SRoger Quadros&usb1_phy { 2317e7e7dd5SRoger Quadros status = "okay"; 2327e7e7dd5SRoger Quadros}; 2337e7e7dd5SRoger Quadros 2347e7e7dd5SRoger Quadros&usb1 { 2357e7e7dd5SRoger Quadros pinctrl-names = "default"; 2367e7e7dd5SRoger Quadros pinctrl-0 = <&usb1_pins_default>; 2377e7e7dd5SRoger Quadros dr_mode = "otg"; 2387e7e7dd5SRoger Quadros}; 2397e7e7dd5SRoger Quadros 2407e7e7dd5SRoger Quadros&dwc3_0 { 2417e7e7dd5SRoger Quadros status = "disabled"; 2427e7e7dd5SRoger Quadros}; 2437e7e7dd5SRoger Quadros 2447e7e7dd5SRoger Quadros&usb0_phy { 2457e7e7dd5SRoger Quadros status = "disabled"; 2467e7e7dd5SRoger Quadros}; 247aa6eaaa2SVignesh R 248aa6eaaa2SVignesh R&tscadc0 { 249aa6eaaa2SVignesh R adc { 250aa6eaaa2SVignesh R ti,adc-channels = <0 1 2 3 4 5 6 7>; 251aa6eaaa2SVignesh R }; 252aa6eaaa2SVignesh R}; 253aa6eaaa2SVignesh R 254aa6eaaa2SVignesh R&tscadc1 { 255aa6eaaa2SVignesh R adc { 256aa6eaaa2SVignesh R ti,adc-channels = <0 1 2 3 4 5 6 7>; 257aa6eaaa2SVignesh R }; 258aa6eaaa2SVignesh R}; 2591b89dc93SKishon Vijay Abraham I 2601b89dc93SKishon Vijay Abraham I&serdes0 { 2611b89dc93SKishon Vijay Abraham I status = "disabled"; 2621b89dc93SKishon Vijay Abraham I}; 2631b89dc93SKishon Vijay Abraham I 2641b89dc93SKishon Vijay Abraham I&serdes1 { 2651b89dc93SKishon Vijay Abraham I status = "disabled"; 2661b89dc93SKishon Vijay Abraham I}; 2671b89dc93SKishon Vijay Abraham I 2681b89dc93SKishon Vijay Abraham I&pcie0_rc { 2691b89dc93SKishon Vijay Abraham I status = "disabled"; 2701b89dc93SKishon Vijay Abraham I}; 2711b89dc93SKishon Vijay Abraham I 2721b89dc93SKishon Vijay Abraham I&pcie0_ep { 2731b89dc93SKishon Vijay Abraham I status = "disabled"; 2741b89dc93SKishon Vijay Abraham I}; 2751b89dc93SKishon Vijay Abraham I 2761b89dc93SKishon Vijay Abraham I&pcie1_rc { 2771b89dc93SKishon Vijay Abraham I status = "disabled"; 2781b89dc93SKishon Vijay Abraham I}; 2791b89dc93SKishon Vijay Abraham I 2801b89dc93SKishon Vijay Abraham I&pcie1_ep { 2811b89dc93SKishon Vijay Abraham I status = "disabled"; 2821b89dc93SKishon Vijay Abraham I}; 283