0001 // SPDX-License-Identifier: GPL-2.0+
0002 /dts-v1/;
0003
0004 #include "aspeed-g5.dtsi"
0005 #include <dt-bindings/gpio/aspeed-gpio.h>
0006
0007 / {
0008 model = "HXT StarDragon 4800 REP2 AST2520";
0009 compatible = "hxt,stardragon4800-rep2-bmc", "aspeed,ast2500";
0010
0011 chosen {
0012 stdout-path = &uart5;
0013 bootargs = "console=ttyS4,115200 earlycon";
0014 };
0015
0016 memory@80000000 {
0017 reg = <0x80000000 0x40000000>;
0018 };
0019
0020 iio-hwmon {
0021 compatible = "iio-hwmon";
0022 io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>,
0023 <&adc 4>, <&adc 5>, <&adc 6>, <&adc 8>;
0024 };
0025
0026 iio-hwmon-battery {
0027 compatible = "iio-hwmon";
0028 io-channels = <&adc 7>;
0029 };
0030
0031 leds {
0032 compatible = "gpio-leds";
0033
0034 system_fault1 {
0035 label = "System_fault1";
0036 gpios = <&gpio ASPEED_GPIO(I, 3) GPIO_ACTIVE_LOW>;
0037 };
0038
0039 system_fault2 {
0040 label = "System_fault2";
0041 gpios = <&gpio ASPEED_GPIO(I, 2) GPIO_ACTIVE_LOW>;
0042 };
0043 };
0044 };
0045
0046 &fmc {
0047 status = "okay";
0048 flash@0 {
0049 status = "okay";
0050 m25p,fast-read;
0051 label = "bmc";
0052 #include "openbmc-flash-layout.dtsi"
0053 };
0054 };
0055
0056 &spi1 {
0057 status = "okay";
0058 pinctrl-names = "default";
0059 pinctrl-0 = <&pinctrl_spi1_default>;
0060 flash@0 {
0061 status = "okay";
0062 };
0063 };
0064
0065 &spi2 {
0066 pinctrl-names = "default";
0067 pinctrl-0 = <&pinctrl_spi2ck_default
0068 &pinctrl_spi2miso_default
0069 &pinctrl_spi2mosi_default
0070 &pinctrl_spi2cs0_default>;
0071 };
0072
0073 &uart3 {
0074 status = "okay";
0075
0076 pinctrl-names = "default";
0077 pinctrl-0 = <&pinctrl_txd3_default &pinctrl_rxd3_default>;
0078 current-speed = <115200>;
0079 };
0080
0081 &uart5 {
0082 status = "okay";
0083 };
0084
0085 &mac0 {
0086 status = "okay";
0087 pinctrl-names = "default";
0088 pinctrl-0 = <&pinctrl_rgmii1_default &pinctrl_mdio1_default>;
0089 };
0090
0091 &mac1 {
0092 status = "okay";
0093 pinctrl-names = "default";
0094 pinctrl-0 = <&pinctrl_rmii2_default>;
0095 clocks = <&syscon ASPEED_CLK_GATE_MAC2CLK>,
0096 <&syscon ASPEED_CLK_MAC2RCLK>;
0097 clock-names = "MACCLK", "RCLK";
0098 use-ncsi;
0099 };
0100
0101 &i2c0 {
0102 status = "okay";
0103 };
0104
0105 &i2c1 {
0106 status = "okay";
0107
0108 tmp421@1e {
0109 compatible = "ti,tmp421";
0110 reg = <0x1e>;
0111 };
0112 tmp421@2a {
0113 compatible = "ti,tmp421";
0114 reg = <0x2a>;
0115 };
0116 tmp421@1c {
0117 compatible = "ti,tmp421";
0118 reg = <0x1c>;
0119 };
0120 };
0121
0122 &i2c2 {
0123 status = "okay";
0124 };
0125
0126 &i2c3 {
0127 status = "okay";
0128 };
0129
0130 &i2c4 {
0131 status = "okay";
0132 };
0133
0134 &i2c5 {
0135 status = "okay";
0136 };
0137
0138 &i2c6 {
0139 status = "okay";
0140
0141 tmp421@1f {
0142 compatible = "ti,tmp421";
0143 reg = <0x1f>;
0144 };
0145 nvt210@4c {
0146 compatible = "nvt210";
0147 reg = <0x4c>;
0148 };
0149 eeprom@50 {
0150 compatible = "atmel,24c128";
0151 reg = <0x50>;
0152 pagesize = <128>;
0153 };
0154 };
0155
0156 &i2c7 {
0157 status = "okay";
0158 };
0159
0160 &i2c8 {
0161 status = "okay";
0162
0163 pca9641@70 {
0164 compatible = "nxp,pca9641";
0165 reg = <0x70>;
0166 i2c-arb {
0167 #address-cells = <1>;
0168 #size-cells = <0>;
0169 eeprom@50 {
0170 compatible = "atmel,24c02";
0171 reg = <0x50>;
0172 };
0173 dps650ab@58 {
0174 compatible = "dps650ab";
0175 reg = <0x58>;
0176 };
0177 };
0178 };
0179
0180 dps650ab@58 {
0181 compatible = "delta,dps650ab";
0182 reg = <0x58>;
0183 };
0184
0185 dps650ab@59 {
0186 compatible = "delta,dps650ab";
0187 reg = <0x59>;
0188 };
0189 };
0190
0191 &i2c9 {
0192 status = "okay";
0193 };
0194
0195 &vuart {
0196 status = "okay";
0197 };
0198
0199 &gfx {
0200 status = "okay";
0201 };
0202
0203 &pinctrl {
0204 aspeed,external-nodes = <&gfx &lhc>;
0205 };
0206
0207 &gpio {
0208 pin_gpio_c7 {
0209 gpio-hog;
0210 gpios = <ASPEED_GPIO(C, 7) GPIO_ACTIVE_HIGH>;
0211 output-low;
0212 line-name = "BIOS_SPI_MUX_S";
0213 };
0214 pin_gpio_d1 {
0215 gpio-hog;
0216 gpios = <ASPEED_GPIO(D, 1) GPIO_ACTIVE_HIGH>;
0217 output-high;
0218 line-name = "PHY2_RESET_N";
0219 };
0220 };