1// SPDX-License-Identifier: GPL-2.0-or-later
2// Copyright 2019 IBM Corp.
3/dts-v1/;
4
5#include "aspeed-g6.dtsi"
6#include <dt-bindings/gpio/aspeed-gpio.h>
7#include <dt-bindings/i2c/i2c.h>
8#include <dt-bindings/leds/leds-pca955x.h>
9
10/ {
11	model = "Rainier 2U";
12	compatible = "ibm,rainier-bmc", "aspeed,ast2600";
13
14	aliases {
15		i2c100 = &cfam0_i2c0;
16		i2c101 = &cfam0_i2c1;
17		i2c110 = &cfam0_i2c10;
18		i2c111 = &cfam0_i2c11;
19		i2c112 = &cfam0_i2c12;
20		i2c113 = &cfam0_i2c13;
21		i2c114 = &cfam0_i2c14;
22		i2c115 = &cfam0_i2c15;
23		i2c202 = &cfam1_i2c2;
24		i2c203 = &cfam1_i2c3;
25		i2c210 = &cfam1_i2c10;
26		i2c211 = &cfam1_i2c11;
27		i2c214 = &cfam1_i2c14;
28		i2c215 = &cfam1_i2c15;
29		i2c216 = &cfam1_i2c16;
30		i2c217 = &cfam1_i2c17;
31		i2c300 = &cfam2_i2c0;
32		i2c301 = &cfam2_i2c1;
33		i2c310 = &cfam2_i2c10;
34		i2c311 = &cfam2_i2c11;
35		i2c312 = &cfam2_i2c12;
36		i2c313 = &cfam2_i2c13;
37		i2c314 = &cfam2_i2c14;
38		i2c315 = &cfam2_i2c15;
39		i2c402 = &cfam3_i2c2;
40		i2c403 = &cfam3_i2c3;
41		i2c410 = &cfam3_i2c10;
42		i2c411 = &cfam3_i2c11;
43		i2c414 = &cfam3_i2c14;
44		i2c415 = &cfam3_i2c15;
45		i2c416 = &cfam3_i2c16;
46		i2c417 = &cfam3_i2c17;
47
48		serial4 = &uart5;
49		i2c16 = &i2c2mux0;
50		i2c17 = &i2c2mux1;
51		i2c18 = &i2c2mux2;
52		i2c19 = &i2c2mux3;
53		i2c20 = &i2c4mux0chn0;
54		i2c21 = &i2c4mux0chn1;
55		i2c22 = &i2c4mux0chn2;
56		i2c23 = &i2c5mux0chn0;
57		i2c24 = &i2c5mux0chn1;
58		i2c25 = &i2c6mux0chn0;
59		i2c26 = &i2c6mux0chn1;
60		i2c27 = &i2c6mux0chn2;
61		i2c28 = &i2c6mux0chn3;
62		i2c29 = &i2c11mux0chn0;
63		i2c30 = &i2c11mux0chn1;
64
65		spi10 = &cfam0_spi0;
66		spi11 = &cfam0_spi1;
67		spi12 = &cfam0_spi2;
68		spi13 = &cfam0_spi3;
69		spi20 = &cfam1_spi0;
70		spi21 = &cfam1_spi1;
71		spi22 = &cfam1_spi2;
72		spi23 = &cfam1_spi3;
73		spi30 = &cfam2_spi0;
74		spi31 = &cfam2_spi1;
75		spi32 = &cfam2_spi2;
76		spi33 = &cfam2_spi3;
77		spi40 = &cfam3_spi0;
78		spi41 = &cfam3_spi1;
79		spi42 = &cfam3_spi2;
80		spi43 = &cfam3_spi3;
81	};
82
83	chosen {
84		stdout-path = &uart5;
85		bootargs = "console=ttyS4,115200n8 earlycon";
86	};
87
88	memory@80000000 {
89		device_type = "memory";
90		reg = <0x80000000 0x40000000>;
91	};
92
93	reserved-memory {
94		#address-cells = <1>;
95		#size-cells = <1>;
96		ranges;
97
98		flash_memory: region@b8000000 {
99			no-map;
100			reg = <0xb8000000 0x04000000>; /* 64M */
101		};
102
103		ramoops@bc000000 {
104			compatible = "ramoops";
105			reg = <0xbc000000 0x180000>; /* 16 * (3 * 0x8000) */
106			record-size = <0x8000>;
107			console-size = <0x8000>;
108			pmsg-size = <0x8000>;
109			max-reason = <3>; /* KMSG_DUMP_EMERG */
110		};
111
112		vga_memory: region@bf000000 {
113			no-map;
114			compatible = "shared-dma-pool";
115			reg = <0xbf000000 0x01000000>;  /* 16M */
116		};
117	};
118
119	i2c2mux: i2cmux {
120		compatible = "i2c-mux-gpio";
121		#address-cells = <1>;
122		#size-cells = <0>;
123		status = "okay";
124
125		i2c-parent = <&i2c2>;
126		mux-gpios = <&gpio0 ASPEED_GPIO(G, 4) GPIO_ACTIVE_HIGH>,
127			    <&gpio0 ASPEED_GPIO(G, 5) GPIO_ACTIVE_HIGH>;
128		idle-state = <0>;
129
130		i2c2mux0: i2c@0 {
131			#address-cells = <1>;
132			#size-cells = <0>;
133			reg = <0>;
134		};
135
136		i2c2mux1: i2c@1 {
137			#address-cells = <1>;
138			#size-cells = <0>;
139			reg = <1>;
140		};
141
142		i2c2mux2: i2c@2 {
143			#address-cells = <1>;
144			#size-cells = <0>;
145			reg = <2>;
146		};
147
148		i2c2mux3: i2c@3 {
149			#address-cells = <1>;
150			#size-cells = <0>;
151			reg = <3>;
152		};
153	};
154
155	leds {
156		compatible = "gpio-leds";
157
158		/* BMC Card fault LED at the back */
159		bmc-ingraham0 {
160			gpios = <&gpio0 ASPEED_GPIO(H, 1) GPIO_ACTIVE_LOW>;
161		};
162
163		/* Enclosure ID LED at the back */
164		rear-enc-id0 {
165			gpios = <&gpio0 ASPEED_GPIO(H, 2) GPIO_ACTIVE_LOW>;
166		};
167
168		/* Enclosure fault LED at the back */
169		rear-enc-fault0 {
170			gpios = <&gpio0 ASPEED_GPIO(H, 3) GPIO_ACTIVE_LOW>;
171		};
172
173		/* PCIE slot power LED */
174		pcieslot-power {
175			gpios = <&gpio0 ASPEED_GPIO(P, 4) GPIO_ACTIVE_LOW>;
176		};
177	};
178
179	gpio-keys-polled {
180		compatible = "gpio-keys-polled";
181		#address-cells = <1>;
182		#size-cells = <0>;
183		poll-interval = <1000>;
184
185		fan0-presence {
186			label = "fan0-presence";
187			gpios = <&pca0 6 GPIO_ACTIVE_LOW>;
188			linux,code = <6>;
189		};
190
191		fan1-presence {
192			label = "fan1-presence";
193			gpios = <&pca0 7 GPIO_ACTIVE_LOW>;
194			linux,code = <7>;
195		};
196
197		fan2-presence {
198			label = "fan2-presence";
199			gpios = <&pca0 8 GPIO_ACTIVE_LOW>;
200			linux,code = <8>;
201		};
202
203		fan3-presence {
204			label = "fan3-presence";
205			gpios = <&pca0 9 GPIO_ACTIVE_LOW>;
206			linux,code = <9>;
207		};
208
209		fan4-presence {
210			label = "fan4-presence";
211			gpios = <&pca0 10 GPIO_ACTIVE_LOW>;
212			linux,code = <10>;
213		};
214
215		fan5-presence {
216			label = "fan5-presence";
217			gpios = <&pca0 11 GPIO_ACTIVE_LOW>;
218			linux,code = <11>;
219		};
220	};
221
222	iio-hwmon-battery {
223		compatible = "iio-hwmon";
224		io-channels = <&adc1 7>;
225	};
226};
227
228&adc1 {
229	status = "okay";
230	aspeed,int-vref-microvolt = <2500000>;
231	pinctrl-names = "default";
232	pinctrl-0 = <&pinctrl_adc8_default &pinctrl_adc9_default
233		&pinctrl_adc10_default &pinctrl_adc11_default
234		&pinctrl_adc12_default &pinctrl_adc13_default
235		&pinctrl_adc14_default &pinctrl_adc15_default>;
236};
237
238&ehci1 {
239	status = "okay";
240};
241
242&gpio0 {
243	gpio-line-names =
244	/*A0-A7*/	"","","","","","","","",
245	/*B0-B7*/	"","","","","","","checkstop","",
246	/*C0-C7*/	"","","","","","","","",
247	/*D0-D7*/	"","","","","","","","",
248	/*E0-E7*/	"","","","","","","","",
249	/*F0-F7*/	"","","","","","","factory-reset-toggle","",
250	/*G0-G7*/	"","","","","","","","",
251	/*H0-H7*/	"","bmc-ingraham0","rear-enc-id0","rear-enc-fault0","","","","",
252	/*I0-I7*/	"","","","","","","bmc-secure-boot","",
253	/*J0-J7*/	"","","","","","","","",
254	/*K0-K7*/	"","","","","","","","",
255	/*L0-L7*/	"","","","","","","","",
256	/*M0-M7*/	"","","","","","","","",
257	/*N0-N7*/	"","","","","","","","",
258	/*O0-O7*/	"","","","usb-power","","","","",
259	/*P0-P7*/	"","","","","pcieslot-power","","","",
260	/*Q0-Q7*/	"cfam-reset","","regulator-standby-faulted","","","","","",
261	/*R0-R7*/	"bmc-tpm-reset","power-chassis-control","power-chassis-good","","","","","",
262	/*S0-S7*/	"presence-ps0","presence-ps1","presence-ps2","presence-ps3",
263				"","","","",
264	/*T0-T7*/	"","","","","","","","",
265	/*U0-U7*/	"","","","","","","","",
266	/*V0-V7*/	"","","","","","","","",
267	/*W0-W7*/	"","","","","","","","",
268	/*X0-X7*/	"","","","","","","","",
269	/*Y0-Y7*/	"","","","","","","","",
270	/*Z0-Z7*/	"","","","","","","","";
271
272	i2c3_mux_oe_n {
273		gpio-hog;
274		gpios = <ASPEED_GPIO(G, 6) GPIO_ACTIVE_LOW>;
275		output-high;
276		line-name = "I2C3_MUX_OE_N";
277	};
278};
279
280&emmc_controller {
281	status = "okay";
282};
283
284&pinctrl_emmc_default {
285	bias-disable;
286};
287
288&emmc {
289	status = "okay";
290	clk-phase-mmc-hs200 = <180>, <180>;
291};
292
293&fsim0 {
294	status = "okay";
295
296	#address-cells = <2>;
297	#size-cells = <0>;
298
299	/*
300	 * CFAM Reset is supposed to be active low but pass1 hardware is wired
301	 * active high.
302	 */
303	cfam-reset-gpios = <&gpio0 ASPEED_GPIO(Q, 0) GPIO_ACTIVE_HIGH>;
304
305	cfam@0,0 {
306		reg = <0 0>;
307		#address-cells = <1>;
308		#size-cells = <1>;
309		chip-id = <0>;
310
311		scom@1000 {
312			compatible = "ibm,fsi2pib";
313			reg = <0x1000 0x400>;
314		};
315
316		i2c@1800 {
317			compatible = "ibm,fsi-i2c-master";
318			reg = <0x1800 0x400>;
319			#address-cells = <1>;
320			#size-cells = <0>;
321
322			cfam0_i2c0: i2c-bus@0 {
323				reg = <0>;	/* OMI01 */
324			};
325
326			cfam0_i2c1: i2c-bus@1 {
327				reg = <1>;	/* OMI23 */
328			};
329
330			cfam0_i2c10: i2c-bus@a {
331				reg = <10>;	/* OP3A */
332			};
333
334			cfam0_i2c11: i2c-bus@b {
335				reg = <11>;	/* OP3B */
336			};
337
338			cfam0_i2c12: i2c-bus@c {
339				reg = <12>;	/* OP4A */
340			};
341
342			cfam0_i2c13: i2c-bus@d {
343				reg = <13>;	/* OP4B */
344			};
345
346			cfam0_i2c14: i2c-bus@e {
347				reg = <14>;	/* OP5A */
348			};
349
350			cfam0_i2c15: i2c-bus@f {
351				reg = <15>;	/* OP5B */
352			};
353		};
354
355		fsi2spi@1c00 {
356			compatible = "ibm,fsi2spi";
357			reg = <0x1c00 0x400>;
358			#address-cells = <1>;
359			#size-cells = <0>;
360
361			cfam0_spi0: spi@0 {
362				reg = <0x0>;
363				#address-cells = <1>;
364				#size-cells = <0>;
365
366				eeprom@0 {
367					at25,byte-len = <0x80000>;
368					at25,addr-mode = <4>;
369					at25,page-size = <256>;
370
371					compatible = "atmel,at25";
372					reg = <0>;
373					spi-max-frequency = <1000000>;
374				};
375			};
376
377			cfam0_spi1: spi@20 {
378				reg = <0x20>;
379				#address-cells = <1>;
380				#size-cells = <0>;
381
382				eeprom@0 {
383					at25,byte-len = <0x80000>;
384					at25,addr-mode = <4>;
385					at25,page-size = <256>;
386
387					compatible = "atmel,at25";
388					reg = <0>;
389					spi-max-frequency = <1000000>;
390				};
391			};
392
393			cfam0_spi2: spi@40 {
394				reg = <0x40>;
395				compatible = "ibm,fsi2spi-restricted";
396				#address-cells = <1>;
397				#size-cells = <0>;
398
399				eeprom@0 {
400					at25,byte-len = <0x80000>;
401					at25,addr-mode = <4>;
402					at25,page-size = <256>;
403
404					compatible = "atmel,at25";
405					reg = <0>;
406					spi-max-frequency = <1000000>;
407				};
408			};
409
410			cfam0_spi3: spi@60 {
411				reg = <0x60>;
412				compatible = "ibm,fsi2spi-restricted";
413				#address-cells = <1>;
414				#size-cells = <0>;
415
416				eeprom@0 {
417					at25,byte-len = <0x80000>;
418					at25,addr-mode = <4>;
419					at25,page-size = <256>;
420
421					compatible = "atmel,at25";
422					reg = <0>;
423					spi-max-frequency = <1000000>;
424				};
425			};
426                };
427
428		sbefifo@2400 {
429			compatible = "ibm,p9-sbefifo";
430			reg = <0x2400 0x400>;
431			#address-cells = <1>;
432			#size-cells = <0>;
433
434			fsi_occ0: occ {
435				compatible = "ibm,p10-occ";
436			};
437		};
438
439		fsi_hub0: hub@3400 {
440			compatible = "fsi-master-hub";
441			reg = <0x3400 0x400>;
442			#address-cells = <2>;
443			#size-cells = <0>;
444		};
445	};
446};
447
448&fsi_hub0 {
449	cfam@1,0 {
450		reg = <1 0>;
451		#address-cells = <1>;
452		#size-cells = <1>;
453		chip-id = <1>;
454
455		scom@1000 {
456			compatible = "ibm,fsi2pib";
457			reg = <0x1000 0x400>;
458		};
459
460		i2c@1800 {
461			compatible = "ibm,fsi-i2c-master";
462			reg = <0x1800 0x400>;
463			#address-cells = <1>;
464			#size-cells = <0>;
465
466			cfam1_i2c2: i2c-bus@2 {
467				reg = <2>;	/* OMI45 */
468			};
469
470			cfam1_i2c3: i2c-bus@3 {
471				reg = <3>;	/* OMI67 */
472			};
473
474			cfam1_i2c10: i2c-bus@a {
475				reg = <10>;	/* OP3A */
476			};
477
478			cfam1_i2c11: i2c-bus@b {
479				reg = <11>;	/* OP3B */
480			};
481
482			cfam1_i2c14: i2c-bus@e {
483				reg = <14>;	/* OP5A */
484			};
485
486			cfam1_i2c15: i2c-bus@f {
487				reg = <15>;	/* OP5B */
488			};
489
490			cfam1_i2c16: i2c-bus@10 {
491				reg = <16>;	/* OP6A */
492			};
493
494			cfam1_i2c17: i2c-bus@11 {
495				reg = <17>;	/* OP6B */
496			};
497		};
498
499		fsi2spi@1c00 {
500			compatible = "ibm,fsi2spi";
501			reg = <0x1c00 0x400>;
502			#address-cells = <1>;
503			#size-cells = <0>;
504
505			cfam1_spi0: spi@0 {
506				reg = <0x0>;
507				#address-cells = <1>;
508				#size-cells = <0>;
509
510				eeprom@0 {
511					at25,byte-len = <0x80000>;
512					at25,addr-mode = <4>;
513					at25,page-size = <256>;
514
515					compatible = "atmel,at25";
516					reg = <0>;
517					spi-max-frequency = <1000000>;
518				};
519			};
520
521			cfam1_spi1: spi@20 {
522				reg = <0x20>;
523				#address-cells = <1>;
524				#size-cells = <0>;
525
526				eeprom@0 {
527					at25,byte-len = <0x80000>;
528					at25,addr-mode = <4>;
529					at25,page-size = <256>;
530
531					compatible = "atmel,at25";
532					reg = <0>;
533					spi-max-frequency = <1000000>;
534				};
535			};
536
537			cfam1_spi2: spi@40 {
538				reg = <0x40>;
539				compatible = "ibm,fsi2spi-restricted";
540				#address-cells = <1>;
541				#size-cells = <0>;
542
543				eeprom@0 {
544					at25,byte-len = <0x80000>;
545					at25,addr-mode = <4>;
546					at25,page-size = <256>;
547
548					compatible = "atmel,at25";
549					reg = <0>;
550					spi-max-frequency = <1000000>;
551				};
552			};
553
554			cfam1_spi3: spi@60 {
555				reg = <0x60>;
556				compatible = "ibm,fsi2spi-restricted";
557				#address-cells = <1>;
558				#size-cells = <0>;
559
560				eeprom@0 {
561					at25,byte-len = <0x80000>;
562					at25,addr-mode = <4>;
563					at25,page-size = <256>;
564
565					compatible = "atmel,at25";
566					reg = <0>;
567					spi-max-frequency = <1000000>;
568				};
569			};
570                };
571
572		sbefifo@2400 {
573			compatible = "ibm,p9-sbefifo";
574			reg = <0x2400 0x400>;
575			#address-cells = <1>;
576			#size-cells = <0>;
577
578			fsi_occ1: occ {
579				compatible = "ibm,p10-occ";
580			};
581		};
582
583		fsi_hub1: hub@3400 {
584			compatible = "fsi-master-hub";
585			reg = <0x3400 0x400>;
586			#address-cells = <2>;
587			#size-cells = <0>;
588
589			no-scan-on-init;
590		};
591	};
592
593	cfam@2,0 {
594		reg = <2 0>;
595		#address-cells = <1>;
596		#size-cells = <1>;
597		chip-id = <2>;
598
599		scom@1000 {
600			compatible = "ibm,fsi2pib";
601			reg = <0x1000 0x400>;
602		};
603
604		i2c@1800 {
605			compatible = "ibm,fsi-i2c-master";
606			reg = <0x1800 0x400>;
607			#address-cells = <1>;
608			#size-cells = <0>;
609
610			cfam2_i2c0: i2c-bus@0 {
611				reg = <0>;	/* OM01 */
612			};
613
614			cfam2_i2c1: i2c-bus@1 {
615				reg = <1>;	/* OM23 */
616			};
617
618			cfam2_i2c10: i2c-bus@a {
619				reg = <10>;	/* OP3A */
620			};
621
622			cfam2_i2c11: i2c-bus@b {
623				reg = <11>;	/* OP3B */
624			};
625
626			cfam2_i2c12: i2c-bus@c {
627				reg = <12>;	/* OP4A */
628			};
629
630			cfam2_i2c13: i2c-bus@d {
631				reg = <13>;	/* OP4B */
632			};
633
634			cfam2_i2c14: i2c-bus@e {
635				reg = <14>;	/* OP5A */
636			};
637
638			cfam2_i2c15: i2c-bus@f {
639				reg = <15>;	/* OP5B */
640			};
641		};
642
643		fsi2spi@1c00 {
644			compatible = "ibm,fsi2spi";
645			reg = <0x1c00 0x400>;
646			#address-cells = <1>;
647			#size-cells = <0>;
648
649			cfam2_spi0: spi@0 {
650				reg = <0x0>;
651				#address-cells = <1>;
652				#size-cells = <0>;
653
654				eeprom@0 {
655					at25,byte-len = <0x80000>;
656					at25,addr-mode = <4>;
657					at25,page-size = <256>;
658
659					compatible = "atmel,at25";
660					reg = <0>;
661					spi-max-frequency = <1000000>;
662				};
663			};
664
665			cfam2_spi1: spi@20 {
666				reg = <0x20>;
667				#address-cells = <1>;
668				#size-cells = <0>;
669
670				eeprom@0 {
671					at25,byte-len = <0x80000>;
672					at25,addr-mode = <4>;
673					at25,page-size = <256>;
674
675					compatible = "atmel,at25";
676					reg = <0>;
677					spi-max-frequency = <1000000>;
678				};
679			};
680
681			cfam2_spi2: spi@40 {
682				reg = <0x40>;
683				compatible = "ibm,fsi2spi-restricted";
684				#address-cells = <1>;
685				#size-cells = <0>;
686
687				eeprom@0 {
688					at25,byte-len = <0x80000>;
689					at25,addr-mode = <4>;
690					at25,page-size = <256>;
691
692					compatible = "atmel,at25";
693					reg = <0>;
694					spi-max-frequency = <1000000>;
695				};
696			};
697
698			cfam2_spi3: spi@60 {
699				reg = <0x60>;
700				compatible = "ibm,fsi2spi-restricted";
701				#address-cells = <1>;
702				#size-cells = <0>;
703
704				eeprom@0 {
705					at25,byte-len = <0x80000>;
706					at25,addr-mode = <4>;
707					at25,page-size = <256>;
708
709					compatible = "atmel,at25";
710					reg = <0>;
711					spi-max-frequency = <1000000>;
712				};
713			};
714		};
715
716		sbefifo@2400 {
717			compatible = "ibm,p9-sbefifo";
718			reg = <0x2400 0x400>;
719			#address-cells = <1>;
720			#size-cells = <0>;
721
722			fsi_occ2: occ {
723				compatible = "ibm,p10-occ";
724			};
725		};
726
727		fsi_hub2: hub@3400 {
728			compatible = "fsi-master-hub";
729			reg = <0x3400 0x400>;
730			#address-cells = <2>;
731			#size-cells = <0>;
732
733			no-scan-on-init;
734		};
735	};
736
737	cfam@3,0 {
738		reg = <3 0>;
739		#address-cells = <1>;
740		#size-cells = <1>;
741		chip-id = <3>;
742
743		scom@1000 {
744			compatible = "ibm,fsi2pib";
745			reg = <0x1000 0x400>;
746		};
747
748		i2c@1800 {
749			compatible = "ibm,fsi-i2c-master";
750			reg = <0x1800 0x400>;
751			#address-cells = <1>;
752			#size-cells = <0>;
753
754			cfam3_i2c2: i2c-bus@2 {
755				reg = <2>;	/* OM45 */
756			};
757
758			cfam3_i2c3: i2c-bus@3 {
759				reg = <3>;	/* OM67 */
760			};
761
762			cfam3_i2c10: i2c-bus@a {
763				reg = <10>;	/* OP3A */
764			};
765
766			cfam3_i2c11: i2c-bus@b {
767				reg = <11>;	/* OP3B */
768			};
769
770			cfam3_i2c14: i2c-bus@e {
771				reg = <14>;	/* OP5A */
772			};
773
774			cfam3_i2c15: i2c-bus@f {
775				reg = <15>;	/* OP5B */
776			};
777
778			cfam3_i2c16: i2c-bus@10 {
779				reg = <16>;	/* OP6A */
780			};
781
782			cfam3_i2c17: i2c-bus@11 {
783				reg = <17>;	/* OP6B */
784			};
785		};
786
787		fsi2spi@1c00 {
788			compatible = "ibm,fsi2spi";
789			reg = <0x1c00 0x400>;
790			#address-cells = <1>;
791			#size-cells = <0>;
792
793			cfam3_spi0: spi@0 {
794				reg = <0x0>;
795				#address-cells = <1>;
796				#size-cells = <0>;
797
798				eeprom@0 {
799					at25,byte-len = <0x80000>;
800					at25,addr-mode = <4>;
801					at25,page-size = <256>;
802
803					compatible = "atmel,at25";
804					reg = <0>;
805					spi-max-frequency = <1000000>;
806				};
807			};
808
809			cfam3_spi1: spi@20 {
810				reg = <0x20>;
811				#address-cells = <1>;
812				#size-cells = <0>;
813
814				eeprom@0 {
815					at25,byte-len = <0x80000>;
816					at25,addr-mode = <4>;
817					at25,page-size = <256>;
818
819					compatible = "atmel,at25";
820					reg = <0>;
821					spi-max-frequency = <1000000>;
822				};
823			};
824
825			cfam3_spi2: spi@40 {
826				reg = <0x40>;
827				compatible = "ibm,fsi2spi-restricted";
828				#address-cells = <1>;
829				#size-cells = <0>;
830
831				eeprom@0 {
832					at25,byte-len = <0x80000>;
833					at25,addr-mode = <4>;
834					at25,page-size = <256>;
835
836					compatible = "atmel,at25";
837					reg = <0>;
838					spi-max-frequency = <1000000>;
839				};
840			};
841
842			cfam3_spi3: spi@60 {
843				reg = <0x60>;
844				compatible = "ibm,fsi2spi-restricted";
845				#address-cells = <1>;
846				#size-cells = <0>;
847
848				eeprom@0 {
849					at25,byte-len = <0x80000>;
850					at25,addr-mode = <4>;
851					at25,page-size = <256>;
852
853					compatible = "atmel,at25";
854					reg = <0>;
855					spi-max-frequency = <1000000>;
856				};
857			};
858		};
859
860		sbefifo@2400 {
861			compatible = "ibm,p9-sbefifo";
862			reg = <0x2400 0x400>;
863			#address-cells = <1>;
864			#size-cells = <0>;
865
866			fsi_occ3: occ {
867				compatible = "ibm,p10-occ";
868			};
869		};
870
871		fsi_hub3: hub@3400 {
872			compatible = "fsi-master-hub";
873			reg = <0x3400 0x400>;
874			#address-cells = <2>;
875			#size-cells = <0>;
876
877			no-scan-on-init;
878		};
879	};
880};
881
882/* Legacy OCC numbering (to get rid of when userspace is fixed) */
883&fsi_occ0 {
884	reg = <1>;
885};
886
887&fsi_occ1 {
888	reg = <2>;
889};
890
891&fsi_occ2 {
892	reg = <3>;
893};
894
895&fsi_occ3 {
896	reg = <4>;
897};
898
899&ibt {
900	status = "okay";
901};
902
903&i2c0 {
904	status = "okay";
905
906	eeprom@51 {
907		compatible = "atmel,24c64";
908		reg = <0x51>;
909	};
910
911	tca_pres1: tca9554@20{
912		compatible = "ti,tca9554";
913		reg = <0x20>;
914		#address-cells = <1>;
915		#size-cells = <0>;
916
917		gpio-controller;
918		#gpio-cells = <2>;
919
920		gpio-line-names = "",
921			"RUSSEL_FW_I2C_ENABLE_N",
922			"RUSSEL_OPPANEL_PRESENCE_N",
923			"BLYTH_OPPANEL_PRESENCE_N",
924			"CPU_TPM_CARD_PRESENT_N",
925			"DASD_BP2_PRESENT_N",
926			"DASD_BP1_PRESENT_N",
927			"DASD_BP0_PRESENT_N";
928	};
929};
930
931&i2c1 {
932	status = "okay";
933};
934
935&i2c2 {
936	status = "okay";
937};
938
939&i2c3 {
940	status = "okay";
941
942	power-supply@68 {
943		compatible = "ibm,cffps";
944		reg = <0x68>;
945	};
946
947	power-supply@69 {
948		compatible = "ibm,cffps";
949		reg = <0x69>;
950	};
951
952	pca_pres1: pca9552@61 {
953		compatible = "nxp,pca9552";
954		reg = <0x61>;
955		#address-cells = <1>;
956		#size-cells = <0>;
957
958		gpio-controller;
959		#gpio-cells = <2>;
960
961		gpio-line-names =
962			"SLOT0_PRSNT_EN_RSVD", "SLOT1_PRSNT_EN_RSVD",
963			"SLOT2_PRSNT_EN_RSVD", "SLOT3_PRSNT_EN_RSVD",
964			"SLOT4_PRSNT_EN_RSVD", "SLOT0_EXPANDER_PRSNT_N",
965			"SLOT1_EXPANDER_PRSNT_N", "SLOT2_EXPANDER_PRSNT_N",
966			"SLOT3_EXPANDER_PRSNT_N", "SLOT4_EXPANDER_PRSNT_N",
967			"", "", "", "", "", "";
968	};
969};
970
971&i2c4 {
972	status = "okay";
973
974	tmp275@48 {
975		compatible = "ti,tmp275";
976		reg = <0x48>;
977	};
978
979	tmp275@49 {
980		compatible = "ti,tmp275";
981		reg = <0x49>;
982	};
983
984	tmp275@4a {
985		compatible = "ti,tmp275";
986		reg = <0x4a>;
987	};
988
989	pca9551@60 {
990		compatible = "nxp,pca9551";
991		reg = <0x60>;
992		#address-cells = <1>;
993		#size-cells = <0>;
994
995		gpio-controller;
996		#gpio-cells = <2>;
997
998		led@0 {
999			label = "cablecard0-cxp-top";
1000			reg = <0>;
1001			retain-state-shutdown;
1002			default-state = "keep";
1003			type = <PCA955X_TYPE_LED>;
1004		};
1005
1006		led@1 {
1007			label = "cablecard0-cxp-bot";
1008			reg = <1>;
1009			retain-state-shutdown;
1010			default-state = "keep";
1011			type = <PCA955X_TYPE_LED>;
1012		};
1013	};
1014
1015	pca9546@70 {
1016		compatible = "nxp,pca9546";
1017		reg = <0x70>;
1018		#address-cells = <1>;
1019		#size-cells = <0>;
1020		status = "okay";
1021		i2c-mux-idle-disconnect;
1022
1023		i2c4mux0chn0: i2c@0 {
1024			#address-cells = <1>;
1025			#size-cells = <0>;
1026			reg = <0>;
1027
1028			eeprom@50 {
1029				compatible = "atmel,24c64";
1030				reg = <0x50>;
1031			};
1032		};
1033
1034		i2c4mux0chn1: i2c@1 {
1035			#address-cells = <1>;
1036			#size-cells = <0>;
1037			reg = <1>;
1038
1039			eeprom@51 {
1040				compatible = "atmel,24c64";
1041				reg = <0x51>;
1042			};
1043		};
1044
1045		i2c4mux0chn2: i2c@2 {
1046			#address-cells = <1>;
1047			#size-cells = <0>;
1048			reg = <2>;
1049
1050			eeprom@52 {
1051				compatible = "atmel,24c64";
1052				reg = <0x52>;
1053			};
1054		};
1055	};
1056};
1057
1058&i2c5 {
1059	status = "okay";
1060
1061	tmp275@48 {
1062		compatible = "ti,tmp275";
1063		reg = <0x48>;
1064	};
1065
1066	tmp275@49 {
1067		compatible = "ti,tmp275";
1068		reg = <0x49>;
1069	};
1070
1071	pca9551@60 {
1072		compatible = "nxp,pca9551";
1073		reg = <0x60>;
1074		#address-cells = <1>;
1075		#size-cells = <0>;
1076
1077		gpio-controller;
1078		#gpio-cells = <2>;
1079
1080		led@0 {
1081			label = "cablecard3-cxp-top";
1082			reg = <0>;
1083			retain-state-shutdown;
1084			default-state = "keep";
1085			type = <PCA955X_TYPE_LED>;
1086		};
1087
1088		led@1 {
1089			label = "cablecard3-cxp-bot";
1090			reg = <1>;
1091			retain-state-shutdown;
1092			default-state = "keep";
1093			type = <PCA955X_TYPE_LED>;
1094		};
1095	};
1096
1097	pca9551@61 {
1098		compatible = "nxp,pca9551";
1099		reg = <0x61>;
1100		#address-cells = <1>;
1101		#size-cells = <0>;
1102
1103		gpio-controller;
1104		#gpio-cells = <2>;
1105
1106		led@0 {
1107			label = "cablecard4-cxp-top";
1108			reg = <0>;
1109			retain-state-shutdown;
1110			default-state = "keep";
1111			type = <PCA955X_TYPE_LED>;
1112		};
1113
1114		led@1 {
1115			label = "cablecard4-cxp-bot";
1116			reg = <1>;
1117			retain-state-shutdown;
1118			default-state = "keep";
1119			type = <PCA955X_TYPE_LED>;
1120		};
1121	};
1122
1123	pca9546@70 {
1124		compatible = "nxp,pca9546";
1125		reg = <0x70>;
1126		#address-cells = <1>;
1127		#size-cells = <0>;
1128		status = "okay";
1129		i2c-mux-idle-disconnect;
1130
1131		i2c5mux0chn0: i2c@0 {
1132			#address-cells = <1>;
1133			#size-cells = <0>;
1134			reg = <0>;
1135
1136			eeprom@50 {
1137				compatible = "atmel,24c64";
1138				reg = <0x50>;
1139			};
1140		};
1141
1142		i2c5mux0chn1: i2c@1 {
1143			#address-cells = <1>;
1144			#size-cells = <0>;
1145			reg = <1>;
1146
1147			eeprom@51 {
1148				compatible = "atmel,24c64";
1149				reg = <0x51>;
1150			};
1151		};
1152	};
1153};
1154
1155&i2c6 {
1156	status = "okay";
1157
1158	tmp275@48 {
1159		compatible = "ti,tmp275";
1160		reg = <0x48>;
1161	};
1162
1163	tmp275@4a {
1164		compatible = "ti,tmp275";
1165		reg = <0x4a>;
1166	};
1167
1168	tmp275@4b {
1169		compatible = "ti,tmp275";
1170		reg = <0x4b>;
1171	};
1172
1173	pca9546@70 {
1174		compatible = "nxp,pca9546";
1175		reg = <0x70>;
1176		#address-cells = <1>;
1177		#size-cells = <0>;
1178		status = "okay";
1179		i2c-mux-idle-disconnect;
1180
1181		i2c6mux0chn0: i2c@0 {
1182			#address-cells = <1>;
1183			#size-cells = <0>;
1184			reg = <0>;
1185
1186			eeprom@53 {
1187				compatible = "atmel,24c64";
1188				reg = <0x53>;
1189			};
1190		};
1191
1192		i2c6mux0chn1: i2c@1 {
1193			#address-cells = <1>;
1194			#size-cells = <0>;
1195			reg = <1>;
1196
1197			eeprom@52 {
1198				compatible = "atmel,24c64";
1199				reg = <0x52>;
1200			};
1201		};
1202
1203		i2c6mux0chn2: i2c@2 {
1204			#address-cells = <1>;
1205			#size-cells = <0>;
1206			reg = <2>;
1207
1208			eeprom@50 {
1209				compatible = "atmel,24c64";
1210				reg = <0x50>;
1211			};
1212		};
1213
1214		i2c6mux0chn3: i2c@3 {
1215			#address-cells = <1>;
1216			#size-cells = <0>;
1217			reg = <3>;
1218
1219			eeprom@51 {
1220				compatible = "atmel,24c64";
1221				reg = <0x51>;
1222			};
1223		};
1224	};
1225};
1226
1227&i2c7 {
1228	multi-master;
1229	status = "okay";
1230
1231	pca9552@30 {
1232		compatible = "ibm,pca9552";
1233		reg = <0x30>;
1234		#address-cells = <1>;
1235		#size-cells = <0>;
1236
1237		gpio-controller;
1238		#gpio-cells = <2>;
1239
1240		led@0 {
1241			label = "pcieslot0";
1242			reg = <0>;
1243			retain-state-shutdown;
1244			default-state = "keep";
1245			type = <PCA955X_TYPE_LED>;
1246		};
1247
1248		led@1 {
1249			label = "pcieslot1";
1250			reg = <1>;
1251			retain-state-shutdown;
1252			default-state = "keep";
1253			type = <PCA955X_TYPE_LED>;
1254		};
1255
1256		led@2 {
1257			label = "pcieslot2";
1258			reg = <2>;
1259			retain-state-shutdown;
1260			default-state = "keep";
1261			type = <PCA955X_TYPE_LED>;
1262		};
1263
1264		led@3 {
1265			label = "pcieslot3";
1266			reg = <3>;
1267			retain-state-shutdown;
1268			default-state = "keep";
1269			type = <PCA955X_TYPE_LED>;
1270		};
1271
1272		led@4 {
1273			label = "pcieslot4";
1274			reg = <4>;
1275			retain-state-shutdown;
1276			default-state = "keep";
1277			type = <PCA955X_TYPE_LED>;
1278		};
1279
1280		led@5 {
1281			label = "cpu1";
1282			reg = <5>;
1283			retain-state-shutdown;
1284			default-state = "keep";
1285			type = <PCA955X_TYPE_LED>;
1286		};
1287
1288		led@6 {
1289			label = "cpu-vrm1";
1290			reg = <6>;
1291			retain-state-shutdown;
1292			default-state = "keep";
1293			type = <PCA955X_TYPE_LED>;
1294		};
1295
1296		led@8 {
1297			label = "lcd-russel";
1298			reg = <8>;
1299			retain-state-shutdown;
1300			default-state = "keep";
1301			type = <PCA955X_TYPE_LED>;
1302		};
1303	};
1304
1305	pca9552@31 {
1306		compatible = "ibm,pca9552";
1307		reg = <0x31>;
1308		#address-cells = <1>;
1309		#size-cells = <0>;
1310
1311		gpio-controller;
1312		#gpio-cells = <2>;
1313
1314		led@0 {
1315			label = "ddimm0";
1316			reg = <0>;
1317			retain-state-shutdown;
1318			default-state = "keep";
1319			type = <PCA955X_TYPE_LED>;
1320		};
1321
1322		led@1 {
1323			label = "ddimm1";
1324			reg = <1>;
1325			retain-state-shutdown;
1326			default-state = "keep";
1327			type = <PCA955X_TYPE_LED>;
1328		};
1329
1330		led@2 {
1331			label = "ddimm2";
1332			reg = <2>;
1333			retain-state-shutdown;
1334			default-state = "keep";
1335			type = <PCA955X_TYPE_LED>;
1336		};
1337
1338		led@3 {
1339			label = "ddimm3";
1340			reg = <3>;
1341			retain-state-shutdown;
1342			default-state = "keep";
1343			type = <PCA955X_TYPE_LED>;
1344		};
1345
1346		led@4 {
1347			label = "ddimm4";
1348			reg = <4>;
1349			retain-state-shutdown;
1350			default-state = "keep";
1351			type = <PCA955X_TYPE_LED>;
1352		};
1353
1354		led@5 {
1355			label = "ddimm5";
1356			reg = <5>;
1357			retain-state-shutdown;
1358			default-state = "keep";
1359			type = <PCA955X_TYPE_LED>;
1360		};
1361
1362		led@6 {
1363			label = "ddimm6";
1364			reg = <6>;
1365			retain-state-shutdown;
1366			default-state = "keep";
1367			type = <PCA955X_TYPE_LED>;
1368		};
1369
1370		led@7 {
1371			label = "ddimm7";
1372			reg = <7>;
1373			retain-state-shutdown;
1374			default-state = "keep";
1375			type = <PCA955X_TYPE_LED>;
1376		};
1377
1378		led@8 {
1379			label = "ddimm8";
1380			reg = <8>;
1381			retain-state-shutdown;
1382			default-state = "keep";
1383			type = <PCA955X_TYPE_LED>;
1384		};
1385
1386		led@9 {
1387			label = "ddimm9";
1388			reg = <9>;
1389			retain-state-shutdown;
1390			default-state = "keep";
1391			type = <PCA955X_TYPE_LED>;
1392		};
1393
1394		led@10 {
1395			label = "ddimm10";
1396			reg = <10>;
1397			retain-state-shutdown;
1398			default-state = "keep";
1399			type = <PCA955X_TYPE_LED>;
1400		};
1401
1402		led@11 {
1403			label = "ddimm11";
1404			reg = <11>;
1405			retain-state-shutdown;
1406			default-state = "keep";
1407			type = <PCA955X_TYPE_LED>;
1408		};
1409
1410		led@12 {
1411			label = "ddimm12";
1412			reg = <12>;
1413			retain-state-shutdown;
1414			default-state = "keep";
1415			type = <PCA955X_TYPE_LED>;
1416		};
1417
1418		led@13 {
1419			label = "ddimm13";
1420			reg = <13>;
1421			retain-state-shutdown;
1422			default-state = "keep";
1423			type = <PCA955X_TYPE_LED>;
1424		};
1425
1426		led@14 {
1427			label = "ddimm14";
1428			reg = <14>;
1429			retain-state-shutdown;
1430			default-state = "keep";
1431			type = <PCA955X_TYPE_LED>;
1432		};
1433
1434		led@15 {
1435			label = "ddimm15";
1436			reg = <15>;
1437			retain-state-shutdown;
1438			default-state = "keep";
1439			type = <PCA955X_TYPE_LED>;
1440		};
1441	};
1442
1443	pca9552@32 {
1444		compatible = "ibm,pca9552";
1445		reg = <0x32>;
1446		#address-cells = <1>;
1447		#size-cells = <0>;
1448
1449		gpio-controller;
1450		#gpio-cells = <2>;
1451
1452		led@0 {
1453			label = "ddimm16";
1454			reg = <0>;
1455			retain-state-shutdown;
1456			default-state = "keep";
1457			type = <PCA955X_TYPE_LED>;
1458		};
1459
1460		led@1 {
1461			label = "ddimm17";
1462			reg = <1>;
1463			retain-state-shutdown;
1464			default-state = "keep";
1465			type = <PCA955X_TYPE_LED>;
1466		};
1467
1468		led@2 {
1469			label = "ddimm18";
1470			reg = <2>;
1471			retain-state-shutdown;
1472			default-state = "keep";
1473			type = <PCA955X_TYPE_LED>;
1474		};
1475
1476		led@3 {
1477			label = "ddimm19";
1478			reg = <3>;
1479			retain-state-shutdown;
1480			default-state = "keep";
1481			type = <PCA955X_TYPE_LED>;
1482		};
1483
1484		led@4 {
1485			label = "ddimm20";
1486			reg = <4>;
1487			retain-state-shutdown;
1488			default-state = "keep";
1489			type = <PCA955X_TYPE_LED>;
1490		};
1491
1492		led@5 {
1493			label = "ddimm21";
1494			reg = <5>;
1495			retain-state-shutdown;
1496			default-state = "keep";
1497			type = <PCA955X_TYPE_LED>;
1498		};
1499
1500		led@6 {
1501			label = "ddimm22";
1502			reg = <6>;
1503			retain-state-shutdown;
1504			default-state = "keep";
1505			type = <PCA955X_TYPE_LED>;
1506		};
1507
1508		led@7 {
1509			label = "ddimm23";
1510			reg = <7>;
1511			retain-state-shutdown;
1512			default-state = "keep";
1513			type = <PCA955X_TYPE_LED>;
1514		};
1515
1516		led@8 {
1517			label = "ddimm24";
1518			reg = <8>;
1519			retain-state-shutdown;
1520			default-state = "keep";
1521			type = <PCA955X_TYPE_LED>;
1522		};
1523
1524		led@9 {
1525			label = "ddimm25";
1526			reg = <9>;
1527			retain-state-shutdown;
1528			default-state = "keep";
1529			type = <PCA955X_TYPE_LED>;
1530		};
1531
1532		led@10 {
1533			label = "ddimm26";
1534			reg = <10>;
1535			retain-state-shutdown;
1536			default-state = "keep";
1537			type = <PCA955X_TYPE_LED>;
1538		};
1539
1540		led@11 {
1541			label = "ddimm27";
1542			reg = <11>;
1543			retain-state-shutdown;
1544			default-state = "keep";
1545			type = <PCA955X_TYPE_LED>;
1546		};
1547
1548		led@12 {
1549			label = "ddimm28";
1550			reg = <12>;
1551			retain-state-shutdown;
1552			default-state = "keep";
1553			type = <PCA955X_TYPE_LED>;
1554		};
1555
1556		led@13 {
1557			label = "ddimm29";
1558			reg = <13>;
1559			retain-state-shutdown;
1560			default-state = "keep";
1561			type = <PCA955X_TYPE_LED>;
1562		};
1563
1564		led@14 {
1565			label = "ddimm30";
1566			reg = <14>;
1567			retain-state-shutdown;
1568			default-state = "keep";
1569			type = <PCA955X_TYPE_LED>;
1570		};
1571
1572		led@15 {
1573			label = "ddimm31";
1574			reg = <15>;
1575			retain-state-shutdown;
1576			default-state = "keep";
1577			type = <PCA955X_TYPE_LED>;
1578		};
1579	};
1580
1581	pca9552@33 {
1582		compatible = "ibm,pca9552";
1583		reg = <0x33>;
1584		#address-cells = <1>;
1585		#size-cells = <0>;
1586
1587		gpio-controller;
1588		#gpio-cells = <2>;
1589
1590		led@0 {
1591			label = "planar";
1592			reg = <0>;
1593			retain-state-shutdown;
1594			default-state = "keep";
1595			type = <PCA955X_TYPE_LED>;
1596		};
1597
1598		led@1 {
1599			label = "cpu0";
1600			reg = <1>;
1601			retain-state-shutdown;
1602			default-state = "keep";
1603			type = <PCA955X_TYPE_LED>;
1604		};
1605
1606		led@3 {
1607			label = "dasd-pyramid0";
1608			reg = <3>;
1609			retain-state-shutdown;
1610			default-state = "keep";
1611			type = <PCA955X_TYPE_LED>;
1612		};
1613
1614		led@4 {
1615			label = "dasd-pyramid1";
1616			reg = <4>;
1617			retain-state-shutdown;
1618			default-state = "keep";
1619			type = <PCA955X_TYPE_LED>;
1620		};
1621
1622		led@5 {
1623			label = "dasd-pyramid2";
1624			reg = <5>;
1625			retain-state-shutdown;
1626			default-state = "keep";
1627			type = <PCA955X_TYPE_LED>;
1628		};
1629
1630		led@6 {
1631			label = "cpu0-vrm0";
1632			reg = <6>;
1633			retain-state-shutdown;
1634			default-state = "keep";
1635			type = <PCA955X_TYPE_LED>;
1636		};
1637
1638		led@7 {
1639			label = "rtc-battery";
1640			reg = <7>;
1641			retain-state-shutdown;
1642			default-state = "keep";
1643			type = <PCA955X_TYPE_LED>;
1644		};
1645
1646		led@8 {
1647			label = "base-blyth";
1648			reg = <8>;
1649			retain-state-shutdown;
1650			default-state = "keep";
1651			type = <PCA955X_TYPE_LED>;
1652		};
1653
1654		led@9 {
1655			label = "pcieslot6";
1656			reg = <9>;
1657			retain-state-shutdown;
1658			default-state = "keep";
1659			type = <PCA955X_TYPE_LED>;
1660		};
1661
1662		led@10 {
1663			label = "pcieslot7";
1664			reg = <10>;
1665			retain-state-shutdown;
1666			default-state = "keep";
1667			type = <PCA955X_TYPE_LED>;
1668		};
1669
1670		led@11 {
1671			label = "pcieslot8";
1672			reg = <11>;
1673			retain-state-shutdown;
1674			default-state = "keep";
1675			type = <PCA955X_TYPE_LED>;
1676		};
1677
1678		led@12 {
1679			label = "pcieslot9";
1680			reg = <12>;
1681			retain-state-shutdown;
1682			default-state = "keep";
1683			type = <PCA955X_TYPE_LED>;
1684		};
1685
1686		led@13 {
1687			label = "pcieslot10";
1688			reg = <13>;
1689			retain-state-shutdown;
1690			default-state = "keep";
1691			type = <PCA955X_TYPE_LED>;
1692		};
1693
1694		led@14 {
1695			label = "pcieslot11";
1696			reg = <14>;
1697			retain-state-shutdown;
1698			default-state = "keep";
1699			type = <PCA955X_TYPE_LED>;
1700		};
1701
1702		led@15 {
1703			label = "tpm-wilson";
1704			reg = <15>;
1705			retain-state-shutdown;
1706			default-state = "keep";
1707			type = <PCA955X_TYPE_LED>;
1708		};
1709	};
1710
1711	si7021-a20@40 {
1712		compatible = "silabs,si7020";
1713		reg = <0x40>;
1714	};
1715
1716	tmp275@48 {
1717		compatible = "ti,tmp275";
1718		reg = <0x48>;
1719	};
1720
1721	max: max31785@52 {
1722		compatible = "maxim,max31785a";
1723		reg = <0x52>;
1724		#address-cells = <1>;
1725		#size-cells = <0>;
1726
1727		fan0: fan@0 {
1728			compatible = "pmbus-fan";
1729			reg = <0>;
1730			tach-pulses = <2>;
1731		};
1732
1733		fan1: fan@1 {
1734			compatible = "pmbus-fan";
1735			reg = <1>;
1736			tach-pulses = <2>;
1737		};
1738
1739		fan2: fan@2 {
1740			compatible = "pmbus-fan";
1741			reg = <2>;
1742			tach-pulses = <2>;
1743		};
1744
1745		fan3: fan@3 {
1746			compatible = "pmbus-fan";
1747			reg = <3>;
1748			tach-pulses = <2>;
1749		};
1750
1751		fan4: fan@4 {
1752			compatible = "pmbus-fan";
1753			reg = <4>;
1754			tach-pulses = <2>;
1755		};
1756
1757		fan5: fan@5 {
1758			compatible = "pmbus-fan";
1759			reg = <5>;
1760			tach-pulses = <2>;
1761		};
1762	};
1763
1764	pca9551@60 {
1765		compatible = "nxp,pca9551";
1766		reg = <0x60>;
1767		#address-cells = <1>;
1768		#size-cells = <0>;
1769
1770		gpio-controller;
1771		#gpio-cells = <2>;
1772
1773		led@0 {
1774			label = "front-sys-id0";
1775			reg = <0>;
1776			retain-state-shutdown;
1777			default-state = "keep";
1778			type = <PCA955X_TYPE_LED>;
1779		};
1780
1781		led@1 {
1782			label = "front-check-log0";
1783			reg = <1>;
1784			retain-state-shutdown;
1785			default-state = "keep";
1786			type = <PCA955X_TYPE_LED>;
1787		};
1788
1789		led@2 {
1790			label = "front-enc-fault1";
1791			reg = <2>;
1792			retain-state-shutdown;
1793			default-state = "keep";
1794			type = <PCA955X_TYPE_LED>;
1795		};
1796
1797		led@3 {
1798			label = "front-sys-pwron0";
1799			reg = <3>;
1800			retain-state-shutdown;
1801			default-state = "keep";
1802			type = <PCA955X_TYPE_LED>;
1803		};
1804	};
1805
1806	pca0: pca9552@61 {
1807		compatible = "nxp,pca9552";
1808		reg = <0x61>;
1809		#address-cells = <1>;
1810		#size-cells = <0>;
1811
1812		gpio-controller;
1813		#gpio-cells = <2>;
1814
1815		led@0 {
1816			label = "fan0";
1817			reg = <0>;
1818			retain-state-shutdown;
1819			default-state = "keep";
1820			type = <PCA955X_TYPE_LED>;
1821		};
1822
1823		led@1 {
1824			label = "fan1";
1825			reg = <1>;
1826			retain-state-shutdown;
1827			default-state = "keep";
1828			type = <PCA955X_TYPE_LED>;
1829		};
1830
1831		led@2 {
1832			label = "fan2";
1833			reg = <2>;
1834			retain-state-shutdown;
1835			default-state = "keep";
1836			type = <PCA955X_TYPE_LED>;
1837		};
1838
1839		led@3 {
1840			label = "fan3";
1841			reg = <3>;
1842			retain-state-shutdown;
1843			default-state = "keep";
1844			type = <PCA955X_TYPE_LED>;
1845		};
1846
1847		led@4 {
1848			label = "fan4";
1849			reg = <4>;
1850			retain-state-shutdown;
1851			default-state = "keep";
1852			type = <PCA955X_TYPE_LED>;
1853		};
1854
1855		led@5 {
1856			label = "fan5";
1857			reg = <5>;
1858			retain-state-shutdown;
1859			default-state = "keep";
1860			type = <PCA955X_TYPE_LED>;
1861		};
1862	};
1863
1864	ibm-panel@62 {
1865		compatible = "ibm,op-panel";
1866		reg = <(0x62 | I2C_OWN_SLAVE_ADDRESS)>;
1867	};
1868
1869	dps: dps310@76 {
1870		compatible = "infineon,dps310";
1871		reg = <0x76>;
1872		#io-channel-cells = <0>;
1873	};
1874
1875	eeprom@50 {
1876		compatible = "atmel,24c64";
1877		reg = <0x50>;
1878	};
1879
1880	eeprom@51 {
1881		compatible = "atmel,24c64";
1882		reg = <0x51>;
1883	};
1884};
1885
1886&i2c8 {
1887	status = "okay";
1888
1889	ucd90320@11 {
1890		compatible = "ti,ucd90320";
1891		reg = <0x11>;
1892	};
1893
1894	rtc@32 {
1895		compatible = "epson,rx8900";
1896		reg = <0x32>;
1897	};
1898
1899	tmp275@48 {
1900		compatible = "ti,tmp275";
1901		reg = <0x48>;
1902	};
1903
1904	tmp275@4a {
1905		compatible = "ti,tmp275";
1906		reg = <0x4a>;
1907	};
1908
1909	eeprom@50 {
1910		compatible = "atmel,24c64";
1911		reg = <0x50>;
1912	};
1913
1914	eeprom@51 {
1915		compatible = "atmel,24c64";
1916		reg = <0x51>;
1917	};
1918
1919	pca_pres3: pca9552@60 {
1920		compatible = "nxp,pca9552";
1921		reg = <0x60>;
1922		#address-cells = <1>;
1923		#size-cells = <0>;
1924		gpio-controller;
1925		#gpio-cells = <2>;
1926
1927		gpio-line-names =
1928			"", "", "", "", "", "", "", "",
1929			"", "", "", "", "", "", "power-config-full-load", "";
1930	};
1931
1932	pca_pres2: pca9552@61 {
1933		compatible = "nxp,pca9552";
1934		reg = <0x61>;
1935		#address-cells = <1>;
1936		#size-cells = <0>;
1937		gpio-controller;
1938		#gpio-cells = <2>;
1939
1940		gpio-line-names =
1941			"SLOT6_PRSNT_EN_RSVD", "SLOT7_PRSNT_EN_RSVD",
1942			"SLOT8_PRSNT_EN_RSVD", "SLOT9_PRSNT_EN_RSVD",
1943			"SLOT10_PRSNT_EN_RSVD", "SLOT11_PRSNT_EN_RSVD",
1944			"SLOT6_EXPANDER_PRSNT_N", "SLOT7_EXPANDER_PRSNT_N",
1945			"SLOT8_EXPANDER_PRSNT_N", "SLOT9_EXPANDER_PRSNT_N",
1946			"SLOT10_EXPANDER_PRSNT_N", "SLOT11_EXPANDER_PRSNT_N",
1947			"", "", "", "";
1948	};
1949
1950};
1951
1952&i2c9 {
1953	status = "okay";
1954
1955	tmp423a@4c {
1956		compatible = "ti,tmp423";
1957		reg = <0x4c>;
1958	};
1959
1960	tmp423b@4d {
1961		compatible = "ti,tmp423";
1962		reg = <0x4d>;
1963	};
1964
1965	eeprom@50 {
1966		compatible = "atmel,24c128";
1967		reg = <0x50>;
1968	};
1969};
1970
1971&i2c10 {
1972	status = "okay";
1973
1974	tmp423a@4c {
1975		compatible = "ti,tmp423";
1976		reg = <0x4c>;
1977	};
1978
1979	tmp423b@4d {
1980		compatible = "ti,tmp423";
1981		reg = <0x4d>;
1982	};
1983
1984	eeprom@50 {
1985		compatible = "atmel,24c128";
1986		reg = <0x50>;
1987	};
1988};
1989
1990&i2c11 {
1991	status = "okay";
1992
1993	tmp275@48 {
1994		compatible = "ti,tmp275";
1995		reg = <0x48>;
1996	};
1997
1998	tmp275@49 {
1999		compatible = "ti,tmp275";
2000		reg = <0x49>;
2001	};
2002
2003	pca9551@60 {
2004		compatible = "nxp,pca9551";
2005		reg = <0x60>;
2006		#address-cells = <1>;
2007		#size-cells = <0>;
2008
2009		gpio-controller;
2010		#gpio-cells = <2>;
2011
2012		led@0 {
2013			label = "cablecard10-cxp-top";
2014			reg = <0>;
2015			retain-state-shutdown;
2016			default-state = "keep";
2017			type = <PCA955X_TYPE_LED>;
2018		};
2019
2020		led@1 {
2021			label = "cablecard10-cxp-bot";
2022			reg = <1>;
2023			retain-state-shutdown;
2024			default-state = "keep";
2025			type = <PCA955X_TYPE_LED>;
2026		};
2027	};
2028
2029	pca9546@70 {
2030		compatible = "nxp,pca9546";
2031		reg = <0x70>;
2032		#address-cells = <1>;
2033		#size-cells = <0>;
2034		status = "okay";
2035		i2c-mux-idle-disconnect;
2036
2037		i2c11mux0chn0: i2c@0 {
2038			#address-cells = <1>;
2039			#size-cells = <0>;
2040			reg = <0>;
2041
2042			eeprom@50 {
2043				compatible = "atmel,24c64";
2044				reg = <0x50>;
2045			};
2046		};
2047
2048		i2c11mux0chn1: i2c@1 {
2049			#address-cells = <1>;
2050			#size-cells = <0>;
2051			reg = <1>;
2052
2053			eeprom@51 {
2054				compatible = "atmel,24c64";
2055				reg = <0x51>;
2056			};
2057		};
2058	};
2059};
2060
2061&i2c12 {
2062	status = "okay";
2063
2064	eeprom@50 {
2065		compatible = "atmel,24c64";
2066		reg = <0x50>;
2067	};
2068};
2069
2070&i2c13 {
2071	status = "okay";
2072
2073	eeprom@50 {
2074		compatible = "atmel,24c64";
2075		reg = <0x50>;
2076	};
2077
2078	pca9552@60 {
2079		compatible = "nxp,pca9552";
2080		reg = <0x60>;
2081		#address-cells = <1>;
2082		#size-cells = <0>;
2083
2084		gpio-controller;
2085		#gpio-cells = <2>;
2086
2087		led@0 {
2088			label = "nvme0";
2089			reg = <0>;
2090			retain-state-shutdown;
2091			default-state = "keep";
2092			type = <PCA955X_TYPE_LED>;
2093		};
2094
2095		led@1 {
2096			label = "nvme1";
2097			reg = <1>;
2098			retain-state-shutdown;
2099			default-state = "keep";
2100			type = <PCA955X_TYPE_LED>;
2101		};
2102
2103		led@2 {
2104			label = "nvme2";
2105			reg = <2>;
2106			retain-state-shutdown;
2107			default-state = "keep";
2108			type = <PCA955X_TYPE_LED>;
2109		};
2110
2111		led@3 {
2112			label = "nvme3";
2113			reg = <3>;
2114			retain-state-shutdown;
2115			default-state = "keep";
2116			type = <PCA955X_TYPE_LED>;
2117		};
2118
2119		led@4 {
2120			label = "nvme4";
2121			reg = <4>;
2122			retain-state-shutdown;
2123			default-state = "keep";
2124			type = <PCA955X_TYPE_LED>;
2125		};
2126
2127		led@5 {
2128			label = "nvme5";
2129			reg = <5>;
2130			retain-state-shutdown;
2131			default-state = "keep";
2132			type = <PCA955X_TYPE_LED>;
2133		};
2134
2135		led@6 {
2136			label = "nvme6";
2137			reg = <6>;
2138			retain-state-shutdown;
2139			default-state = "keep";
2140			type = <PCA955X_TYPE_LED>;
2141		};
2142
2143		led@7 {
2144			label = "nvme7";
2145			reg = <7>;
2146			retain-state-shutdown;
2147			default-state = "keep";
2148			type = <PCA955X_TYPE_LED>;
2149		};
2150	};
2151};
2152
2153&i2c14 {
2154	status = "okay";
2155
2156	eeprom@50 {
2157		compatible = "atmel,24c64";
2158		reg = <0x50>;
2159	};
2160
2161	pca9552@60 {
2162		compatible = "nxp,pca9552";
2163		reg = <0x60>;
2164		#address-cells = <1>;
2165		#size-cells = <0>;
2166
2167		gpio-controller;
2168		#gpio-cells = <2>;
2169
2170		led@0 {
2171			label = "nvme8";
2172			reg = <0>;
2173			retain-state-shutdown;
2174			default-state = "keep";
2175			type = <PCA955X_TYPE_LED>;
2176		};
2177
2178		led@1 {
2179			label = "nvme9";
2180			reg = <1>;
2181			retain-state-shutdown;
2182			default-state = "keep";
2183			type = <PCA955X_TYPE_LED>;
2184		};
2185
2186		led@2 {
2187			label = "nvme10";
2188			reg = <2>;
2189			retain-state-shutdown;
2190			default-state = "keep";
2191			type = <PCA955X_TYPE_LED>;
2192		};
2193
2194		led@3 {
2195			label = "nvme11";
2196			reg = <3>;
2197			retain-state-shutdown;
2198			default-state = "keep";
2199			type = <PCA955X_TYPE_LED>;
2200		};
2201
2202		led@4 {
2203			label = "nvme12";
2204			reg = <4>;
2205			retain-state-shutdown;
2206			default-state = "keep";
2207			type = <PCA955X_TYPE_LED>;
2208		};
2209
2210		led@5 {
2211			label = "nvme13";
2212			reg = <5>;
2213			retain-state-shutdown;
2214			default-state = "keep";
2215			type = <PCA955X_TYPE_LED>;
2216		};
2217
2218		led@6 {
2219			label = "nvme14";
2220			reg = <6>;
2221			retain-state-shutdown;
2222			default-state = "keep";
2223			type = <PCA955X_TYPE_LED>;
2224		};
2225
2226		led@7 {
2227			label = "nvme15";
2228			reg = <7>;
2229			retain-state-shutdown;
2230			default-state = "keep";
2231			type = <PCA955X_TYPE_LED>;
2232		};
2233	};
2234};
2235
2236&i2c15 {
2237	status = "okay";
2238
2239	eeprom@50 {
2240		compatible = "atmel,24c64";
2241		reg = <0x50>;
2242	};
2243
2244	pca9552@60 {
2245		compatible = "nxp,pca9552";
2246		reg = <0x60>;
2247		#address-cells = <1>;
2248		#size-cells = <0>;
2249
2250		gpio-controller;
2251		#gpio-cells = <2>;
2252
2253		led@0 {
2254			label = "nvme16";
2255			reg = <0>;
2256			retain-state-shutdown;
2257			default-state = "keep";
2258			type = <PCA955X_TYPE_LED>;
2259		};
2260
2261		led@1 {
2262			label = "nvme17";
2263			reg = <1>;
2264			retain-state-shutdown;
2265			default-state = "keep";
2266			type = <PCA955X_TYPE_LED>;
2267		};
2268
2269		led@2 {
2270			label = "nvme18";
2271			reg = <2>;
2272			retain-state-shutdown;
2273			default-state = "keep";
2274			type = <PCA955X_TYPE_LED>;
2275		};
2276
2277		led@3 {
2278			label = "nvme19";
2279			reg = <3>;
2280			retain-state-shutdown;
2281			default-state = "keep";
2282			type = <PCA955X_TYPE_LED>;
2283		};
2284
2285		led@4 {
2286			label = "nvme20";
2287			reg = <4>;
2288			retain-state-shutdown;
2289			default-state = "keep";
2290			type = <PCA955X_TYPE_LED>;
2291		};
2292
2293		led@5 {
2294			label = "nvme21";
2295			reg = <5>;
2296			retain-state-shutdown;
2297			default-state = "keep";
2298			type = <PCA955X_TYPE_LED>;
2299		};
2300
2301		led@6 {
2302			label = "nvme22";
2303			reg = <6>;
2304			retain-state-shutdown;
2305			default-state = "keep";
2306			type = <PCA955X_TYPE_LED>;
2307		};
2308
2309		led@7 {
2310			label = "nvme23";
2311			reg = <7>;
2312			retain-state-shutdown;
2313			default-state = "keep";
2314			type = <PCA955X_TYPE_LED>;
2315		};
2316	};
2317};
2318
2319&vuart1 {
2320	status = "okay";
2321};
2322
2323&vuart2 {
2324	status = "okay";
2325};
2326
2327&lpc_ctrl {
2328	status = "okay";
2329	memory-region = <&flash_memory>;
2330};
2331
2332&mac2 {
2333	status = "okay";
2334	pinctrl-names = "default";
2335	pinctrl-0 = <&pinctrl_rmii3_default>;
2336	clocks = <&syscon ASPEED_CLK_GATE_MAC3CLK>,
2337		 <&syscon ASPEED_CLK_MAC3RCLK>;
2338	clock-names = "MACCLK", "RCLK";
2339	use-ncsi;
2340};
2341
2342&mac3 {
2343	status = "okay";
2344	pinctrl-names = "default";
2345	pinctrl-0 = <&pinctrl_rmii4_default>;
2346	clocks = <&syscon ASPEED_CLK_GATE_MAC4CLK>,
2347		 <&syscon ASPEED_CLK_MAC4RCLK>;
2348	clock-names = "MACCLK", "RCLK";
2349	use-ncsi;
2350};
2351
2352&fmc {
2353	status = "okay";
2354	flash@0 {
2355		status = "okay";
2356		m25p,fast-read;
2357		label = "bmc";
2358		spi-max-frequency = <50000000>;
2359#include "openbmc-flash-layout-128.dtsi"
2360	};
2361};
2362
2363&spi1 {
2364	status = "okay";
2365	pinctrl-names = "default";
2366	pinctrl-0 = <&pinctrl_spi1_default>;
2367
2368	flash@0 {
2369		status = "okay";
2370		m25p,fast-read;
2371		label = "pnor";
2372		spi-max-frequency = <100000000>;
2373	};
2374};
2375
2376&wdt1 {
2377	aspeed,reset-type = "none";
2378	aspeed,external-signal;
2379	aspeed,ext-push-pull;
2380	aspeed,ext-active-high;
2381
2382	pinctrl-names = "default";
2383	pinctrl-0 = <&pinctrl_wdtrst1_default>;
2384};
2385
2386&wdt2 {
2387	status = "okay";
2388};
2389
2390&xdma {
2391	status = "okay";
2392	memory-region = <&vga_memory>;
2393};
2394
2395&kcs2 {
2396	status = "okay";
2397	aspeed,lpc-io-reg = <0xca8 0xcac>;
2398};
2399
2400&kcs3 {
2401	status = "okay";
2402	aspeed,lpc-io-reg = <0xca2>;
2403	aspeed,lpc-interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
2404};
2405