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 7/ { 8 model = "HXT StarDragon 4800 REP2 AST2520"; 9 compatible = "hxt,stardragon4800-rep2-bmc", "aspeed,ast2500"; 10 11 chosen { 12 stdout-path = &uart5; 13 bootargs = "console=ttyS4,115200 earlyprintk"; 14 }; 15 16 memory@80000000 { 17 reg = <0x80000000 0x40000000>; 18 }; 19 20 iio-hwmon { 21 compatible = "iio-hwmon"; 22 io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, 23 <&adc 4>, <&adc 5>, <&adc 6>, <&adc 8>; 24 }; 25 26 iio-hwmon-battery { 27 compatible = "iio-hwmon"; 28 io-channels = <&adc 7>; 29 }; 30 31 leds { 32 compatible = "gpio-leds"; 33 34 system_fault1 { 35 label = "System_fault1"; 36 gpios = <&gpio ASPEED_GPIO(I, 3) GPIO_ACTIVE_LOW>; 37 }; 38 39 system_fault2 { 40 label = "System_fault2"; 41 gpios = <&gpio ASPEED_GPIO(I, 2) GPIO_ACTIVE_LOW>; 42 }; 43 }; 44}; 45 46&fmc { 47 status = "okay"; 48 flash@0 { 49 status = "okay"; 50 m25p,fast-read; 51 label = "bmc"; 52#include "openbmc-flash-layout.dtsi" 53 }; 54}; 55 56&spi1 { 57 status = "okay"; 58 pinctrl-names = "default"; 59 pinctrl-0 = <&pinctrl_spi1_default>; 60 flash@0 { 61 status = "okay"; 62 }; 63}; 64 65&spi2 { 66 pinctrl-names = "default"; 67 pinctrl-0 = <&pinctrl_spi2ck_default 68 &pinctrl_spi2miso_default 69 &pinctrl_spi2mosi_default 70 &pinctrl_spi2cs0_default>; 71}; 72 73&uart3 { 74 status = "okay"; 75 76 pinctrl-names = "default"; 77 pinctrl-0 = <&pinctrl_txd3_default &pinctrl_rxd3_default>; 78 current-speed = <115200>; 79}; 80 81&uart5 { 82 status = "okay"; 83}; 84 85&mac0 { 86 status = "okay"; 87 pinctrl-names = "default"; 88 pinctrl-0 = <&pinctrl_rgmii1_default &pinctrl_mdio1_default>; 89}; 90 91&mac1 { 92 status = "okay"; 93 pinctrl-names = "default"; 94 pinctrl-0 = <&pinctrl_rmii2_default>; 95 use-ncsi; 96}; 97 98&i2c0 { 99 status = "okay"; 100}; 101 102&i2c1 { 103 status = "okay"; 104 105 tmp421@1e { 106 compatible = "ti,tmp421"; 107 reg = <0x1e>; 108 }; 109 tmp421@2a { 110 compatible = "ti,tmp421"; 111 reg = <0x2a>; 112 }; 113 tmp421@1c { 114 compatible = "ti,tmp421"; 115 reg = <0x1c>; 116 }; 117}; 118 119&i2c2 { 120 status = "okay"; 121}; 122 123&i2c3 { 124 status = "okay"; 125}; 126 127&i2c4 { 128 status = "okay"; 129}; 130 131&i2c5 { 132 status = "okay"; 133}; 134 135&i2c6 { 136 status = "okay"; 137 138 tmp421@1f { 139 compatible = "ti,tmp421"; 140 reg = <0x1f>; 141 }; 142 nvt210@4c { 143 compatible = "nvt210"; 144 reg = <0x4c>; 145 }; 146 eeprom@50 { 147 compatible = "atmel,24c128"; 148 reg = <0x50>; 149 pagesize = <128>; 150 }; 151}; 152 153&i2c7 { 154 status = "okay"; 155}; 156 157&i2c8 { 158 status = "okay"; 159 160 pca9641@70 { 161 compatible = "nxp,pca9641"; 162 reg = <0x70>; 163 i2c-arb { 164 #address-cells = <1>; 165 #size-cells = <0>; 166 eeprom@50 { 167 compatible = "atmel,24c02"; 168 reg = <0x50>; 169 }; 170 dps650ab@58 { 171 compatible = "dps650ab"; 172 reg = <0x58>; 173 }; 174 }; 175 }; 176 177 dps650ab@58 { 178 compatible = "delta,dps650ab"; 179 reg = <0x58>; 180 }; 181 182 dps650ab@59 { 183 compatible = "delta,dps650ab"; 184 reg = <0x59>; 185 }; 186}; 187 188&i2c9 { 189 status = "okay"; 190}; 191 192&vuart { 193 status = "okay"; 194}; 195 196&gfx { 197 status = "okay"; 198}; 199 200&pinctrl { 201 aspeed,external-nodes = <&gfx &lhc>; 202}; 203 204&gpio { 205 pin_gpio_c7 { 206 gpio-hog; 207 gpios = <ASPEED_GPIO(C, 7) GPIO_ACTIVE_HIGH>; 208 output-low; 209 line-name = "BIOS_SPI_MUX_S"; 210 }; 211 pin_gpio_d1 { 212 gpio-hog; 213 gpios = <ASPEED_GPIO(D, 1) GPIO_ACTIVE_HIGH>; 214 output-high; 215 line-name = "PHY2_RESET_N"; 216 }; 217}; 218