From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=220.128.198.184 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796192031; b=yHCJn1/BfLsVxlNvl/HR8/RxCpL8NoP0K30nNqav6tsCIv51Z4BF/IL4LQmH9ySxa4fk 6fCLyzj+XFjdZTIpp8cLEwzU9ovynWdCpoBGfjUzh4U40ELXEamiUsN7yhcYTw4ujVBMG T+ypGql7EtnMN6lBMjD7Y1mMrzEH+u6w/weIz/Dro1TIj/sJY/CxiiLQQaYOId/0sXjDG Cth5Ihptt3qxKj4wNTk03397Qka0sXuKzuMTKymkzKQcZ8eNuJWAikIZQgKfO0MZu0wA8 oezuATCFNcg96UIOJk8iDDljqTCJ1vDFOfTFQYgbxFrMWEhixNarZuV9YKPvdVQ+dhw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796192031; h=DMARC-Filter:Received:Received:Received:Date:From:To:CC:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To:User-Agent:X-Originating-IP:X-ClientProxiedBy: X-DKIM-Results:X-DNSRBL:X-SPAM-SOURCE-CHECK:X-MAIL; bh=7Mu0XNWArpXpwQmd/9HZLqffnatAPMfYEGNdFqVRPv8=; b=GPLsFExnwBO2A4KhYq+cXxMnmqSgrN+VvD+KKOhOG5HR8ZV3kxUBBMRVx3suFvEAEjxd i58F9yvVGomz/5kqIe4cQe1xksK7Fh7H465L339jzdAyXJhtYMsqnH4NWNGn/QCLMQ6Sb o8zI9ZqSoLTWa79RQJF2Z3phJZXr+YG8UU9GumiyerknMQPVNYchAQo+nkFM2GcuzX44l FYE8g2TgrmgSWMA2ezOBXTo8TYbfXeiiwcvDoTlM4HldBPK7J3chjQXBAjXJbYwYJgEQD qyJcPuVdrH7HHGkQ4DSaZ+MpqgAvbW5+yi3Dkcwe9SqfySEeel7tLbyJZ9g16wotdtw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=andestech.com; spf=pass smtp.mailfrom=andestech.com; arc=none smtp.remote-ip=220.128.198.184 Received: from Atcsqr.andestech.com (atcsqr.andestech.com [220.128.198.184]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A0A7606A31A for ; Wed, 2 Dec 2026 06:13:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4A0A7606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=andestech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=andestech.com Received: from mail.andestech.com (atcpcs53.andestech.com [10.0.1.153]) by Atcsqr.andestech.com with ESMTPS id 6B26DhjL077445 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 2 Dec 2026 14:13:43 +0800 (+08) (envelope-from cl634@andestech.com) Received: from ATCPCS34.andestech.com (10.0.1.134) by atcpcs53.andestech.com (10.0.1.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.56; Wed, 2 Dec 2026 14:13:43 +0800 Received: from swlinux02 (10.0.15.183) by ATCPCS34.andestech.com (10.0.1.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 2 Dec 2026 14:13:43 +0800 Date: Wed, 2 Dec 2026 14:13:41 +0800 From: CL Wang To: Krzysztof Kozlowski CC: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , , , Subject: Re: [PATCH 1/3] dt-bindings: gpio: Add support for ATCGPIO100 GPIO controller Message-ID: References: <20261116040914.368298-1-cl634@andestech.com> <20261116040914.368298-2-cl634@andestech.com> <20261123-precise-funny-wildcat-5bbbf8@quoll> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20261123-precise-funny-wildcat-5bbbf8@quoll> User-Agent: Mutt/2.2.12 (2023-09-09) X-ClientProxiedBy: ATCPCS33.andestech.com (10.0.1.100) To ATCPCS34.andestech.com (10.0.1.134) X-DKIM-Results: atcpcs53.andestech.com; dkim=none; X-DNSRBL: X-SPAM-SOURCE-CHECK: pass X-MAIL:Atcsqr.andestech.com 6B26DhjL077445 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