From: sashiko-bot@kernel.org
To: "Michal Piekos" <michal.piekos@mmpsystems.pl>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org,
krzk+dt@kernel.org
Subject: Re: [PATCH 1/3] dt-bindings: iio: adc: Add GPADC for Allwinner A523
Date: Mon, 11 May 2026 20:57:06 +0000 [thread overview]
Message-ID: <20260511205707.4868BC2BCB0@smtp.kernel.org> (raw)
In-Reply-To: <20260510-sunxi-a523-gpadc-v1-1-4f6b0f4000fb@mmpsystems.pl>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Incorrect fallback compatible string 'allwinner,sun20i-d1-gpadc' violating backward compatibility guarantees.
--
commit 48f3b1ab2ee7aee8d556d5b6595c00af83e47dad
Author: Michal Piekos <michal.piekos@mmpsystems.pl>
dt-bindings: iio: adc: Add GPADC for Allwinner A523
This commit adds device tree binding support for the GPADC on the Allwinner
A523. It updates the existing sun20i-d1-gpadc binding to accommodate the
A523's requirement for two separate clocks instead of one.
> 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 da605a051b949..89da96cd705f0 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
> - const: allwinner,sun20i-d1-gpadc
Since the A523 requires two clocks (bus and mod) and the D1 only requires
one, does using the D1 compatible as a fallback violate backward
compatibility guarantees?
If an older kernel boots with this new device tree, it will match the
allwinner,sun20i-d1-gpadc fallback and bind the legacy driver. The legacy
D1 driver only fetches and enables the first clock listed (the bus clock).
Will this leave the required mod clock disabled, causing the ADC hardware
reads to timeout?
Should allwinner,sun55i-a523-gpadc be defined as a standalone compatible
string without a fallback instead?
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260510-sunxi-a523-gpadc-v1-0-4f6b0f4000fb@mmpsystems.pl?part=1
next prev parent reply other threads:[~2026-05-11 20:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-10 12:57 [PATCH 0/3] Add GPADC support for A523 Michal Piekos
2026-05-10 12:57 ` [PATCH 1/3] dt-bindings: iio: adc: Add GPADC for Allwinner A523 Michal Piekos
2026-05-10 14:29 ` Rob Herring (Arm)
2026-05-10 14:40 ` Jernej Škrabec
2026-05-11 16:02 ` Andre Przywara
2026-05-12 3:56 ` Michal Piekos
2026-05-11 20:57 ` sashiko-bot [this message]
2026-05-10 12:57 ` [PATCH 2/3] iio: adc: sun20i-gpadc: add A523 gpadc support Michal Piekos
2026-05-11 21:15 ` sashiko-bot
2026-05-12 11:51 ` Jonathan Cameron
2026-05-12 13:48 ` Andre Przywara
2026-05-10 12:57 ` [PATCH 3/3] arm64: dts: allwinner: a523: add gpadc node Michal Piekos
2026-05-10 14:39 ` Jernej Škrabec
2026-05-10 18:34 ` Chen-Yu Tsai
2026-05-11 21:30 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260511205707.4868BC2BCB0@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=michal.piekos@mmpsystems.pl \
--cc=robh@kernel.org \
--cc=sashiko@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox