| 1 |
// SPDX-License-Identifier: GPL-2.0+ |
| 2 |
// Copyright (c) 2018 Inventec Corporation |
| 3 |
/dts-v1/; |
| 4 |
|
| 5 |
#include "aspeed-g5.dtsi" |
| 6 |
#include <dt-bindings/gpio/aspeed-gpio.h> |
| 7 |
|
| 8 |
/ { |
| 9 |
model = "Lanyang BMC"; |
| 10 |
compatible = "inventec,lanyang-bmc", "aspeed,ast2500"; |
| 11 |
|
| 12 |
chosen { |
| 13 |
stdout-path = &uart5; |
| 14 |
bootargs = "console=ttyS4,115200 earlycon"; |
| 15 |
}; |
| 16 |
|
| 17 |
memory@80000000 { |
| 18 |
reg = <0x80000000 0x40000000>; |
| 19 |
}; |
| 20 |
|
| 21 |
reserved-memory { |
| 22 |
#address-cells = <1>; |
| 23 |
#size-cells = <1>; |
| 24 |
ranges; |
| 25 |
|
| 26 |
flash_memory: region@98000000 { |
| 27 |
no-map; |
| 28 |
reg = <0x98000000 0x04000000>; /* 64M */ |
| 29 |
}; |
| 30 |
}; |
| 31 |
|
| 32 |
leds { |
| 33 |
compatible = "gpio-leds"; |
| 34 |
|
| 35 |
sys_boot_status { |
| 36 |
label = "System_boot_status"; |
| 37 |
gpios = <&gpio ASPEED_GPIO(B, 6) GPIO_ACTIVE_LOW>; |
| 38 |
}; |
| 39 |
|
| 40 |
attention { |
| 41 |
label = "Attention_locator"; |
| 42 |
gpios = <&gpio ASPEED_GPIO(B, 7) GPIO_ACTIVE_HIGH>; |
| 43 |
}; |
| 44 |
|
| 45 |
plt_fault { |
| 46 |
label = "Platform_fault"; |
| 47 |
gpios = <&gpio ASPEED_GPIO(B, 1) GPIO_ACTIVE_HIGH>; |
| 48 |
}; |
| 49 |
|
| 50 |
hdd_fault { |
| 51 |
label = "Onboard_drive_fault"; |
| 52 |
gpios = <&gpio ASPEED_GPIO(B, 3) GPIO_ACTIVE_HIGH>; |
| 53 |
}; |
| 54 |
bmc_err { |
| 55 |
label = "BMC_fault"; |
| 56 |
gpios = <&gpio ASPEED_GPIO(H, 6) GPIO_ACTIVE_HIGH>; |
| 57 |
}; |
| 58 |
|
| 59 |
sys_err { |
| 60 |
label = "Sys_fault"; |
| 61 |
gpios = <&gpio ASPEED_GPIO(H, 7) GPIO_ACTIVE_HIGH>; |
| 62 |
}; |
| 63 |
}; |
| 64 |
|
| 65 |
fsi: gpio-fsi { |
| 66 |
compatible = "fsi-master-gpio"; |
| 67 |
#address-cells = <2>; |
| 68 |
#size-cells = <0>; |
| 69 |
|
| 70 |
clock-gpios = <&gpio ASPEED_GPIO(J, 0) GPIO_ACTIVE_HIGH>; |
| 71 |
data-gpios = <&gpio ASPEED_GPIO(J, 1) GPIO_ACTIVE_HIGH>; |
| 72 |
trans-gpios = <&gpio ASPEED_GPIO(D, 5) GPIO_ACTIVE_HIGH>; |
| 73 |
enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>; |
| 74 |
mux-gpios = <&gpio ASPEED_GPIO(H, 2) GPIO_ACTIVE_HIGH>; |
| 75 |
}; |
| 76 |
|
| 77 |
iio-hwmon { |
| 78 |
compatible = "iio-hwmon"; |
| 79 |
io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, |
| 80 |
<&adc 4>, <&adc 5>, <&adc 6>, <&adc 7>, |
| 81 |
<&adc 8>, <&adc 9>, <&adc 10>, <&adc 11>, |
| 82 |
<&adc 13>, <&adc 14>, <&adc 15>; |
| 83 |
}; |
| 84 |
|
| 85 |
iio-hwmon-battery { |
| 86 |
compatible = "iio-hwmon"; |
| 87 |
io-channels = <&adc 12>; |
| 88 |
}; |
| 89 |
}; |
| 90 |
|
| 91 |
&pwm_tacho { |
| 92 |
status = "okay"; |
| 93 |
pinctrl-names = "default"; |
| 94 |
pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default |
| 95 |
&pinctrl_pwm2_default &pinctrl_pwm3_default>; |
| 96 |
|
| 97 |
fan@0 { |
| 98 |
reg = <0x00>; |
| 99 |
aspeed,fan-tach-ch = /bits/ 8 <0x00>; |
| 100 |
}; |
| 101 |
|
| 102 |
fan@1 { |
| 103 |
reg = <0x01>; |
| 104 |
aspeed,fan-tach-ch = /bits/ 8 <0x01>; |
| 105 |
}; |
| 106 |
|
| 107 |
fan@2 { |
| 108 |
reg = <0x02>; |
| 109 |
aspeed,fan-tach-ch = /bits/ 8 <0x02>; |
| 110 |
}; |
| 111 |
|
| 112 |
fan@3 { |
| 113 |
reg = <0x03>; |
| 114 |
aspeed,fan-tach-ch = /bits/ 8 <0x03>; |
| 115 |
}; |
| 116 |
}; |
| 117 |
|
| 118 |
&fmc { |
| 119 |
status = "okay"; |
| 120 |
flash@0 { |
| 121 |
status = "okay"; |
| 122 |
m25p,fast-read; |
| 123 |
label = "bmc"; |
| 124 |
#include "openbmc-flash-layout.dtsi" |
| 125 |
}; |
| 126 |
}; |
| 127 |
|
| 128 |
&spi1 { |
| 129 |
status = "okay"; |
| 130 |
pinctrl-names = "default"; |
| 131 |
pinctrl-0 = <&pinctrl_spi1_default>; |
| 132 |
|
| 133 |
flash@0 { |
| 134 |
status = "okay"; |
| 135 |
label = "pnor"; |
| 136 |
m25p,fast-read; |
| 137 |
}; |
| 138 |
}; |
| 139 |
|
| 140 |
&spi2 { |
| 141 |
status = "okay"; |
| 142 |
pinctrl-names = "default"; |
| 143 |
pinctrl-0 = <&pinctrl_spi2ck_default |
| 144 |
&pinctrl_spi2cs0_default |
| 145 |
&pinctrl_spi2cs1_default |
| 146 |
&pinctrl_spi2miso_default |
| 147 |
&pinctrl_spi2mosi_default>; |
| 148 |
|
| 149 |
flash@0 { |
| 150 |
status = "okay"; |
| 151 |
}; |
| 152 |
}; |
| 153 |
|
| 154 |
&uart1 { |
| 155 |
status = "okay"; |
| 156 |
pinctrl-names = "default"; |
| 157 |
pinctrl-0 = <&pinctrl_txd1_default |
| 158 |
&pinctrl_rxd1_default>; |
| 159 |
}; |
| 160 |
|
| 161 |
&lpc_ctrl { |
| 162 |
status = "okay"; |
| 163 |
memory-region = <&flash_memory>; |
| 164 |
flash = <&spi1>; |
| 165 |
}; |
| 166 |
|
| 167 |
&lpc_snoop { |
| 168 |
status = "okay"; |
| 169 |
snoop-ports = <0x80>; |
| 170 |
}; |
| 171 |
|
| 172 |
&uart5 { |
| 173 |
status = "okay"; |
| 174 |
}; |
| 175 |
|
| 176 |
&mac0 { |
| 177 |
status = "okay"; |
| 178 |
|
| 179 |
pinctrl-names = "default"; |
| 180 |
pinctrl-0 = <&pinctrl_rmii1_default>; |
| 181 |
clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>, |
| 182 |
<&syscon ASPEED_CLK_MAC1RCLK>; |
| 183 |
clock-names = "MACCLK", "RCLK"; |
| 184 |
use-ncsi; |
| 185 |
}; |
| 186 |
|
| 187 |
&mac1 { |
| 188 |
status = "okay"; |
| 189 |
|
| 190 |
pinctrl-names = "default"; |
| 191 |
pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>; |
| 192 |
}; |
| 193 |
|
| 194 |
&i2c0 { |
| 195 |
status = "okay"; |
| 196 |
|
| 197 |
eeprom@55 { |
| 198 |
compatible = "atmel,24c64"; |
| 199 |
reg = <0x55>; |
| 200 |
pagesize = <32>; |
| 201 |
}; |
| 202 |
|
| 203 |
rtc@68 { |
| 204 |
compatible = "nxp,pcf8523"; |
| 205 |
reg = <0x68>; |
| 206 |
}; |
| 207 |
|
| 208 |
tmp75@48 { |
| 209 |
compatible = "ti,tmp75"; |
| 210 |
reg = <0x48>; |
| 211 |
}; |
| 212 |
}; |
| 213 |
|
| 214 |
&i2c1 { |
| 215 |
status = "okay"; |
| 216 |
}; |
| 217 |
|
| 218 |
&i2c2 { |
| 219 |
status = "okay"; |
| 220 |
}; |
| 221 |
|
| 222 |
&i2c3 { |
| 223 |
status = "okay"; |
| 224 |
}; |
| 225 |
|
| 226 |
&i2c4 { |
| 227 |
status = "okay"; |
| 228 |
}; |
| 229 |
|
| 230 |
&i2c5 { |
| 231 |
status = "okay"; |
| 232 |
}; |
| 233 |
|
| 234 |
&i2c6 { |
| 235 |
status = "okay"; |
| 236 |
}; |
| 237 |
|
| 238 |
&i2c7 { |
| 239 |
status = "okay"; |
| 240 |
}; |
| 241 |
|
| 242 |
&i2c8 { |
| 243 |
status = "okay"; |
| 244 |
}; |
| 245 |
|
| 246 |
&i2c9 { |
| 247 |
status = "okay"; |
| 248 |
}; |
| 249 |
|
| 250 |
&i2c10 { |
| 251 |
status = "okay"; |
| 252 |
}; |
| 253 |
|
| 254 |
&i2c11 { |
| 255 |
status = "okay"; |
| 256 |
}; |
| 257 |
|
| 258 |
&vuart { |
| 259 |
status = "okay"; |
| 260 |
}; |
| 261 |
|
| 262 |
&gfx { |
| 263 |
status = "okay"; |
| 264 |
}; |
| 265 |
|
| 266 |
&gpio { |
| 267 |
pin-gpio-b0-hog { |
| 268 |
gpio-hog; |
| 269 |
gpios = <ASPEED_GPIO(B, 0) GPIO_ACTIVE_HIGH>; |
| 270 |
output-high; |
| 271 |
line-name = "BMC_HDD1_PWR_EN"; |
| 272 |
}; |
| 273 |
|
| 274 |
pin-gpio-b5-hog { |
| 275 |
gpio-hog; |
| 276 |
gpios = <ASPEED_GPIO(B, 5) GPIO_ACTIVE_HIGH>; |
| 277 |
input; |
| 278 |
line-name = "BMC_USB1_OCI2"; |
| 279 |
}; |
| 280 |
|
| 281 |
pin-gpio-h5-hog { |
| 282 |
gpio-hog; |
| 283 |
gpios = <ASPEED_GPIO(H, 5) GPIO_ACTIVE_HIGH>; |
| 284 |
output-high; |
| 285 |
line-name = "BMC_CP0_PERST_ENABLE_R"; |
| 286 |
}; |
| 287 |
|
| 288 |
pin-gpio-z2-hog { |
| 289 |
gpio-hog; |
| 290 |
gpios = <ASPEED_GPIO(Z, 2) GPIO_ACTIVE_HIGH>; |
| 291 |
output-high; |
| 292 |
line-name = "RST_PCA9546_U177_N"; |
| 293 |
}; |
| 294 |
|
| 295 |
pin-gpio-aa6-hog { |
| 296 |
gpio-hog; |
| 297 |
gpios = <ASPEED_GPIO(AA, 6) GPIO_ACTIVE_HIGH>; |
| 298 |
output-high; |
| 299 |
line-name = "BMC_CP0_RESET_N"; |
| 300 |
}; |
| 301 |
|
| 302 |
pin-gpio-aa7-hog { |
| 303 |
gpio-hog; |
| 304 |
gpios = <ASPEED_GPIO(AA, 7) GPIO_ACTIVE_HIGH>; |
| 305 |
output-high; |
| 306 |
line-name = "BMC_TPM_RESET_N"; |
| 307 |
}; |
| 308 |
|
| 309 |
pin-gpio-ab0-hog { |
| 310 |
gpio-hog; |
| 311 |
gpios = <ASPEED_GPIO(AB, 0) GPIO_ACTIVE_LOW>; |
| 312 |
output-high; |
| 313 |
line-name = "BMC_USB_PWRON_N"; |
| 314 |
}; |
| 315 |
}; |
| 316 |
|
| 317 |
&ibt { |
| 318 |
status = "okay"; |
| 319 |
}; |
| 320 |
|
| 321 |
&adc { |
| 322 |
status = "okay"; |
| 323 |
}; |
| 324 |
|
| 325 |
#include "ibm-power9-dual.dtsi" |