Devicetree
 help / color / mirror / Atom feed
From: CL Wang <cl634@andestech.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Linus Walleij <linusw@kernel.org>,
	Bartosz Golaszewski <brgl@kernel.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>, <linux-gpio@vger.kernel.org>,
	<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<tim609@andestech.com>, <cl634@andestech.com>
Subject: Re: [PATCH 1/3] dt-bindings: gpio: Add support for ATCGPIO100 GPIO controller
Date: Wed, 2 Dec 2026 14:13:41 +0800	[thread overview]
Message-ID: <aw-3FaiXtkX5BBE8@swlinux02> (raw)
In-Reply-To: <20261123-precise-funny-wildcat-5bbbf8@quoll>

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

  reply	other threads:[~2026-12-02  6:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-16  4:09 [PATCH 0/3] gpio: Add support for Andes ATCGPIO100 GPIO controller CL Wang
2026-11-16  4:09 ` [PATCH 1/3] dt-bindings: gpio: Add support for " CL Wang
2026-11-23 11:05   ` Krzysztof Kozlowski
2026-12-02  6:13     ` CL Wang [this message]
2026-11-16  4:09 ` [PATCH 2/3] gpio: atcgpio100: Add ATCGPIO100 GPIO driver CL Wang
2026-11-17 13:54   ` Bartosz Golaszewski
2026-11-24  9:41     ` CL Wang
2026-11-24 14:03       ` Bartosz Golaszewski
2026-12-02  6:16     ` CL Wang
2026-11-17 14:10   ` Uwe Kleine-König
2026-12-02  6:22     ` CL Wang
2026-11-16  4:09 ` [PATCH 3/3] MAINTAINERS: Add entry for Andes ATCGPIO100 GPIO CL Wang

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=aw-3FaiXtkX5BBE8@swlinux02 \
    --to=cl634@andestech.com \
    --cc=brgl@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=tim609@andestech.com \
    /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