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/interrupt-controller/irq.h> 7 8/{ 9 model = "ASRock ROMED8HM3 BMC v1.00"; 10 compatible = "asrock,romed8hm3-bmc", "aspeed,ast2500"; 11 12 aliases { 13 serial4 = &uart5; 14 }; 15 16 chosen { 17 stdout-path = &uart5; 18 bootargs = "console=tty0 console=ttyS4,115200 earlycon"; 19 }; 20 21 memory@80000000 { 22 reg = <0x80000000 0x20000000>; 23 }; 24 25 leds { 26 compatible = "gpio-leds"; 27 28 heartbeat { 29 gpios = <&gpio ASPEED_GPIO(H, 6) GPIO_ACTIVE_LOW>; 30 linux,default-trigger = "timer"; 31 }; 32 33 system-fault { 34 gpios = <&gpio ASPEED_GPIO(Z, 2) GPIO_ACTIVE_HIGH>; 35 panic-indicator; 36 }; 37 }; 38 39 iio-hwmon { 40 compatible = "iio-hwmon"; 41 io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, 42 <&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>, 43 <&adc 8>, <&adc 9>, <&adc 10>, <&adc 11>, 44 <&adc 12>, <&adc 13>, <&adc 14>, <&adc 15>; 45 }; 46}; 47 48&fmc { 49 status = "okay"; 50 flash@0 { 51 status = "okay"; 52 m25p,fast-read; 53 label = "bmc"; 54 spi-max-frequency = <50000000>; /* 50 MHz */ 55#include "openbmc-flash-layout-64.dtsi" 56 }; 57}; 58 59&uart5 { 60 status = "okay"; 61}; 62 63&vuart { 64 status = "okay"; 65 aspeed,lpc-io-reg = <0x2f8>; 66 aspeed,lpc-interrupts = <3 IRQ_TYPE_LEVEL_HIGH>; 67}; 68 69&mac0 { 70 status = "okay"; 71 72 pinctrl-names = "default"; 73 pinctrl-0 = <&pinctrl_rgmii1_default &pinctrl_mdio1_default>; 74 75 nvmem-cells = <ð0_macaddress>; 76 nvmem-cell-names = "mac-address"; 77}; 78 79&i2c0 { 80 status = "okay"; 81 82 /* inlet temp sensor */ 83 w83773g@4c { 84 compatible = "nuvoton,w83773g"; 85 reg = <0x4c>; 86 }; 87}; 88 89&i2c1 { 90 status = "okay"; 91}; 92 93&i2c2 { 94 status = "okay"; 95 96 /* IPB temp sensor */ 97 w83773g@4c { 98 compatible = "nuvoton,w83773g"; 99 reg = <0x4c>; 100 }; 101 102 /* IPB PMIC */ 103 lm25066@40 { 104 compatible = "ti,lm25066"; 105 reg = <0x40>; 106 shunt-resistor-micro-ohms = <1000>; 107 }; 108 109 /* 12VSB PMIC */ 110 lm25066@41 { 111 compatible = "ti,lm25066"; 112 reg = <0x41>; 113 shunt-resistor-micro-ohms = <10000>; 114 }; 115}; 116 117&i2c4 { 118 status = "okay"; 119}; 120 121&i2c5 { 122 status = "okay"; 123}; 124 125&i2c6 { 126 status = "okay"; 127}; 128 129&i2c7 { 130 status = "okay"; 131 132 /* Baseboard FRU eeprom */ 133 eeprom@50 { 134 compatible = "st,24c128", "atmel,24c128"; 135 reg = <0x50>; 136 pagesize = <16>; 137 #address-cells = <1>; 138 #size-cells = <1>; 139 140 eth0_macaddress: macaddress@3f80 { 141 reg = <0x3f80 6>; 142 }; 143 }; 144}; 145 146&i2c8 { 147 status = "okay"; 148}; 149 150&i2c9 { 151 status = "okay"; 152}; 153 154&video { 155 status = "okay"; 156}; 157 158&vhub { 159 status = "okay"; 160}; 161 162&lpc_ctrl { 163 status = "okay"; 164}; 165 166&lpc_snoop { 167 status = "okay"; 168 snoop-ports = <0x80>; 169}; 170 171&kcs3 { 172 status = "okay"; 173 aspeed,lpc-io-reg = <0xca2>; 174}; 175 176&pwm_tacho { 177 status = "okay"; 178 pinctrl-names = "default"; 179 pinctrl-0 = <&pinctrl_pwm3_default 180 &pinctrl_pwm4_default 181 &pinctrl_pwm5_default 182 &pinctrl_pwm6_default>; 183 184 fan@3 { 185 reg = <0x03>; 186 aspeed,fan-tach-ch = /bits/ 8 <0x03 0x0b>; 187 }; 188 189 fan@4 { 190 reg = <0x04>; 191 aspeed,fan-tach-ch = /bits/ 8 <0x04 0x0c>; 192 }; 193 194 fan@5 { 195 reg = <0x05>; 196 aspeed,fan-tach-ch = /bits/ 8 <0x05 0x0d>; 197 }; 198 199 fan@6 { 200 reg = <0x06>; 201 aspeed,fan-tach-ch = /bits/ 8 <0x06 0x0e>; 202 }; 203}; 204 205&gpio { 206 status = "okay"; 207 gpio-line-names = 208 /* A */ "LOCATORLED_STATUS_N", "BMC_MAC2_INTB", "NMI_BTN_N", "BMC_NMI", 209 "", "", "", "", 210 /* B */ "POST_COMPLETE_N", "", "", "", "", "", "", "", 211 /* C */ "", "", "", "", "PCIE_HP_SEL_N", "PCIE_SATA_SEL_N", "LOCATORBTN", "", 212 /* D */ "BMC_PSIN", "BMC_PSOUT", "BMC_RESETCON", "RESETCON", 213 "", "", "", "PSU_FAN_FAIL_N", 214 /* E */ "", "", "", "", "", "", "", "", 215 /* F */ "NIC_PWR_GOOD", "PRSNTB0", "PRSNTB1", "PRSNTB2", 216 "PRSNTB3", "", "3VSB_PCIE1_PG", "12V_PCIE1_PG", 217 /* G */ "HWM_BAT_EN", "CHASSIS_ID0", "CHASSIS_ID1", "CHASSIS_ID2", 218 "BMC_ALERT1_N_R", "BMC_ALERT2_N_R", "BMC_ALERT3_N", "BMC_ALERT4_N", 219 /* H */ "X24_C1_PRSNT", "X24_C2_PRSNT", "X24_C3_PRSNT", "FM_MEM_THERM_EVENT_BMC_R_N", 220 "FACMODE", "BMC_RTCRST", "BMC_HB_LED_N", "BMC_CASEOPEN", 221 /* I */ "", "", "", "", "", "", "", "", 222 /* J */ "BMC_READY", "BMC_PCH_BIOS_CS_N", "", "P0_MA_DDR_QS_CS_N", 223 "", "", "", "", 224 /* K */ "", "", "", "", "", "", "", "", 225 /* L */ "", "", "", "", "", "", "", "", 226 /* M */ "", "", "MEZZ_PWRBRK_N", "OCP_HP_RST_EN", 227 "MAIN_PWR_EN_G", "BMC_MAIN_EN", "AUX_PWR_EN_G", "BMC_AUX_EN", 228 /* N */ "", "", "", "", "", "", "", "", 229 /* O */ "", "", "", "", "", "", "", "", 230 /* P */ "", "", "", "", "", "", "", "", 231 /* Q */ "", "", "", "", 232 "BMC_SMB_PRESENT_1_N", "BMC_SMB_PRESENT_2_N", 233 "BMC_SMB_PRESENT_3_N", "BMC_PCIE_WAKE_N", 234 /* R */ "", "", "THERMALTRIP_CLEAR_N", "", "", "", "", "", 235 /* S */ "", "", "", "", "", "", "", "", 236 /* T */ "", "", "", "", "", "", "", "", 237 /* U */ "", "", "", "", "", "", "", "", 238 /* V */ "", "", "", "", "", "", "", "", 239 /* W */ "", "", "", "", "", "", "", "", 240 /* X */ "", "", "", "", "", "", "", "", 241 /* Y */ "SLP_S3", "SLP_S4_S5", "NODE_ID_1", "NODE_ID_2", "", "", "", "", 242 /* Z */ "", "", "SYSTEM_FAULT_LED_N", "FAST_THROTTLE_N", 243 "", "", "", "", 244 /* AA */ "FM_CPU0_IBMC_THERMTRIP_N", "", "PROCHOT_L_G", "", 245 "", "", "", "", 246 /* AB */ "BMC_FORCE_SELFREFRESH", "PWRGD_OUT", "", "IRQ_BMC_PCH_SMI_LPC_N", 247 "", "", "", "", 248 /* AC */ "", "", "", "", "", "", "", ""; 249}; 250 251&adc { 252 status = "okay"; 253 pinctrl-names = "default"; 254 pinctrl-0 = <&pinctrl_adc0_default 255 &pinctrl_adc1_default 256 &pinctrl_adc2_default 257 &pinctrl_adc3_default 258 &pinctrl_adc4_default 259 &pinctrl_adc5_default 260 &pinctrl_adc6_default 261 &pinctrl_adc7_default 262 &pinctrl_adc8_default 263 &pinctrl_adc9_default 264 &pinctrl_adc10_default 265 &pinctrl_adc11_default 266 &pinctrl_adc12_default 267 &pinctrl_adc13_default 268 &pinctrl_adc14_default 269 &pinctrl_adc15_default>; 270}; 271