Skip to content

Commit 73a89a9

Browse files
qnguyen-ampereshenki
authored andcommitted
ARM: dts: aspeed: mtjade: Add PSU support
Enable PSU support on Ampere's Mt. Jade BMC. Signed-off-by: Quan Nguyen <quan@os.amperecomputing.com> Signed-off-by: Phong Vo <phong@os.amperecomputing.com> Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Link: https://lore.kernel.org/r/20210517040036.13667-3-quan@os.amperecomputing.com Signed-off-by: Joel Stanley <joel@jms.id.au>
1 parent 9e8cf4b commit 73a89a9

1 file changed

Lines changed: 40 additions & 2 deletions

File tree

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

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,30 @@
110110
linux,code = <ASPEED_GPIO(Q, 5)>;
111111
};
112112

113+
psu1_vin_good {
114+
label = "PSU1_VIN_GOOD";
115+
gpios = <&gpio ASPEED_GPIO(H, 4) GPIO_ACTIVE_LOW>;
116+
linux,code = <ASPEED_GPIO(H, 4)>;
117+
};
118+
119+
psu2_vin_good {
120+
label = "PSU2_VIN_GOOD";
121+
gpios = <&gpio ASPEED_GPIO(H, 5) GPIO_ACTIVE_LOW>;
122+
linux,code = <ASPEED_GPIO(H, 5)>;
123+
};
124+
125+
psu1_present {
126+
label = "PSU1_PRESENT";
127+
gpios = <&gpio ASPEED_GPIO(I, 0) GPIO_ACTIVE_LOW>;
128+
linux,code = <ASPEED_GPIO(I, 0)>;
129+
};
130+
131+
psu2_present {
132+
label = "PSU2_PRESENT";
133+
gpios = <&gpio ASPEED_GPIO(I, 1) GPIO_ACTIVE_LOW>;
134+
linux,code = <ASPEED_GPIO(I, 1)>;
135+
};
136+
113137
};
114138

115139
gpioA0mux: mux-controller {
@@ -436,6 +460,19 @@
436460
status = "okay";
437461
};
438462

463+
&i2c10 {
464+
status = "okay";
465+
adm1278@10 {
466+
compatible = "adi,adm1278";
467+
reg = <0x10>;
468+
};
469+
470+
adm1278@11 {
471+
compatible = "adi,adm1278";
472+
reg = <0x11>;
473+
};
474+
};
475+
439476
&gfx {
440477
status = "okay";
441478
memory-region = <&gfx_memory>;
@@ -539,8 +576,9 @@
539576
"S1_DDR_SAVE","","",
540577
/*G0-G7*/ "S0_FW_BOOT_OK","SHD_REQ_L","","S0_OVERTEMP_L","","",
541578
"","",
542-
/*H0-H7*/ "","","","","","","","",
543-
/*I0-I7*/ "","","S1_BMC_SPECIAL_BOOT","","","","","",
579+
/*H0-H7*/ "","","","","PSU1_VIN_GOOD","PSU2_VIN_GOOD","","",
580+
/*I0-I7*/ "PSU1_PRESENT","PSU2_PRESENT","S1_BMC_SPECIAL_BOOT",
581+
"","","","","",
544582
/*J0-J7*/ "S0_HIGHTEMP_L","S0_FAULT_L","S0_SCP_AUTH_FAIL_L","",
545583
"","","","",
546584
/*K0-K7*/ "","","","","","","","",

0 commit comments

Comments
 (0)