Robert Nelson | 0c24aad | 2023-08-25 13:03:03 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * https://beagleboard.org/play |
| 4 | * |
| 5 | * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ |
| 6 | * Copyright (C) 2022-2023 Robert Nelson, BeagleBoard.org Foundation |
| 7 | */ |
| 8 | |
| 9 | #include "k3-am625-sk-binman.dtsi" |
| 10 | |
| 11 | / { |
| 12 | chosen { |
| 13 | tick-timer = &main_timer0; |
| 14 | }; |
| 15 | |
| 16 | memory@80000000 { |
| 17 | bootph-pre-ram; |
| 18 | }; |
| 19 | |
| 20 | /* Keep the LEDs on by default to indicate life */ |
| 21 | leds { |
| 22 | bootph-pre-ram; |
| 23 | led-0 { |
| 24 | default-state = "on"; |
| 25 | bootph-pre-ram; |
| 26 | }; |
| 27 | |
| 28 | led-1 { |
| 29 | default-state = "on"; |
| 30 | bootph-pre-ram; |
| 31 | }; |
| 32 | |
| 33 | led-2 { |
| 34 | default-state = "on"; |
| 35 | bootph-pre-ram; |
| 36 | }; |
| 37 | |
| 38 | led-3 { |
| 39 | default-state = "on"; |
| 40 | bootph-pre-ram; |
| 41 | }; |
| 42 | |
| 43 | led-4 { |
| 44 | default-state = "on"; |
| 45 | bootph-pre-ram; |
| 46 | }; |
| 47 | }; |
| 48 | }; |
| 49 | |
| 50 | &cbass_main { |
| 51 | bootph-pre-ram; |
| 52 | }; |
| 53 | |
| 54 | &main_timer0 { |
| 55 | clock-frequency = <25000000>; |
| 56 | bootph-pre-ram; |
| 57 | }; |
| 58 | |
| 59 | &dmss { |
| 60 | bootph-pre-ram; |
| 61 | }; |
| 62 | |
| 63 | &secure_proxy_main { |
| 64 | bootph-pre-ram; |
| 65 | }; |
| 66 | |
| 67 | &dmsc { |
| 68 | bootph-pre-ram; |
| 69 | }; |
| 70 | |
| 71 | &k3_pds { |
| 72 | bootph-pre-ram; |
| 73 | }; |
| 74 | |
| 75 | &k3_clks { |
| 76 | bootph-pre-ram; |
| 77 | }; |
| 78 | |
| 79 | &k3_reset { |
| 80 | bootph-pre-ram; |
| 81 | }; |
| 82 | |
| 83 | &dmsc { |
| 84 | bootph-pre-ram; |
| 85 | k3_sysreset: sysreset-controller { |
| 86 | compatible = "ti,sci-sysreset"; |
| 87 | bootph-pre-ram; |
| 88 | }; |
| 89 | }; |
| 90 | |
| 91 | &wkup_conf { |
| 92 | bootph-pre-ram; |
| 93 | }; |
| 94 | |
| 95 | &chipid { |
| 96 | bootph-pre-ram; |
| 97 | }; |
| 98 | |
| 99 | &main_pmx0 { |
| 100 | bootph-pre-ram; |
| 101 | }; |
| 102 | |
| 103 | &main_uart0 { |
| 104 | bootph-pre-ram; |
| 105 | }; |
| 106 | |
| 107 | &console_pins_default { |
| 108 | bootph-pre-ram; |
| 109 | }; |
| 110 | |
| 111 | &cbass_mcu { |
| 112 | bootph-pre-ram; |
| 113 | }; |
| 114 | |
| 115 | &cbass_wakeup { |
| 116 | bootph-pre-ram; |
| 117 | }; |
| 118 | |
| 119 | &mcu_pmx0 { |
| 120 | bootph-pre-ram; |
| 121 | }; |
| 122 | |
| 123 | &main_i2c0 { |
| 124 | bootph-pre-ram; |
| 125 | }; |
| 126 | |
| 127 | &local_i2c_pins_default { |
| 128 | bootph-pre-ram; |
| 129 | }; |
| 130 | |
| 131 | &gpio0_pins_default { |
| 132 | bootph-pre-ram; |
| 133 | }; |
| 134 | |
| 135 | &main_gpio0 { |
| 136 | bootph-pre-ram; |
| 137 | }; |
| 138 | |
| 139 | &main_gpio1 { |
| 140 | bootph-pre-ram; |
| 141 | }; |
| 142 | |
| 143 | &sdhci0 { |
| 144 | /* EMMC */ |
| 145 | bootph-pre-ram; |
| 146 | }; |
| 147 | |
| 148 | &emmc_pins_default { |
| 149 | bootph-pre-ram; |
| 150 | }; |
| 151 | |
| 152 | &sd_pins_default { |
| 153 | bootph-pre-ram; |
| 154 | /* Force to use SDCD card detect pin */ |
| 155 | pinctrl-single,pins = < |
| 156 | AM62X_IOPAD(0x023c, PIN_INPUT, 0) /* (A21) MMC1_CMD */ |
| 157 | AM62X_IOPAD(0x0234, PIN_INPUT, 0) /* (B22) MMC1_CLK */ |
| 158 | AM62X_IOPAD(0x0230, PIN_INPUT, 0) /* (A22) MMC1_DAT0 */ |
| 159 | AM62X_IOPAD(0x022c, PIN_INPUT, 0) /* (B21) MMC1_DAT1 */ |
| 160 | AM62X_IOPAD(0x0228, PIN_INPUT, 0) /* (C21) MMC1_DAT2 */ |
| 161 | AM62X_IOPAD(0x0224, PIN_INPUT, 0) /* (D22) MMC1_DAT3 */ |
| 162 | AM62X_IOPAD(0x0240, PIN_INPUT, 0) /* (D17) MMC1_SDCD.MMC1_SDCD */ |
| 163 | >; |
| 164 | }; |
| 165 | |
| 166 | &tps65219 { |
| 167 | bootph-pre-ram; |
| 168 | }; |
| 169 | |
| 170 | &sdhci1 { |
| 171 | bootph-pre-ram; |
| 172 | }; |
| 173 | |
| 174 | #ifdef CONFIG_TARGET_AM625_A53_EVM |
| 175 | |
| 176 | #define SPL_AM625_BEAGLEPLAY_DTB "spl/dts/k3-am625-beagleplay.dtb" |
| 177 | #define AM625_BEAGLEPLAY_DTB "arch/arm/dts/k3-am625-beagleplay.dtb" |
| 178 | |
| 179 | &spl_am625_sk_dtb { |
| 180 | filename = SPL_AM625_BEAGLEPLAY_DTB; |
| 181 | }; |
| 182 | |
| 183 | &am625_sk_dtb { |
| 184 | filename = AM625_BEAGLEPLAY_DTB; |
| 185 | }; |
| 186 | |
| 187 | &spl_am625_sk_dtb_unsigned { |
| 188 | filename = SPL_AM625_BEAGLEPLAY_DTB; |
| 189 | }; |
| 190 | |
| 191 | &am625_sk_dtb_unsigned { |
| 192 | filename = AM625_BEAGLEPLAY_DTB; |
| 193 | }; |
| 194 | |
| 195 | #endif |