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"; 72 #address-cells = <2>; 73 #size-cells = <0>; 74 75 memory-region = <&coldfire_memory>; 76 aspeed,sram = <&sram>; 77 aspeed,cvic = <&cvic>; 78 79 clock-gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>; 80 data-gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_HIGH>; 81 mux-gpios = <&gpio ASPEED_GPIO(A, 6) GPIO_ACTIVE_HIGH>; 82 enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>; 83 trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>; 84 }; 85 86 gpio-keys { 87 compatible = "gpio-keys"; 88 89 event-checkstop { 90 label = "checkstop"; 91 gpios = <&gpio ASPEED_GPIO(J, 2) GPIO_ACTIVE_LOW>; 92 linux,code = <ASPEED_GPIO(J, 2)>; 93 }; 94 95 id-button { 96 label = "id-button"; 97 gpios = <&gpio ASPEED_GPIO(Q, 7) GPIO_ACTIVE_LOW>; 98 linux,code = <ASPEED_GPIO(Q, 7)>; 99 }; 100 }; 101 102 iio-hwmon-battery { 103 compatible = "iio-hwmon"; 104 io-channels = <&adc 12>; 105 }; 106}; 107 108&fmc { 109 status = "okay"; 110 flash@0 { 111 status = "okay"; 112 m25p,fast-read; 113 label = "bmc"; 114 spi-max-frequency = <50000000>; 115#include "openbmc-flash-layout.dtsi" 116 }; 117}; 118 119&spi1 { 120 status = "okay"; 121 pinctrl-names = "default"; 122 pinctrl-0 = <&pinctrl_spi1_default>; 123 124 flash@0 { 125 status = "okay"; 126 m25p,fast-read; 127 label = "pnor"; 128 spi-max-frequency = <100000000>; 129 }; 130}; 131 132&lpc_ctrl { 133 status = "okay"; 134 memory-region = <&flash_memory>; 135 flash = <&spi1>; 136}; 137 138&uart1 { 139 /* Rear RS-232 connector */ 140 status = "okay"; 141 142 pinctrl-names = "default"; 143 pinctrl-0 = <&pinctrl_txd1_default 144 &pinctrl_rxd1_default 145 &pinctrl_nrts1_default 146 &pinctrl_ndtr1_default 147 &pinctrl_ndsr1_default 148 &pinctrl_ncts1_default 149 &pinctrl_ndcd1_default 150 &pinctrl_nri1_default>; 151}; 152 153&uart5 { 154 status = "okay"; 155}; 156 157&mac0 { 158 status = "okay"; 159 160 use-ncsi; 161 162 pinctrl-names = "default"; 163 pinctrl-0 = <&pinctrl_rmii1_default>; 164 clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>, 165 <&syscon ASPEED_CLK_MAC1RCLK>; 166 clock-names = "MACCLK", "RCLK"; 167}; 168 169&i2c1 { 170 status = "okay"; 171}; 172 173&i2c2 { 174 status = "okay"; 175}; 176 177&i2c3 { 178 status = "okay"; 179}; 180 181&i2c4 { 182 status = "okay"; 183}; 184 185&i2c5 { 186 status = "okay"; 187}; 188 189&i2c6 { 190 /* PCIe slot 1 (x8) */ 191 status = "okay"; 192}; 193 194&i2c7 { 195 /* PCIe slot 2 (x16) */ 196 status = "okay"; 197}; 198 199&i2c8 { 200 /* PCIe slot 3 (x16) */ 201 status = "okay"; 202}; 203 204&i2c9 { 205 /* PCIe slot 4 (x16) */ 206 status = "okay"; 207}; 208 209&i2c10 { 210 /* PCIe slot 5 (x8) */ 211 status = "okay"; 212}; 213 214&i2c11 { 215 status = "okay"; 216 217 rtc@32 { 218 compatible = "epson,rx8900"; 219 reg = <0x32>; 220 }; 221}; 222 223&i2c12 { 224 status = "okay"; 225 226 w83773g@4c { 227 compatible = "nuvoton,w83773g"; 228 reg = <0x4c>; 229 }; 230}; 231 232&gpio { 233 gpio-line-names = 234 /*A0-A7*/ "","cfam-reset","","","","","fsi-mux","", 235 /*B0-B7*/ "","","","","","","","", 236 /*C0-C7*/ "","","","","","","","", 237 /*D0-D7*/ "fsi-enable","","","nic_func_mode0","nic_func_mode1","","","", 238 /*E0-E7*/ "","","","","","","","", 239 /*F0-F7*/ "","","","","","","","", 240 /*G0-G7*/ "","","","","","","","", 241 /*H0-H7*/ "","","","","","","","", 242 /*I0-I7*/ "","","","power-button","","","","", 243 /*J0-J7*/ "","","checkstop","","","","","", 244 /*K0-K7*/ "","","","","","","","", 245 /*L0-L7*/ "","","","","","","","", 246 /*M0-M7*/ "","","","","","","","", 247 /*N0-N7*/ "","","led-fault","", 248 "led-identify","","","", 249 /*O0-O7*/ "","","","","","","","", 250 /*P0-P7*/ "","","","","","","","", 251 /*Q0-Q7*/ "","","","","","","","id-button", 252 /*R0-R7*/ "","","fsi-trans","","","led-power","","", 253 /*S0-S7*/ "","","","","","","","seq_cont", 254 /*T0-T7*/ "","","","","","","","", 255 /*U0-U7*/ "","","","","","","","", 256 /*V0-V7*/ "","","","","","","","", 257 /*W0-W7*/ "","","","","","","","", 258 /*X0-X7*/ "","","","","","","","", 259 /*Y0-Y7*/ "","","","","","","","", 260 /*Z0-Z7*/ "","","","","","","","", 261 /*AA0-AA7*/ "fsi-clock","","fsi-data","","","","","", 262 /*AB0-AB7*/ "","","","","","","","", 263 /*AC0-AC7*/ "","","","","","","",""; 264 265 nic-func-mode0-hog { 266 gpio-hog; 267 gpios = <ASPEED_GPIO(D, 3) GPIO_ACTIVE_HIGH>; 268 output-low; 269 }; 270 nic-func-mode1-hog { 271 gpio-hog; 272 gpios = <ASPEED_GPIO(D, 4) GPIO_ACTIVE_HIGH>; 273 output-low; 274 }; 275 seq-cont-hog { 276 gpio-hog; 277 gpios = <ASPEED_GPIO(S, 7) GPIO_ACTIVE_HIGH>; 278 output-low; 279 }; 280}; 281 282&vuart { 283 status = "okay"; 284}; 285 286&gfx { 287 status = "okay"; 288 memory-region = <&gfx_memory>; 289}; 290 291&pwm_tacho { 292 status = "okay"; 293 pinctrl-names = "default"; 294 pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default>; 295 296 fan@0 { 297 reg = <0x00>; 298 aspeed,fan-tach-ch = /bits/ 8 <0x08>; 299 }; 300 301 fan@1 { 302 reg = <0x00>; 303 aspeed,fan-tach-ch = /bits/ 8 <0x09>; 304 }; 305 306 fan@2 { 307 reg = <0x01>; 308 aspeed,fan-tach-ch = /bits/ 8 <0x0a>; 309 }; 310 311 fan@3 { 312 reg = <0x01>; 313 aspeed,fan-tach-ch = /bits/ 8 <0x0b>; 314 }; 315 316 fan@4 { 317 reg = <0x00>; 318 aspeed,fan-tach-ch = /bits/ 8 <0x0c>; 319 }; 320 321 fan@5 { 322 reg = <0x00>; 323 aspeed,fan-tach-ch = /bits/ 8 <0x0d>; 324 }; 325 326 fan@6 { 327 reg = <0x01>; 328 aspeed,fan-tach-ch = /bits/ 8 <0x0e>; 329 }; 330}; 331 332&ibt { 333 status = "okay"; 334}; 335 336&vhub { 337 status = "okay"; 338}; 339 340&adc { 341 status = "okay"; 342}; 343 344&video { 345 status = "okay"; 346 memory-region = <&video_engine_memory>; 347}; 348 349#include "ibm-power9-dual.dtsi" 350