[PATCH 2/2] ARM: dts: aspeed: catalina: add hdd board cpld ioexp
Potin Lai
potin.lai.pt at gmail.com
Wed Nov 6 19:58:52 AEDT 2024
Add HDD board CPLD IO expender based on latest CPLD firmware support.
Signed-off-by: Potin Lai <potin.lai.pt at gmail.com>
---
.../dts/aspeed/aspeed-bmc-facebook-catalina.dts | 65 ++++++++++++++++++++++
1 file changed, 65 insertions(+)
diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-catalina.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-catalina.dts
index 10a9fca1b803..102d71234932 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-catalina.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-catalina.dts
@@ -632,6 +632,36 @@ eeprom at 51 {
&i2c3 {
status = "okay";
+
+ // HDD CPLD IOEXP 0x10
+ io_expander13: gpio at 10 {
+ compatible = "nxp,pca9555";
+ interrupt-parent = <&gpio0>;
+ interrupts = <ASPEED_GPIO(I, 6) IRQ_TYPE_LEVEL_LOW>;
+ reg = <0x10>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ };
+
+ // HDD CPLD IOEXP 0x11
+ io_expander14: gpio at 11 {
+ compatible = "nxp,pca9555";
+ interrupt-parent = <&gpio0>;
+ interrupts = <ASPEED_GPIO(I, 6) IRQ_TYPE_LEVEL_LOW>;
+ reg = <0x11>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ };
+
+ // HDD CPLD IOEXP 0x12
+ io_expander15: gpio at 12 {
+ compatible = "nxp,pca9555";
+ interrupt-parent = <&gpio0>;
+ interrupts = <ASPEED_GPIO(I, 6) IRQ_TYPE_LEVEL_LOW>;
+ reg = <0x12>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ };
};
&i2c4 {
@@ -1067,3 +1097,38 @@ &io_expander12 {
"PRSNT_CHASSIS1_LEAK_CABLE_R_N","PRSNT_CHASSIS0_LEAK_CABLE_R_N";
};
+&io_expander13 {
+ gpio-line-names =
+ "wP3V3_RUNTIME_FLT_HDD0","wP12V_RUNTIME_FLT_HDD0",
+ "wP3V3_AUX_RUNTIME_FLT_HDD0","",
+ "Host_PERST_SEQPWR_FLT_HDD0","wP3V3_SEQPWR_FLT_HDD0",
+ "wP12V_SEQPWR_FLT_HDD0","wP3V3_AUX_SEQPWR_FLT_HDD0",
+ "wP3V3_RUNTIME_FLT_HDD1","wP12V_RUNTIME_FLT_HDD1",
+ "wP3V3_AUX_RUNTIME_FLT_HDD1","",
+ "Host_PERST_SEQPWR_FLT_HDD1","wP3V3_SEQPWR_FLT_HDD1",
+ "wP12V_SEQPWR_FLT_HDD1","wP3V3_AUX_SEQPWR_FLT_HDD1";
+};
+
+&io_expander14 {
+ gpio-line-names =
+ "wP3V3_RUNTIME_FLT_HDD2","wP12V_RUNTIME_FLT_HDD2",
+ "wP3V3_AUX_RUNTIME_FLT_HDD2","",
+ "Host_PERST_SEQPWR_FLT_HDD2","wP3V3_SEQPWR_FLT_HDD2",
+ "wP12V_SEQPWR_FLT_HDD2","wP3V3_AUX_SEQPWR_FLT_HDD2",
+ "wP3V3_RUNTIME_FLT_HDD3","wP12V_RUNTIME_FLT_HDD3",
+ "wP3V3_AUX_RUNTIME_FLT_HDD3","",
+ "Host_PERST_SEQPWR_FLT_HDD3","wP3V3_SEQPWR_FLT_HDD3",
+ "wP12V_SEQPWR_FLT_HDD3","wP3V3_AUX_SEQPWR_FLT_HDD3";
+};
+
+&io_expander15 {
+ gpio-line-names =
+ "P3V3_HDD3_FAULT_R","P3V3_HDD2_FAULT_R",
+ "P3V3_HDD1_FAULT_R","P3V3_HDD0_FAULT_R",
+ "P12V_HDD3_FLT_L","P12V_HDD2_FLT_L",
+ "P12V_HDD1_FLT_L","P12V_HDD0_FLT_L",
+ "HDD_23_PWRBRK_N_R","HDD_01_PWRBRK_N_R",
+ "","",
+ "HDD3_PRSNT_N_R","HDD2_PRSNT_N_R",
+ "HDD1_PRSNT_N_R","HDD0_PRSNT_N_R";
+};
--
2.31.1
More information about the Linux-aspeed
mailing list