0001 // SPDX-License-Identifier: GPL-2.0+
0002 /dts-v1/;
0003 #include "aspeed-g5.dtsi"
0004 #include <dt-bindings/gpio/aspeed-gpio.h>
0005
0006 / {
0007 model = "Romulus BMC";
0008 compatible = "ibm,romulus-bmc", "aspeed,ast2500";
0009
0010 chosen {
0011 stdout-path = &uart5;
0012 bootargs = "console=ttyS4,115200 earlycon";
0013 };
0014
0015 memory@80000000 {
0016 reg = <0x80000000 0x20000000>;
0017 };
0018
0019 reserved-memory {
0020 #address-cells = <1>;
0021 #size-cells = <1>;
0022 ranges;
0023
0024 vga_memory: framebuffer@9f000000 {
0025 no-map;
0026 reg = <0x9f000000 0x01000000>; /* 16M */
0027 };
0028
0029 flash_memory: region@98000000 {
0030 no-map;
0031 reg = <0x98000000 0x04000000>; /* 64M */
0032 };
0033
0034 coldfire_memory: codefire_memory@9ef00000 {
0035 reg = <0x9ef00000 0x00100000>;
0036 no-map;
0037 };
0038
0039 gfx_memory: framebuffer {
0040 size = <0x01000000>;
0041 alignment = <0x01000000>;
0042 compatible = "shared-dma-pool";
0043 reusable;
0044 };
0045
0046 video_engine_memory: jpegbuffer {
0047 size = <0x02000000>; /* 32M */
0048 alignment = <0x01000000>;
0049 compatible = "shared-dma-pool";
0050 reusable;
0051 };
0052 };
0053
0054 leds {
0055 compatible = "gpio-leds";
0056
0057 fault {
0058 gpios = <&gpio ASPEED_GPIO(N, 2) GPIO_ACTIVE_LOW>;
0059 };
0060
0061 identify {
0062 gpios = <&gpio ASPEED_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
0063 };
0064
0065 power {
0066 gpios = <&gpio ASPEED_GPIO(R, 5) GPIO_ACTIVE_LOW>;
0067 };
0068 };
0069
0070 fsi: gpio-fsi {
0071 compatible = "aspeed,ast2500-cf-fsi-master", "fsi-master";
0072 #address-cells = <2>;
0073 #size-cells = <0>;
0074 no-gpio-delays;
0075
0076 memory-region = <&coldfire_memory>;
0077 aspeed,sram = <&sram>;
0078 aspeed,cvic = <&cvic>;
0079
0080 clock-gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>;
0081 data-gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_HIGH>;
0082 mux-gpios = <&gpio ASPEED_GPIO(A, 6) GPIO_ACTIVE_HIGH>;
0083 enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
0084 trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
0085 };
0086
0087 gpio-keys {
0088 compatible = "gpio-keys";
0089
0090 event-checkstop {
0091 label = "checkstop";
0092 gpios = <&gpio ASPEED_GPIO(J, 2) GPIO_ACTIVE_LOW>;
0093 linux,code = <ASPEED_GPIO(J, 2)>;
0094 };
0095
0096 id-button {
0097 label = "id-button";
0098 gpios = <&gpio ASPEED_GPIO(Q, 7) GPIO_ACTIVE_LOW>;
0099 linux,code = <ASPEED_GPIO(Q, 7)>;
0100 };
0101 };
0102
0103 iio-hwmon-battery {
0104 compatible = "iio-hwmon";
0105 io-channels = <&adc 12>;
0106 };
0107 };
0108
0109 &fmc {
0110 status = "okay";
0111 flash@0 {
0112 status = "okay";
0113 m25p,fast-read;
0114 label = "bmc";
0115 spi-max-frequency = <50000000>;
0116 #include "openbmc-flash-layout.dtsi"
0117 };
0118 };
0119
0120 &spi1 {
0121 status = "okay";
0122 pinctrl-names = "default";
0123 pinctrl-0 = <&pinctrl_spi1_default>;
0124
0125 flash@0 {
0126 status = "okay";
0127 m25p,fast-read;
0128 label = "pnor";
0129 spi-max-frequency = <100000000>;
0130 };
0131 };
0132
0133 &lpc_ctrl {
0134 status = "okay";
0135 memory-region = <&flash_memory>;
0136 flash = <&spi1>;
0137 };
0138
0139 &uart1 {
0140 /* Rear RS-232 connector */
0141 status = "okay";
0142
0143 pinctrl-names = "default";
0144 pinctrl-0 = <&pinctrl_txd1_default
0145 &pinctrl_rxd1_default
0146 &pinctrl_nrts1_default
0147 &pinctrl_ndtr1_default
0148 &pinctrl_ndsr1_default
0149 &pinctrl_ncts1_default
0150 &pinctrl_ndcd1_default
0151 &pinctrl_nri1_default>;
0152 };
0153
0154 &uart5 {
0155 status = "okay";
0156 };
0157
0158 &mac0 {
0159 status = "okay";
0160
0161 use-ncsi;
0162
0163 pinctrl-names = "default";
0164 pinctrl-0 = <&pinctrl_rmii1_default>;
0165 clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
0166 <&syscon ASPEED_CLK_MAC1RCLK>;
0167 clock-names = "MACCLK", "RCLK";
0168 };
0169
0170 &i2c1 {
0171 status = "okay";
0172 };
0173
0174 &i2c2 {
0175 status = "okay";
0176 };
0177
0178 &i2c3 {
0179 status = "okay";
0180 };
0181
0182 &i2c4 {
0183 status = "okay";
0184 };
0185
0186 &i2c5 {
0187 status = "okay";
0188 };
0189
0190 &i2c6 {
0191 /* PCIe slot 1 (x8) */
0192 status = "okay";
0193 };
0194
0195 &i2c7 {
0196 /* PCIe slot 2 (x16) */
0197 status = "okay";
0198 };
0199
0200 &i2c8 {
0201 /* PCIe slot 3 (x16) */
0202 status = "okay";
0203 };
0204
0205 &i2c9 {
0206 /* PCIe slot 4 (x16) */
0207 status = "okay";
0208 };
0209
0210 &i2c10 {
0211 /* PCIe slot 5 (x8) */
0212 status = "okay";
0213 };
0214
0215 &i2c11 {
0216 status = "okay";
0217
0218 rtc@32 {
0219 compatible = "epson,rx8900";
0220 reg = <0x32>;
0221 };
0222 };
0223
0224 &i2c12 {
0225 status = "okay";
0226
0227 w83773g@4c {
0228 compatible = "nuvoton,w83773g";
0229 reg = <0x4c>;
0230 };
0231 };
0232
0233 &gpio {
0234 gpio-line-names =
0235 /*A0-A7*/ "","cfam-reset","","","","","fsi-mux","",
0236 /*B0-B7*/ "","","","","","","","",
0237 /*C0-C7*/ "","","","","","","","",
0238 /*D0-D7*/ "fsi-enable","","","nic_func_mode0","nic_func_mode1","","","",
0239 /*E0-E7*/ "","","","","","","","",
0240 /*F0-F7*/ "","","","","","","","",
0241 /*G0-G7*/ "","","","","","","","",
0242 /*H0-H7*/ "","","","","","","","",
0243 /*I0-I7*/ "","","","power-button","","","","",
0244 /*J0-J7*/ "","","checkstop","","","","","",
0245 /*K0-K7*/ "","","","","","","","",
0246 /*L0-L7*/ "","","","","","","","",
0247 /*M0-M7*/ "","","","","","","","",
0248 /*N0-N7*/ "","","led-fault","",
0249 "led-identify","","","",
0250 /*O0-O7*/ "","","","","","","","",
0251 /*P0-P7*/ "","","","","","","","",
0252 /*Q0-Q7*/ "","","","","","","","id-button",
0253 /*R0-R7*/ "","","fsi-trans","","","led-power","","",
0254 /*S0-S7*/ "","","","","","","","seq_cont",
0255 /*T0-T7*/ "","","","","","","","",
0256 /*U0-U7*/ "","","","","","","","",
0257 /*V0-V7*/ "","","","","","","","",
0258 /*W0-W7*/ "","","","","","","","",
0259 /*X0-X7*/ "","","","","","","","",
0260 /*Y0-Y7*/ "","","","","","","","",
0261 /*Z0-Z7*/ "","","","","","","","",
0262 /*AA0-AA7*/ "fsi-clock","","fsi-data","","","","","",
0263 /*AB0-AB7*/ "","","","","","","","",
0264 /*AC0-AC7*/ "","","","","","","","";
0265
0266 nic_func_mode0 {
0267 gpio-hog;
0268 gpios = <ASPEED_GPIO(D, 3) GPIO_ACTIVE_HIGH>;
0269 output-low;
0270 };
0271 nic_func_mode1 {
0272 gpio-hog;
0273 gpios = <ASPEED_GPIO(D, 4) GPIO_ACTIVE_HIGH>;
0274 output-low;
0275 };
0276 seq_cont {
0277 gpio-hog;
0278 gpios = <ASPEED_GPIO(S, 7) GPIO_ACTIVE_HIGH>;
0279 output-low;
0280 };
0281 };
0282
0283 &vuart {
0284 status = "okay";
0285 };
0286
0287 &gfx {
0288 status = "okay";
0289 memory-region = <&gfx_memory>;
0290 };
0291
0292 &pinctrl {
0293 aspeed,external-nodes = <&gfx &lhc>;
0294 };
0295
0296 &pwm_tacho {
0297 status = "okay";
0298 pinctrl-names = "default";
0299 pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default>;
0300
0301 fan@0 {
0302 reg = <0x00>;
0303 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
0304 };
0305
0306 fan@1 {
0307 reg = <0x00>;
0308 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
0309 };
0310
0311 fan@2 {
0312 reg = <0x01>;
0313 aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
0314 };
0315
0316 fan@3 {
0317 reg = <0x01>;
0318 aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
0319 };
0320
0321 fan@4 {
0322 reg = <0x00>;
0323 aspeed,fan-tach-ch = /bits/ 8 <0x0c>;
0324 };
0325
0326 fan@5 {
0327 reg = <0x00>;
0328 aspeed,fan-tach-ch = /bits/ 8 <0x0d>;
0329 };
0330
0331 fan@6 {
0332 reg = <0x01>;
0333 aspeed,fan-tach-ch = /bits/ 8 <0x0e>;
0334 };
0335 };
0336
0337 &ibt {
0338 status = "okay";
0339 };
0340
0341 &vhub {
0342 status = "okay";
0343 };
0344
0345 &adc {
0346 status = "okay";
0347 };
0348
0349 &video {
0350 status = "okay";
0351 memory-region = <&video_engine_memory>;
0352 };
0353
0354 #include "ibm-power9-dual.dtsi"