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>; |
| 35 | power-domains = <&k3_pds 61>, |
| 36 | <&k3_pds 202>; |
| 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 | |
| 121 | &wkup_pmx0 { |
| 122 | u-boot,dm-spl; |
| 123 | wkup_uart0_pins_default: wkup_uart0_pins_default { |
| 124 | pinctrl-single,pins = < |
Andreas Dannenberg | bfdf498 | 2019-04-29 12:56:44 -0500 | [diff] [blame] | 125 | AM65X_WKUP_IOPAD(0x00a0, PIN_INPUT, 0) /* (AB1) WKUP_UART0_RXD */ |
| 126 | AM65X_WKUP_IOPAD(0x00a4, PIN_OUTPUT, 0) /* (AB5) WKUP_UART0_TXD */ |
| 127 | AM65X_WKUP_IOPAD(0x00c8, PIN_INPUT, 1) /* (AC2) WKUP_GPIO0_6.WKUP_UART0_CTSn */ |
| 128 | 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] | 129 | >; |
| 130 | u-boot,dm-spl; |
| 131 | }; |
| 132 | |
| 133 | wkup_vtt_pins_default: wkup_vtt_pins_default { |
| 134 | pinctrl-single,pins = < |
Andreas Dannenberg | bfdf498 | 2019-04-29 12:56:44 -0500 | [diff] [blame] | 135 | AM65X_WKUP_IOPAD(0x0040, PIN_OUTPUT_PULLUP, 7) /* WKUP_GPIO0_28 */ |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 136 | >; |
| 137 | u-boot,dm-spl; |
| 138 | }; |
Andreas Dannenberg | d20cf7b | 2019-06-04 18:08:15 -0500 | [diff] [blame] | 139 | |
| 140 | wkup_i2c0_pins_default: wkup-i2c0-pins-default { |
| 141 | pinctrl-single,pins = < |
| 142 | AM65X_WKUP_IOPAD(0x00e0, PIN_INPUT, 0) /* (AC7) WKUP_I2C0_SCL */ |
| 143 | AM65X_WKUP_IOPAD(0x00e4, PIN_INPUT, 0) /* (AD6) WKUP_I2C0_SDA */ |
| 144 | >; |
| 145 | }; |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 146 | }; |
| 147 | |
Faiz Abbas | d8fb309 | 2019-06-11 00:43:31 +0530 | [diff] [blame] | 148 | &main_pmx0 { |
| 149 | u-boot,dm-spl; |
| 150 | main_mmc0_pins_default: main_mmc0_pins_default { |
| 151 | pinctrl-single,pins = < |
| 152 | AM65X_IOPAD(0x01a8, PIN_INPUT_PULLDOWN, 0) /* (B25) MMC0_CLK */ |
| 153 | AM65X_IOPAD(0x01aC, PIN_INPUT_PULLUP, 0) /* (B27) MMC0_CMD */ |
| 154 | AM65X_IOPAD(0x01a4, PIN_INPUT_PULLUP, 0) /* (A26) MMC0_DAT0 */ |
| 155 | AM65X_IOPAD(0x01a0, PIN_INPUT_PULLUP, 0) /* (E25) MMC0_DAT1 */ |
| 156 | AM65X_IOPAD(0x019c, PIN_INPUT_PULLUP, 0) /* (C26) MMC0_DAT2 */ |
| 157 | AM65X_IOPAD(0x0198, PIN_INPUT_PULLUP, 0) /* (A25) MMC0_DAT3 */ |
| 158 | AM65X_IOPAD(0x0194, PIN_INPUT_PULLUP, 0) /* (E24) MMC0_DAT4 */ |
| 159 | AM65X_IOPAD(0x0190, PIN_INPUT_PULLUP, 0) /* (A24) MMC0_DAT5 */ |
| 160 | AM65X_IOPAD(0x018c, PIN_INPUT_PULLUP, 0) /* (B26) MMC0_DAT6 */ |
| 161 | AM65X_IOPAD(0x0188, PIN_INPUT_PULLUP, 0) /* (D25) MMC0_DAT7 */ |
| 162 | AM65X_IOPAD(0x01b0, PIN_INPUT, 0) /* (C25) MMC0_DS */ |
| 163 | >; |
| 164 | }; |
| 165 | }; |
| 166 | |
Lokesh Vutla | b50abe2 | 2018-11-02 19:51:09 +0530 | [diff] [blame] | 167 | &memorycontroller { |
| 168 | vtt-supply = <&vtt_supply>; |
| 169 | pinctrl-names = "default"; |
| 170 | pinctrl-0 = <&wkup_vtt_pins_default>; |
| 171 | }; |
Faiz Abbas | d8fb309 | 2019-06-11 00:43:31 +0530 | [diff] [blame] | 172 | |
| 173 | &sdhci0 { |
| 174 | clock-names = "clk_xin"; |
| 175 | clocks = <&clk_200mhz>; |
| 176 | /delete-property/ power-domains; |
| 177 | ti,driver-strength-ohm = <50>; |
| 178 | }; |
| 179 | |
| 180 | &sdhci1 { |
| 181 | clock-names = "clk_xin"; |
| 182 | clocks = <&clk_200mhz>; |
| 183 | /delete-property/ power-domains; |
Faiz Abbas | aa8d1b7 | 2019-06-11 00:43:36 +0530 | [diff] [blame] | 184 | ti,driver-strength-ohm = <50>; |
Faiz Abbas | d8fb309 | 2019-06-11 00:43:31 +0530 | [diff] [blame] | 185 | }; |
Andreas Dannenberg | d20cf7b | 2019-06-04 18:08:15 -0500 | [diff] [blame] | 186 | |
| 187 | &wkup_i2c0 { |
| 188 | pinctrl-names = "default"; |
| 189 | pinctrl-0 = <&wkup_i2c0_pins_default>; |
| 190 | clock-frequency = <400000>; |
| 191 | }; |