Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
[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@9f000000 {
25                         no-map;
26                         reg = <0x9f000000 0x01000000>; /* 16M */
27                 };
28
29                 flash_memory: region@98000000 {
30                         no-map;
31                         reg = <0x98000000 0x04000000>; /* 64M */
32                 };
33
34                 coldfire_memory: codefire_memory@9ef00000 {
35                         reg = <0x9ef00000 0x00100000>;
36                         no-map;
37                 };
38         };
39
40         leds {
41                 compatible = "gpio-leds";
42
43                 fault {
44                         gpios = <&gpio ASPEED_GPIO(N, 2) GPIO_ACTIVE_LOW>;
45                 };
46
47                 identify {
48                         gpios = <&gpio ASPEED_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
49                 };
50
51                 power {
52                         gpios = <&gpio ASPEED_GPIO(R, 5) GPIO_ACTIVE_LOW>;
53                 };
54         };
55
56         fsi: gpio-fsi {
57                 compatible = "aspeed,ast2500-cf-fsi-master", "fsi-master";
58                 #address-cells = <2>;
59                 #size-cells = <0>;
60                 no-gpio-delays;
61
62                 memory-region = <&coldfire_memory>;
63                 aspeed,sram = <&sram>;
64                 aspeed,cvic = <&cvic>;
65
66                 clock-gpios = <&gpio ASPEED_GPIO(AA, 0) GPIO_ACTIVE_HIGH>;
67                 data-gpios = <&gpio ASPEED_GPIO(AA, 2) GPIO_ACTIVE_HIGH>;
68                 mux-gpios = <&gpio ASPEED_GPIO(A, 6) GPIO_ACTIVE_HIGH>;
69                 enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
70                 trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
71         };
72
73         gpio-keys {
74                 compatible = "gpio-keys";
75
76                 checkstop {
77                         label = "checkstop";
78                         gpios = <&gpio ASPEED_GPIO(J, 2) GPIO_ACTIVE_LOW>;
79                         linux,code = <ASPEED_GPIO(J, 2)>;
80                 };
81
82                 id-button {
83                         label = "id-button";
84                         gpios = <&gpio ASPEED_GPIO(Q, 7) GPIO_ACTIVE_LOW>;
85                         linux,code = <ASPEED_GPIO(Q, 7)>;
86                 };
87         };
88
89         iio-hwmon-battery {
90                 compatible = "iio-hwmon";
91                 io-channels = <&adc 12>;
92         };
93 };
94
95 &fmc {
96         status = "okay";
97         flash@0 {
98                 status = "okay";
99                 m25p,fast-read;
100                 label = "bmc";
101 #include "openbmc-flash-layout.dtsi"
102         };
103 };
104
105 &spi1 {
106         status = "okay";
107         pinctrl-names = "default";
108         pinctrl-0 = <&pinctrl_spi1_default>;
109
110         flash@0 {
111                 status = "okay";
112                 m25p,fast-read;
113                 label = "pnor";
114         };
115 };
116
117 &lpc_ctrl {
118         status = "okay";
119         memory-region = <&flash_memory>;
120         flash = <&spi1>;
121 };
122
123 &uart1 {
124         /* Rear RS-232 connector */
125         status = "okay";
126
127         pinctrl-names = "default";
128         pinctrl-0 = <&pinctrl_txd1_default
129                         &pinctrl_rxd1_default
130                         &pinctrl_nrts1_default
131                         &pinctrl_ndtr1_default
132                         &pinctrl_ndsr1_default
133                         &pinctrl_ncts1_default
134                         &pinctrl_ndcd1_default
135                         &pinctrl_nri1_default>;
136 };
137
138 &uart5 {
139         status = "okay";
140 };
141
142 &mac0 {
143         status = "okay";
144
145         use-ncsi;
146
147         pinctrl-names = "default";
148         pinctrl-0 = <&pinctrl_rmii1_default>;
149 };
150
151 &i2c1 {
152         status = "okay";
153 };
154
155 &i2c2 {
156         status = "okay";
157 };
158
159 &i2c3 {
160         status = "okay";
161 };
162
163 &i2c4 {
164         status = "okay";
165 };
166
167 &i2c5 {
168         status = "okay";
169 };
170
171 &i2c6 {
172         /* PCIe slot 1 (x8) */
173         status = "okay";
174 };
175
176 &i2c7 {
177         /* PCIe slot 2 (x16) */
178         status = "okay";
179 };
180
181 &i2c8 {
182         /* PCIe slot 3 (x16) */
183         status = "okay";
184 };
185
186 &i2c9 {
187         /* PCIe slot 4 (x16) */
188         status = "okay";
189 };
190
191 &i2c10 {
192         /* PCIe slot 5 (x8) */
193         status = "okay";
194 };
195
196 &i2c11 {
197         status = "okay";
198
199         rtc@32 {
200                 compatible = "epson,rx8900";
201                 reg = <0x32>;
202         };
203 };
204
205 &i2c12 {
206         status = "okay";
207
208         w83773g@4c {
209                 compatible = "nuvoton,w83773g";
210                 reg = <0x4c>;
211         };
212 };
213
214 &gpio {
215         nic_func_mode0 {
216                 gpio-hog;
217                 gpios = <ASPEED_GPIO(D, 3) GPIO_ACTIVE_HIGH>;
218                 output-low;
219                 line-name = "nic_func_mode0";
220         };
221         nic_func_mode1 {
222                 gpio-hog;
223                 gpios = <ASPEED_GPIO(D, 4) GPIO_ACTIVE_HIGH>;
224                 output-low;
225                 line-name = "nic_func_mode1";
226         };
227         seq_cont {
228                 gpio-hog;
229                 gpios = <ASPEED_GPIO(S, 7) GPIO_ACTIVE_HIGH>;
230                 output-low;
231                 line-name = "seq_cont";
232         };
233 };
234
235 &vuart {
236         status = "okay";
237 };
238
239 &gfx {
240         status = "okay";
241 };
242
243 &pinctrl {
244         aspeed,external-nodes = <&gfx &lhc>;
245 };
246
247 &pwm_tacho {
248         status = "okay";
249         pinctrl-names = "default";
250         pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default>;
251
252         fan@0 {
253                 reg = <0x00>;
254                 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
255         };
256
257         fan@1 {
258                 reg = <0x00>;
259                 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
260         };
261
262         fan@2 {
263                 reg = <0x01>;
264                 aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
265         };
266
267         fan@3 {
268                 reg = <0x01>;
269                 aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
270         };
271
272         fan@4 {
273                 reg = <0x00>;
274                 aspeed,fan-tach-ch = /bits/ 8 <0x0c>;
275         };
276
277         fan@5 {
278                 reg = <0x00>;
279                 aspeed,fan-tach-ch = /bits/ 8 <0x0d>;
280         };
281
282         fan@6 {
283                 reg = <0x01>;
284                 aspeed,fan-tach-ch = /bits/ 8 <0x0e>;
285         };
286 };
287
288 &ibt {
289         status = "okay";
290 };
291
292 &vhub {
293         status = "okay";
294 };
295
296 &adc {
297         status = "okay";
298 };