1// SPDX-License-Identifier: GPL-2.0+ 2/dts-v1/; 3 4#include "aspeed-g5.dtsi" 5#include <dt-bindings/gpio/aspeed-gpio.h> 6#include <dt-bindings/i2c/i2c.h> 7#include <dt-bindings/interrupt-controller/irq.h> 8 9/{ 10 model = "ASRock SPC621D8HM3 BMC"; 11 compatible = "asrock,spc621d8hm3-bmc", "aspeed,ast2500"; 12 13 aliases { 14 serial4 = &uart5; 15 16 i2c20 = &i2c1mux0ch0; 17 i2c21 = &i2c1mux0ch1; 18 }; 19 20 chosen { 21 stdout-path = &uart5; 22 bootargs = "console=tty0 console=ttyS4,115200 earlycon"; 23 }; 24 25 memory@80000000 { 26 reg = <0x80000000 0x20000000>; 27 }; 28 29 leds { 30 compatible = "gpio-leds"; 31 32 heartbeat { 33 gpios = <&gpio ASPEED_GPIO(H, 6) GPIO_ACTIVE_LOW>; 34 linux,default-trigger = "timer"; 35 }; 36 37 system-fault { 38 gpios = <&gpio ASPEED_GPIO(Z, 2) GPIO_ACTIVE_LOW>; 39 panic-indicator; 40 }; 41 }; 42 43 iio-hwmon { 44 compatible = "iio-hwmon"; 45 io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, 46 <&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>, 47 <&adc 8>, <&adc 9>, <&adc 10>, <&adc 11>, 48 <&adc 12>, <&adc 13>, <&adc 14>, <&adc 15>; 49 }; 50}; 51 52&fmc { 53 status = "okay"; 54 flash@0 { 55 status = "okay"; 56 m25p,fast-read; 57 label = "bmc"; 58 spi-max-frequency = <50000000>; /* 50 MHz */ 59#include "openbmc-flash-layout-64.dtsi" 60 }; 61}; 62 63&uart5 { 64 status = "okay"; 65}; 66 67&vuart { 68 status = "okay"; 69 aspeed,lpc-io-reg = <0x2f8>; 70 aspeed,lpc-interrupts = <3 IRQ_TYPE_LEVEL_HIGH>; 71}; 72 73&mac0 { 74 status = "okay"; 75 76 pinctrl-names = "default"; 77 pinctrl-0 = <&pinctrl_rgmii1_default &pinctrl_mdio1_default>; 78 79 nvmem-cells = <ð0_macaddress>; 80 nvmem-cell-names = "mac-address"; 81}; 82 83&i2c0 { 84 status = "okay"; 85}; 86 87&i2c1 { 88 status = "okay"; 89 90 /* hardware monitor/thermal sensor */ 91 temperature-sensor@29 { 92 compatible = "nuvoton,nct7802"; 93 reg = <0x29>; 94 }; 95 96 /* motherboard temp sensor (TMP1, near BMC) */ 97 temperature-sensor@4c { 98 compatible = "nuvoton,w83773g"; 99 reg = <0x4c>; 100 }; 101 102 /* motherboard FRU eeprom */ 103 eeprom@50 { 104 compatible = "st,24c128", "atmel,24c128"; 105 #address-cells = <1>; 106 #size-cells = <1>; 107 reg = <0x50>; 108 pagesize = <16>; 109 110 eth0_macaddress: macaddress@3f80 { 111 reg = <0x3f80 6>; 112 }; 113 }; 114 115 /* M.2 slot smbus mux */ 116 i2c-mux@71 { 117 compatible = "nxp,pca9545"; 118 reg = <0x71>; 119 #address-cells = <1>; 120 #size-cells = <0>; 121 122 i2c1mux0ch0: i2c@0 { 123 #address-cells = <1>; 124 #size-cells = <0>; 125 reg = <0>; 126 }; 127 128 i2c1mux0ch1: i2c@1 { 129 #address-cells = <1>; 130 #size-cells = <0>; 131 reg = <1>; 132 }; 133 }; 134}; 135 136&i2c2 { 137 status = "okay"; 138}; 139 140&i2c3 { 141 status = "okay"; 142}; 143 144&i2c4 { 145 status = "okay"; 146}; 147 148&i2c5 { 149 status = "okay"; 150}; 151 152&i2c6 { 153 status = "okay"; 154}; 155 156&i2c7 { 157 status = "okay"; 158}; 159 160&i2c8 { 161 status = "okay"; 162}; 163 164&i2c9 { 165 status = "okay"; 166}; 167 168&i2c10 { 169 status = "okay"; 170}; 171 172&i2c11 { 173 status = "okay"; 174}; 175 176&i2c12 { 177 status = "okay"; 178}; 179 180&i2c13 { 181 status = "okay"; 182}; 183 184&video { 185 status = "okay"; 186}; 187 188&vhub { 189 status = "okay"; 190}; 191 192&lpc_ctrl { 193 status = "okay"; 194}; 195 196&lpc_snoop { 197 status = "okay"; 198 snoop-ports = <0x80>; 199}; 200 201&kcs3 { 202 status = "okay"; 203 aspeed,lpc-io-reg = <0xca2>; 204}; 205 206&peci0 { 207 status = "okay"; 208}; 209 210&pwm_tacho { 211 status = "okay"; 212 pinctrl-names = "default"; 213 pinctrl-0 = <&pinctrl_pwm0_default 214 &pinctrl_pwm2_default 215 &pinctrl_pwm3_default 216 &pinctrl_pwm4_default>; 217 218 fan@0 { 219 reg = <0x00>; 220 aspeed,fan-tach-ch = /bits/ 8 <0x00>; 221 }; 222 223 fan@2 { 224 reg = <0x02>; 225 aspeed,fan-tach-ch = /bits/ 8 <0x02>; 226 }; 227 228 fan@3 { 229 reg = <0x03>; 230 aspeed,fan-tach-ch = /bits/ 8 <0x03>; 231 }; 232 233 fan@4 { 234 reg = <0x04>; 235 aspeed,fan-tach-ch = /bits/ 8 <0x04>; 236 }; 237}; 238 239&gpio { 240 status = "okay"; 241 gpio-line-names = 242 /* A */ "LOCATORLED_STATUS_N", "LOCATORBTN_N", 243 "BMC_READY_N", "FM_SPD_DDRCPU_LVLSHFT_EN", 244 "", "", "", "", 245 /* B */ "NODE_ID_1", "NODE_ID_2", "PSU_FAN_FAIL_N", "", 246 "", "", "", "GPIO_RST", 247 /* C */ "", "", "", "", "", "", "", "", 248 /* D */ "FP_PWR_BTN_MUX_N", "FM_BMC_PWRBTN_OUT_N", 249 "FP_RST_BTN_N", "RST_BMC_RSTBTN_OUT_N", 250 "NMI_BTN_N", "BMC_NMI", 251 "", "", 252 /* E */ "", "", "", "FM_ME_RCVR_N", "", "", "", "", 253 /* F */ "BMC_SMB_SEL_N", "FM_CPU2_DISABLE_COD_N", 254 "FM_REMOTE_DEBUG_BMC_EN", "FM_CPU_ERR0_LVT3_EN", 255 "FM_CPU_ERR1_LVT3_EN", "FM_CPU_ERR2_LVT3_EN", 256 "FM_MEM_THERM_EVENT_CPU1_LVT3_N", "FM_MEM_THERM_EVENT_CPU2_LVT3_N", 257 /* G */ "HWM_BAT_EN", "", "BMC_PHYRST_N", "FM_BIOS_SPI_BMC_CTRL", 258 "BMC_ALERT1_N", "BMC_ALERT2_N", "BMC_ALERT3_N", "IRQ_SML0_ALERT_N", 259 /* H */ "BMC_SMB_PRESENT_1_N", "FM_PCH_CORE_VID_0", "FM_PCH_CORE_VID_1", "", 260 "FM_MFG_MODE", "BMC_RTCRST", "BMC_HB_LED_N", "BMC_CASEOPEN", 261 /* I */ "IRQ_PVDDQ_ABCD_CPU1_VRHOT_LVC3_N", "IRQ_PVDDQ_ABCD_CPU2_VRHOT_LVC3_N", 262 "IRQ_PVDDQ_EFGH_CPU1_VRHOT_LVC3_N", "IRQ_PVDDQ_EFGH_CPU2_VRHOT_LVC3_N", 263 "", "", "", "", 264 /* J */ "", "", "", "", "", "", "", "", 265 /* K */ "", "", "", "", "", "", "", "", 266 /* L */ "", "", "", "", "", "", "", "", 267 /* M */ "FM_PVCCIN_CPU1_PWR_IN_ALERT_N", "FM_PVCCIN_CPU2_PWR_IN_ALERT_N", 268 "IRQ_PVCCIN_CPU1_VRHOT_LVC3_N", "IRQ_PVCCIN_CPU2_VRHOT_LVC3_N", 269 "FM_CPU1_PROCHOT_BMC_LVC3_N", "", 270 "FM_CPU1_MEMHOT_OUT_N", "FM_CPU2_MEMHOT_OUT_N", 271 /* N */ "", "", "", "", "", "", "", "", 272 /* O */ "", "", "", "", "", "", "", "", 273 /* P */ "", "", "", "", "", "", "", "", 274 /* Q */ "", "", "", "", "", "", "RST_GLB_RST_WARN_N", "PCIE_WAKE_N", 275 /* R */ "", "", "FM_BMC_SUSACK_N", "FM_BMC_EUP_LOT6_N", 276 "", "FM_BMC_PCH_SCI_LPC_N", "", "", 277 /* S */ "FM_DBP_PRESENT_N", "FM_CPU2_SKTOCC_LCT3_N", 278 "FM_CPU1_FIVR_FAULT_LVT3", "FM_CPU2_FIVR_FAULT_LVT3", 279 "", "", "", "", 280 /* T */ "", "", "", "", "", "", "", "", 281 /* U */ "", "", "", "", "", "", "", "", 282 /* V */ "", "", "", "", "", "", "", "", 283 /* W */ "", "", "", "", "", "", "", "", 284 /* X */ "", "", "", "", "", "", "", "", 285 /* Y */ "FM_SLPS3_N", "FM_SLPS4_N", "", "FM_BMC_ONCTL_N_PLD", 286 "", "", "", "", 287 /* Z */ "FM_CPU_MSMI_CATERR_LVT3_N", "", "SYSTEM_FAULT_LED_N", "BMC_THROTTLE_N", 288 "", "", "", "", 289 /* AA */ "FM_CPU1_THERMTRIP_LATCH_LVT3_N", "FM_CPU2_THERMTRIP_LATCH_LVT3_N", 290 "FM_BIOS_POST_COMPLT_N", "DBP_BMC_SYSPWROK", 291 "", "IRQ_SML0_ALERT_MUX_N", 292 "IRQ_SMI_ACTIVE_N", "IRQ_NMI_EVENT_N", 293 /* AB */ "FM_PCH_BMC_THERMTRIP_N", "PWRGD_SYS_PWROK", 294 "ME_OVERRIDE", "IRQ_BMC_PCH_SMI_LPC_N", 295 "", "", "", "", 296 /* AC */ "", "", "", "", "", "", "", ""; 297}; 298 299&adc { 300 status = "okay"; 301 pinctrl-names = "default"; 302 pinctrl-0 = <&pinctrl_adc0_default /* 3VSB */ 303 &pinctrl_adc1_default /* 5VSB */ 304 &pinctrl_adc2_default /* CPU1 */ 305 &pinctrl_adc3_default /* NC */ 306 &pinctrl_adc4_default /* VCCMABCD */ 307 &pinctrl_adc5_default /* VCCMEFGH */ 308 &pinctrl_adc6_default /* NC */ 309 &pinctrl_adc7_default /* NC */ 310 &pinctrl_adc8_default /* PVNN_PCH */ 311 &pinctrl_adc9_default /* 1P05PCH */ 312 &pinctrl_adc10_default /* 1P8PCH */ 313 &pinctrl_adc11_default /* BAT */ 314 &pinctrl_adc12_default /* 3V */ 315 &pinctrl_adc13_default /* 5V */ 316 &pinctrl_adc14_default /* 12V */ 317 &pinctrl_adc15_default>; /* GND */ 318}; 319