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