Re: [PATCH 1/3] dt-bindings: gpio: Add support for ATCGPIO100 GPIO controller
From: CL Wang
Date: Wed Dec 02 2026 - 01:14:02 EST
Hi Krzysztof,
Thanks for your review.
> Do not paste here LLM. LLM should not be used for writing commit msgs,
> because this is a test if you understood what you did here. You explain
> heer basics of DT and driver, which is exactly what LLM would do.
Understood. The commit message has been rewritten in v2.
>> The controller has up to 32 lines, and ngpios gives the number of
>> lines implemented. The debounce logic can run from either of two
>> clocks: pclk,
>Are you saying that SoC has multiple controllers with different number of GPIOs? Where is the DTS, can you link it?
No, AE350 has only one GPIO controller and GPIO count is provided by its
configuration register, so the ngpios is unnecessary. The ngpios is dropped
in v2. The DTS patch will be added to arch/riscv/boot/dts/andes/ and sent
separately once the bindings are accepted.
>> the APB bus clock, which is required, or extclk, an optional external
>> clock that allows longer debounce periods. The interrupt is optional,
>> as the controller also works as a plain GPIO controller without it.
>SoC routing is fixed, no?
Yes, interrupts, interrupt-controller, and #interrupt-cells
are changed to required.
>> + clocks:
>> + minItems: 1
>Why is this flexible?
On AE350, pclk and extclk are wired, so I dropped minItems from clocks and
clock-names in v2.
Best regards,
CL Wang