Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
| 2 | /* |
| 3 | * Copyright 2023 Toradex |
| 4 | */ |
| 5 | |
| 6 | #include "k3-am625-verdin-wifi-dev-binman.dtsi" |
| 7 | |
| 8 | / { |
| 9 | aliases { |
| 10 | eeprom0 = &eeprom_module; |
| 11 | eeprom1 = &eeprom_carrier_board; |
| 12 | eeprom2 = &eeprom_display_adapter; |
| 13 | }; |
| 14 | |
| 15 | chosen { |
| 16 | tick-timer = &main_timer0; |
| 17 | }; |
| 18 | |
| 19 | memory@80000000 { |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 20 | bootph-all; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 21 | }; |
Emanuele Ghidoli | 26b5cba | 2024-02-23 10:11:41 +0100 | [diff] [blame] | 22 | |
| 23 | sysinfo { |
| 24 | compatible = "toradex,sysinfo"; |
| 25 | }; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 26 | }; |
| 27 | |
Nishanth Menon | 947dc7d | 2023-11-14 21:28:55 -0600 | [diff] [blame] | 28 | &main_timer0 { |
| 29 | clock-frequency = <25000000>; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 30 | }; |
| 31 | |
Roger Quadros | 74f5924 | 2023-10-28 20:36:02 +0300 | [diff] [blame] | 32 | &main_bcdma { |
| 33 | reg = <0x00 0x485c0100 0x00 0x100>, |
| 34 | <0x00 0x4c000000 0x00 0x20000>, |
| 35 | <0x00 0x4a820000 0x00 0x20000>, |
| 36 | <0x00 0x4aa40000 0x00 0x20000>, |
| 37 | <0x00 0x4bc00000 0x00 0x100000>, |
| 38 | <0x00 0x48600000 0x00 0x8000>, |
| 39 | <0x00 0x484a4000 0x00 0x2000>, |
| 40 | <0x00 0x484c2000 0x00 0x2000>; |
| 41 | reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", |
| 42 | "ringrt" , "cfg", "tchan", "rchan"; |
Roger Quadros | 88a6b0a | 2023-11-14 22:28:56 +0200 | [diff] [blame] | 43 | bootph-all; |
Roger Quadros | 74f5924 | 2023-10-28 20:36:02 +0300 | [diff] [blame] | 44 | }; |
| 45 | |
| 46 | &main_pktdma { |
| 47 | reg = <0x00 0x485c0000 0x00 0x100>, |
| 48 | <0x00 0x4a800000 0x00 0x20000>, |
| 49 | <0x00 0x4aa00000 0x00 0x20000>, |
| 50 | <0x00 0x4b800000 0x00 0x200000>, |
| 51 | <0x00 0x485e0000 0x00 0x10000>, |
| 52 | <0x00 0x484a0000 0x00 0x2000>, |
| 53 | <0x00 0x484c0000 0x00 0x2000>, |
| 54 | <0x00 0x48430000 0x00 0x1000>; |
| 55 | reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt", |
| 56 | "cfg", "tchan", "rchan", "rflow"; |
| 57 | bootph-all; |
| 58 | }; |
| 59 | |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 60 | &cpsw3g { |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 61 | bootph-all; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 62 | }; |
| 63 | |
| 64 | &cpsw3g_phy0 { |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 65 | bootph-all; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 66 | }; |
| 67 | |
| 68 | &cpsw3g_phy1 { |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 69 | bootph-all; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 70 | }; |
| 71 | |
| 72 | &cpsw_port1 { |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 73 | bootph-all; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 74 | }; |
| 75 | |
| 76 | &cpsw_port2 { |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 77 | bootph-all; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 78 | }; |
| 79 | |
| 80 | /* MDIO, shared by Verdin ETH_1 (On-module PHY) and Verdin ETH_2_RGMII */ |
| 81 | &cpsw3g_mdio { |
| 82 | /delete-property/ assigned-clocks; |
| 83 | /delete-property/ assigned-clock-parents; |
| 84 | /delete-property/ assigned-clock-rates; |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 85 | bootph-all; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 86 | }; |
| 87 | |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 88 | &fss { |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 89 | bootph-all; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 90 | }; |
| 91 | |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 92 | &main_gpio0 { |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 93 | bootph-all; |
Stefan Eichenberger | f9b14d6 | 2024-04-17 10:39:21 +0200 | [diff] [blame] | 94 | |
| 95 | ctrl-sleep-moci-hog { |
| 96 | bootph-all; |
| 97 | gpio-hog; |
| 98 | gpios = <31 GPIO_ACTIVE_HIGH>; |
| 99 | line-name = "CTRL_SLEEP_MOCI#"; |
| 100 | output-high; |
| 101 | }; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 102 | }; |
| 103 | |
| 104 | /* On-module I2C - PMIC_I2C */ |
| 105 | &main_i2c0 { |
| 106 | eeprom_module: eeprom@50 { |
| 107 | compatible = "i2c-eeprom"; |
| 108 | pagesize = <16>; |
| 109 | reg = <0x50>; |
| 110 | }; |
| 111 | }; |
| 112 | |
| 113 | /* Verdin I2C_1 */ |
| 114 | &main_i2c1 { |
| 115 | /* EEPROM on display adapter (MIPI DSI Display Adapter) */ |
| 116 | eeprom_display_adapter: eeprom@50 { |
| 117 | compatible = "i2c-eeprom"; |
| 118 | reg = <0x50>; |
| 119 | pagesize = <16>; |
| 120 | }; |
| 121 | |
| 122 | /* EEPROM on carrier board */ |
| 123 | eeprom_carrier_board: eeprom@57 { |
| 124 | compatible = "i2c-eeprom"; |
| 125 | reg = <0x57>; |
| 126 | pagesize = <16>; |
| 127 | }; |
| 128 | }; |
| 129 | |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 130 | /* Verdin UART_3, used as the Linux console */ |
| 131 | &main_uart0 { |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 132 | bootph-all; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 133 | }; |
| 134 | |
| 135 | /* Verdin UART_1 */ |
| 136 | &main_uart1 { |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 137 | bootph-all; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 138 | }; |
| 139 | |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 140 | &pinctrl_ctrl_sleep_moci { |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 141 | bootph-all; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 142 | }; |
| 143 | |
| 144 | &pinctrl_i2c0 { |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 145 | bootph-all; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 146 | }; |
| 147 | |
| 148 | &pinctrl_i2c1 { |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 149 | bootph-all; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 150 | }; |
| 151 | |
| 152 | &pinctrl_sdhci0 { |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 153 | bootph-all; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 154 | }; |
| 155 | |
| 156 | &pinctrl_uart0 { |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 157 | bootph-all; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 158 | }; |
| 159 | |
| 160 | &pinctrl_uart1 { |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 161 | bootph-all; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 162 | }; |
| 163 | |
| 164 | &pinctrl_wkup_uart0 { |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 165 | bootph-all; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 166 | }; |
| 167 | |
| 168 | &sdhci0 { |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 169 | bootph-all; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 170 | }; |
| 171 | |
| 172 | &sdhci2 { |
| 173 | status = "disabled"; |
| 174 | }; |
| 175 | |
Vitor Soares | 2aa4d8c9 | 2024-07-04 16:49:32 +0100 | [diff] [blame] | 176 | &usb0 { |
| 177 | dr_mode = "peripheral"; |
| 178 | /* Since role switching is not supported in U-Boot */ |
| 179 | /delete-property/ extcon; |
| 180 | bootph-pre-ram; |
| 181 | }; |
| 182 | |
| 183 | &usbss0 { |
| 184 | bootph-pre-ram; |
| 185 | }; |
| 186 | |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 187 | /* Verdin UART_2 */ |
| 188 | &wkup_uart0 { |
Marcel Ziswiler | ddaf8ab | 2023-10-10 13:13:04 +0200 | [diff] [blame] | 189 | bootph-all; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 190 | }; |