]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: aspeed: santabarbara: Add swb IO expander and gpio line names
authorFred Chen <fredchen.openbmc@gmail.com>
Tue, 25 Nov 2025 13:59:30 +0000 (21:59 +0800)
committerAndrew Jeffery <andrew@codeconstruct.com.au>
Sun, 14 Dec 2025 08:37:16 +0000 (17:37 +0900)
Add IO expander emulated by the switch board CPLD to handle UART and SPI
mux control signals. Also add SGPIO labels with FM_MODULE_PWR_EN_N_*
signals, which control power to each ASIC module individually.

Signed-off-by: Fred Chen <fredchen.openbmc@gmail.com>
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-santabarbara.dts

index f74f463cc878186e836f73cec4e216fe7a17ebd7..4312ead311df98f7c425d248f0ce9b6d4441cd21 100644 (file)
 &i2c12 {
        status = "okay";
 
+       gpio@27 {
+               compatible = "nxp,pca9555";
+               reg = <0x27>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               gpio-line-names =
+                       "PEX0_MODE_SEL1_R","PEX0_MODE_SEL2_R",
+                       "PEX0_MODE_SEL3_R","PEX0_MODE_SEL4_R",
+                       "","","","",
+                       "UART_MUX_SEL","RST_SMB_NIC_R_N",
+                       "RST_SMB_N","RST_CP2102N_N",
+                       "SPI_MUX_SEL","","","";
+       };
+
        // SWB FRU
        eeprom@52 {
                compatible = "atmel,24c64";
        "","BIOS_DEBUG_MODE",
        /*H0-H3 line 112-119*/
        "FM_IOEXP_U538_INT_N","",
-       "FM_IOEXP_U539_INT_N","",
-       "FM_IOEXP_U540_INT_N","",
-       "FM_IOEXP_U541_INT_N","",
+       "FM_IOEXP_U539_INT_N","FM_MODULE_PWR_EN_N_1B",
+       "FM_IOEXP_U540_INT_N","FM_MODULE_PWR_EN_N_2B",
+       "FM_IOEXP_U541_INT_N","FM_MODULE_PWR_EN_N_3B",
        /*H4-H7 line 120-127*/
-       "FM_IOEXP_PDB2_U1003_INT_N","",
+       "FM_IOEXP_PDB2_U1003_INT_N","FM_MODULE_PWR_EN_N_4B",
        "","",
        "","",
        "FM_MAIN_PWREN_RMC_EN_ISO_R","",