| 1 |
// SPDX-License-Identifier: GPL-2.0+ |
| 2 |
// Copyright 2019 YADRO |
| 3 |
/dts-v1/; |
| 4 |
#include "aspeed-g5.dtsi" |
| 5 |
#include <dt-bindings/gpio/aspeed-gpio.h> |
| 6 |
|
| 7 |
/ { |
| 8 |
model = "Nicole BMC"; |
| 9 |
compatible = "yadro,nicole-bmc", "aspeed,ast2500"; |
| 10 |
|
| 11 |
chosen { |
| 12 |
stdout-path = &uart5; |
| 13 |
bootargs = "console=ttyS4,115200 earlycon"; |
| 14 |
}; |
| 15 |
|
| 16 |
memory@80000000 { |
| 17 |
reg = <0x80000000 0x20000000>; |
| 18 |
}; |
| 19 |
|
| 20 |
reserved-memory { |
| 21 |
#address-cells = <1>; |
| 22 |
#size-cells = <1>; |
| 23 |
ranges; |
| 24 |
|
| 25 |
vga_memory: framebuffer@9f000000 { |
| 26 |
no-map; |
| 27 |
reg = <0x9f000000 0x01000000>; /* 16M */ |
| 28 |
}; |
| 29 |
|
| 30 |
flash_memory: region@98000000 { |
| 31 |
no-map; |
| 32 |
reg = <0x98000000 0x04000000>; /* 64M */ |
| 33 |
}; |
| 34 |
|
| 35 |
coldfire_memory: codefire_memory@9ef00000 { |
| 36 |
reg = <0x9ef00000 0x00100000>; |
| 37 |
no-map; |
| 38 |
}; |
| 39 |
|
| 40 |
gfx_memory: framebuffer { |
| 41 |
size = <0x01000000>; |
| 42 |
alignment = <0x01000000>; |
| 43 |
compatible = "shared-dma-pool"; |
| 44 |
reusable; |
| 45 |
}; |
| 46 |
|
| 47 |
video_engine_memory: jpegbuffer { |
| 48 |
size = <0x02000000>; /* 32M */ |
| 49 |
alignment = <0x01000000>; |
| 50 |
compatible = "shared-dma-pool"; |
| 51 |
reusable; |
| 52 |
}; |
| 53 |
}; |
| 54 |
|
| 55 |
leds { |
| 56 |
compatible = "gpio-leds"; |
| 57 |
|
| 58 |
power { |
| 59 |
label = "platform:green:power"; |
| 60 |
gpios = <&gpio ASPEED_GPIO(AA, 4) GPIO_ACTIVE_HIGH>; |
| 61 |
}; |
| 62 |
|
| 63 |
identify { |
| 64 |
label = "platform:blue:indicator"; |
| 65 |
gpios = <&gpio ASPEED_GPIO(AA, 7) GPIO_ACTIVE_HIGH>; |
| 66 |
}; |
| 67 |
|
| 68 |
fault { |
| 69 |
label = "platform:red:fault"; |
| 70 |
gpios = <&gpio ASPEED_GPIO(AA, 3) GPIO_ACTIVE_HIGH>; |
| 71 |
}; |
| 72 |
|
| 73 |
attention { |
| 74 |
label = "platform:yellow:alarm"; |
| 75 |
gpios = <&gpio ASPEED_GPIO(AA, 1) GPIO_ACTIVE_HIGH>; |
| 76 |
}; |
| 77 |
}; |
| 78 |
|
| 79 |
fsi: gpio-fsi { |
| 80 |
compatible = "aspeed,ast2500-cf-fsi-master"; |
| 81 |
#address-cells = <2>; |
| 82 |
#size-cells = <0>; |
| 83 |
|
| 84 |
memory-region = <&coldfire_memory>; |
| 85 |
aspeed,sram = <&sram>; |
| 86 |
aspeed,cvic = <&cvic>; |
| 87 |
|
| 88 |
clock-gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>; |
| 89 |
data-gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_HIGH>; |
| 90 |
mux-gpios = <&gpio ASPEED_GPIO(A, 6) GPIO_ACTIVE_HIGH>; |
| 91 |
enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>; |
| 92 |
trans-gpios = <&gpio ASPEED_GPIO(P, 1) GPIO_ACTIVE_HIGH>; |
| 93 |
}; |
| 94 |
|
| 95 |
gpio-keys { |
| 96 |
compatible = "gpio-keys"; |
| 97 |
|
| 98 |
event-checkstop { |
| 99 |
label = "checkstop"; |
| 100 |
gpios = <&gpio ASPEED_GPIO(J, 2) GPIO_ACTIVE_LOW>; |
| 101 |
linux,code = <ASPEED_GPIO(J, 2)>; |
| 102 |
}; |
| 103 |
}; |
| 104 |
|
| 105 |
iio-hwmon-battery { |
| 106 |
compatible = "iio-hwmon"; |
| 107 |
io-channels = <&adc 12>; |
| 108 |
}; |
| 109 |
}; |
| 110 |
|
| 111 |
&fmc { |
| 112 |
status = "okay"; |
| 113 |
flash@0 { |
| 114 |
status = "okay"; |
| 115 |
m25p,fast-read; |
| 116 |
label = "bmc"; |
| 117 |
spi-max-frequency = <50000000>; |
| 118 |
#include "openbmc-flash-layout.dtsi" |
| 119 |
}; |
| 120 |
}; |
| 121 |
|
| 122 |
&spi1 { |
| 123 |
status = "okay"; |
| 124 |
pinctrl-names = "default"; |
| 125 |
pinctrl-0 = <&pinctrl_spi1_default>; |
| 126 |
|
| 127 |
flash@0 { |
| 128 |
status = "okay"; |
| 129 |
m25p,fast-read; |
| 130 |
label = "pnor"; |
| 131 |
spi-max-frequency = <100000000>; |
| 132 |
}; |
| 133 |
}; |
| 134 |
|
| 135 |
&lpc_ctrl { |
| 136 |
status = "okay"; |
| 137 |
memory-region = <&flash_memory>; |
| 138 |
flash = <&spi1>; |
| 139 |
}; |
| 140 |
|
| 141 |
&uart1 { |
| 142 |
/* Rear RS-232 connector */ |
| 143 |
status = "okay"; |
| 144 |
|
| 145 |
pinctrl-names = "default"; |
| 146 |
pinctrl-0 = <&pinctrl_txd1_default |
| 147 |
&pinctrl_rxd1_default |
| 148 |
&pinctrl_nrts1_default |
| 149 |
&pinctrl_ndtr1_default |
| 150 |
&pinctrl_ndsr1_default |
| 151 |
&pinctrl_ncts1_default |
| 152 |
&pinctrl_ndcd1_default |
| 153 |
&pinctrl_nri1_default>; |
| 154 |
}; |
| 155 |
|
| 156 |
&uart5 { |
| 157 |
status = "okay"; |
| 158 |
}; |
| 159 |
|
| 160 |
&mac0 { |
| 161 |
status = "okay"; |
| 162 |
|
| 163 |
use-ncsi; |
| 164 |
|
| 165 |
pinctrl-names = "default"; |
| 166 |
pinctrl-0 = <&pinctrl_rmii1_default>; |
| 167 |
clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>, |
| 168 |
<&syscon ASPEED_CLK_MAC1RCLK>; |
| 169 |
clock-names = "MACCLK", "RCLK"; |
| 170 |
}; |
| 171 |
|
| 172 |
&i2c0 { |
| 173 |
status = "okay"; |
| 174 |
|
| 175 |
eeprom@50 { |
| 176 |
compatible = "atmel,24c256"; |
| 177 |
reg = <0x50>; |
| 178 |
pagesize = <64>; |
| 179 |
}; |
| 180 |
}; |
| 181 |
|
| 182 |
&i2c2 { |
| 183 |
status = "okay"; |
| 184 |
/* CPU0 characterization connector */ |
| 185 |
}; |
| 186 |
|
| 187 |
&i2c3 { |
| 188 |
status = "okay"; |
| 189 |
/* CLK GEN SI5338 */ |
| 190 |
}; |
| 191 |
|
| 192 |
&i2c4 { |
| 193 |
status = "okay"; |
| 194 |
/* Voltage regulators for CPU0 */ |
| 195 |
}; |
| 196 |
|
| 197 |
&i2c5 { |
| 198 |
status = "okay"; |
| 199 |
/* Voltage regulators for CPU1 */ |
| 200 |
}; |
| 201 |
|
| 202 |
&i2c6 { |
| 203 |
status = "okay"; |
| 204 |
|
| 205 |
rtc@32 { |
| 206 |
compatible = "epson,rx8900"; |
| 207 |
reg = <0x32>; |
| 208 |
}; |
| 209 |
}; |
| 210 |
|
| 211 |
&i2c7 { |
| 212 |
status = "okay"; |
| 213 |
/* CPLD */ |
| 214 |
}; |
| 215 |
|
| 216 |
&gpio { |
| 217 |
gpio-line-names = |
| 218 |
/*A0-A7*/ "","cfam-reset","","","","","fsi-mux","", |
| 219 |
/*B0-B7*/ "","","","","","","","", |
| 220 |
/*C0-C7*/ "","","","","","","","", |
| 221 |
/*D0-D7*/ "fsi-enable","bmc_power_up","sys_pwrok_buf", |
| 222 |
"func_mode0","func_mode1","func_mode2","","", |
| 223 |
/*E0-E7*/ "","ncsi_cfg","","","","","","", |
| 224 |
/*F0-F7*/ "","","","","","","","", |
| 225 |
/*G0-G7*/ "","","","","","","","", |
| 226 |
/*H0-H7*/ "","","","","","","","", |
| 227 |
/*I0-I7*/ "","","","","","","","", |
| 228 |
/*J0-J7*/ "","","checkstop","","","","","", |
| 229 |
/*K0-K7*/ "","","","","","","","", |
| 230 |
/*L0-L7*/ "","","","","","","","", |
| 231 |
/*M0-M7*/ "","","","","","","","", |
| 232 |
/*N0-N7*/ "","","","","","","","", |
| 233 |
/*O0-O7*/ "","","power-button","","","","","", |
| 234 |
/*P0-P7*/ "","fsi-trans","pm_rtc_adc_en","","","","","", |
| 235 |
/*Q0-Q7*/ "","","","","","","","id-button", |
| 236 |
/*R0-R7*/ "","software_pwrgood","","","","","","", |
| 237 |
/*S0-S7*/ "","","","","","","","seq_cont", |
| 238 |
/*T0-T7*/ "","","","","","","","", |
| 239 |
/*U0-U7*/ "","","","","","","","", |
| 240 |
/*V0-V7*/ "","","","","","","","", |
| 241 |
/*W0-W7*/ "","","","","","","","", |
| 242 |
/*X0-X7*/ "","","","","","","","", |
| 243 |
/*Y0-Y7*/ "","","","","","","","", |
| 244 |
/*Z0-Z7*/ "","","","","","","","", |
| 245 |
/*AA0-AA7*/ "fsi-clock","led-attention","fsi-data","led-fault", |
| 246 |
"led-power","","","led-identify", |
| 247 |
/*AB0-AB7*/ "","","","","","","","", |
| 248 |
/*AC0-AC7*/ "","","","","","","",""; |
| 249 |
|
| 250 |
func-mode0-hog { |
| 251 |
gpio-hog; |
| 252 |
gpios = <ASPEED_GPIO(D, 3) GPIO_ACTIVE_HIGH>; |
| 253 |
output-low; |
| 254 |
}; |
| 255 |
func-mode1-hog { |
| 256 |
gpio-hog; |
| 257 |
gpios = <ASPEED_GPIO(D, 4) GPIO_ACTIVE_HIGH>; |
| 258 |
output-low; |
| 259 |
}; |
| 260 |
func-mode2-hog { |
| 261 |
gpio-hog; |
| 262 |
gpios = <ASPEED_GPIO(D, 5) GPIO_ACTIVE_HIGH>; |
| 263 |
output-low; |
| 264 |
}; |
| 265 |
seq-cont-hog { |
| 266 |
gpio-hog; |
| 267 |
gpios = <ASPEED_GPIO(S, 7) GPIO_ACTIVE_HIGH>; |
| 268 |
output-low; |
| 269 |
}; |
| 270 |
ncsi-cfg-hog { |
| 271 |
gpio-hog; |
| 272 |
input; |
| 273 |
gpios = <ASPEED_GPIO(E, 1) GPIO_ACTIVE_HIGH>; |
| 274 |
}; |
| 275 |
}; |
| 276 |
|
| 277 |
&vuart { |
| 278 |
status = "okay"; |
| 279 |
}; |
| 280 |
|
| 281 |
&gfx { |
| 282 |
status = "okay"; |
| 283 |
memory-region = <&gfx_memory>; |
| 284 |
}; |
| 285 |
|
| 286 |
&ibt { |
| 287 |
status = "okay"; |
| 288 |
}; |
| 289 |
|
| 290 |
&vhub { |
| 291 |
status = "okay"; |
| 292 |
}; |
| 293 |
|
| 294 |
&adc { |
| 295 |
status = "okay"; |
| 296 |
|
| 297 |
pinctrl-names = "default"; |
| 298 |
pinctrl-0 = <&pinctrl_adc0_default |
| 299 |
&pinctrl_adc1_default |
| 300 |
&pinctrl_adc2_default |
| 301 |
&pinctrl_adc3_default |
| 302 |
&pinctrl_adc4_default |
| 303 |
&pinctrl_adc5_default |
| 304 |
&pinctrl_adc6_default |
| 305 |
&pinctrl_adc7_default |
| 306 |
&pinctrl_adc8_default |
| 307 |
&pinctrl_adc9_default |
| 308 |
&pinctrl_adc10_default |
| 309 |
&pinctrl_adc11_default |
| 310 |
&pinctrl_adc12_default |
| 311 |
&pinctrl_adc13_default |
| 312 |
&pinctrl_adc14_default |
| 313 |
&pinctrl_adc15_default>; |
| 314 |
}; |
| 315 |
|
| 316 |
&video { |
| 317 |
status = "okay"; |
| 318 |
memory-region = <&video_engine_memory>; |
| 319 |
}; |
| 320 |
|
| 321 |
#include "ibm-power9-dual.dtsi" |