diff mbox series

[v2,1/4] dt-bindings: gpio: Add AXP221/AXP223/AXP809 compatibles

Message ID 20220621034224.38995-2-samuel@sholland.org
State Accepted
Commit f9f991e14969465448ab598c6f70dbedf2938ed5
Headers show
Series AXP221/AXP223/AXP809 GPIO support | expand

Commit Message

Samuel Holland June 21, 2022, 3:42 a.m. UTC
These PMICs each have 2 GPIOs with the same register layout as AXP813,
but without an ADC function.

Signed-off-by: Samuel Holland <samuel@sholland.org>
---

Changes in v2:
 - Combine multiple "const"s in the binding into an "enum"

 .../devicetree/bindings/gpio/x-powers,axp209-gpio.yaml      | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Linus Walleij June 30, 2022, 12:05 p.m. UTC | #1
On Tue, Jun 21, 2022 at 5:42 AM Samuel Holland <samuel@sholland.org> wrote:

> These PMICs each have 2 GPIOs with the same register layout as AXP813,
> but without an ADC function.
>
> Signed-off-by: Samuel Holland <samuel@sholland.org>

Patch applied to the pinctrl tree.

OK the binding is in *gpio* but the driver is in pinctrl so has to go
with the other patch in my tree.

Yours,
Linus Walleij
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml b/Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml
index 0f628b088cec..14486aee97b4 100644
--- a/Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml
+++ b/Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml
@@ -19,7 +19,13 @@  properties:
     oneOf:
       - enum:
           - x-powers,axp209-gpio
+          - x-powers,axp221-gpio
           - x-powers,axp813-gpio
+      - items:
+          - enum:
+              - x-powers,axp223-gpio
+              - x-powers,axp809-gpio
+          - const: x-powers,axp221-gpio
       - items:
           - const: x-powers,axp803-gpio
           - const: x-powers,axp813-gpio