treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arm / boot / dts / aspeed-bmc-opp-vesnin.dts
blobaffd2c8743b149a533ef5c6610e48e8e4fe69906
1 // SPDX-License-Identifier: GPL-2.0+
2 // Copyright 2019 YADRO
3 /dts-v1/;
5 #include "aspeed-g4.dtsi"
6 #include <dt-bindings/gpio/aspeed-gpio.h>
8 / {
9         model = "Vesnin BMC";
10         compatible = "yadro,vesnin-bmc", "aspeed,ast2400";
12         chosen {
13                 stdout-path = &uart5;
14                 bootargs = "console=ttyS4,115200 earlyprintk";
15         };
17         memory {
18                 reg = <0x40000000 0x20000000>;
19         };
21         reserved-memory {
22                 #address-cells = <1>;
23                 #size-cells = <1>;
24                 ranges;
26                 vga_memory: framebuffer@5f000000 {
27                         no-map;
28                         reg = <0x5f000000 0x01000000>; /* 16MB */
29                 };
30                 flash_memory: region@5c000000 {
31                         no-map;
32                         reg = <0x5c000000 0x02000000>; /* 32M */
33                 };
34         };
36         leds {
37                 compatible = "gpio-leds";
39                 heartbeat {
40                         gpios = <&gpio ASPEED_GPIO(R, 4) GPIO_ACTIVE_LOW>;
41                 };
42                 power_red {
43                         gpios = <&gpio ASPEED_GPIO(N, 1) GPIO_ACTIVE_LOW>;
44                 };
46                 power_green {
47                         gpios = <&gpio ASPEED_GPIO(F, 1) GPIO_ACTIVE_LOW>;
48                 };
50                 id_blue {
51                         gpios = <&gpio ASPEED_GPIO(O, 0) GPIO_ACTIVE_LOW>;
52                 };
54                 alarm_red {
55                         gpios = <&gpio ASPEED_GPIO(N, 6) GPIO_ACTIVE_LOW>;
56                 };
58                 alarm_yel {
59                         gpios = <&gpio ASPEED_GPIO(N, 7) GPIO_ACTIVE_HIGH>;
60                 };
61         };
63         gpio-keys {
64                 compatible = "gpio-keys";
66                 button_checkstop {
67                         label = "checkstop";
68                         linux,code = <74>;
69                         gpios = <&gpio ASPEED_GPIO(P, 5) GPIO_ACTIVE_LOW>;
70                 };
72                 button_identify {
73                         label = "identify";
74                         linux,code = <152>;
75                         gpios = <&gpio ASPEED_GPIO(O, 7) GPIO_ACTIVE_LOW>;
76                 };
77         };
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         };
89         flash@1 {
90                 status = "okay";
91                 m25p,fast-read;
92                 label = "alt";
93         };
96 &spi {
97         status = "okay";
98         pinctrl-names = "default";
99         pinctrl-0 = <&pinctrl_spi1debug_default>;
101         flash@0 {
102                 status = "okay";
103                 label = "pnor";
104                 m25p,fast-read;
105         };
108 &mac0 {
109         status = "okay";
111         use-ncsi;
112         no-hw-checksum;
114         pinctrl-names = "default";
115         pinctrl-0 = <&pinctrl_rmii1_default>;
119 &uart5 {
120         status = "okay";
123 &lpc_ctrl {
124         status = "okay";
125         memory-region = <&flash_memory>;
126         flash = <&spi>;
129 &ibt {
130         status = "okay";
133 &uart3 {
134         status = "okay";
135         pinctrl-names = "default";
136         pinctrl-0 = <&pinctrl_txd2_default &pinctrl_rxd2_default>;
139 &i2c0 {
140         status = "okay";
142         eeprom@50 {
143                 compatible = "atmel,24c256";
144                 reg = <0x50>;
145                 pagesize = <64>;
146         };
149 &i2c1 {
150         status = "okay";
152         tmp75@49 {
153                 compatible = "ti,tmp75";
154                 reg = <0x49>;
155         };
158 &i2c2 {
159         status = "okay";
162 &i2c3 {
163         status = "okay";
166 &i2c4 {
167         status = "okay";
169         occ-hwmon@50 {
170                 compatible = "ibm,p8-occ-hwmon";
171                 reg = <0x50>;
172         };
175 &i2c5 {
176         status = "okay";
178         occ-hwmon@51 {
179                 compatible = "ibm,p8-occ-hwmon";
180                 reg = <0x51>;
181         };
184 &i2c6 {
185         status = "okay";
187         w83795g@2f {
188                 compatible = "nuvoton,w83795g";
189                 reg = <0x2f>;
190         };
193 &i2c7 {
194         status = "okay";
196         occ-hwmon@56 {
197                 compatible = "ibm,p8-occ-hwmon";
198                 reg = <0x56>;
199         };
202 &i2c9 {
203         status = "okay";
206 &i2c10 {
207         status = "okay";
210 &i2c11 {
211         status = "okay";
213         occ-hwmon@57 {
214                 compatible = "ibm,p8-occ-hwmon";
215                 reg = <0x57>;
216         };
219 &i2c12 {
220         status = "okay";
222         rtc@68 {
223                 compatible = "maxim,ds3231";
224                 reg = <0x68>;
225         };
228 &i2c13 {
229         status = "okay";
232 &vuart {
233         status = "okay";
236 &wdt2 {
237         aspeed,alt-boot;