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=1796192038; b=4yFixOFarHTlVMurF38X0MAgz4k7I9fmjhAPHNQZ/dru6Lehzf3asZcsDV9rTwsqeuAm DJy48I3f39zxf0K2BPPqBD7zX+0wxYD2AQlq/XPvg+ZoZhSDv+yPzKcSpYJ5Na/DAsEtD qbgyF3j1YEF8yGCVgJBoCxAtknAzBGlK8+PTay+2qFiuZPq/VYCSyn7fIbPbHDrPjkUeB pyMDJe1w8tOYYVp/6faZDqU2hucnhHds2KV3ErnPoim5ZmCAAJn3IUQhcWY7DuIDHYFIq KsMRY4M/XizOLs45JcOa/jzfL60lTbgW71AXEAeI7RUKArpi00ylHIDwqweQDddKIAQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796192038; 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=QA02kbRrVjNuLTSYMO2cVADTVLmI/CypyMW04iTXdh5/S5ZSI3wsFC6ZfaLhOtbvw9Bn 1AMC+gMLwbyoddqXzSryWE/X+7ahRTU9zZbI+HDcOWZ2F5kXWq0qlKfdld9acN1nIdTWY xxUm6ysF9sSWS6HDmHnHxHzhzu4peDBxk5BwMZPsXfOMw8Tqbmoj4TwUNyvPgWRHqxyiI BY8bPOFZJIhDYFZp4PQ9yIVamDJPYi7s8zuBQYFCHB0POfyR4Hm3R8mfx9CkIfyhzXSno aoq6Wljv/G2RMEn1IzlBtFhxDC/+akoHl0Qr1i12pU4zHT/p5G5ZkURz2/UN/czK2yg== 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 A83CA606A322; Wed, 2 Dec 2026 06:13:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A83CA606A322 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: linux-gpio@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