Skip to content

Commit 695cb11

Browse files
chnguyen-ampereshenki
authored andcommitted
ARM: dts: aspeed: mtmitchell: Enable NCSI
Use MAC3 (RGMII4) with the NC-SI stack instead of as an MDIO PHY. The OCP slot #0 and OCP slot #1 use a common BMC_NCSI signal, so we use only one of them at a time. The OCP slot #0 will be enabled by PCA9539's setting by default. Enable the OCP Auxiliary Power during booting to make the NCSI feature work. Signed-off-by: Chanh Nguyen <[email protected]> Reviewed-by: Joel Stanley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joel Stanley <[email protected]>
1 parent 9dedb72 commit 695cb11

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

arch/arm/boot/dts/aspeed-bmc-ampere-mtmitchell.dts

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,14 @@
251251
pinctrl-0 = <&pinctrl_rgmii1_default>;
252252
};
253253

254+
&mac3 {
255+
status = "okay";
256+
pinctrl-names = "default";
257+
pinctrl-0 = <&pinctrl_rmii4_default>;
258+
clock-names = "MACCLK", "RCLK";
259+
use-ncsi;
260+
};
261+
254262
&fmc {
255263
status = "okay";
256264
flash@0 {
@@ -439,6 +447,26 @@
439447
status = "okay";
440448
};
441449

450+
&i2c8 {
451+
status = "okay";
452+
453+
gpio@77 {
454+
compatible = "nxp,pca9539";
455+
reg = <0x77>;
456+
gpio-controller;
457+
#address-cells = <1>;
458+
#size-cells = <0>;
459+
#gpio-cells = <2>;
460+
461+
bmc-ocp0-en-hog {
462+
gpio-hog;
463+
gpios = <7 GPIO_ACTIVE_LOW>;
464+
output-high;
465+
line-name = "bmc-ocp0-en-n";
466+
};
467+
};
468+
};
469+
442470
&i2c9 {
443471
status = "okay";
444472
};
@@ -530,13 +558,20 @@
530558
/*V0-V7*/ "s0-hightemp-n","s0-fault-alert","s0-sys-auth-failure-n",
531559
"host0-reboot-ack-n","host0-ready","host0-shd-req-n",
532560
"host0-shd-ack-n","s0-overtemp-n",
533-
/*W0-W7*/ "ocp-aux-pwren","ocp-main-pwren","ocp-pgood","",
561+
/*W0-W7*/ "","ocp-main-pwren","ocp-pgood","",
534562
"bmc-ok","bmc-ready","spi0-program-sel","spi0-backup-sel",
535563
/*X0-X7*/ "i2c-backup-sel","s1-fault-alert","s1-fw-boot-ok",
536564
"s1-hightemp-n","s0-spi-auth-fail-n","s1-sys-auth-failure-n",
537565
"s1-overtemp-n","s1-spi-auth-fail-n",
538566
/*Y0-Y7*/ "","","","","","","","host0-special-boot",
539567
/*Z0-Z7*/ "reset-button","ps0-pgood","ps1-pgood","","","","","";
568+
569+
ocp-aux-pwren-hog {
570+
gpio-hog;
571+
gpios = <ASPEED_GPIO(W, 0) GPIO_ACTIVE_HIGH>;
572+
output-high;
573+
line-name = "ocp-aux-pwren";
574+
};
540575
};
541576

542577
&gpio1 {

0 commit comments

Comments
 (0)