forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
....@@ -7,6 +7,14 @@
77 model = "Zaius BMC";
88 compatible = "ingrasys,zaius-bmc", "aspeed,ast2500";
99
10
+ aliases {
11
+ i2c15 = &i2cpcie0;
12
+ i2c16 = &i2cpcie1;
13
+ i2c17 = &i2cpcie2;
14
+ i2c19 = &i2cpcie3;
15
+ i2c20 = &i2cpcie4;
16
+ };
17
+
1018 chosen {
1119 stdout-path = &uart5;
1220 bootargs = "console=ttyS4,115200 earlyprintk";
....@@ -122,6 +130,7 @@
122130 status = "okay";
123131 label = "bmc";
124132 m25p,fast-read;
133
+ spi-max-frequency = <50000000>;
125134 #include "openbmc-flash-layout.dtsi"
126135 };
127136 };
....@@ -135,6 +144,7 @@
135144 status = "okay";
136145 label = "pnor";
137146 m25p,fast-read;
147
+ spi-max-frequency = <100000000>;
138148 };
139149 };
140150
....@@ -179,6 +189,9 @@
179189 status = "okay";
180190 pinctrl-names = "default";
181191 pinctrl-0 = <&pinctrl_rmii1_default>;
192
+ clocks = <&syscon ASPEED_CLK_GATE_MAC1CLK>,
193
+ <&syscon ASPEED_CLK_MAC1RCLK>;
194
+ clock-names = "MACCLK", "RCLK";
182195 use-ncsi;
183196 };
184197
....@@ -223,6 +236,27 @@
223236 reg = <0x71>;
224237 #address-cells = <1>;
225238 #size-cells = <0>;
239
+
240
+ i2cpcie0: i2c@0 {
241
+ #address-cells = <1>;
242
+ #size-cells = <0>;
243
+ reg = <0>;
244
+ };
245
+ i2cpcie1: i2c@1 {
246
+ #address-cells = <1>;
247
+ #size-cells = <0>;
248
+ reg = <1>;
249
+ };
250
+ i2cpcie2: i2c@2 {
251
+ #address-cells = <1>;
252
+ #size-cells = <0>;
253
+ reg = <2>;
254
+ };
255
+ i2ctpm: i2c@3 {
256
+ #address-cells = <1>;
257
+ #size-cells = <0>;
258
+ reg = <3>;
259
+ };
226260 };
227261
228262 /* MUX1 PCA9546A @71h
....@@ -253,6 +287,17 @@
253287 reg = <0x71>;
254288 #address-cells = <1>;
255289 #size-cells = <0>;
290
+
291
+ i2cpcie3: i2c@0 {
292
+ #address-cells = <1>;
293
+ #size-cells = <0>;
294
+ reg = <0>;
295
+ };
296
+ i2cpcie4: i2c@1 {
297
+ #address-cells = <1>;
298
+ #size-cells = <0>;
299
+ reg = <1>;
300
+ };
256301 };
257302
258303 /* MUX1 PCA9546A @71h
....@@ -296,33 +341,98 @@
296341 reg = <0x54>;
297342 };
298343 };
344
+
345
+ };
346
+
347
+ vrm@64 {
348
+ compatible = "isil,isl68137";
349
+ reg = <0x64>;
350
+ };
351
+
352
+ vrm@40 {
353
+ compatible = "isil,isl68137";
354
+ reg = <0x40>;
355
+ };
356
+
357
+ vrm@60 {
358
+ compatible = "isil,isl68137";
359
+ reg = <0x60>;
360
+ };
361
+
362
+ vrm@43 {
363
+ compatible = "infineon,ir38064";
364
+ reg = <0x43>;
365
+ };
366
+
367
+ vrm@41 {
368
+ compatible = "isil,isl68137";
369
+ reg = <0x41>;
299370 };
300371
301372 /* Master selector PCA9541A @70h (other master: CPU0)
302373 * LM5066I PMBUS @10h
303374 */
304375
305
- /* 12V Quarter Brick DC/DC Converter Q54SJ12050 @61h */
306
- power-brick@61 {
376
+ /*
377
+ * Brick will be one of these types/addresses. Depending
378
+ * on the board SKU only one is actually present and will successfully
379
+ * instantiate while the others will fail the probe operation.
380
+ * These are the PVT (and presumably beyond) addresses:
381
+ * 12V Quarter Brick DC/DC Converter Q54SJ12050 @6Ah
382
+ * 12V Quarter Brick DC/DC Converter Q54SH12050 @30h
383
+ */
384
+ power-brick@6a {
307385 compatible = "delta,dps800";
308
- reg = <0x61>;
386
+ reg = <0x6a>;
387
+ };
388
+ power-brick@30 {
389
+ compatible = "delta,dps800";
390
+ reg = <0x30>;
309391 };
310392
311393 /* CPU0 VR ISL68137 0.7V, 0.96V PMBUS @64h */
312394 /* CPU0 VR ISL68137 1.2V CH03 PMBUS @40h */
313395 /* CPU0 VR ISL68137 0.8V PMBUS @60h */
314
- /* CPU0 VR 1.0V IR38064 I2C @11h, PMBUS @41h */
396
+ /* CPU0 VR 1.0V IR38064 I2C @11h, PMBUS @43h */
315397 /* CPU0 VR ISL68137 1.2V CH47 PMBUS @41h */
398
+ /* Master selector PCA9541A @70h (other master: CPU0)
399
+ * LM5066I PMBUS @10h
400
+ */
316401 };
317402
318403 &i2c8 {
319404 status = "okay";
320405
321
- /* CPU1 VR ISL68137 0.7V, 0.96V PMBUS @65h */
322
- /* CPU1 VR ISL68137 1.2V CH03 PMBUS @44h */
323
- /* CPU1 VR ISL68137 0.8V PMBUS @61h */
406
+ vrm@64 {
407
+ compatible = "isil,isl68137";
408
+ reg = <0x64>;
409
+ };
410
+
411
+ vrm@40 {
412
+ compatible = "isil,isl68137";
413
+ reg = <0x40>;
414
+ };
415
+
416
+ vrm@41 {
417
+ compatible = "isil,isl68137";
418
+ reg = <0x41>;
419
+ };
420
+
421
+ vrm@42 {
422
+ compatible = "infineon,ir38064";
423
+ reg = <0x42>;
424
+ };
425
+
426
+ vrm@60 {
427
+ compatible = "isil,isl68137";
428
+ reg = <0x60>;
429
+ };
430
+
431
+ /* CPU1 VR ISL68137 0.7V, 0.96V PMBUS @64h */
432
+ /* CPU1 VR ISL68137 1.2V CH03 PMBUS @40h */
433
+ /* CPU1 VR ISL68137 1.2V CH47 PMBUS @41h */
324434 /* CPU1 VR 1.0V IR38064 I2C @12h, PMBUS @42h */
325
- /* CPU0 VR ISL68137 1.2V CH47 PMBUS @45h */
435
+ /* CPU1 VR ISL68137 0.8V PMBUS @60h */
326436 };
327437
328438
....@@ -368,32 +478,61 @@
368478 pinctrl-names = "default";
369479 pinctrl-0 = <&pinctrl_gpioh_unbiased>;
370480
481
+ gpio-line-names =
482
+ /*A0-A7*/ "","cfam-reset","","","","","","",
483
+ /*B0-B7*/ "","","","","","","","",
484
+ /*C0-C7*/ "","","","","","","","",
485
+ /*D0-D7*/ "fsi-enable","","","","","led-sys-boot-status","led-attention",
486
+ "led-fault",
487
+ /*E0-E7*/ "","","","","","","","presence-pcie-e2b",
488
+ /*F0-F7*/ "","","","","","","","checkstop",
489
+ /*G0-G7*/ "fsi-clock","fsi-data","","","","","","",
490
+ /*H0-H7*/ "onewire0","onewire1","onewire2","onewire3","","","","",
491
+ /*I0-I7*/ "","","","power-button","","","","",
492
+ /*J0-J7*/ "","","","","","","","",
493
+ /*K0-K7*/ "","","","","","","","",
494
+ /*L0-L7*/ "","","","","","","","",
495
+ /*M0-M7*/ "","","","","","","","",
496
+ /*N0-N7*/ "","","","","","","","",
497
+ /*O0-O7*/ "","","","","iso_u164_en","","fsi-trans","",
498
+ /*P0-P7*/ "ncsi_mux_en_n","bmc_i2c2_sw_rst_n","","bmc_i2c5_sw_rst_n","",
499
+ "","fsi-mux","",
500
+ /*Q0-Q7*/ "","","","","","","","",
501
+ /*R0-R7*/ "","","","","","","","",
502
+ /*S0-S7*/ "","","","","","","","",
503
+ /*T0-T7*/ "","","","","","","","",
504
+ /*U0-U7*/ "","","","","","","","",
505
+ /*V0-V7*/ "","","","","","","","",
506
+ /*W0-W7*/ "","","","","","","","",
507
+ /*X0-X7*/ "","","","","","","","",
508
+ /*Y0-Y7*/ "","","","","","","","",
509
+ /*Z0-Z7*/ "","","","","","","","",
510
+ /*AA0-AA7*/ "","","led-hdd-fault","","","","","",
511
+ /*AB0-AB7*/ "","","","","","","","",
512
+ /*AC0-AC7*/ "","","","","","","","";
513
+
371514 line_iso_u146_en {
372515 gpio-hog;
373516 gpios = <ASPEED_GPIO(O, 4) GPIO_ACTIVE_HIGH>;
374517 output-high;
375
- line-name = "iso_u164_en";
376518 };
377519
378520 ncsi_mux_en_n {
379521 gpio-hog;
380522 gpios = <ASPEED_GPIO(P, 0) GPIO_ACTIVE_HIGH>;
381523 output-low;
382
- line-name = "ncsi_mux_en_n";
383524 };
384525
385526 line_bmc_i2c2_sw_rst_n {
386527 gpio-hog;
387528 gpios = <ASPEED_GPIO(P, 1) GPIO_ACTIVE_HIGH>;
388529 output-high;
389
- line-name = "bmc_i2c2_sw_rst_n";
390530 };
391531
392532 line_bmc_i2c5_sw_rst_n {
393533 gpio-hog;
394534 gpios = <ASPEED_GPIO(P, 3) GPIO_ACTIVE_HIGH>;
395535 output-high;
396
- line-name = "bmc_i2c5_sw_rst_n";
397536 };
398537 };
399538
....@@ -435,3 +574,5 @@
435574 &ibt {
436575 status = "okay";
437576 };
577
+
578
+#include "ibm-power9-dual.dtsi"