ARM: dts: romulus: Remove MAX31785 device
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / 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 };
73
74 &fmc {
75         status = "okay";
76         flash@0 {
77                 status = "okay";
78                 m25p,fast-read;
79                 label = "bmc";
80 #include "openbmc-flash-layout.dtsi"
81         };
82 };
83
84 &spi1 {
85         status = "okay";
86         pinctrl-names = "default";
87         pinctrl-0 = <&pinctrl_spi1_default>;
88
89         flash@0 {
90                 status = "okay";
91                 m25p,fast-read;
92                 label = "pnor";
93         };
94 };
95
96 &lpc_ctrl {
97         status = "okay";
98         memory-region = <&flash_memory>;
99         flash = <&spi1>;
100 };
101
102 &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
117 &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 };
129
130 &i2c1 {
131         status = "okay";
132 };
133
134 &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";
186 };
187
188 &gpio {
189         nic_func_mode0 {
190                 gpio-hog;
191                 gpios = <ASPEED_GPIO(D, 3) GPIO_ACTIVE_HIGH>;
192                 output-low;
193                 line-name = "nic_func_mode0";
194         };
195         nic_func_mode1 {
196                 gpio-hog;
197                 gpios = <ASPEED_GPIO(D, 4) GPIO_ACTIVE_HIGH>;
198                 output-low;
199                 line-name = "nic_func_mode1";
200         };
201 };
202
203 &vuart {
204         status = "okay";
205 };
206
207 &gfx {
208         status = "okay";
209 };
210
211 &pinctrl {
212         aspeed,external-nodes = <&gfx &lhc>;
213 };
214
215 &pwm_tacho {
216         status = "okay";
217         pinctrl-names = "default";
218         pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default>;
219
220         fan@0 {
221                 reg = <0x00>;
222                 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
223         };
224
225         fan@1 {
226                 reg = <0x00>;
227                 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
228         };
229
230         fan@2 {
231                 reg = <0x01>;
232                 aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
233         };
234
235         fan@3 {
236                 reg = <0x01>;
237                 aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
238         };
239
240         fan@4 {
241                 reg = <0x00>;
242                 aspeed,fan-tach-ch = /bits/ 8 <0x0c>;
243         };
244
245         fan@5 {
246                 reg = <0x00>;
247                 aspeed,fan-tach-ch = /bits/ 8 <0x0d>;
248         };
249
250         fan@6 {
251                 reg = <0x01>;
252                 aspeed,fan-tach-ch = /bits/ 8 <0x0e>;
253         };
254 };
255
256 &ibt {
257         status = "okay";
258 };