Merge tag 'armsoc-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / aspeed-bmc-opp-palmetto.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 /dts-v1/;
3
4 #include "aspeed-g4.dtsi"
5 #include <dt-bindings/gpio/aspeed-gpio.h>
6
7 / {
8         model = "Palmetto BMC";
9         compatible = "tyan,palmetto-bmc", "aspeed,ast2400";
10
11         chosen {
12                 stdout-path = &uart5;
13                 bootargs = "console=ttyS4,115200 earlyprintk";
14         };
15
16         memory@40000000 {
17                 reg = <0x40000000 0x20000000>;
18         };
19
20         reserved-memory {
21                 #address-cells = <1>;
22                 #size-cells = <1>;
23                 ranges;
24
25                 vga_memory: framebuffer@5f000000 {
26                         no-map;
27                         reg = <0x5f000000 0x01000000>; /* 16M */
28                 };
29
30                 coldfire_memory: codefire_memory@5ee00000 {
31                         reg = <0x5ee00000 0x00200000>;
32                         no-map;
33                 };
34
35                 flash_memory: region@5c000000 {
36                         no-map;
37                         reg = <0x5C000000 0x02000000>; /* 32MB */
38                 };
39         };
40
41         leds {
42                 compatible = "gpio-leds";
43
44                 heartbeat {
45                         gpios = <&gpio ASPEED_GPIO(R, 4) GPIO_ACTIVE_LOW>;
46                 };
47
48                 power {
49                         gpios = <&gpio ASPEED_GPIO(R, 5) GPIO_ACTIVE_LOW>;
50                 };
51
52                 identify {
53                         gpios = <&gpio ASPEED_GPIO(A, 2) GPIO_ACTIVE_LOW>;
54                 };
55         };
56
57         fsi: gpio-fsi {
58                 compatible = "aspeed,ast2400-cf-fsi-master", "fsi-master";
59                 #address-cells = <2>;
60                 #size-cells = <0>;
61
62                 memory-region = <&coldfire_memory>;
63                 aspeed,sram = <&sram>;
64                 aspeed,cvic = <&cvic>;
65
66                 clock-gpios = <&gpio ASPEED_GPIO(A, 4) GPIO_ACTIVE_HIGH>;
67                 data-gpios = <&gpio ASPEED_GPIO(A, 5) 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(H, 6) GPIO_ACTIVE_HIGH>;
71         };
72
73         gpio-keys {
74                 compatible = "gpio-keys";
75
76                 checkstop {
77                         label = "checkstop";
78                         gpios = <&gpio ASPEED_GPIO(P, 5) GPIO_ACTIVE_LOW>;
79                         linux,code = <ASPEED_GPIO(P, 5)>;
80                 };
81         };
82 };
83
84 &fmc {
85         status = "okay";
86         flash@0 {
87                 status = "okay";
88                 m25p,fast-read;
89                 label = "bmc";
90 #include "openbmc-flash-layout.dtsi"
91         };
92 };
93
94 &spi {
95         status = "okay";
96         pinctrl-names = "default";
97         pinctrl-0 = <&pinctrl_spi1debug_default>;
98
99         flash@0 {
100                 status = "okay";
101                 m25p,fast-read;
102                 label = "pnor";
103         };
104 };
105
106 &pinctrl {
107         pinctrl-names = "default";
108         pinctrl-0 = <&pinctrl_flbusy_default &pinctrl_flwp_default
109
110                         &pinctrl_vgahs_default &pinctrl_vgavs_default
111                         &pinctrl_ddcclk_default &pinctrl_ddcdat_default>;
112 };
113
114 &uart1 {
115         /* Rear RS-232 connector */
116         status = "okay";
117
118         pinctrl-names = "default";
119         pinctrl-0 = <&pinctrl_txd1_default
120                         &pinctrl_rxd1_default
121                         &pinctrl_nrts1_default
122                         &pinctrl_ndtr1_default
123                         &pinctrl_ndsr1_default
124                         &pinctrl_ncts1_default
125                         &pinctrl_ndcd1_default
126                         &pinctrl_nri1_default>;
127 };
128
129 &uart5 {
130         status = "okay";
131 };
132
133 &mac0 {
134         status = "okay";
135
136         use-ncsi;
137
138         pinctrl-names = "default";
139         pinctrl-0 = <&pinctrl_rmii1_default>;
140 };
141
142 &i2c0 {
143         status = "okay";
144
145         eeprom@50 {
146                 compatible = "atmel,24c256";
147                 reg = <0x50>;
148                 pagesize = <64>;
149         };
150
151         rtc@68 {
152                 compatible = "dallas,ds3231";
153                 reg = <0x68>;
154         };
155 };
156
157 &i2c1 {
158         status = "okay";
159 };
160
161 &i2c2 {
162         status = "okay";
163
164         tmp423@4c {
165                 compatible = "ti,tmp423";
166                 reg = <0x4c>;
167         };
168 };
169
170 &i2c3 {
171         status = "okay";
172
173         occ-hwmon@50 {
174                 compatible = "ibm,p8-occ-hwmon";
175                 reg = <0x50>;
176         };
177 };
178
179 &i2c4 {
180         status = "okay";
181 };
182
183 &i2c5 {
184         status = "okay";
185 };
186
187 &i2c6 {
188         status = "okay";
189 };
190
191 &i2c7 {
192         status = "okay";
193 };
194
195 &vuart {
196         status = "okay";
197 };
198
199 &ibt {
200         status = "okay";
201 };
202
203 &lpc_ctrl {
204         status = "okay";
205         memory-region = <&flash_memory>;
206         flash = <&spi>;
207 };
208
209 &gpio {
210         pin_func_mode0 {
211                 gpio-hog;
212                 gpios = <ASPEED_GPIO(C, 4) GPIO_ACTIVE_HIGH>;
213                 output-low;
214                 line-name = "func_mode0";
215         };
216
217         pin_func_mode1 {
218                 gpio-hog;
219                 gpios = <ASPEED_GPIO(C, 5)  GPIO_ACTIVE_HIGH>;
220                 output-low;
221                 line-name = "func_mode1";
222         };
223
224         pin_func_mode2 {
225                 gpio-hog;
226                 gpios = <ASPEED_GPIO(C, 6) GPIO_ACTIVE_HIGH>;
227                 output-low;
228                 line-name = "func_mode2";
229         };
230
231         pin_gpio_a0 {
232                 gpio-hog;
233                 gpios = <ASPEED_GPIO(A, 0) GPIO_ACTIVE_HIGH>;
234                 input;
235                 line-name = "BMC_FAN_RESERVED_N";
236         };
237
238         pin_gpio_a1 {
239                 gpio-hog;
240                 gpios = <ASPEED_GPIO(A, 1) GPIO_ACTIVE_HIGH>;
241                 output-high;
242                 line-name = "APSS_WDT_N";
243         };
244
245         pin_gpio_b1 {
246                 gpio-hog;
247                 gpios = <ASPEED_GPIO(B, 1) GPIO_ACTIVE_HIGH>;
248                 output-high;
249                 line-name = "APSS_BOOT_MODE";
250         };
251
252         pin_gpio_b2 {
253                 gpio-hog;
254                 gpios = <ASPEED_GPIO(B, 2) GPIO_ACTIVE_HIGH>;
255                 output-high;
256                 line-name = "APSS_RESET_N";
257         };
258
259         pin_gpio_b7 {
260                 gpio-hog;
261                 gpios = <ASPEED_GPIO(B, 7) GPIO_ACTIVE_HIGH>;
262                 output-high;
263                 line-name = "SPIVID_STBY_RESET_N";
264         };
265
266         pin_gpio_d1 {
267                 gpio-hog;
268                 gpios = <ASPEED_GPIO(D, 1) GPIO_ACTIVE_HIGH>;
269                 output-high;
270                 line-name = "BMC_POWER_UP";
271         };
272
273         pin_gpio_f1 {
274                 gpio-hog;
275                 gpios = <ASPEED_GPIO(F, 1) GPIO_ACTIVE_HIGH>;
276                 input;
277                 line-name = "BMC_BATTERY_TEST";
278         };
279
280         pin_gpio_f4 {
281                 gpio-hog;
282                 gpios = <ASPEED_GPIO(F, 4) GPIO_ACTIVE_HIGH>;
283                 input;
284                 line-name = "AST_HW_FAULT_N";
285         };
286
287         pin_gpio_f5 {
288                 gpio-hog;
289                 gpios = <ASPEED_GPIO(F, 5) GPIO_ACTIVE_HIGH>;
290                 input;
291                 line-name = "AST_SYS_FAULT_N";
292         };
293
294         pin_gpio_f7 {
295                 gpio-hog;
296                 gpios = <ASPEED_GPIO(F, 7) GPIO_ACTIVE_HIGH>;
297                 output-high;
298                 line-name = "BMC_FULL_SPEED_N";
299         };
300
301         pin_gpio_g3 {
302                 gpio-hog;
303                 gpios = <ASPEED_GPIO(G, 3) GPIO_ACTIVE_HIGH>;
304                 output-high;
305                 line-name = "BMC_FAN_ERROR_N";
306         };
307
308         pin_gpio_g4 {
309                 gpio-hog;
310                 gpios = <ASPEED_GPIO(G, 4) GPIO_ACTIVE_HIGH>;
311                 input;
312                 line-name = "BMC_WDT_RST1_P";
313         };
314
315         pin_gpio_g5 {
316                 gpio-hog;
317                 gpios = <ASPEED_GPIO(G, 5) GPIO_ACTIVE_HIGH>;
318                 input;
319                 line-name = "BMC_WDT_RST2_P";
320         };
321
322         pin_gpio_h0 {
323                 gpio-hog;
324                 gpios = <ASPEED_GPIO(H, 0) GPIO_ACTIVE_HIGH>;
325                 input;
326                 line-name = "PE_SLOT_TEST_EN_N";
327         };
328
329         pin_gpio_h1 {
330                 gpio-hog;
331                 gpios = <ASPEED_GPIO(H, 1) GPIO_ACTIVE_HIGH>;
332                 input;
333                 line-name = "BMC_RTCRST_N";
334         };
335
336         pin_gpio_h2 {
337                 gpio-hog;
338                 gpios = <ASPEED_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
339                 output-high;
340                 line-name = "SYS_PWROK_BMC";
341         };
342
343         pin_gpio_h7 {
344                 gpio-hog;
345                 gpios = <ASPEED_GPIO(H, 7) GPIO_ACTIVE_HIGH>;
346                 output-high;
347                 line-name = "BMC_TPM_INT_N";
348         };
349 };