GNU Linux-libre 6.1.90-gnu
[releases.git] / arch / arm / boot / dts / aspeed-bmc-facebook-bletchley.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 // Copyright (c) 2021 Facebook Inc.
3 /dts-v1/;
4
5 #include "aspeed-g6.dtsi"
6 #include <dt-bindings/gpio/aspeed-gpio.h>
7 #include <dt-bindings/usb/pd.h>
8 #include <dt-bindings/leds/leds-pca955x.h>
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/i2c/i2c.h>
11
12 / {
13         model = "Facebook Bletchley BMC";
14         compatible = "facebook,bletchley-bmc", "aspeed,ast2600";
15
16         aliases {
17                 serial4 = &uart5;
18         };
19
20         chosen {
21                 bootargs = "console=ttyS4,57600n8";
22         };
23
24         memory@80000000 {
25                 device_type = "memory";
26                 reg = <0x80000000 0x80000000>;
27         };
28
29         iio-hwmon {
30                 compatible = "iio-hwmon";
31                 io-channels = <&adc0 0>, <&adc0 1>, <&adc0 2>, <&adc0 3>,
32                         <&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>,
33                         <&adc1 0>, <&adc1 1>, <&adc1 2>, <&adc1 3>,
34                         <&adc1 4>, <&adc1 5>, <&adc1 6>, <&adc1 7>;
35         };
36
37         spi1_gpio: spi1-gpio {
38                 compatible = "spi-gpio";
39                 #address-cells = <1>;
40                 #size-cells = <0>;
41
42                 gpio-sck = <&gpio0 ASPEED_GPIO(Z, 3) GPIO_ACTIVE_HIGH>;
43                 gpio-mosi = <&gpio0 ASPEED_GPIO(Z, 4) GPIO_ACTIVE_HIGH>;
44                 gpio-miso = <&gpio0 ASPEED_GPIO(Z, 5) GPIO_ACTIVE_HIGH>;
45                 num-chipselects = <1>;
46                 cs-gpios = <&gpio0 ASPEED_GPIO(Z, 0) GPIO_ACTIVE_LOW>;
47
48                 tpmdev@0 {
49                         compatible = "tcg,tpm_tis-spi";
50                         spi-max-frequency = <33000000>;
51                         reg = <0>;
52                 };
53         };
54
55         switchphy: ethernet-phy@0 {
56                 // Fixed link
57         };
58
59         front_gpio_leds {
60                 compatible = "gpio-leds";
61                 sys_log_id {
62                         default-state = "off";
63                         gpios = <&front_leds 0 GPIO_ACTIVE_HIGH>;
64                 };
65         };
66
67         fan_gpio_leds {
68                 compatible = "gpio-leds";
69                 fan0_blue {
70                         retain-state-shutdown;
71                         default-state = "on";
72                         gpios = <&fan_leds 8 GPIO_ACTIVE_HIGH>;
73                 };
74                 fan1_blue {
75                         retain-state-shutdown;
76                         default-state = "on";
77                         gpios = <&fan_leds 9 GPIO_ACTIVE_HIGH>;
78                 };
79                 fan2_blue {
80                         retain-state-shutdown;
81                         default-state = "on";
82                         gpios = <&fan_leds 10 GPIO_ACTIVE_HIGH>;
83                 };
84                 fan3_blue {
85                         retain-state-shutdown;
86                         default-state = "on";
87                         gpios = <&fan_leds 11 GPIO_ACTIVE_HIGH>;
88                 };
89                 fan0_amber {
90                         retain-state-shutdown;
91                         default-state = "off";
92                         gpios = <&fan_leds 12 GPIO_ACTIVE_HIGH>;
93                 };
94                 fan1_amber {
95                         retain-state-shutdown;
96                         default-state = "off";
97                         gpios = <&fan_leds 13 GPIO_ACTIVE_HIGH>;
98                 };
99                 fan2_amber {
100                         retain-state-shutdown;
101                         default-state = "off";
102                         gpios = <&fan_leds 14 GPIO_ACTIVE_HIGH>;
103                 };
104                 fan3_amber {
105                         retain-state-shutdown;
106                         default-state = "off";
107                         gpios = <&fan_leds 15 GPIO_ACTIVE_HIGH>;
108                 };
109         };
110
111         sled1_gpio_leds {
112                 compatible = "gpio-leds";
113                 sled1_amber {
114                         retain-state-shutdown;
115                         default-state = "keep";
116                         gpios = <&sled1_leds 0 GPIO_ACTIVE_LOW>;
117                 };
118                 sled1_blue {
119                         retain-state-shutdown;
120                         default-state = "keep";
121                         gpios = <&sled1_leds 1 GPIO_ACTIVE_LOW>;
122                 };
123         };
124
125         sled2_gpio_leds {
126                 compatible = "gpio-leds";
127                 sled2_amber {
128                         retain-state-shutdown;
129                         default-state = "keep";
130                         gpios = <&sled2_leds 0 GPIO_ACTIVE_LOW>;
131                 };
132                 sled2_blue {
133                         retain-state-shutdown;
134                         default-state = "keep";
135                         gpios = <&sled2_leds 1 GPIO_ACTIVE_LOW>;
136                 };
137         };
138
139         sled3_gpio_leds {
140                 compatible = "gpio-leds";
141                 sled3_amber {
142                         retain-state-shutdown;
143                         default-state = "keep";
144                         gpios = <&sled3_leds 0 GPIO_ACTIVE_LOW>;
145                 };
146                 sled3_blue {
147                         retain-state-shutdown;
148                         default-state = "keep";
149                         gpios = <&sled3_leds 1 GPIO_ACTIVE_LOW>;
150                 };
151         };
152
153         sled4_gpio_leds {
154                 compatible = "gpio-leds";
155                 sled4_amber {
156                         retain-state-shutdown;
157                         default-state = "keep";
158                         gpios = <&sled4_leds 0 GPIO_ACTIVE_LOW>;
159                 };
160                 sled4_blue {
161                         retain-state-shutdown;
162                         default-state = "keep";
163                         gpios = <&sled4_leds 1 GPIO_ACTIVE_LOW>;
164                 };
165         };
166
167         sled5_gpio_leds {
168                 compatible = "gpio-leds";
169                 sled5_amber {
170                         retain-state-shutdown;
171                         default-state = "keep";
172                         gpios = <&sled5_leds 0 GPIO_ACTIVE_LOW>;
173                 };
174                 sled5_blue {
175                         retain-state-shutdown;
176                         default-state = "keep";
177                         gpios = <&sled5_leds 1 GPIO_ACTIVE_LOW>;
178                 };
179         };
180
181         sled6_gpio_leds {
182                 compatible = "gpio-leds";
183                 sled6_amber {
184                         retain-state-shutdown;
185                         default-state = "keep";
186                         gpios = <&sled6_leds 0 GPIO_ACTIVE_LOW>;
187                 };
188                 sled6_blue {
189                         retain-state-shutdown;
190                         default-state = "keep";
191                         gpios = <&sled6_leds 1 GPIO_ACTIVE_LOW>;
192                 };
193         };
194 };
195
196 &mac2 {
197         status = "okay";
198         phy-mode = "rgmii";
199         phy-handle = <&switchphy>;
200         pinctrl-names = "default";
201         pinctrl-0 = <&pinctrl_rgmii3_default>;
202
203         fixed-link {
204                 speed = <1000>;
205                 full-duplex;
206         };
207 };
208
209 &fmc {
210         status = "okay";
211         flash@0 {
212                 status = "okay";
213                 m25p,fast-read;
214                 label = "bmc";
215                 spi-max-frequency = <50000000>;
216 #include "openbmc-flash-layout-128.dtsi"
217         };
218         flash@1 {
219                 status = "okay";
220                 m25p,fast-read;
221                 label = "flash1";
222                 spi-max-frequency = <50000000>;
223         };
224 };
225
226 &spi2 {
227         status = "okay";
228         pinctrl-names = "default";
229         pinctrl-0 = <&pinctrl_spi2_default>;
230
231         flash@0 {
232                 status = "okay";
233                 m25p,fast-read;
234                 label = "pnor";
235                 spi-max-frequency = <50000000>;
236         };
237 };
238
239 &i2c0 {
240         status = "okay";
241         ina230@45 {
242                 compatible = "ti,ina230";
243                 reg = <0x45>;
244                 shunt-resistor = <2000>;
245         };
246
247         mp5023@40 {
248                 compatible = "mps,mp5023";
249                 reg = <0x40>;
250         };
251
252         tmp421@4f {
253                 compatible = "ti,tmp421";
254                 reg = <0x4f>;
255         };
256
257         sled1_ioexp41: pca9536@41 {
258                 compatible = "nxp,pca9536";
259                 reg = <0x41>;
260                 gpio-controller;
261                 #gpio-cells = <2>;
262
263                 gpio-line-names =
264                 "SLED1_SWD_MUX", "SLED1_XRES_SWD_N",
265                 "SLED1_CLKREQ_N", "SLED1_PCIE_PWR_EN";
266         };
267
268         sled1_ioexp: pca9539@76 {
269                 compatible = "nxp,pca9539";
270                 reg = <0x76>;
271                 #address-cells = <1>;
272                 #size-cells = <0>;
273                 gpio-controller;
274                 #gpio-cells = <2>;
275
276                 interrupt-parent = <&gpio0>;
277                 interrupts = <ASPEED_GPIO(M, 0) IRQ_TYPE_LEVEL_LOW>;
278
279                 gpio-line-names =
280                 "SLED1_MS_DETECT1","SLED1_VBUS_BMC_EN","SLED1_INA230_ALERT","SLED1_P12V_STBY_ALERT",
281                 "SLED1_SSD_ALERT","SLED1_MS_DETECT0","SLED1_RST_CCG5","SLED1_FUSB302_INT",
282                 "SLED1_MD_STBY_RESET","SLED1_MD_IOEXP_EN_FAULT","SLED1_MD_DIR","SLED1_MD_DECAY",
283                 "SLED1_MD_MODE1","SLED1_MD_MODE2","SLED1_MD_MODE3","power-host1";
284         };
285
286         sled1_leds: pca9552@67 {
287                 compatible = "nxp,pca9552";
288                 reg = <0x67>;
289                 #address-cells = <1>;
290                 #size-cells = <0>;
291                 gpio-controller;
292                 #gpio-cells = <2>;
293
294                 gpio-line-names =
295                 "led-sled1-amber","led-sled1-blue","SLED1_RST_IOEXP","SLED1_MD_REF_PWM",
296                 "","","","",
297                 "","","","",
298                 "","","","";
299         };
300
301         sled1_fusb302: typec-portc@22 {
302                 compatible = "fcs,fusb302";
303                 reg = <0x22>;
304
305                 connector {
306                         compatible = "usb-c-connector";
307                         label = "USB-C";
308                         power-role = "dual";
309                         try-power-role = "sink";
310                         data-role = "dual";
311                         source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
312                         sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
313                                         PDO_VAR(3000, 12000, 3000)
314                                         PDO_PPS_APDO(3000, 11000, 3000)>;
315                         op-sink-microwatt = <10000000>;
316                 };
317         };
318
319         eeprom@54 {
320                 compatible = "atmel,24c64";
321                 reg = <0x54>;
322         };
323 };
324
325 &i2c1 {
326         status = "okay";
327         ina230@45 {
328                 compatible = "ti,ina230";
329                 reg = <0x45>;
330                 shunt-resistor = <2000>;
331         };
332
333         mp5023@40 {
334                 compatible = "mps,mp5023";
335                 reg = <0x40>;
336         };
337
338         tmp421@4f {
339                 compatible = "ti,tmp421";
340                 reg = <0x4f>;
341         };
342
343         sled2_ioexp41: pca9536@41 {
344                 compatible = "nxp,pca9536";
345                 reg = <0x41>;
346                 gpio-controller;
347                 #gpio-cells = <2>;
348
349                 gpio-line-names =
350                 "SLED2_SWD_MUX", "SLED2_XRES_SWD_N",
351                 "SLED2_CLKREQ_N", "SLED2_PCIE_PWR_EN";
352         };
353
354         sled2_ioexp: pca9539@76 {
355                 compatible = "nxp,pca9539";
356                 reg = <0x76>;
357                 #address-cells = <1>;
358                 #size-cells = <0>;
359                 gpio-controller;
360                 #gpio-cells = <2>;
361
362                 interrupt-parent = <&gpio0>;
363                 interrupts = <ASPEED_GPIO(M, 1) IRQ_TYPE_LEVEL_LOW>;
364
365                 gpio-line-names =
366                 "SLED2_MS_DETECT1","SLED2_VBUS_BMC_EN","SLED2_INA230_ALERT","SLED2_P12V_STBY_ALERT",
367                 "SLED2_SSD_ALERT","SLED2_MS_DETECT0","SLED2_RST_CCG5","SLED2_FUSB302_INT",
368                 "SLED2_MD_STBY_RESET","SLED2_MD_IOEXP_EN_FAULT","SLED2_MD_DIR","SLED2_MD_DECAY",
369                 "SLED2_MD_MODE1","SLED2_MD_MODE2","SLED2_MD_MODE3","power-host2";
370         };
371
372         sled2_leds: pca9552@67 {
373                 compatible = "nxp,pca9552";
374                 reg = <0x67>;
375                 #address-cells = <1>;
376                 #size-cells = <0>;
377                 gpio-controller;
378                 #gpio-cells = <2>;
379
380                 gpio-line-names =
381                 "led-sled2-amber","led-sled2-blue","SLED2_RST_IOEXP","SLED2_MD_REF_PWM",
382                 "","","","",
383                 "","","","",
384                 "","","","";
385         };
386
387         sled2_fusb302: typec-portc@22 {
388                 compatible = "fcs,fusb302";
389                 reg = <0x22>;
390
391                 connector {
392                         compatible = "usb-c-connector";
393                         label = "USB-C";
394                         power-role = "dual";
395                         try-power-role = "sink";
396                         data-role = "dual";
397                         source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
398                         sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
399                                         PDO_VAR(3000, 12000, 3000)
400                                         PDO_PPS_APDO(3000, 11000, 3000)>;
401                         op-sink-microwatt = <10000000>;
402                 };
403         };
404
405         eeprom@54 {
406                 compatible = "atmel,24c64";
407                 reg = <0x54>;
408         };
409 };
410
411 &i2c2 {
412         status = "okay";
413         ina230@45 {
414                 compatible = "ti,ina230";
415                 reg = <0x45>;
416                 shunt-resistor = <2000>;
417         };
418
419         mp5023@40 {
420                 compatible = "mps,mp5023";
421                 reg = <0x40>;
422         };
423
424         tmp421@4f {
425                 compatible = "ti,tmp421";
426                 reg = <0x4f>;
427         };
428
429         sled3_ioexp41: pca9536@41 {
430                 compatible = "nxp,pca9536";
431                 reg = <0x41>;
432                 gpio-controller;
433                 #gpio-cells = <2>;
434
435                 gpio-line-names =
436                 "SLED3_SWD_MUX", "SLED3_XRES_SWD_N",
437                 "SLED3_CLKREQ_N", "SLED3_PCIE_PWR_EN";
438         };
439
440         sled3_ioexp: pca9539@76 {
441                 compatible = "nxp,pca9539";
442                 reg = <0x76>;
443                 #address-cells = <1>;
444                 #size-cells = <0>;
445                 gpio-controller;
446                 #gpio-cells = <2>;
447
448                 interrupt-parent = <&gpio0>;
449                 interrupts = <ASPEED_GPIO(M, 2) IRQ_TYPE_LEVEL_LOW>;
450
451                 gpio-line-names =
452                 "SLED3_MS_DETECT1","SLED3_VBUS_BMC_EN","SLED3_INA230_ALERT","SLED3_P12V_STBY_ALERT",
453                 "SLED3_SSD_ALERT","SLED3_MS_DETECT0","SLED3_RST_CCG5","SLED3_FUSB302_INT",
454                 "SLED3_MD_STBY_RESET","SLED3_MD_IOEXP_EN_FAULT","SLED3_MD_DIR","SLED3_MD_DECAY",
455                 "SLED3_MD_MODE1","SLED3_MD_MODE2","SLED3_MD_MODE3","power-host3";
456         };
457
458         sled3_leds: pca9552@67 {
459                 compatible = "nxp,pca9552";
460                 reg = <0x67>;
461                 #address-cells = <1>;
462                 #size-cells = <0>;
463                 gpio-controller;
464                 #gpio-cells = <2>;
465
466                 gpio-line-names =
467                 "led-sled3-amber","led-sled3-blue","SLED3_RST_IOEXP","SLED3_MD_REF_PWM",
468                 "","","","",
469                 "","","","",
470                 "","","","";
471         };
472
473         sled3_fusb302: typec-portc@22 {
474                 compatible = "fcs,fusb302";
475                 reg = <0x22>;
476
477                 connector {
478                         compatible = "usb-c-connector";
479                         label = "USB-C";
480                         power-role = "dual";
481                         try-power-role = "sink";
482                         data-role = "dual";
483                         source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
484                         sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
485                                         PDO_VAR(3000, 12000, 3000)
486                                         PDO_PPS_APDO(3000, 11000, 3000)>;
487                         op-sink-microwatt = <10000000>;
488                 };
489         };
490
491         eeprom@54 {
492                 compatible = "atmel,24c64";
493                 reg = <0x54>;
494         };
495 };
496
497 &i2c3 {
498         status = "okay";
499         ina230@45 {
500                 compatible = "ti,ina230";
501                 reg = <0x45>;
502                 shunt-resistor = <2000>;
503         };
504
505         mp5023@40 {
506                 compatible = "mps,mp5023";
507                 reg = <0x40>;
508         };
509
510         tmp421@4f {
511                 compatible = "ti,tmp421";
512                 reg = <0x4f>;
513         };
514
515         sled4_ioexp41: pca9536@41 {
516                 compatible = "nxp,pca9536";
517                 reg = <0x41>;
518                 gpio-controller;
519                 #gpio-cells = <2>;
520
521                 gpio-line-names =
522                 "SLED4_SWD_MUX", "SLED4_XRES_SWD_N",
523                 "SLED4_CLKREQ_N", "SLED4_PCIE_PWR_EN";
524         };
525
526         sled4_ioexp: pca9539@76 {
527                 compatible = "nxp,pca9539";
528                 reg = <0x76>;
529                 #address-cells = <1>;
530                 #size-cells = <0>;
531                 gpio-controller;
532                 #gpio-cells = <2>;
533
534                 interrupt-parent = <&gpio0>;
535                 interrupts = <ASPEED_GPIO(M, 3) IRQ_TYPE_LEVEL_LOW>;
536
537                 gpio-line-names =
538                 "SLED4_MS_DETECT1","SLED4_VBUS_BMC_EN","SLED4_INA230_ALERT","SLED4_P12V_STBY_ALERT",
539                 "SLED4_SSD_ALERT","SLED4_MS_DETECT0","SLED4_RST_CCG5","SLED4_FUSB302_INT",
540                 "SLED4_MD_STBY_RESET","SLED4_MD_IOEXP_EN_FAULT","SLED4_MD_DIR","SLED4_MD_DECAY",
541                 "SLED4_MD_MODE1","SLED4_MD_MODE2","SLED4_MD_MODE3","power-host4";
542         };
543
544         sled4_leds: pca9552@67 {
545                 compatible = "nxp,pca9552";
546                 reg = <0x67>;
547                 #address-cells = <1>;
548                 #size-cells = <0>;
549                 gpio-controller;
550                 #gpio-cells = <2>;
551
552                 gpio-line-names =
553                 "led-sled4-amber","led-sled4-blue","SLED4_RST_IOEXP","SLED4_MD_REF_PWM",
554                 "","","","",
555                 "","","","",
556                 "","","","";
557         };
558
559         sled4_fusb302: typec-portc@22 {
560                 compatible = "fcs,fusb302";
561                 reg = <0x22>;
562
563                 connector {
564                         compatible = "usb-c-connector";
565                         label = "USB-C";
566                         power-role = "dual";
567                         try-power-role = "sink";
568                         data-role = "dual";
569                         source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
570                         sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
571                                         PDO_VAR(3000, 12000, 3000)
572                                         PDO_PPS_APDO(3000, 11000, 3000)>;
573                         op-sink-microwatt = <10000000>;
574                 };
575         };
576
577         eeprom@54 {
578                 compatible = "atmel,24c64";
579                 reg = <0x54>;
580         };
581 };
582
583 &i2c4 {
584         status = "okay";
585         ina230@45 {
586                 compatible = "ti,ina230";
587                 reg = <0x45>;
588                 shunt-resistor = <2000>;
589         };
590
591         mp5023@40 {
592                 compatible = "mps,mp5023";
593                 reg = <0x40>;
594         };
595
596         tmp421@4f {
597                 compatible = "ti,tmp421";
598                 reg = <0x4f>;
599         };
600
601         sled5_ioexp41: pca9536@41 {
602                 compatible = "nxp,pca9536";
603                 reg = <0x41>;
604                 gpio-controller;
605                 #gpio-cells = <2>;
606
607                 gpio-line-names =
608                 "SLED5_SWD_MUX", "SLED5_XRES_SWD_N",
609                 "SLED5_CLKREQ_N", "SLED5_PCIE_PWR_EN";
610         };
611
612         sled5_ioexp: pca9539@76 {
613                 compatible = "nxp,pca9539";
614                 reg = <0x76>;
615                 #address-cells = <1>;
616                 #size-cells = <0>;
617                 gpio-controller;
618                 #gpio-cells = <2>;
619
620                 interrupt-parent = <&gpio0>;
621                 interrupts = <ASPEED_GPIO(M, 4) IRQ_TYPE_LEVEL_LOW>;
622
623                 gpio-line-names =
624                 "SLED5_MS_DETECT1","SLED5_VBUS_BMC_EN","SLED5_INA230_ALERT","SLED5_P12V_STBY_ALERT",
625                 "SLED5_SSD_ALERT","SLED5_MS_DETECT0","SLED5_RST_CCG5","SLED5_FUSB302_INT",
626                 "SLED5_MD_STBY_RESET","SLED5_MD_IOEXP_EN_FAULT","SLED5_MD_DIR","SLED5_MD_DECAY",
627                 "SLED5_MD_MODE1","SLED5_MD_MODE2","SLED5_MD_MODE3","power-host5";
628         };
629
630         sled5_leds: pca9552@67 {
631                 compatible = "nxp,pca9552";
632                 reg = <0x67>;
633                 #address-cells = <1>;
634                 #size-cells = <0>;
635                 gpio-controller;
636                 #gpio-cells = <2>;
637
638                 gpio-line-names =
639                 "led-sled5-amber","led-sled5-blue","SLED5_RST_IOEXP","SLED5_MD_REF_PWM",
640                 "","","","",
641                 "","","","",
642                 "","","","";
643         };
644
645         sled5_fusb302: typec-portc@22 {
646                 compatible = "fcs,fusb302";
647                 reg = <0x22>;
648
649                 connector {
650                         compatible = "usb-c-connector";
651                         label = "USB-C";
652                         power-role = "dual";
653                         try-power-role = "sink";
654                         data-role = "dual";
655                         source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
656                         sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
657                                         PDO_VAR(3000, 12000, 3000)
658                                         PDO_PPS_APDO(3000, 11000, 3000)>;
659                         op-sink-microwatt = <10000000>;
660                 };
661         };
662
663         eeprom@54 {
664                 compatible = "atmel,24c64";
665                 reg = <0x54>;
666         };
667 };
668
669 &i2c5 {
670         status = "okay";
671         ina230@45 {
672                 compatible = "ti,ina230";
673                 reg = <0x45>;
674                 shunt-resistor = <2000>;
675         };
676
677         mp5023@40 {
678                 compatible = "mps,mp5023";
679                 reg = <0x40>;
680         };
681
682         tmp421@4f {
683                 compatible = "ti,tmp421";
684                 reg = <0x4f>;
685         };
686
687         sled6_ioexp41: pca9536@41 {
688                 compatible = "nxp,pca9536";
689                 reg = <0x41>;
690                 gpio-controller;
691                 #gpio-cells = <2>;
692
693                 gpio-line-names =
694                 "SLED6_SWD_MUX", "SLED6_XRES_SWD_N",
695                 "SLED6_CLKREQ_N", "SLED6_PCIE_PWR_EN";
696         };
697
698         sled6_ioexp: pca9539@76 {
699                 compatible = "nxp,pca9539";
700                 reg = <0x76>;
701                 #address-cells = <1>;
702                 #size-cells = <0>;
703                 gpio-controller;
704                 #gpio-cells = <2>;
705
706                 interrupt-parent = <&gpio0>;
707                 interrupts = <ASPEED_GPIO(M, 5) IRQ_TYPE_LEVEL_LOW>;
708
709                 gpio-line-names =
710                 "SLED6_MS_DETECT1","SLED6_VBUS_BMC_EN","SLED6_INA230_ALERT","SLED6_P12V_STBY_ALERT",
711                 "SLED6_SSD_ALERT","SLED6_MS_DETECT0","SLED6_RST_CCG5","SLED6_FUSB302_INT",
712                 "SLED6_MD_STBY_RESET","SLED6_MD_IOEXP_EN_FAULT","SLED6_MD_DIR","SLED6_MD_DECAY",
713                 "SLED6_MD_MODE1","SLED6_MD_MODE2","SLED6_MD_MODE3","power-host6";
714         };
715
716         sled6_leds: pca9552@67 {
717                 compatible = "nxp,pca9552";
718                 reg = <0x67>;
719                 #address-cells = <1>;
720                 #size-cells = <0>;
721                 gpio-controller;
722                 #gpio-cells = <2>;
723
724                 gpio-line-names =
725                 "led-sled6-amber","led-sled6-blue","SLED6_RST_IOEXP","SLED6_MD_REF_PWM",
726                 "","","","",
727                 "","","","",
728                 "","","","";
729         };
730
731         sled6_fusb302: typec-portc@22 {
732                 compatible = "fcs,fusb302";
733                 reg = <0x22>;
734
735                 connector {
736                         compatible = "usb-c-connector";
737                         label = "USB-C";
738                         power-role = "dual";
739                         try-power-role = "sink";
740                         data-role = "dual";
741                         source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
742                         sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
743                                         PDO_VAR(3000, 12000, 3000)
744                                         PDO_PPS_APDO(3000, 11000, 3000)>;
745                         op-sink-microwatt = <10000000>;
746                 };
747         };
748
749         eeprom@54 {
750                 compatible = "atmel,24c64";
751                 reg = <0x54>;
752         };
753 };
754
755 &i2c6 {
756         status = "okay";
757
758         eeprom@56 {
759                 compatible = "atmel,24c64";
760                 reg = <0x56>;
761         };
762
763         rtc@51 {
764                 /* in-chip rtc disabled, use external rtc (battery-backed) */
765                 compatible = "nxp,pcf85263";
766                 reg = <0x51>;
767         };
768 };
769
770 &i2c7 {
771         status = "okay";
772
773         eeprom@54 {
774                 compatible = "atmel,24c64";
775                 reg = <0x54>;
776         };
777 };
778
779 &i2c9 {
780         status = "okay";
781
782         tmp421@4f {
783                 compatible = "ti,tmp421";
784                 reg = <0x4f>;
785         };
786 };
787
788 &i2c10 {
789         status = "okay";
790
791         tmp421@4f {
792                 compatible = "ti,tmp421";
793                 reg = <0x4f>;
794         };
795
796         front_leds: pca9552@67 {
797                 compatible = "nxp,pca9552";
798                 reg = <0x67>;
799                 #address-cells = <1>;
800                 #size-cells = <0>;
801                 gpio-controller;
802                 #gpio-cells = <2>;
803
804                 gpio-line-names =
805                 "led-fault-identify","power-p5v-stby-good",
806                 "power-p1v0-dvdd-good","power-p1v0-avdd-good",
807                 "","","","",
808                 "","","","",
809                 "","","","";
810         };
811 };
812
813 &i2c12 {
814         status = "okay";
815
816         adm1278@11 {
817                 compatible = "adi,adm1278";
818                 reg = <0x11>;
819                 shunt-resistor-micro-ohms = <300>;
820                 adi,volt-curr-sample-average = <128>;
821                 adi,power-sample-average = <128>;
822         };
823
824         tmp421@4c {
825                 compatible = "ti,tmp421";
826                 reg = <0x4c>;
827         };
828
829         tmp421@4d {
830                 compatible = "ti,tmp421";
831                 reg = <0x4d>;
832         };
833
834         fan_leds: pca9552@67 {
835                 compatible = "nxp,pca9552";
836                 reg = <0x67>;
837                 #address-cells = <1>;
838                 #size-cells = <0>;
839                 gpio-controller;
840                 #gpio-cells = <2>;
841
842                 gpio-line-names =
843                 "presence-fan0","presence-fan1",
844                 "presence-fan2","presence-fan3",
845                 "power-fan0-good","power-fan1-good",
846                 "power-fan2-good","power-fan3-good",
847                 "","","","",
848                 "","","","";
849         };
850 };
851
852 &i2c13 {
853         multi-master;
854         aspeed,hw-timeout-ms = <1000>;
855         status = "okay";
856
857         //USB Debug Connector
858         ipmb13@10 {
859                 compatible = "ipmb-dev";
860                 reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>;
861                 i2c-protocol;
862         };
863 };
864
865 &gpio0 {
866         gpio-line-names =
867         /*A0-A7*/       "","","","","","","","",
868         /*B0-B7*/       "FUSB302_SLED1_INT_N","FUSB302_SLED2_INT_N",
869                         "SEL_SPI2_MUX","SPI2_MUX1",
870                         "SPI2_MUX2","SPI2_MUX3",
871                         "","FUSB302_SLED3_INT_N",
872         /*C0-C7*/       "","","","","","","","",
873         /*D0-D7*/       "","","","","","","","",
874         /*E0-E7*/       "","","","","","","","",
875         /*F0-F7*/       "BMC_SLED1_STCK","BMC_SLED2_STCK",
876                         "BMC_SLED3_STCK","BMC_SLED4_STCK",
877                         "BMC_SLED5_STCK","BMC_SLED6_STCK",
878                         "","",
879         /*G0-G7*/       "BSM_FRU_WP","SWITCH_FRU_MUX","","FM_SOL_UART_CH_SEL",
880                         "PWRGD_P1V05_VDDCORE","PWRGD_P1V5_VDD","","",
881         /*H0-H7*/       "presence-riser1","presence-riser2",
882                         "presence-sled1","presence-sled2",
883                         "presence-sled3","presence-sled4",
884                         "presence-sled5","presence-sled6",
885         /*I0-I7*/       "REV_ID0","",
886                         "REV_ID1","REV_ID2",
887                         "","BSM_FLASH_WP_STATUS",
888                         "BMC_TPM_PRES_N","FUSB302_SLED6_INT_N",
889         /*J0-J7*/       "","","","","","","","",
890         /*K0-K7*/       "","","","","","","","",
891         /*L0-L7*/       "","","","","","BMC_RTC_INT","","",
892         /*M0-M7*/       "ALERT_SLED1_N","ALERT_SLED2_N",
893                         "ALERT_SLED3_N","ALERT_SLED4_N",
894                         "ALERT_SLED5_N","ALERT_SLED6_N",
895                         "","",
896         /*N0-N7*/       "LED_POSTCODE_0","LED_POSTCODE_1",
897                         "LED_POSTCODE_2","LED_POSTCODE_3",
898                         "LED_POSTCODE_4","LED_POSTCODE_5",
899                         "LED_POSTCODE_5","LED_POSTCODE_7",
900         /*O0-O7*/       "","","","",
901                         "","BOARD_ID0","BOARD_ID1","BOARD_ID2",
902         /*P0-P7*/       "","","","","","","","BMC_HEARTBEAT",
903         /*Q0-Q7*/       "","","","","","","","",
904         /*R0-R7*/       "","","","","","","","",
905         /*S0-S7*/       "","","","BAT_DETECT",
906                         "BMC_BT_WP0_N","BMC_BT_WP1_N","","FUSB302_SLED4_INT_N",
907         /*T0-T7*/       "","","","","","","","",
908         /*U0-U7*/       "","","","","","","","",
909         /*V0-V7*/       "PWRGD_CNS_PSU","RST_BMC_MVL_N",
910                         "P12V_AUX_ALERT1_N","PSU_PRSNT",
911                         "USB2_SEL0_A","USB2_SEL1_A",
912                         "USB2_SEL0_B","USB2_SEL1_B",
913         /*W0-W7*/       "RST_FRONT_IOEXP_N","","","","","","","",
914         /*X0-X7*/       "","","","","","","","",
915         /*Y0-Y7*/       "BMC_SELF_HW_RST","BSM_PRSNT_N",
916                         "BSM_FLASH_LATCH_N","FUSB302_SLED5_INT_N",
917                         "","","","",
918         /*Z0-Z7*/       "","","","","","","","";
919 };
920
921 &adc0 {
922         vref = <1800>;
923         status = "okay";
924
925         pinctrl-names = "default";
926         pinctrl-0 = <&pinctrl_adc0_default &pinctrl_adc1_default
927                 &pinctrl_adc2_default &pinctrl_adc3_default
928                 &pinctrl_adc4_default &pinctrl_adc5_default
929                 &pinctrl_adc6_default &pinctrl_adc7_default>;
930 };
931
932 &adc1 {
933         vref = <2500>;
934         status = "okay";
935
936         pinctrl-names = "default";
937         pinctrl-0 = <&pinctrl_adc8_default &pinctrl_adc9_default
938                 &pinctrl_adc10_default &pinctrl_adc11_default
939                 &pinctrl_adc12_default &pinctrl_adc13_default
940                 &pinctrl_adc14_default &pinctrl_adc15_default>;
941 };
942
943 &mdio0 {
944         status = "okay";
945         /* TODO: Add Marvell 88E6191X */
946 };
947
948 &mdio3 {
949         status = "okay";
950         /* TODO: Add Marvell 88X3310 */
951 };
952
953 &ehci0 {
954         status = "okay";
955 };