Skip to contentSkip to conversation

mfd: axp20x: Add support for AXP192

PATCH Applied Aidan MacDonald 2 participants 4 messages May 11, 2023 – May 18, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 mfd: axp20x: Add support for AXP192

The AXP192 PMIC is similar to the AXP202/AXP209, but with different regulators, additional GPIOs, and a different IRQ register layout.

---
v1->v2: No changes

        https://lore.kernel.org/all/[email protected]
 drivers/mfd/axp20x-i2c.c   |   2 +
 drivers/mfd/axp20x.c       | 141 +++++++++++++++++++++++++++++++++++++
 include/linux/mfd/axp20x.h |  84 ++++++++++++++++++++++
 3 files changed, 227 insertions(+)
drivers/mfd/axp20x-i2c.c +2 -0
index b4f5cb457117..78f651ae4161 100644
@@ -59,6 +59,7 @@ static void axp20x_i2c_remove(struct i2c_client *i2c)
 #ifdef CONFIG_OF
 static const struct of_device_id axp20x_i2c_of_match[] = {
 	{ .compatible = "x-powers,axp152", .data = (void *)AXP152_ID },
+	{ .compatible = "x-powers,axp192", .data = (void *)AXP192_ID },
 	{ .compatible = "x-powers,axp202", .data = (void *)AXP202_ID },
 	{ .compatible = "x-powers,axp209", .data = (void *)AXP209_ID },
 	{ .compatible = "x-powers,axp221", .data = (void *)AXP221_ID },
@@ -73,6 +74,7 @@ MODULE_DEVICE_TABLE(of, axp20x_i2c_of_match);
 
 static const struct i2c_device_id axp20x_i2c_id[] = {
 	{ "axp152", 0 },
+	{ "axp192", 0 },
 	{ "axp202", 0 },
 	{ "axp209", 0 },
 	{ "axp221", 0 },
drivers/mfd/axp20x.c +141 -0

189 lines not on this page · raw message

include/linux/mfd/axp20x.h +84 -0

138 lines not on this page · raw message

Signature · 1 line
2.39.2
#1 lore raw

PATCH v2 2/2 dt-bindings: mfd: add bindings for AXP192 MFD device

The AXP192 PMIC is similar to the AXP202/AXP209, but with different regulators, additional GPIOs, and a different IRQ register layout, so it needs a new compatible string.

---
v1->v2: Update commit message

        https://lore.kernel.org/all/[email protected]/
 Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml +1 -0
index f7f0f2c0421a..9ad55746133b 100644
@@ -90,6 +90,7 @@ properties:
     oneOf:
       - enum:
           - x-powers,axp152
+          - x-powers,axp192
           - x-powers,axp202
           - x-powers,axp209
           - x-powers,axp221
Signature · 1 line
2.39.2
maintainer Applied
#2 lore raw

Re: [PATCH v2 2/2] dt-bindings: mfd: add bindings for AXP192 MFD device

Quoted 4 lines · Aidan MacDonald

The AXP192 PMIC is similar to the AXP202/AXP209, but with different regulators, additional GPIOs, and a different IRQ register layout, so it needs a new compatible string.

Quoted 8 lines

---
v1->v2: Update commit message

        https://lore.kernel.org/all/[email protected]/
 Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks

Signature · 1 line
Lee Jones [李琼斯]
maintainer Applied
#3 lore raw
In reply to Aidan MacDonald
Quoted 4 lines · Aidan MacDonald

The AXP192 PMIC is similar to the AXP202/AXP209, but with different regulators, additional GPIOs, and a different IRQ register layout.

Quoted 8 lines

---
v1->v2: No changes

        https://lore.kernel.org/all/[email protected]
 drivers/mfd/axp20x-i2c.c   |   2 +
 drivers/mfd/axp20x.c       | 141 +++++++++++++++++++++++++++++++++++++
 include/linux/mfd/axp20x.h |  84 ++++++++++++++++++++++
 3 files changed, 227 insertions(+)

Applied, thanks

Signature · 1 line
Lee Jones [李琼斯]