Lokesh Vutla | 00b34e9 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2016-2018 Texas Instruments Incorporated - http://www.ti.com/ |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "k3-am654.dtsi" |
| 9 | #include "k3-am654-base-board-u-boot.dtsi" |
| 10 | #include "k3-am654-base-board-ddr4-1600MHz.dtsi" |
| 11 | #include "k3-am654-ddr.dtsi" |
| 12 | |
| 13 | / { |
| 14 | compatible = "ti,am654-evm", "ti,am654"; |
| 15 | model = "Texas Instruments AM654 R5 Base Board"; |
| 16 | |
| 17 | aliases { |
| 18 | serial0 = &wkup_uart0; |
Andreas Dannenberg | 20a2296 | 2019-08-15 15:55:30 -0500 | [diff] [blame] | 19 | serial1 = &mcu_uart0; |
Lokesh Vutla | 00b34e9 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 20 | serial2 = &main_uart0; |
| 21 | }; |
| 22 | |
| 23 | chosen { |
| 24 | stdout-path = "serial2:115200n8"; |
| 25 | tick-timer = &timer1; |
| 26 | }; |
| 27 | |
| 28 | aliases { |
| 29 | remoteproc0 = &sysctrler; |
| 30 | remoteproc1 = &a53_0; |
| 31 | }; |
| 32 | |
| 33 | a53_0: a53@0 { |
| 34 | compatible = "ti,am654-rproc"; |
| 35 | reg = <0x0 0x00a90000 0x0 0x10>; |
Lokesh Vutla | 355be91 | 2019-06-07 19:24:47 +0530 | [diff] [blame] | 36 | power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>, |
| 37 | <&k3_pds 202 TI_SCI_PD_EXCLUSIVE>; |
Lokesh Vutla | 00b34e9 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 38 | resets = <&k3_reset 202 0>; |
| 39 | assigned-clocks = <&k3_clks 202 0>; |
| 40 | assigned-clock-rates = <800000000>; |
| 41 | ti,sci = <&dmsc>; |
| 42 | ti,sci-proc-id = <32>; |
| 43 | ti,sci-host-id = <10>; |
| 44 | u-boot,dm-spl; |
| 45 | }; |
| 46 | |
| 47 | vtt_supply: vtt_supply { |
| 48 | compatible = "regulator-gpio"; |
| 49 | regulator-name = "vtt"; |
| 50 | regulator-min-microvolt = <0>; |
| 51 | regulator-max-microvolt = <3300000>; |
| 52 | gpios = <&wkup_gpio0 28 GPIO_ACTIVE_HIGH>; |
| 53 | states = <0 0x0 3300000 0x1>; |
| 54 | u-boot,dm-spl; |
| 55 | }; |
| 56 | }; |
| 57 | |
| 58 | &cbass_main { |
| 59 | timer1: timer@40400000 { |
| 60 | compatible = "ti,omap5430-timer"; |
| 61 | reg = <0x0 0x40400000 0x0 0x80>; |
| 62 | ti,timer-alwon; |
| 63 | clock-frequency = <25000000>; |
| 64 | u-boot,dm-pre-reloc; |
| 65 | }; |
| 66 | }; |
| 67 | |
| 68 | &cbass_mcu { |
| 69 | mcu_secproxy: secproxy@28380000 { |
| 70 | compatible = "ti,am654-secure-proxy"; |
| 71 | reg = <0x0 0x2a380000 0x0 0x80000>, |
| 72 | <0x0 0x2a400000 0x0 0x80000>, |
| 73 | <0x0 0x2a480000 0x0 0x80000>; |
| 74 | reg-names = "rt", "scfg", "target_data"; |
| 75 | #mbox-cells = <1>; |
| 76 | u-boot,dm-spl; |
| 77 | }; |
| 78 | }; |
| 79 | |
| 80 | &cbass_wakeup { |
| 81 | sysctrler: sysctrler { |
| 82 | compatible = "ti,am654-system-controller"; |
| 83 | mboxes= <&mcu_secproxy 4>, <&mcu_secproxy 5>; |
| 84 | mbox-names = "tx", "rx"; |
| 85 | u-boot,dm-spl; |
| 86 | }; |
| 87 | |
| 88 | wkup_gpio0: wkup_gpio0@42110000 { |
| 89 | compatible = "ti,k2g-gpio", "ti,keystone-gpio"; |
| 90 | reg = <0x42110000 0x100>; |
| 91 | gpio-controller; |
| 92 | #gpio-cells = <2>; |
| 93 | ti,ngpio = <56>; |
| 94 | ti,davinci-gpio-unbanked = <0>; |
| 95 | clocks = <&k3_clks 59 0>; |
| 96 | clock-names = "gpio"; |
| 97 | u-boot,dm-spl; |
| 98 | }; |
| 99 | |
Faiz Abbas | 3a1a0df | 2019-06-11 00:43:31 +0530 | [diff] [blame] | 100 | clk_200mhz: dummy_clock { |
| 101 | compatible = "fixed-clock"; |
| 102 | #clock-cells = <0>; |
| 103 | clock-frequency = <200000000>; |
| 104 | u-boot,dm-spl; |
| 105 | }; |
Lokesh Vutla | 00b34e9 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 106 | }; |
| 107 | |
| 108 | &dmsc { |
Andreas Dannenberg | 12df71c | 2019-04-25 12:27:02 -0500 | [diff] [blame] | 109 | mboxes= <&mcu_secproxy 8>, <&mcu_secproxy 6>, <&mcu_secproxy 5>; |
Lokesh Vutla | 00b34e9 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 110 | mbox-names = "tx", "rx", "notify"; |
| 111 | ti,host-id = <4>; |
| 112 | ti,secure-host; |
| 113 | }; |
| 114 | |
| 115 | &wkup_uart0 { |
| 116 | u-boot,dm-spl; |
| 117 | pinctrl-names = "default"; |
| 118 | pinctrl-0 = <&wkup_uart0_pins_default>; |
| 119 | status = "okay"; |
| 120 | }; |
| 121 | |
Andreas Dannenberg | 20a2296 | 2019-08-15 15:55:30 -0500 | [diff] [blame] | 122 | &mcu_uart0 { |
| 123 | u-boot,dm-spl; |
| 124 | pinctrl-names = "default"; |
| 125 | pinctrl-0 = <&mcu_uart0_pins_default>; |
| 126 | clock-frequency = <48000000>; |
| 127 | status = "okay"; |
| 128 | }; |
| 129 | |
Lokesh Vutla | 355be91 | 2019-06-07 19:24:47 +0530 | [diff] [blame] | 130 | &main_uart0 { |
| 131 | power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>; |
| 132 | }; |
| 133 | |
Lokesh Vutla | 00b34e9 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 134 | &wkup_pmx0 { |
| 135 | u-boot,dm-spl; |
| 136 | wkup_uart0_pins_default: wkup_uart0_pins_default { |
| 137 | pinctrl-single,pins = < |
Andreas Dannenberg | 7202af9 | 2019-04-29 12:56:44 -0500 | [diff] [blame] | 138 | AM65X_WKUP_IOPAD(0x00a0, PIN_INPUT, 0) /* (AB1) WKUP_UART0_RXD */ |
| 139 | AM65X_WKUP_IOPAD(0x00a4, PIN_OUTPUT, 0) /* (AB5) WKUP_UART0_TXD */ |
| 140 | AM65X_WKUP_IOPAD(0x00c8, PIN_INPUT, 1) /* (AC2) WKUP_GPIO0_6.WKUP_UART0_CTSn */ |
| 141 | AM65X_WKUP_IOPAD(0x00cc, PIN_OUTPUT, 1) /* (AC1) WKUP_GPIO0_7.WKUP_UART0_RTSn */ |
Lokesh Vutla | 00b34e9 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 142 | >; |
| 143 | u-boot,dm-spl; |
| 144 | }; |
| 145 | |
| 146 | wkup_vtt_pins_default: wkup_vtt_pins_default { |
| 147 | pinctrl-single,pins = < |
Andreas Dannenberg | 7202af9 | 2019-04-29 12:56:44 -0500 | [diff] [blame] | 148 | AM65X_WKUP_IOPAD(0x0040, PIN_OUTPUT_PULLUP, 7) /* WKUP_GPIO0_28 */ |
Lokesh Vutla | 00b34e9 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 149 | >; |
| 150 | u-boot,dm-spl; |
| 151 | }; |
Andreas Dannenberg | 7e0363b | 2019-06-04 18:08:15 -0500 | [diff] [blame] | 152 | |
Andreas Dannenberg | 20a2296 | 2019-08-15 15:55:30 -0500 | [diff] [blame] | 153 | mcu_uart0_pins_default: mcu_uart0_pins_default { |
| 154 | pinctrl-single,pins = < |
| 155 | AM65X_WKUP_IOPAD(0x0044, PIN_INPUT, 4) /* (P4) MCU_OSPI1_D1.MCU_UART0_RXD */ |
| 156 | AM65X_WKUP_IOPAD(0x0048, PIN_OUTPUT, 4) /* (P5) MCU_OSPI1_D2.MCU_UART0_TXD */ |
| 157 | AM65X_WKUP_IOPAD(0x004C, PIN_INPUT, 4) /* (P1) MCU_OSPI1_D3.MCU_UART0_CTSn */ |
| 158 | AM65X_WKUP_IOPAD(0x0054, PIN_OUTPUT, 4) /* (N3) MCU_OSPI1_CSn1.MCU_UART0_RTSn */ |
| 159 | >; |
| 160 | u-boot,dm-spl; |
| 161 | }; |
| 162 | |
Andreas Dannenberg | 7e0363b | 2019-06-04 18:08:15 -0500 | [diff] [blame] | 163 | wkup_i2c0_pins_default: wkup-i2c0-pins-default { |
| 164 | pinctrl-single,pins = < |
| 165 | AM65X_WKUP_IOPAD(0x00e0, PIN_INPUT, 0) /* (AC7) WKUP_I2C0_SCL */ |
| 166 | AM65X_WKUP_IOPAD(0x00e4, PIN_INPUT, 0) /* (AD6) WKUP_I2C0_SDA */ |
| 167 | >; |
| 168 | }; |
Lokesh Vutla | 00b34e9 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 169 | }; |
| 170 | |
Faiz Abbas | 3a1a0df | 2019-06-11 00:43:31 +0530 | [diff] [blame] | 171 | &main_pmx0 { |
| 172 | u-boot,dm-spl; |
| 173 | main_mmc0_pins_default: main_mmc0_pins_default { |
| 174 | pinctrl-single,pins = < |
| 175 | AM65X_IOPAD(0x01a8, PIN_INPUT_PULLDOWN, 0) /* (B25) MMC0_CLK */ |
| 176 | AM65X_IOPAD(0x01aC, PIN_INPUT_PULLUP, 0) /* (B27) MMC0_CMD */ |
| 177 | AM65X_IOPAD(0x01a4, PIN_INPUT_PULLUP, 0) /* (A26) MMC0_DAT0 */ |
| 178 | AM65X_IOPAD(0x01a0, PIN_INPUT_PULLUP, 0) /* (E25) MMC0_DAT1 */ |
| 179 | AM65X_IOPAD(0x019c, PIN_INPUT_PULLUP, 0) /* (C26) MMC0_DAT2 */ |
| 180 | AM65X_IOPAD(0x0198, PIN_INPUT_PULLUP, 0) /* (A25) MMC0_DAT3 */ |
| 181 | AM65X_IOPAD(0x0194, PIN_INPUT_PULLUP, 0) /* (E24) MMC0_DAT4 */ |
| 182 | AM65X_IOPAD(0x0190, PIN_INPUT_PULLUP, 0) /* (A24) MMC0_DAT5 */ |
| 183 | AM65X_IOPAD(0x018c, PIN_INPUT_PULLUP, 0) /* (B26) MMC0_DAT6 */ |
| 184 | AM65X_IOPAD(0x0188, PIN_INPUT_PULLUP, 0) /* (D25) MMC0_DAT7 */ |
| 185 | AM65X_IOPAD(0x01b0, PIN_INPUT, 0) /* (C25) MMC0_DS */ |
| 186 | >; |
| 187 | }; |
| 188 | }; |
| 189 | |
Lokesh Vutla | 00b34e9 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 190 | &memorycontroller { |
| 191 | vtt-supply = <&vtt_supply>; |
| 192 | pinctrl-names = "default"; |
| 193 | pinctrl-0 = <&wkup_vtt_pins_default>; |
| 194 | }; |
Faiz Abbas | 3a1a0df | 2019-06-11 00:43:31 +0530 | [diff] [blame] | 195 | |
| 196 | &sdhci0 { |
| 197 | clock-names = "clk_xin"; |
| 198 | clocks = <&clk_200mhz>; |
| 199 | /delete-property/ power-domains; |
| 200 | ti,driver-strength-ohm = <50>; |
| 201 | }; |
| 202 | |
| 203 | &sdhci1 { |
| 204 | clock-names = "clk_xin"; |
| 205 | clocks = <&clk_200mhz>; |
| 206 | /delete-property/ power-domains; |
Faiz Abbas | bbcfaad | 2019-06-11 00:43:36 +0530 | [diff] [blame] | 207 | ti,driver-strength-ohm = <50>; |
Faiz Abbas | 3a1a0df | 2019-06-11 00:43:31 +0530 | [diff] [blame] | 208 | }; |
Andreas Dannenberg | 7e0363b | 2019-06-04 18:08:15 -0500 | [diff] [blame] | 209 | |
| 210 | &wkup_i2c0 { |
| 211 | pinctrl-names = "default"; |
| 212 | pinctrl-0 = <&wkup_i2c0_pins_default>; |
| 213 | clock-frequency = <400000>; |
| 214 | }; |