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