treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arm / boot / dts / aspeed-bmc-opp-romulus.dts
blobedfa44fe1f75ca1e7bdbbcd46fbdf211faac4452
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         nic_func_mode0 {
235                 gpio-hog;
236                 gpios = <ASPEED_GPIO(D, 3) GPIO_ACTIVE_HIGH>;
237                 output-low;
238                 line-name = "nic_func_mode0";
239         };
240         nic_func_mode1 {
241                 gpio-hog;
242                 gpios = <ASPEED_GPIO(D, 4) GPIO_ACTIVE_HIGH>;
243                 output-low;
244                 line-name = "nic_func_mode1";
245         };
246         seq_cont {
247                 gpio-hog;
248                 gpios = <ASPEED_GPIO(S, 7) GPIO_ACTIVE_HIGH>;
249                 output-low;
250                 line-name = "seq_cont";
251         };
254 &vuart {
255         status = "okay";
258 &gfx {
259         status = "okay";
260         memory-region = <&gfx_memory>;
263 &pinctrl {
264         aspeed,external-nodes = <&gfx &lhc>;
267 &pwm_tacho {
268         status = "okay";
269         pinctrl-names = "default";
270         pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default>;
272         fan@0 {
273                 reg = <0x00>;
274                 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
275         };
277         fan@1 {
278                 reg = <0x00>;
279                 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
280         };
282         fan@2 {
283                 reg = <0x01>;
284                 aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
285         };
287         fan@3 {
288                 reg = <0x01>;
289                 aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
290         };
292         fan@4 {
293                 reg = <0x00>;
294                 aspeed,fan-tach-ch = /bits/ 8 <0x0c>;
295         };
297         fan@5 {
298                 reg = <0x00>;
299                 aspeed,fan-tach-ch = /bits/ 8 <0x0d>;
300         };
302         fan@6 {
303                 reg = <0x01>;
304                 aspeed,fan-tach-ch = /bits/ 8 <0x0e>;
305         };
308 &ibt {
309         status = "okay";
312 &vhub {
313         status = "okay";
316 &adc {
317         status = "okay";
320 &video {
321         status = "okay";
322         memory-region = <&video_engine_memory>;
325 #include "ibm-power9-dual.dtsi"