1// SPDX-License-Identifier: GPL-2.0+ 2/dts-v1/; 3#include "aspeed-g5.dtsi" 4#include <dt-bindings/gpio/aspeed-gpio.h> 5 6/ { 7 model = "Romulus BMC"; 8 compatible = "ibm,romulus-bmc", "aspeed,ast2500"; 9 10 chosen { 11 stdout-path = &uart5; 12 bootargs = "console=ttyS4,115200 earlycon"; 13 }; 14 15 memory@80000000 { 16 reg = <0x80000000 0x20000000>; 17 }; 18 19 reserved-memory { 20 #address-cells = <1>; 21 #size-cells = <1>; 22 ranges; 23 24 vga_memory: framebuffer@9f000000 { 25 no-map; 26 reg = <0x9f000000 0x01000000>; /* 16M */ 27 }; 28 29 flash_memory: region@98000000 { 30 no-map; 31 reg = <0x98000000 0x04000000>; /* 64M */ 32 }; 33 34 coldfire_memory: codefire_memory@9ef00000 { 35 reg = <0x9ef00000 0x00100000>; 36 no-map; 37 }; 38 39 gfx_memory: framebuffer { 40 size = <0x01000000>; 41 alignment = <0x01000000>; 42 compatible = "shared-dma-pool"; 43 reusable; 44 }; 45 46 video_engine_memory: jpegbuffer { 47 size = <0x02000000>; /* 32M */ 48 alignment = <0x01000000>; 49 compatible = "shared-dma-pool"; 50 reusable; 51 }; 52 }; 53 54 leds { 55 compatible = "gpio-leds"; 56 57 fault { 58 gpios = <&gpio ASPEED_GPIO(N, 2) GPIO_ACTIVE_LOW>; 59 }; 60 61 identify { 62 gpios = <&gpio ASPEED_GPIO(N, 4) GPIO_ACTIVE_HIGH>; 63 }; 64 65 power { 66 gpios = <&gpio ASPEED_GPIO(R, 5) GPIO_ACTIVE_LOW>; 67 }; 68 }; 69 70 fsi: gpio-fsi { 71 compatible = "aspeed,ast2500-cf-fsi-master", "fsi-master"; 72 #address-cells = <2>; 73 #size-cells = <0>; 74 no-gpio-delays; 75 76 memory-region = <&coldfire_memory>; 77 aspeed,sram = <&sram>; 78 aspeed,cvic = <&cvic>; 79 80 clock-gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>; 81 data-gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_HIGH>; 82 mux-gpios = <&gpio ASPEED_GPIO(A, 6) GPIO_ACTIVE_HIGH>; 83 enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>; 84 trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>; 85 }; 86 87 gpio-keys { 88 compatible = "gpio-keys"; 89 90 event-checkstop { 91 label = "checkstop"; 92 gpios = <&gpio ASPEED_GPIO(J, 2) GPIO_ACTIVE_LOW>; 93 linux,code = <ASPEED_GPIO(J, 2)>; 94 }; 95 96 id-button { 97 label = "id-button"; 98 gpios = <&gpio ASPEED_GPIO(Q, 7) GPIO_ACTIVE_LOW>; 99 linux,code = <ASPEED_GPIO(Q, 7)>; 100 }; 101 }; 102 103 iio-hwmon-battery { 104 compatible = "iio-hwmon"; 105 io-channels = <&adc 12>; 106 }; 107}; 108 109&fmc { 110 status = "okay"; 111 flash@0 { 112 status = "okay"; 113 m25p,fast-read; 114 label = "bmc"; 115 spi-max-frequency = <50000000>; 116#include "openbmc-flash-layout.dtsi" 117 }; 118}; 119 120&spi1 { 121 status = "okay"; 122 pinctrl-names = "default"; 123 pinctrl-0 = <&pinctrl_spi1_default>; 124 125 flash@0 { 126 status = "okay"; 127 m25p,fast-read; 128 label = "pnor"; 129 spi-max-frequency = <100000000>; 130 }; 131}; 132 133&lpc_ctrl { 134 status = "okay"; 135 memory-region = <&flash_memory>; 136 flash = <&spi1>; 137}; 138 139&uart1 { 140 /* Rear RS-232 connector */ 141 status = "okay"; 142 143 pinctrl-names = "default"; 144 pinctrl-0 = <&pinctrl_txd1_default 145 &pinctrl_rxd1_default 146 &pinctrl_nrts1_default 147 &pinctrl_ndtr1_default 148 &pinctrl_ndsr1_default 149 &pinctrl_ncts1_default 150 &pinctrl_ndcd1_default 151 &pinctrl_nri1_default>; 152}; 153 154&uart5 { 155 status = "okay"; 156}; 157 158&mac0 { 159 status = "okay"; 160 161 use-ncsi; 162 163 pinctrl-names = "default"; 164 pinctrl-0 = <&pinctrl_rmii1_default>; 165 clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>, 166 <&syscon ASPEED_CLK_MAC1RCLK>; 167 clock-names = "MACCLK", "RCLK"; 168}; 169 170&i2c1 { 171 status = "okay"; 172}; 173 174&i2c2 { 175 status = "okay"; 176}; 177 178&i2c3 { 179 status = "okay"; 180}; 181 182&i2c4 { 183 status = "okay"; 184}; 185 186&i2c5 { 187 status = "okay"; 188}; 189 190&i2c6 { 191 /* PCIe slot 1 (x8) */ 192 status = "okay"; 193}; 194 195&i2c7 { 196 /* PCIe slot 2 (x16) */ 197 status = "okay"; 198}; 199 200&i2c8 { 201 /* PCIe slot 3 (x16) */ 202 status = "okay"; 203}; 204 205&i2c9 { 206 /* PCIe slot 4 (x16) */ 207 status = "okay"; 208}; 209 210&i2c10 { 211 /* PCIe slot 5 (x8) */ 212 status = "okay"; 213}; 214 215&i2c11 { 216 status = "okay"; 217 218 rtc@32 { 219 compatible = "epson,rx8900"; 220 reg = <0x32>; 221 }; 222}; 223 224&i2c12 { 225 status = "okay"; 226 227 w83773g@4c { 228 compatible = "nuvoton,w83773g"; 229 reg = <0x4c>; 230 }; 231}; 232 233&gpio { 234 gpio-line-names = 235 /*A0-A7*/ "","cfam-reset","","","","","fsi-mux","", 236 /*B0-B7*/ "","","","","","","","", 237 /*C0-C7*/ "","","","","","","","", 238 /*D0-D7*/ "fsi-enable","","","nic_func_mode0","nic_func_mode1","","","", 239 /*E0-E7*/ "","","","","","","","", 240 /*F0-F7*/ "","","","","","","","", 241 /*G0-G7*/ "","","","","","","","", 242 /*H0-H7*/ "","","","","","","","", 243 /*I0-I7*/ "","","","power-button","","","","", 244 /*J0-J7*/ "","","checkstop","","","","","", 245 /*K0-K7*/ "","","","","","","","", 246 /*L0-L7*/ "","","","","","","","", 247 /*M0-M7*/ "","","","","","","","", 248 /*N0-N7*/ "","","led-fault","", 249 "led-identify","","","", 250 /*O0-O7*/ "","","","","","","","", 251 /*P0-P7*/ "","","","","","","","", 252 /*Q0-Q7*/ "","","","","","","","id-button", 253 /*R0-R7*/ "","","fsi-trans","","","led-power","","", 254 /*S0-S7*/ "","","","","","","","seq_cont", 255 /*T0-T7*/ "","","","","","","","", 256 /*U0-U7*/ "","","","","","","","", 257 /*V0-V7*/ "","","","","","","","", 258 /*W0-W7*/ "","","","","","","","", 259 /*X0-X7*/ "","","","","","","","", 260 /*Y0-Y7*/ "","","","","","","","", 261 /*Z0-Z7*/ "","","","","","","","", 262 /*AA0-AA7*/ "fsi-clock","","fsi-data","","","","","", 263 /*AB0-AB7*/ "","","","","","","","", 264 /*AC0-AC7*/ "","","","","","","",""; 265 266 nic_func_mode0 { 267 gpio-hog; 268 gpios = <ASPEED_GPIO(D, 3) GPIO_ACTIVE_HIGH>; 269 output-low; 270 }; 271 nic_func_mode1 { 272 gpio-hog; 273 gpios = <ASPEED_GPIO(D, 4) GPIO_ACTIVE_HIGH>; 274 output-low; 275 }; 276 seq_cont { 277 gpio-hog; 278 gpios = <ASPEED_GPIO(S, 7) GPIO_ACTIVE_HIGH>; 279 output-low; 280 }; 281}; 282 283&vuart { 284 status = "okay"; 285}; 286 287&gfx { 288 status = "okay"; 289 memory-region = <&gfx_memory>; 290}; 291 292&pwm_tacho { 293 status = "okay"; 294 pinctrl-names = "default"; 295 pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default>; 296 297 fan@0 { 298 reg = <0x00>; 299 aspeed,fan-tach-ch = /bits/ 8 <0x08>; 300 }; 301 302 fan@1 { 303 reg = <0x00>; 304 aspeed,fan-tach-ch = /bits/ 8 <0x09>; 305 }; 306 307 fan@2 { 308 reg = <0x01>; 309 aspeed,fan-tach-ch = /bits/ 8 <0x0a>; 310 }; 311 312 fan@3 { 313 reg = <0x01>; 314 aspeed,fan-tach-ch = /bits/ 8 <0x0b>; 315 }; 316 317 fan@4 { 318 reg = <0x00>; 319 aspeed,fan-tach-ch = /bits/ 8 <0x0c>; 320 }; 321 322 fan@5 { 323 reg = <0x00>; 324 aspeed,fan-tach-ch = /bits/ 8 <0x0d>; 325 }; 326 327 fan@6 { 328 reg = <0x01>; 329 aspeed,fan-tach-ch = /bits/ 8 <0x0e>; 330 }; 331}; 332 333&ibt { 334 status = "okay"; 335}; 336 337&vhub { 338 status = "okay"; 339}; 340 341&adc { 342 status = "okay"; 343}; 344 345&video { 346 status = "okay"; 347 memory-region = <&video_engine_memory>; 348}; 349 350#include "ibm-power9-dual.dtsi" 351