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