Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
[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         max31785@52 {
188                 compatible = "maxim,max31785";
189                 reg = <0x52>;
190         };
191 };
192
193 &gpio {
194         nic_func_mode0 {
195                 gpio-hog;
196                 gpios = <ASPEED_GPIO(D, 3) GPIO_ACTIVE_HIGH>;
197                 output-low;
198                 line-name = "nic_func_mode0";
199         };
200         nic_func_mode1 {
201                 gpio-hog;
202                 gpios = <ASPEED_GPIO(D, 4) GPIO_ACTIVE_HIGH>;
203                 output-low;
204                 line-name = "nic_func_mode1";
205         };
206 };
207
208 &vuart {
209         status = "okay";
210 };
211
212 &gfx {
213         status = "okay";
214 };
215
216 &pinctrl {
217         aspeed,external-nodes = <&gfx &lhc>;
218 };
219
220 &pwm_tacho {
221         status = "okay";
222         pinctrl-names = "default";
223         pinctrl-0 = <&pinctrl_pwm0_default &pinctrl_pwm1_default>;
224
225         fan@0 {
226                 reg = <0x00>;
227                 aspeed,fan-tach-ch = /bits/ 8 <0x08>;
228         };
229
230         fan@1 {
231                 reg = <0x00>;
232                 aspeed,fan-tach-ch = /bits/ 8 <0x09>;
233         };
234
235         fan@2 {
236                 reg = <0x01>;
237                 aspeed,fan-tach-ch = /bits/ 8 <0x0a>;
238         };
239
240         fan@3 {
241                 reg = <0x01>;
242                 aspeed,fan-tach-ch = /bits/ 8 <0x0b>;
243         };
244
245         fan@4 {
246                 reg = <0x00>;
247                 aspeed,fan-tach-ch = /bits/ 8 <0x0c>;
248         };
249
250         fan@5 {
251                 reg = <0x00>;
252                 aspeed,fan-tach-ch = /bits/ 8 <0x0d>;
253         };
254
255         fan@6 {
256                 reg = <0x01>;
257                 aspeed,fan-tach-ch = /bits/ 8 <0x0e>;
258         };
259 };