blob: d41be52c239360f1c9cf4e019b458d7004147429 [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 };
Joel Stanley8f9bafb2017-01-04 17:01:28 +110071 };
72};
73
Cédric Le Goater1142aea2017-03-22 17:04:43 +010074&fmc {
75 status = "okay";
76 flash@0 {
77 status = "okay";
Cédric Le Goater63c65272017-04-06 19:02:33 +020078 m25p,fast-read;
Cédric Le Goater1142aea2017-03-22 17:04:43 +010079 label = "bmc";
Joel Stanley70c63512017-11-29 00:00:38 +103080#include "openbmc-flash-layout.dtsi"
Cédric Le Goater1142aea2017-03-22 17:04:43 +010081 };
82};
83
84&spi1 {
85 status = "okay";
86 pinctrl-names = "default";
87 pinctrl-0 = <&pinctrl_spi1_default>;
88
89 flash@0 {
90 status = "okay";
Cédric Le Goater63c65272017-04-06 19:02:33 +020091 m25p,fast-read;
Cédric Le Goater1142aea2017-03-22 17:04:43 +010092 label = "pnor";
93 };
94};
95
Joel Stanley70c63512017-11-29 00:00:38 +103096&lpc_ctrl {
97 status = "okay";
98 memory-region = <&flash_memory>;
99 flash = <&spi1>;
100};
101
Lei YU71b8b862017-03-23 14:42:48 +0800102&uart1 {
103 /* Rear RS-232 connector */
104 status = "okay";
105
106 pinctrl-names = "default";
107 pinctrl-0 = <&pinctrl_txd1_default
108 &pinctrl_rxd1_default
109 &pinctrl_nrts1_default
110 &pinctrl_ndtr1_default
111 &pinctrl_ndsr1_default
112 &pinctrl_ncts1_default
113 &pinctrl_ndcd1_default
114 &pinctrl_nri1_default>;
115};
116
Joel Stanley8f9bafb2017-01-04 17:01:28 +1100117&uart5 {
118 status = "okay";
119};
120
121&mac0 {
122 status = "okay";
123
124 use-ncsi;
125
126 pinctrl-names = "default";
127 pinctrl-0 = <&pinctrl_rmii1_default>;
128};
Joel Stanley11520912017-10-04 17:19:12 +1030129
Joel Stanley70c63512017-11-29 00:00:38 +1030130&i2c1 {
131 status = "okay";
132};
133
Joel Stanley11520912017-10-04 17:19:12 +1030134&i2c2 {
135 status = "okay";
136};
137
138&i2c3 {
139 status = "okay";
140};
141
142&i2c4 {
143 status = "okay";
144};
145
146&i2c5 {
147 status = "okay";
148};
149
150&i2c6 {
151 /* PCIe slot 1 (x8) */
152 status = "okay";
153};
154
155&i2c7 {
156 /* PCIe slot 2 (x16) */
157 status = "okay";
158};
159
160&i2c8 {
161 /* PCIe slot 3 (x16) */
162 status = "okay";
163};
164
165&i2c9 {
166 /* PCIe slot 4 (x16) */
167 status = "okay";
168};
169
170&i2c10 {
171 /* PCIe slot 5 (x8) */
172 status = "okay";
173};
174
175&i2c11 {
176 status = "okay";
177
178 rtc@32 {
179 compatible = "epson,rx8900";
180 reg = <0x32>;
181 };
182};
183
184&i2c12 {
185 status = "okay";
Joel Stanley70c63512017-11-29 00:00:38 +1030186
187 max31785@52 {
188 compatible = "maxim,max31785";
189 reg = <0x52>;
190 };
191};
192
193&gpio {
194 nic_func_mode0 {
195 gpio-hog;
196 gpios = <ASPEED_GPIO(D, 3) GPIO_ACTIVE_HIGH>;
197 output-low;
198 line-name = "nic_func_mode0";
199 };
200 nic_func_mode1 {
201 gpio-hog;
202 gpios = <ASPEED_GPIO(D, 4) GPIO_ACTIVE_HIGH>;
203 output-low;
204 line-name = "nic_func_mode1";
205 };
Joel Stanley11520912017-10-04 17:19:12 +1030206};
Joel Stanley27b5e332017-10-05 16:21:03 +1030207
208&vuart {
209 status = "okay";
210};
Joel Stanley70c63512017-11-29 00:00:38 +1030211
212&gfx {
213 status = "okay";
214};
215
216&pinctrl {
217 aspeed,external-nodes = <&gfx &lhc>;
218};
219
220&pwm_tacho {
221 status = "okay";
222 pinctrl-names = "default";
223 pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default>;
224
225 fan@0 {
226 reg = <0x00>;
227 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
228 };
229
230 fan@1 {
231 reg = <0x00>;
232 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
233 };
234
235 fan@2 {
236 reg = <0x01>;
237 aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
238 };
239
240 fan@3 {
241 reg = <0x01>;
242 aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
243 };
244
245 fan@4 {
246 reg = <0x00>;
247 aspeed,fan-tach-ch = /bits/ 8 <0x0c>;
248 };
249
250 fan@5 {
251 reg = <0x00>;
252 aspeed,fan-tach-ch = /bits/ 8 <0x0d>;
253 };
254
255 fan@6 {
256 reg = <0x01>;
257 aspeed,fan-tach-ch = /bits/ 8 <0x0e>;
258 };
259};
Joel Stanley34732812018-02-12 18:13:21 +1030260
261&ibt {
262 status = "okay";
263};