]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/arm/aspeed-bmc-opp-romulus.dts
Import DTS files from Linux 4.18
[FreeBSD/FreeBSD.git] / sys / gnu / dts / arm / aspeed-bmc-opp-romulus.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 /dts-v1/;
3 #include "aspeed-g5.dtsi"
4 #include <dt-bindings/gpio/aspeed-gpio.h>
5
6 / {
7         model = "Romulus BMC";
8         compatible = "ibm,romulus-bmc", "aspeed,ast2500";
9
10         chosen {
11                 stdout-path = &uart5;
12                 bootargs = "console=ttyS4,115200 earlyprintk";
13         };
14
15         memory@80000000 {
16                 reg = <0x80000000 0x20000000>;
17         };
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                 };
28
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                 };
71
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                 };
77         };
78 };
79
80 &fmc {
81         status = "okay";
82         flash@0 {
83                 status = "okay";
84                 m25p,fast-read;
85                 label = "bmc";
86 #include "openbmc-flash-layout.dtsi"
87         };
88 };
89
90 &spi1 {
91         status = "okay";
92         pinctrl-names = "default";
93         pinctrl-0 = <&pinctrl_spi1_default>;
94
95         flash@0 {
96                 status = "okay";
97                 m25p,fast-read;
98                 label = "pnor";
99         };
100 };
101
102 &lpc_ctrl {
103         status = "okay";
104         memory-region = <&flash_memory>;
105         flash = <&spi1>;
106 };
107
108 &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
123 &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 };
135
136 &i2c1 {
137         status = "okay";
138 };
139
140 &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";
192
193         w83773g@4c {
194                 compatible = "nuvoton,w83773g";
195                 reg = <0x4c>;
196         };
197 };
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         };
212         seq_cont {
213                 gpio-hog;
214                 gpios = <ASPEED_GPIO(S, 7) GPIO_ACTIVE_HIGH>;
215                 output-low;
216                 line-name = "seq_cont";
217         };
218 };
219
220 &vuart {
221         status = "okay";
222 };
223
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 };
272
273 &ibt {
274         status = "okay";
275 };