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