Chia-Wei, Wang | b9f6e7b | 2020-12-14 13:54:27 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | /dts-v1/; |
| 4 | |
| 5 | #include "ast2600-u-boot.dtsi" |
| 6 | |
| 7 | / { |
| 8 | memory { |
| 9 | device_type = "memory"; |
| 10 | reg = <0x80000000 0x40000000>; |
| 11 | }; |
| 12 | |
| 13 | chosen { |
| 14 | stdout-path = &uart5; |
| 15 | }; |
| 16 | |
| 17 | aliases { |
| 18 | mmc0 = &emmc_slot0; |
| 19 | mmc1 = &sdhci_slot0; |
| 20 | mmc2 = &sdhci_slot1; |
| 21 | spi0 = &fmc; |
| 22 | spi1 = &spi1; |
| 23 | spi2 = &spi2; |
| 24 | ethernet0 = &mac0; |
| 25 | ethernet1 = &mac1; |
| 26 | ethernet2 = &mac2; |
| 27 | ethernet3 = &mac3; |
| 28 | }; |
| 29 | |
| 30 | cpus { |
| 31 | cpu@0 { |
| 32 | clock-frequency = <800000000>; |
| 33 | }; |
| 34 | cpu@1 { |
| 35 | clock-frequency = <800000000>; |
| 36 | }; |
| 37 | }; |
| 38 | }; |
| 39 | |
| 40 | &uart5 { |
| 41 | u-boot,dm-pre-reloc; |
| 42 | status = "okay"; |
| 43 | }; |
| 44 | |
| 45 | &sdrammc { |
| 46 | clock-frequency = <400000000>; |
| 47 | }; |
| 48 | |
| 49 | &wdt1 { |
| 50 | status = "okay"; |
| 51 | }; |
| 52 | |
| 53 | &fmc { |
| 54 | status = "okay"; |
| 55 | |
| 56 | pinctrl-names = "default"; |
| 57 | pinctrl-0 = <&pinctrl_fmcquad_default>; |
| 58 | |
| 59 | flash@0 { |
| 60 | compatible = "spi-flash", "sst,w25q256"; |
| 61 | status = "okay"; |
| 62 | spi-max-frequency = <50000000>; |
| 63 | spi-tx-bus-width = <4>; |
| 64 | spi-rx-bus-width = <4>; |
| 65 | }; |
| 66 | |
| 67 | flash@1 { |
| 68 | compatible = "spi-flash", "sst,w25q256"; |
| 69 | status = "okay"; |
| 70 | spi-max-frequency = <50000000>; |
| 71 | spi-tx-bus-width = <4>; |
| 72 | spi-rx-bus-width = <4>; |
| 73 | }; |
| 74 | |
| 75 | flash@2 { |
| 76 | compatible = "spi-flash", "sst,w25q256"; |
| 77 | status = "okay"; |
| 78 | spi-max-frequency = <50000000>; |
| 79 | spi-tx-bus-width = <4>; |
| 80 | spi-rx-bus-width = <4>; |
| 81 | }; |
| 82 | }; |
| 83 | |
| 84 | &spi1 { |
| 85 | status = "okay"; |
| 86 | |
| 87 | pinctrl-names = "default"; |
| 88 | pinctrl-0 = <&pinctrl_spi1_default &pinctrl_spi1abr_default |
| 89 | &pinctrl_spi1cs1_default &pinctrl_spi1wp_default |
| 90 | &pinctrl_spi1wp_default &pinctrl_spi1quad_default>; |
| 91 | |
| 92 | flash@0 { |
| 93 | compatible = "spi-flash", "sst,w25q256"; |
| 94 | status = "okay"; |
| 95 | spi-max-frequency = <50000000>; |
| 96 | spi-tx-bus-width = <4>; |
| 97 | spi-rx-bus-width = <4>; |
| 98 | }; |
| 99 | }; |
| 100 | |
| 101 | &spi2 { |
| 102 | status = "okay"; |
| 103 | |
| 104 | pinctrl-names = "default"; |
| 105 | pinctrl-0 = <&pinctrl_spi2_default &pinctrl_spi2cs1_default |
| 106 | &pinctrl_spi2cs2_default &pinctrl_spi2quad_default>; |
| 107 | |
| 108 | flash@0 { |
| 109 | compatible = "spi-flash", "sst,w25q256"; |
| 110 | status = "okay"; |
| 111 | spi-max-frequency = <50000000>; |
| 112 | spi-tx-bus-width = <4>; |
| 113 | spi-rx-bus-width = <4>; |
| 114 | }; |
| 115 | }; |
| 116 | |
| 117 | &emmc { |
| 118 | u-boot,dm-pre-reloc; |
| 119 | timing-phase = <0x700ff>; |
| 120 | }; |
| 121 | |
| 122 | &emmc_slot0 { |
| 123 | u-boot,dm-pre-reloc; |
| 124 | status = "okay"; |
| 125 | bus-width = <4>; |
| 126 | pinctrl-names = "default"; |
| 127 | pinctrl-0 = <&pinctrl_emmc_default>; |
| 128 | sdhci-drive-type = <1>; |
| 129 | }; |
| 130 | |
| 131 | &i2c4 { |
| 132 | status = "okay"; |
| 133 | |
| 134 | pinctrl-names = "default"; |
| 135 | pinctrl-0 = <&pinctrl_i2c5_default>; |
| 136 | }; |
| 137 | |
| 138 | &i2c5 { |
| 139 | status = "okay"; |
| 140 | |
| 141 | pinctrl-names = "default"; |
| 142 | pinctrl-0 = <&pinctrl_i2c6_default>; |
| 143 | }; |
| 144 | |
| 145 | &i2c6 { |
| 146 | status = "okay"; |
| 147 | |
| 148 | pinctrl-names = "default"; |
| 149 | pinctrl-0 = <&pinctrl_i2c7_default>; |
| 150 | }; |
| 151 | |
| 152 | &i2c7 { |
| 153 | status = "okay"; |
| 154 | |
| 155 | pinctrl-names = "default"; |
| 156 | pinctrl-0 = <&pinctrl_i2c8_default>; |
| 157 | }; |
| 158 | |
| 159 | &i2c8 { |
| 160 | status = "okay"; |
| 161 | |
| 162 | pinctrl-names = "default"; |
| 163 | pinctrl-0 = <&pinctrl_i2c9_default>; |
| 164 | }; |
| 165 | |
Dylan Hung | 82f2584 | 2021-12-09 10:12:26 +0800 | [diff] [blame^] | 166 | &mdio0 { |
| 167 | status = "okay"; |
| 168 | #address-cells = <1>; |
| 169 | #size-cells = <0>; |
| 170 | ethphy0: ethernet-phy@0 { |
| 171 | reg = <0>; |
| 172 | }; |
| 173 | }; |
| 174 | |
| 175 | &mdio1 { |
| 176 | status = "okay"; |
| 177 | #address-cells = <1>; |
| 178 | #size-cells = <0>; |
| 179 | ethphy1: ethernet-phy@0 { |
| 180 | reg = <0>; |
| 181 | }; |
| 182 | }; |
| 183 | |
| 184 | &mdio2 { |
| 185 | status = "okay"; |
| 186 | #address-cells = <1>; |
| 187 | #size-cells = <0>; |
| 188 | ethphy2: ethernet-phy@0 { |
| 189 | reg = <0>; |
| 190 | }; |
| 191 | }; |
| 192 | |
| 193 | &mdio3 { |
| 194 | status = "okay"; |
| 195 | #address-cells = <1>; |
| 196 | #size-cells = <0>; |
| 197 | ethphy3: ethernet-phy@0 { |
| 198 | reg = <0>; |
| 199 | }; |
| 200 | }; |
| 201 | |
| 202 | &mac0 { |
| 203 | status = "okay"; |
| 204 | phy-mode = "rgmii-rxid"; |
| 205 | phy-handle = <ðphy0>; |
| 206 | pinctrl-names = "default"; |
| 207 | pinctrl-0 = <&pinctrl_rgmii1_default>; |
| 208 | }; |
| 209 | |
| 210 | &mac1 { |
| 211 | status = "okay"; |
| 212 | phy-mode = "rgmii-rxid"; |
| 213 | phy-handle = <ðphy1>; |
| 214 | pinctrl-names = "default"; |
| 215 | pinctrl-0 = <&pinctrl_rgmii2_default>; |
| 216 | }; |
| 217 | |
| 218 | &mac2 { |
| 219 | status = "okay"; |
| 220 | phy-mode = "rgmii"; |
| 221 | phy-handle = <ðphy2>; |
| 222 | pinctrl-names = "default"; |
| 223 | pinctrl-0 = <&pinctrl_rgmii3_default>; |
| 224 | }; |
| 225 | |
| 226 | &mac3 { |
| 227 | status = "okay"; |
| 228 | phy-mode = "rgmii"; |
| 229 | phy-handle = <ðphy3>; |
| 230 | pinctrl-names = "default"; |
| 231 | pinctrl-0 = <&pinctrl_rgmii4_default>; |
| 232 | }; |
| 233 | |
Chia-Wei, Wang | b9f6e7b | 2020-12-14 13:54:27 +0800 | [diff] [blame] | 234 | &scu { |
| 235 | mac0-clk-delay = <0x1d 0x1c |
| 236 | 0x10 0x17 |
| 237 | 0x10 0x17>; |
| 238 | mac1-clk-delay = <0x1d 0x10 |
| 239 | 0x10 0x10 |
| 240 | 0x10 0x10>; |
| 241 | mac2-clk-delay = <0x0a 0x04 |
| 242 | 0x08 0x04 |
| 243 | 0x08 0x04>; |
| 244 | mac3-clk-delay = <0x0a 0x04 |
| 245 | 0x08 0x04 |
| 246 | 0x08 0x04>; |
| 247 | }; |
Joel Stanley | d18ef4f | 2021-10-27 14:17:28 +0800 | [diff] [blame] | 248 | |
| 249 | &hace { |
| 250 | u-boot,dm-pre-reloc; |
| 251 | status = "okay"; |
| 252 | }; |
Chia-Wei Wang | 3435a3f | 2021-10-27 14:17:31 +0800 | [diff] [blame] | 253 | |
| 254 | &acry { |
| 255 | u-boot,dm-pre-reloc; |
| 256 | status = "okay"; |
| 257 | }; |