blob: 389f5f83bef90a67a1506a785087e1851c809309 [file] [log] [blame]
Joel Stanleyeb323ad2017-12-11 14:55:28 +10301// SPDX-License-Identifier: GPL-2.0+
Joel Stanley8f9bafb2017-01-04 17:01:28 +11002/dts-v1/;
Joel Stanley8f9bafb2017-01-04 17:01:28 +11003#include "aspeed-g5.dtsi"
Joel Stanley70c63512017-11-29 00:00:38 +10304#include <dt-bindings/gpio/aspeed-gpio.h>
Joel Stanley8f9bafb2017-01-04 17:01:28 +11005
6/ {
7 model = "Romulus BMC";
8 compatible = "ibm,romulus-bmc", "aspeed,ast2500";
9
Joel Stanley8f9bafb2017-01-04 17:01:28 +110010 chosen {
11 stdout-path = &uart5;
12 bootargs = "console=ttyS4,115200 earlyprintk";
13 };
14
Joel Stanley70c63512017-11-29 00:00:38 +103015 memory@80000000 {
16 reg = <0x80000000 0x20000000>;
Joel Stanley8f9bafb2017-01-04 17:01:28 +110017 };
18
19 reserved-memory {
20 #address-cells = <1>;
21 #size-cells = <1>;
22 ranges;
23
24 vga_memory: framebuffer@bf000000 {
25 no-map;
26 reg = <0xbf000000 0x01000000>; /* 16M */
27 };
Joel Stanley70c63512017-11-29 00:00:38 +103028
29 flash_memory: region@98000000 {
30 no-map;
31 reg = <0x98000000 0x04000000>; /* 64M */
32 };
33 };
34
35 leds {
36 compatible = "gpio-leds";
37
38 fault {
39 gpios = <&gpio ASPEED_GPIO(N, 2) GPIO_ACTIVE_LOW>;
40 };
41
42 identify {
43 gpios = <&gpio ASPEED_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
44 };
45
46 power {
47 gpios = <&gpio ASPEED_GPIO(R, 5) GPIO_ACTIVE_LOW>;
48 };
49 };
50
51 fsi: gpio-fsi {
52 compatible = "fsi-master-gpio", "fsi-master";
53 #address-cells = <2>;
54 #size-cells = <0>;
55
56 clock-gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>;
57 data-gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_HIGH>;
58 mux-gpios = <&gpio ASPEED_GPIO(A, 6) GPIO_ACTIVE_HIGH>;
59 enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
60 trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
61 };
62
63 gpio-keys {
64 compatible = "gpio-keys";
65
66 checkstop {
67 label = "checkstop";
68 gpios = <&gpio ASPEED_GPIO(J, 2) GPIO_ACTIVE_LOW>;
69 linux,code = <ASPEED_GPIO(J, 2)>;
70 };
Lei YU168dbc32018-04-11 14:02:43 +080071
72 id-button {
73 label = "id-button";
74 gpios = <&gpio ASPEED_GPIO(Q, 7) GPIO_ACTIVE_LOW>;
75 linux,code = <ASPEED_GPIO(Q, 7)>;
76 };
Joel Stanley8f9bafb2017-01-04 17:01:28 +110077 };
78};
79
Cédric Le Goater1142aea2017-03-22 17:04:43 +010080&fmc {
81 status = "okay";
82 flash@0 {
83 status = "okay";
Cédric Le Goater63c65272017-04-06 19:02:33 +020084 m25p,fast-read;
Cédric Le Goater1142aea2017-03-22 17:04:43 +010085 label = "bmc";
Joel Stanley70c63512017-11-29 00:00:38 +103086#include "openbmc-flash-layout.dtsi"
Cédric Le Goater1142aea2017-03-22 17:04:43 +010087 };
88};
89
90&spi1 {
91 status = "okay";
92 pinctrl-names = "default";
93 pinctrl-0 = <&pinctrl_spi1_default>;
94
95 flash@0 {
96 status = "okay";
Cédric Le Goater63c65272017-04-06 19:02:33 +020097 m25p,fast-read;
Cédric Le Goater1142aea2017-03-22 17:04:43 +010098 label = "pnor";
99 };
100};
101
Joel Stanley70c63512017-11-29 00:00:38 +1030102&lpc_ctrl {
103 status = "okay";
104 memory-region = <&flash_memory>;
105 flash = <&spi1>;
106};
107
Lei YU71b8b862017-03-23 14:42:48 +0800108&uart1 {
109 /* Rear RS-232 connector */
110 status = "okay";
111
112 pinctrl-names = "default";
113 pinctrl-0 = <&pinctrl_txd1_default
114 &pinctrl_rxd1_default
115 &pinctrl_nrts1_default
116 &pinctrl_ndtr1_default
117 &pinctrl_ndsr1_default
118 &pinctrl_ncts1_default
119 &pinctrl_ndcd1_default
120 &pinctrl_nri1_default>;
121};
122
Joel Stanley8f9bafb2017-01-04 17:01:28 +1100123&uart5 {
124 status = "okay";
125};
126
127&mac0 {
128 status = "okay";
129
130 use-ncsi;
131
132 pinctrl-names = "default";
133 pinctrl-0 = <&pinctrl_rmii1_default>;
134};
Joel Stanley11520912017-10-04 17:19:12 +1030135
Joel Stanley70c63512017-11-29 00:00:38 +1030136&i2c1 {
137 status = "okay";
138};
139
Joel Stanley11520912017-10-04 17:19:12 +1030140&i2c2 {
141 status = "okay";
142};
143
144&i2c3 {
145 status = "okay";
146};
147
148&i2c4 {
149 status = "okay";
150};
151
152&i2c5 {
153 status = "okay";
154};
155
156&i2c6 {
157 /* PCIe slot 1 (x8) */
158 status = "okay";
159};
160
161&i2c7 {
162 /* PCIe slot 2 (x16) */
163 status = "okay";
164};
165
166&i2c8 {
167 /* PCIe slot 3 (x16) */
168 status = "okay";
169};
170
171&i2c9 {
172 /* PCIe slot 4 (x16) */
173 status = "okay";
174};
175
176&i2c10 {
177 /* PCIe slot 5 (x8) */
178 status = "okay";
179};
180
181&i2c11 {
182 status = "okay";
183
184 rtc@32 {
185 compatible = "epson,rx8900";
186 reg = <0x32>;
187 };
188};
189
190&i2c12 {
191 status = "okay";
Lei YU0765a1d2018-01-17 13:56:56 +0800192
193 w83773g@4c {
194 compatible = "nuvoton,w83773g";
195 reg = <0x4c>;
196 };
Joel Stanley70c63512017-11-29 00:00:38 +1030197};
198
199&gpio {
200 nic_func_mode0 {
201 gpio-hog;
202 gpios = <ASPEED_GPIO(D, 3) GPIO_ACTIVE_HIGH>;
203 output-low;
204 line-name = "nic_func_mode0";
205 };
206 nic_func_mode1 {
207 gpio-hog;
208 gpios = <ASPEED_GPIO(D, 4) GPIO_ACTIVE_HIGH>;
209 output-low;
210 line-name = "nic_func_mode1";
211 };
Lei YU00569f72017-12-28 16:38:06 +0800212 seq_cont {
213 gpio-hog;
214 gpios = <ASPEED_GPIO(S, 7) GPIO_ACTIVE_HIGH>;
215 output-low;
216 line-name = "seq_cont";
217 };
Joel Stanley11520912017-10-04 17:19:12 +1030218};
Joel Stanley27b5e332017-10-05 16:21:03 +1030219
220&vuart {
221 status = "okay";
222};
Joel Stanley70c63512017-11-29 00:00:38 +1030223
224&gfx {
225 status = "okay";
226};
227
228&pinctrl {
229 aspeed,external-nodes = <&gfx &lhc>;
230};
231
232&pwm_tacho {
233 status = "okay";
234 pinctrl-names = "default";
235 pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default>;
236
237 fan@0 {
238 reg = <0x00>;
239 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
240 };
241
242 fan@1 {
243 reg = <0x00>;
244 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
245 };
246
247 fan@2 {
248 reg = <0x01>;
249 aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
250 };
251
252 fan@3 {
253 reg = <0x01>;
254 aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
255 };
256
257 fan@4 {
258 reg = <0x00>;
259 aspeed,fan-tach-ch = /bits/ 8 <0x0c>;
260 };
261
262 fan@5 {
263 reg = <0x00>;
264 aspeed,fan-tach-ch = /bits/ 8 <0x0d>;
265 };
266
267 fan@6 {
268 reg = <0x01>;
269 aspeed,fan-tach-ch = /bits/ 8 <0x0e>;
270 };
271};
Joel Stanley34732812018-02-12 18:13:21 +1030272
273&ibt {
274 status = "okay";
275};