[PATCH 1/3] dt-bindings: iio: adc: Add GPADC for Allwinner A523
Jernej Škrabec
jernej.skrabec at gmail.com
Sun May 10 07:40:26 PDT 2026
Dne nedelja, 10. maj 2026 ob 14:57:22 Srednjeevropski poletni čas je Michal Piekos napisal(a):
> Add support for the GPADC for the Allwinner A523. It differs from the
> D1/T113s/R329/T507 by having two clocks.
>
> Signed-off-by: Michal Piekos <michal.piekos at mmpsystems.pl>
> ---
> .../iio/adc/allwinner,sun20i-d1-gpadc.yaml | 37 +++++++++++++++++++++-
> 1 file changed, 36 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d1-gpadc.yaml b/Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d1-gpadc.yaml
> index da605a051b94..89da96cd705f 100644
> --- a/Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d1-gpadc.yaml
> +++ b/Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d1-gpadc.yaml
> @@ -17,6 +17,7 @@ properties:
> - items:
> - enum:
> - allwinner,sun50i-h616-gpadc
> + - allwinner,sun55i-a523-gpadc
It shouldn't be combined if it has different number of clocks.
Best regards,
Jernej
> - const: allwinner,sun20i-d1-gpadc
>
> "#io-channel-cells":
> @@ -29,7 +30,12 @@ properties:
> const: 0
>
> clocks:
> - maxItems: 1
> + minItems: 1
> + maxItems: 2
> +
> + clock-names:
> + minItems: 1
> + maxItems: 2
>
> interrupts:
> maxItems: 1
> @@ -40,6 +46,35 @@ properties:
> resets:
> maxItems: 1
>
> +allOf:
> + - if:
> + properties:
> + compatible:
> + items:
> + - const: allwinner,sun55i-a523-gpadc
> + - const: allwinner,sun20i-d1-gpadc
> + then:
> + properties:
> + clocks:
> + minItems: 2
> + maxItems: 2
> + items:
> + - description: Bus clock
> + - description: Module clock
> + clock-names:
> + minItems: 2
> + maxItems: 2
> + items:
> + - const: bus
> + - const: mod
> + required:
> + - clock-names
> + else:
> + properties:
> + clocks:
> + maxItems: 1
> + clock-names: false
> +
> patternProperties:
> "^channel@[0-9a-f]+$":
> $ref: adc.yaml
>
>
More information about the linux-arm-kernel
mailing list