Merge tag 'usb-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
[linux/fpc-iii.git] / arch / arm / boot / dts / aspeed-bmc-opp-romulus.dts
blobfd2e014dae75268516ed2a295bccea11028781bb
1 // SPDX-License-Identifier: GPL-2.0+
2 /dts-v1/;
3 #include "aspeed-g5.dtsi"
4 #include <dt-bindings/gpio/aspeed-gpio.h>
6 / {
7         model = "Romulus BMC";
8         compatible = "ibm,romulus-bmc", "aspeed,ast2500";
10         chosen {
11                 stdout-path = &uart5;
12                 bootargs = "console=ttyS4,115200 earlyprintk";
13         };
15         memory@80000000 {
16                 reg = <0x80000000 0x20000000>;
17         };
19         reserved-memory {
20                 #address-cells = <1>;
21                 #size-cells = <1>;
22                 ranges;
24                 vga_memory: framebuffer@9f000000 {
25                         no-map;
26                         reg = <0x9f000000 0x01000000>; /* 16M */
27                 };
29                 flash_memory: region@98000000 {
30                         no-map;
31                         reg = <0x98000000 0x04000000>; /* 64M */
32                 };
34                 coldfire_memory: codefire_memory@9ef00000 {
35                         reg = <0x9ef00000 0x00100000>;
36                         no-map;
37                 };
39                 gfx_memory: framebuffer {
40                         size = <0x01000000>;
41                         alignment = <0x01000000>;
42                         compatible = "shared-dma-pool";
43                         reusable;
44                 };
46                 video_engine_memory: jpegbuffer {
47                         size = <0x02000000>;    /* 32M */
48                         alignment = <0x01000000>;
49                         compatible = "shared-dma-pool";
50                         reusable;
51                 };
52         };
54         leds {
55                 compatible = "gpio-leds";
57                 fault {
58                         gpios = <&gpio ASPEED_GPIO(N, 2) GPIO_ACTIVE_LOW>;
59                 };
61                 identify {
62                         gpios = <&gpio ASPEED_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
63                 };
65                 power {
66                         gpios = <&gpio ASPEED_GPIO(R, 5) GPIO_ACTIVE_LOW>;
67                 };
68         };
70         fsi: gpio-fsi {
71                 compatible = "aspeed,ast2500-cf-fsi-master", "fsi-master";
72                 #address-cells = <2>;
73                 #size-cells = <0>;
74                 no-gpio-delays;
76                 memory-region = <&coldfire_memory>;
77                 aspeed,sram = <&sram>;
78                 aspeed,cvic = <&cvic>;
80                 clock-gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>;
81                 data-gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_HIGH>;
82                 mux-gpios = <&gpio ASPEED_GPIO(A, 6) GPIO_ACTIVE_HIGH>;
83                 enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
84                 trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
85         };
87         gpio-keys {
88                 compatible = "gpio-keys";
90                 checkstop {
91                         label = "checkstop";
92                         gpios = <&gpio ASPEED_GPIO(J, 2) GPIO_ACTIVE_LOW>;
93                         linux,code = <ASPEED_GPIO(J, 2)>;
94                 };
96                 id-button {
97                         label = "id-button";
98                         gpios = <&gpio ASPEED_GPIO(Q, 7) GPIO_ACTIVE_LOW>;
99                         linux,code = <ASPEED_GPIO(Q, 7)>;
100                 };
101         };
103         iio-hwmon-battery {
104                 compatible = "iio-hwmon";
105                 io-channels = <&adc 12>;
106         };
109 &fmc {
110         status = "okay";
111         flash@0 {
112                 status = "okay";
113                 m25p,fast-read;
114                 label = "bmc";
115                 spi-max-frequency = <50000000>;
116 #include "openbmc-flash-layout.dtsi"
117         };
120 &spi1 {
121         status = "okay";
122         pinctrl-names = "default";
123         pinctrl-0 = <&pinctrl_spi1_default>;
125         flash@0 {
126                 status = "okay";
127                 m25p,fast-read;
128                 label = "pnor";
129                 spi-max-frequency = <100000000>;
130         };
133 &lpc_ctrl {
134         status = "okay";
135         memory-region = <&flash_memory>;
136         flash = <&spi1>;
139 &uart1 {
140         /* Rear RS-232 connector */
141         status = "okay";
143         pinctrl-names = "default";
144         pinctrl-0 = <&pinctrl_txd1_default
145                         &pinctrl_rxd1_default
146                         &pinctrl_nrts1_default
147                         &pinctrl_ndtr1_default
148                         &pinctrl_ndsr1_default
149                         &pinctrl_ncts1_default
150                         &pinctrl_ndcd1_default
151                         &pinctrl_nri1_default>;
154 &uart5 {
155         status = "okay";
158 &mac0 {
159         status = "okay";
161         use-ncsi;
163         pinctrl-names = "default";
164         pinctrl-0 = <&pinctrl_rmii1_default>;
165         clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
166                  <&syscon ASPEED_CLK_MAC1RCLK>;
167         clock-names = "MACCLK", "RCLK";
170 &i2c1 {
171         status = "okay";
174 &i2c2 {
175         status = "okay";
178 &i2c3 {
179         status = "okay";
182 &i2c4 {
183         status = "okay";
186 &i2c5 {
187         status = "okay";
190 &i2c6 {
191         /* PCIe slot 1 (x8) */
192         status = "okay";
195 &i2c7 {
196         /* PCIe slot 2 (x16) */
197         status = "okay";
200 &i2c8 {
201         /* PCIe slot 3 (x16) */
202         status = "okay";
205 &i2c9 {
206         /* PCIe slot 4 (x16) */
207         status = "okay";
210 &i2c10 {
211         /* PCIe slot 5 (x8) */
212         status = "okay";
215 &i2c11 {
216         status = "okay";
218         rtc@32 {
219                 compatible = "epson,rx8900";
220                 reg = <0x32>;
221         };
224 &i2c12 {
225         status = "okay";
227         w83773g@4c {
228                 compatible = "nuvoton,w83773g";
229                 reg = <0x4c>;
230         };
233 &gpio {
234         gpio-line-names =
235         /*A0-A7*/       "","cfam-reset","","","","","fsi-mux","",
236         /*B0-B7*/       "","","","","","","","",
237         /*C0-C7*/       "","","","","","","","",
238         /*D0-D7*/       "fsi-enable","","","nic_func_mode0","nic_func_mode1","","","",
239         /*E0-E7*/       "","","","","","","","",
240         /*F0-F7*/       "","","","","","","","",
241         /*G0-G7*/       "","","","","","","","",
242         /*H0-H7*/       "","","","","","","","",
243         /*I0-I7*/       "","","","power-button","","","","",
244         /*J0-J7*/       "","","checkstop","","","","","",
245         /*K0-K7*/       "","","","","","","","",
246         /*L0-L7*/       "","","","","","","","",
247         /*M0-M7*/       "","","","","","","","",
248         /*N0-N7*/       "","","led-fault","",
249                                 "led-identify","","","",
250         /*O0-O7*/       "","","","","","","","",
251         /*P0-P7*/       "","","","","","","","",
252         /*Q0-Q7*/       "","","","","","","","id-button",
253         /*R0-R7*/       "","","fsi-trans","","","led-power","","",
254         /*S0-S7*/       "","","","","","","","seq_cont",
255         /*T0-T7*/       "","","","","","","","",
256         /*U0-U7*/       "","","","","","","","",
257         /*V0-V7*/       "","","","","","","","",
258         /*W0-W7*/       "","","","","","","","",
259         /*X0-X7*/       "","","","","","","","",
260         /*Y0-Y7*/       "","","","","","","","",
261         /*Z0-Z7*/       "","","","","","","","",
262         /*AA0-AA7*/     "fsi-clock","","fsi-data","","","","","",
263         /*AB0-AB7*/     "","","","","","","","",
264         /*AC0-AC7*/     "","","","","","","","";
266         nic_func_mode0 {
267                 gpio-hog;
268                 gpios = <ASPEED_GPIO(D, 3) GPIO_ACTIVE_HIGH>;
269                 output-low;
270         };
271         nic_func_mode1 {
272                 gpio-hog;
273                 gpios = <ASPEED_GPIO(D, 4) GPIO_ACTIVE_HIGH>;
274                 output-low;
275         };
276         seq_cont {
277                 gpio-hog;
278                 gpios = <ASPEED_GPIO(S, 7) GPIO_ACTIVE_HIGH>;
279                 output-low;
280         };
283 &vuart {
284         status = "okay";
287 &gfx {
288         status = "okay";
289         memory-region = <&gfx_memory>;
292 &pinctrl {
293         aspeed,external-nodes = <&gfx &lhc>;
296 &pwm_tacho {
297         status = "okay";
298         pinctrl-names = "default";
299         pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default>;
301         fan@0 {
302                 reg = <0x00>;
303                 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
304         };
306         fan@1 {
307                 reg = <0x00>;
308                 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
309         };
311         fan@2 {
312                 reg = <0x01>;
313                 aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
314         };
316         fan@3 {
317                 reg = <0x01>;
318                 aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
319         };
321         fan@4 {
322                 reg = <0x00>;
323                 aspeed,fan-tach-ch = /bits/ 8 <0x0c>;
324         };
326         fan@5 {
327                 reg = <0x00>;
328                 aspeed,fan-tach-ch = /bits/ 8 <0x0d>;
329         };
331         fan@6 {
332                 reg = <0x01>;
333                 aspeed,fan-tach-ch = /bits/ 8 <0x0e>;
334         };
337 &ibt {
338         status = "okay";
341 &vhub {
342         status = "okay";
345 &adc {
346         status = "okay";
349 &video {
350         status = "okay";
351         memory-region = <&video_engine_memory>;
354 #include "ibm-power9-dual.dtsi"