lkml.org 
[lkml]   [2022]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 1/4] dt-bindings: gpio: Add AXP221/AXP223/AXP809 compatibles
From
On 15/06/2022 23:09, Samuel Holland 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>
> ---
>
> .../devicetree/bindings/gpio/x-powers,axp209-gpio.yaml | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml b/Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml
> index 0f628b088cec..6faa3ef28960 100644
> --- a/Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml
> +++ b/Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml
> @@ -19,7 +19,14 @@ properties:
> oneOf:
> - enum:
> - x-powers,axp209-gpio
> + - x-powers,axp221-gpio
> - x-powers,axp813-gpio
> + - items:
> + - const: x-powers,axp223-gpio
> + - const: x-powers,axp221-gpio
> + - items:
> + - const: x-powers,axp809-gpio

This is just an enum with 223 and 809. No need for two separate entries
here.

> + - const: x-powers,axp221-gpio
> - items:
> - const: x-powers,axp803-gpio
> - const: x-powers,axp813-gpio


Best regards,
Krzysztof

\
 
 \ /
  Last update: 2022-06-16 15:57    [W:0.066 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site