]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: aspeed: minerva: add i/o expanders on bus 0
authorYang Chen <yangchen.openbmc@gmail.com>
Thu, 12 Dec 2024 13:32:23 +0000 (21:32 +0800)
committerAndrew Jeffery <andrew@codeconstruct.com.au>
Fri, 13 Dec 2024 05:22:48 +0000 (15:52 +1030)
Add three I/O expanders on i2c bus 0, assign the GPIO line name to each
GPIO in use, and specify the interrupt GPIO that has been used on it and
give the interrupt gpio number.

Signed-off-by: Yang Chen <yangchen.openbmc@gmail.com>
Link: https://patch.msgid.link/20241212133226.342937-2-yangchen.openbmc@gmail.com
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts

index 468a33f50ef2778a2cb01cf09a891bba7914c3c0..426e249c3326a27926c6b906232886ba623b485a 100644 (file)
                gpio-controller;
                #gpio-cells = <2>;
        };
+
+       gpio@11 {
+               compatible = "nxp,pca9555";
+               reg = <0x11>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               interrupt-parent = <&sgpiom0>;
+               interrupts = <238 IRQ_TYPE_LEVEL_LOW>;
+
+               gpio-line-names =
+               "PWRGD_P24V_SMPWROK", "P1V5_PWROK",
+               "P3V3_PWROK", "P5V_PWROK",
+               "P12V_SCM_PWROK", "P12V_PWROK",
+               "P24V_PWROK", "P48V_HSC_PWROK",
+               "ERR_GPIO_IRQ", "TMP75_ALERT_N",
+               "BMC_PWROK", "P12V_INA230_ALERT_N",
+               "P24V_INA230_ALERT_N","",
+               "P48V_HSC_ALERT_N", "P1V05_PWROK";
+       };
+
+       gpio@12 {
+               compatible = "nxp,pca9555";
+               reg = <0x12>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               interrupt-parent = <&sgpiom0>;
+               interrupts = <240 IRQ_TYPE_LEVEL_LOW>;
+
+               gpio-line-names =
+               "P1V05_PWR_FAIL", "P1V5_PWR_FAIL",
+               "P24V_PWR_FAIL", "P24V_SM_PWR_FAIL",
+               "IRQ_NW0/1/2_N", "IRQ_NW3/4/5_N",
+               "RTC_INT_N_R", "ERR_GPIO_IRQ",
+               "", "",
+               "", "",
+               "", "",
+               "", "";
+       };
+
+       gpio@13 {
+               compatible = "nxp,pca9555";
+               reg = <0x13>;
+               gpio-controller;
+               #gpio-cells = <2>;
+               interrupt-parent = <&sgpiom0>;
+               interrupts = <242 IRQ_TYPE_LEVEL_LOW>;
+
+               gpio-line-names =
+               "", "",
+               "", "",
+               "", "",
+               "", "",
+               "RACKMON_A_1", "RACKMON_A_2",
+               "RACKMON_B_1", "RACKMON_B_2",
+               "", "",
+               "", "";
+       };
 };
 
 &i2c1 {