| 1 |
// SPDX-License-Identifier: GPL-2.0-or-later |
| 2 |
// Copyright 2019 IBM Corp. |
| 3 |
|
| 4 |
/dts-v1/; |
| 5 |
|
| 6 |
#include "aspeed-g6.dtsi" |
| 7 |
#include <dt-bindings/gpio/aspeed-gpio.h> |
| 8 |
|
| 9 |
/ { |
| 10 |
model = "AST2600 EVB"; |
| 11 |
compatible = "aspeed,ast2600-evb", "aspeed,ast2600"; |
| 12 |
|
| 13 |
aliases { |
| 14 |
serial4 = &uart5; |
| 15 |
}; |
| 16 |
|
| 17 |
chosen { |
| 18 |
bootargs = "console=ttyS4,115200n8"; |
| 19 |
}; |
| 20 |
|
| 21 |
memory@80000000 { |
| 22 |
device_type = "memory"; |
| 23 |
reg = <0x80000000 0x80000000>; |
| 24 |
}; |
| 25 |
|
| 26 |
reserved-memory { |
| 27 |
#address-cells = <1>; |
| 28 |
#size-cells = <1>; |
| 29 |
ranges; |
| 30 |
|
| 31 |
video_engine_memory: video { |
| 32 |
size = <0x04000000>; |
| 33 |
alignment = <0x01000000>; |
| 34 |
compatible = "shared-dma-pool"; |
| 35 |
reusable; |
| 36 |
}; |
| 37 |
|
| 38 |
gfx_memory: framebuffer { |
| 39 |
size = <0x01000000>; |
| 40 |
alignment = <0x01000000>; |
| 41 |
compatible = "shared-dma-pool"; |
| 42 |
reusable; |
| 43 |
}; |
| 44 |
}; |
| 45 |
|
| 46 |
vcc_sdhci0: regulator-vcc-sdhci0 { |
| 47 |
compatible = "regulator-fixed"; |
| 48 |
regulator-name = "SDHCI0 Vcc"; |
| 49 |
regulator-min-microvolt = <3300000>; |
| 50 |
regulator-max-microvolt = <3300000>; |
| 51 |
gpios = <&gpio0 ASPEED_GPIO(V, 0) GPIO_ACTIVE_HIGH>; |
| 52 |
enable-active-high; |
| 53 |
}; |
| 54 |
|
| 55 |
vccq_sdhci0: regulator-vccq-sdhci0 { |
| 56 |
compatible = "regulator-gpio"; |
| 57 |
regulator-name = "SDHCI0 VccQ"; |
| 58 |
regulator-min-microvolt = <1800000>; |
| 59 |
regulator-max-microvolt = <3300000>; |
| 60 |
gpios = <&gpio0 ASPEED_GPIO(V, 1) GPIO_ACTIVE_HIGH>; |
| 61 |
gpios-states = <1>; |
| 62 |
states = <3300000 1>, |
| 63 |
<1800000 0>; |
| 64 |
}; |
| 65 |
|
| 66 |
vcc_sdhci1: regulator-vcc-sdhci1 { |
| 67 |
compatible = "regulator-fixed"; |
| 68 |
regulator-name = "SDHCI1 Vcc"; |
| 69 |
regulator-min-microvolt = <3300000>; |
| 70 |
regulator-max-microvolt = <3300000>; |
| 71 |
gpios = <&gpio0 ASPEED_GPIO(V, 2) GPIO_ACTIVE_HIGH>; |
| 72 |
enable-active-high; |
| 73 |
}; |
| 74 |
|
| 75 |
vccq_sdhci1: regulator-vccq-sdhci1 { |
| 76 |
compatible = "regulator-gpio"; |
| 77 |
regulator-name = "SDHCI1 VccQ"; |
| 78 |
regulator-min-microvolt = <1800000>; |
| 79 |
regulator-max-microvolt = <3300000>; |
| 80 |
gpios = <&gpio0 ASPEED_GPIO(V, 3) GPIO_ACTIVE_HIGH>; |
| 81 |
gpios-states = <1>; |
| 82 |
states = <3300000 1>, |
| 83 |
<1800000 0>; |
| 84 |
}; |
| 85 |
}; |
| 86 |
|
| 87 |
&mdio0 { |
| 88 |
status = "okay"; |
| 89 |
|
| 90 |
ethphy0: ethernet-phy@0 { |
| 91 |
compatible = "ethernet-phy-ieee802.3-c22"; |
| 92 |
reg = <0>; |
| 93 |
}; |
| 94 |
}; |
| 95 |
|
| 96 |
&mdio1 { |
| 97 |
status = "okay"; |
| 98 |
|
| 99 |
ethphy1: ethernet-phy@0 { |
| 100 |
compatible = "ethernet-phy-ieee802.3-c22"; |
| 101 |
reg = <0>; |
| 102 |
}; |
| 103 |
}; |
| 104 |
|
| 105 |
&mdio2 { |
| 106 |
status = "okay"; |
| 107 |
|
| 108 |
ethphy2: ethernet-phy@0 { |
| 109 |
compatible = "ethernet-phy-ieee802.3-c22"; |
| 110 |
reg = <0>; |
| 111 |
}; |
| 112 |
}; |
| 113 |
|
| 114 |
&mdio3 { |
| 115 |
status = "okay"; |
| 116 |
|
| 117 |
ethphy3: ethernet-phy@0 { |
| 118 |
compatible = "ethernet-phy-ieee802.3-c22"; |
| 119 |
reg = <0>; |
| 120 |
}; |
| 121 |
}; |
| 122 |
|
| 123 |
&mac0 { |
| 124 |
status = "okay"; |
| 125 |
|
| 126 |
phy-mode = "rgmii-rxid"; |
| 127 |
phy-handle = <ðphy0>; |
| 128 |
|
| 129 |
pinctrl-names = "default"; |
| 130 |
pinctrl-0 = <&pinctrl_rgmii1_default>; |
| 131 |
}; |
| 132 |
|
| 133 |
|
| 134 |
&mac1 { |
| 135 |
status = "okay"; |
| 136 |
|
| 137 |
phy-mode = "rgmii-rxid"; |
| 138 |
phy-handle = <ðphy1>; |
| 139 |
|
| 140 |
pinctrl-names = "default"; |
| 141 |
pinctrl-0 = <&pinctrl_rgmii2_default>; |
| 142 |
}; |
| 143 |
|
| 144 |
&mac2 { |
| 145 |
status = "okay"; |
| 146 |
|
| 147 |
phy-mode = "rgmii"; |
| 148 |
phy-handle = <ðphy2>; |
| 149 |
|
| 150 |
pinctrl-names = "default"; |
| 151 |
pinctrl-0 = <&pinctrl_rgmii3_default>; |
| 152 |
}; |
| 153 |
|
| 154 |
&mac3 { |
| 155 |
status = "okay"; |
| 156 |
|
| 157 |
phy-mode = "rgmii"; |
| 158 |
phy-handle = <ðphy3>; |
| 159 |
|
| 160 |
pinctrl-names = "default"; |
| 161 |
pinctrl-0 = <&pinctrl_rgmii4_default>; |
| 162 |
}; |
| 163 |
|
| 164 |
&emmc_controller { |
| 165 |
status = "okay"; |
| 166 |
}; |
| 167 |
|
| 168 |
&emmc { |
| 169 |
non-removable; |
| 170 |
bus-width = <4>; |
| 171 |
max-frequency = <100000000>; |
| 172 |
clk-phase-mmc-hs200 = <9>, <225>; |
| 173 |
}; |
| 174 |
|
| 175 |
&rtc { |
| 176 |
status = "okay"; |
| 177 |
}; |
| 178 |
|
| 179 |
&fmc { |
| 180 |
status = "okay"; |
| 181 |
flash@0 { |
| 182 |
status = "okay"; |
| 183 |
m25p,fast-read; |
| 184 |
label = "bmc"; |
| 185 |
spi-rx-bus-width = <4>; |
| 186 |
spi-max-frequency = <50000000>; |
| 187 |
#include "openbmc-flash-layout-64.dtsi" |
| 188 |
}; |
| 189 |
}; |
| 190 |
|
| 191 |
&spi1 { |
| 192 |
status = "okay"; |
| 193 |
pinctrl-names = "default"; |
| 194 |
pinctrl-0 = <&pinctrl_spi1_default>; |
| 195 |
|
| 196 |
flash@0 { |
| 197 |
status = "okay"; |
| 198 |
m25p,fast-read; |
| 199 |
label = "pnor"; |
| 200 |
spi-rx-bus-width = <4>; |
| 201 |
spi-max-frequency = <100000000>; |
| 202 |
}; |
| 203 |
}; |
| 204 |
|
| 205 |
&uart5 { |
| 206 |
// Workaround for A0 |
| 207 |
compatible = "snps,dw-apb-uart"; |
| 208 |
/delete-property/ no-loopback-test; |
| 209 |
}; |
| 210 |
|
| 211 |
&i2c0 { |
| 212 |
status = "okay"; |
| 213 |
}; |
| 214 |
|
| 215 |
&i2c1 { |
| 216 |
status = "okay"; |
| 217 |
}; |
| 218 |
|
| 219 |
&i2c2 { |
| 220 |
status = "okay"; |
| 221 |
}; |
| 222 |
|
| 223 |
&i2c3 { |
| 224 |
status = "okay"; |
| 225 |
}; |
| 226 |
|
| 227 |
&i2c4 { |
| 228 |
status = "okay"; |
| 229 |
}; |
| 230 |
|
| 231 |
&i2c5 { |
| 232 |
status = "okay"; |
| 233 |
}; |
| 234 |
|
| 235 |
&i2c6 { |
| 236 |
status = "okay"; |
| 237 |
}; |
| 238 |
|
| 239 |
&i2c7 { |
| 240 |
status = "okay"; |
| 241 |
|
| 242 |
temp@2e { |
| 243 |
compatible = "adi,adt7490"; |
| 244 |
reg = <0x2e>; |
| 245 |
}; |
| 246 |
|
| 247 |
eeprom@50 { |
| 248 |
compatible = "atmel,24c08"; |
| 249 |
reg = <0x50>; |
| 250 |
pagesize = <16>; |
| 251 |
}; |
| 252 |
}; |
| 253 |
|
| 254 |
&i2c8 { |
| 255 |
status = "okay"; |
| 256 |
|
| 257 |
lm75@4d { |
| 258 |
compatible = "national,lm75"; |
| 259 |
reg = <0x4d>; |
| 260 |
}; |
| 261 |
}; |
| 262 |
|
| 263 |
&i2c9 { |
| 264 |
status = "okay"; |
| 265 |
}; |
| 266 |
|
| 267 |
&i2c12 { |
| 268 |
status = "okay"; |
| 269 |
}; |
| 270 |
|
| 271 |
&i2c13 { |
| 272 |
status = "okay"; |
| 273 |
}; |
| 274 |
|
| 275 |
&i2c14 { |
| 276 |
status = "okay"; |
| 277 |
}; |
| 278 |
|
| 279 |
&i2c15 { |
| 280 |
status = "okay"; |
| 281 |
}; |
| 282 |
|
| 283 |
&fsim0 { |
| 284 |
status = "okay"; |
| 285 |
}; |
| 286 |
|
| 287 |
&ehci1 { |
| 288 |
status = "okay"; |
| 289 |
}; |
| 290 |
|
| 291 |
&uhci { |
| 292 |
status = "okay"; |
| 293 |
}; |
| 294 |
|
| 295 |
&sdc { |
| 296 |
status = "okay"; |
| 297 |
}; |
| 298 |
|
| 299 |
/* |
| 300 |
* The signal voltage of sdhci0 and sdhci1 on AST2600-A2 EVB is able to be |
| 301 |
* toggled by GPIO pins. |
| 302 |
* In the reference design, GPIOV0 of AST2600-A2 EVB is connected to the |
| 303 |
* power load switch that provides 3.3v to sdhci0 vdd, GPIOV1 is connected to |
| 304 |
* a 1.8v and a 3.3v power load switch that provides signal voltage to |
| 305 |
* sdhci0 bus. |
| 306 |
* If GPIOV0 is active high, sdhci0 is enabled, otherwise, sdhci0 is disabled. |
| 307 |
* If GPIOV1 is active high, 3.3v power load switch is enabled, sdhci0 signal |
| 308 |
* voltage is 3.3v, otherwise, 1.8v power load switch will be enabled, |
| 309 |
* sdhci0 signal voltage becomes 1.8v. |
| 310 |
* AST2600-A2 EVB also supports toggling signal voltage for sdhci1. |
| 311 |
* The design is the same as sdhci0, it uses GPIOV2 as power-gpio and GPIOV3 |
| 312 |
* as power-switch-gpio. |
| 313 |
*/ |
| 314 |
&sdhci0 { |
| 315 |
status = "okay"; |
| 316 |
bus-width = <4>; |
| 317 |
max-frequency = <100000000>; |
| 318 |
sdhci-caps-mask = <0x7 0x0>; |
| 319 |
wp-inverted; |
| 320 |
vmmc-supply = <&vcc_sdhci0>; |
| 321 |
vqmmc-supply = <&vccq_sdhci0>; |
| 322 |
clk-phase-sd-hs = <7>, <200>; |
| 323 |
}; |
| 324 |
|
| 325 |
&sdhci1 { |
| 326 |
status = "okay"; |
| 327 |
bus-width = <4>; |
| 328 |
max-frequency = <100000000>; |
| 329 |
sdhci-caps-mask = <0x7 0x0>; |
| 330 |
wp-inverted; |
| 331 |
vmmc-supply = <&vcc_sdhci1>; |
| 332 |
vqmmc-supply = <&vccq_sdhci1>; |
| 333 |
clk-phase-sd-hs = <7>, <200>; |
| 334 |
}; |
| 335 |
|
| 336 |
&vhub { |
| 337 |
status = "okay"; |
| 338 |
pinctrl-names = "default"; |
| 339 |
}; |
| 340 |
|
| 341 |
&video { |
| 342 |
status = "okay"; |
| 343 |
memory-region = <&video_engine_memory>; |
| 344 |
}; |
| 345 |
|
| 346 |
&gfx { |
| 347 |
status = "okay"; |
| 348 |
memory-region = <&gfx_memory>; |
| 349 |
}; |