gpio: qcom_spmi_gpio: move PM8998 GPIO from legacy pmic driver
Subsystems (2)
PATCH v2 1/1 gpio: qcom_spmi_gpio: move PM8998 GPIO from legacy pmic driver
Move the "qcom,pm8998-gpio" compatible from the legacy driver qcom_pmic_gpio.c to qcom_spmi_gpio.c. Enables on PM8998-based boards (sdm845: SHIFT 6mq, Pixel 3, OnePlus 6, Poco F1, Sony Xperia Akatsuki) the Volume UP gpio-key.
---
Move the "qcom,pm8998-gpio" compatible from the legacy driver qcom_pmic_gpio.c to qcom_spmi_gpio.c. Enables on PM8998-based boards (sdm845: SHIFT 6mq, Pixel 3, OnePlus 6, Poco F1, Sony Xperia Akatsuki) the Volume UP gpio-key.
---
Changes in v2:
- Reworked per Neil Armstrong's suggestion on v1: migrate PM8998 to the modern qcom_spmi_gpio driver instead of extending the legacy qcom_pmic_gpio.c.
- Dropped "gpio: qcom_pmic_gpio: implement standard pinconf parameters".
- Dropped "gpio: qcom_pmic_gpio: don't reset pull on direction change".
- Replaced with a single qcom_spmi_gpio.c patch that claims the qcom,pm8998-gpio compatible.
- Link to v1: https://patch.msgid.link/[email protected]
To: Sumit Garg <[email protected]>
To: [email protected]
To: [email protected]
Cc: Casey Connolly <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Rui Miguel Silva <[email protected]>
Cc: Petr Hodina <[email protected]>
Cc: Luca Weiss <[email protected]>
Cc: David Wronek <[email protected]>
Cc: Jens Reidel <[email protected]>
--- drivers/gpio/qcom_pmic_gpio.c | 1 - drivers/gpio/qcom_spmi_gpio.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/qcom_pmic_gpio.c +0 -1
@@ -344,7 +344,6 @@ static int qcom_gpio_probe(struct udevice *dev)static const struct udevice_id qcom_gpio_ids[] = { { .compatible ="qcom,pm8916-gpio" }, { .compatible ="qcom,pm8994-gpio" },/* 22 GPIO's */ - { .compatible ="qcom,pm8998-gpio" }, { .compatible ="qcom,pms405-gpio" }, { .compatible ="qcom,pm6125-gpio" }, { .compatible ="qcom,pm8150-gpio" },
drivers/gpio/qcom_spmi_gpio.c +1 -0
@@ -751,6 +751,7 @@ static const struct udevice_id qcom_spmi_pmic_gpio_ids[] = { { .compatible = "qcom,pm8550b-gpio" }, { .compatible = "qcom,pm8550ve-gpio" }, { .compatible = "qcom,pm8550vs-gpio" }, + { .compatible = "qcom,pm8998-gpio" }, { .compatible = "qcom,pmk8550-gpio" }, { .compatible = "qcom,pmr735d-gpio" }, { }
---
base-commit: 1f89ddd61cd8c27a3dc1fc7edbeccb55d424eb72
change-id: 20260601-qcom-gpio-98e85ab22647
Best regards,
Signature · 1 line
Petr Hodina <[email protected]>
Quoted 7 lines · On 05/06/2026 17:09, Petr Hodina via B4 Relay wrote:
From: Petr Hodina <[email protected]>
Move the "qcom,pm8998-gpio" compatible from the legacy driver
qcom_pmic_gpio.ctoqcom_spmi_gpio.c. Enables on PM8998-based boards (sdm845: SHIFT 6mq, Pixel 3, OnePlus 6, Poco F1, Sony Xperia Akatsuki) the Volume UP gpio-key.
Quoted 8 lines
Signed-off-by Petr Hodina <[email protected]>---
Move the "qcom,pm8998-gpio" compatible from the legacy driverqcom_pmic_gpio.ctoqcom_spmi_gpio.c. Enables on PM8998-based boards (sdm845: SHIFT 6mq, Pixel 3, OnePlus 6, Poco F1, Sony Xperia Akatsuki) the Volume UP gpio-key.Suggested-by Neil Armstrong <[email protected]>
Quoted 61 lines
---
Changes in v2:
- Reworked per Neil Armstrong's suggestion on v1: migrate PM8998 to the modernqcom_spmi_gpiodriver instead of extending the legacyqcom_pmic_gpio.c.
- Dropped "gpio:qcom_pmic_gpio: implement standard pinconf parameters".
- Dropped "gpio:qcom_pmic_gpio: don't reset pull on direction change".
- Replaced with a singleqcom_spmi_gpio.cpatch that claims the qcom,pm8998-gpio compatible.
- Link to v1: https://patch.msgid.link/[email protected]To: Sumit Garg <[email protected]>
To: [email protected]
To: [email protected]
Cc: Casey Connolly <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Rui Miguel Silva <[email protected]>
Cc: Petr Hodina <[email protected]>
Cc: Luca Weiss <[email protected]>
Cc: David Wronek <[email protected]>
Cc: Jens Reidel <[email protected]>--- drivers/gpio/qcom_pmic_gpio.c | 1 - drivers/gpio/qcom_spmi_gpio.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-)drivers/gpio/qcom_pmic_gpio.c +0
-1@@ -344,7 +344,6 @@ static int qcom_gpio_probe(struct udevice *dev)static const struct udevice_id qcom_gpio_ids[] = { { .compatible ="qcom,pm8916-gpio" }, { .compatible ="qcom,pm8994-gpio" },/* 22 GPIO's */ - { .compatible ="qcom,pm8998-gpio" }, { .compatible ="qcom,pms405-gpio" }, { .compatible ="qcom,pm6125-gpio" }, { .compatible ="qcom,pm8150-gpio" },drivers/gpio/qcom_spmi_gpio.c +1
-1@@ -751,6 +751,7 @@ static const struct udevice_id qcom_spmi_pmic_gpio_ids[] = { { .compatible = "qcom,pm8550b-gpio" }, { .compatible = "qcom,pm8550ve-gpio" }, { .compatible = "qcom,pm8550vs-gpio" }, + { .compatible = "qcom,pm8998-gpio" }, { .compatible = "qcom,pmk8550-gpio" }, { .compatible = "qcom,pmr735d-gpio" }, { } ---base-commit:
1f89ddd61cd8c27a3dc1fc7edbeccb55d424eb72
change-id: 20260601-qcom-gpio-98e85ab22647Best regards,
Signature · 1 line
Petr Hodina <[email protected]>
Signature · 1 line
// Casey (she/her)
Casey Connolly
AppliedQuoted 4 lines · Petr Hodina
Move the "qcom,pm8998-gpio" compatible from the legacy driver
qcom_pmic_gpio.ctoqcom_spmi_gpio.c. Enables on PM8998-based boards (sdm845: SHIFT 6mq, Pixel 3, OnePlus 6, Poco F1, Sony Xperia Akatsuki) the Volume UP gpio-key.
Applied, thanks!
[1/1] gpio: qcom_spmi_gpio: move PM8998 GPIO from legacy pmic driver
https://source.denx.de/u-boot/custodians/u-boot-snapdragon/-/commit/6e522e428575
Best regards,
Signature · 1 line
// Casey (she/they)