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=1796172422; b=ev5WuEXWUdKwkuwRwWXOLQRcrbMawl30VuB4V8iOMeigoKkWahsL3kQb3ThU6BBr4aJN JA0Bdr4XxTnZ0quuUo4+rjHxyuHf3pkdgoV7cWrOQY3RetHCUm8vrniPJoQAFej09jPmw UuPvgPgyDuqDBMj38/TeKx44VQqXZ/E/95/WDck9GQPZcODLYxpxyqiwIAG9Hf3eMuSRg u6pnFCnkK0kQ1IdBzYrIGc+FjJ/xFKMToT5LxHalJNQRmUIQr3JEGBYFa0WxTzRqkV0d0 RIDYtKA0YyS96OVaQXq7WboCtN7ckamqZkGQSpGOuUH87KGlaodpI/5MZye7FzzM8zA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796172422; h=DMARC-Filter:Received:Received:Received:From:To:CC:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:Content-Type:X-Originating-IP: X-ClientProxiedBy:X-DKIM-Results:X-DNSRBL:X-SPAM-SOURCE-CHECK:X-MAIL; bh=1pm1IdAc1CMxJMFY7Bo7IV8S03pILNydLKWdsvWdp0I=; b=Ph5t5dAeOVlwsJl83GVMdx9FqrkvJwn+0C8Yxtz/WZMnB3lbRg2W++wtN1w7g07q5ldl woqIKCh+P6APNGIu4SpE8LOD0Ah7+8v/7JeBjRmm/t6ZD3BsO95/IFf602RWI22BBP8tB j1gp3u7t0y/pvp/mZLj3PoH1MO2QRgbAcBc9W2BrPcCxmcj0Tkdgjghv7m+JjeJLowuAJ RwP3SNijp1+vAoW4xWtnMHAkKz9Xg5PTgiFgW1G5BjmX3CLJqbHLPUqanim4tbMq5qC4+ ZdzPm9o/zxGlZoOrALS9SvU3L5SqugD9/OxoUQwOJ98yLHq51UMQGjOoCop53lnsHcQ== 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 9CD3E606A31A for ; Wed, 2 Dec 2026 00:47:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9CD3E606A31A 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 6B20krt4074021 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 2 Dec 2026 08:46:53 +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 08:46:52 +0800 Received: from swlinux02.andestech.com (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 08:46:52 +0800 From: CL Wang To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , , , , , CL Wang Subject: [PATCH v2 1/3] dt-bindings: gpio: Add support for ATCGPIO100 GPIO controller Date: Wed, 2 Dec 2026 08:46:34 +0800 Message-ID: <20261202004636.1969718-2-cl634@andestech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261202004636.1969718-1-cl634@andestech.com> References: <20261202004636.1969718-1-cl634@andestech.com> 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-Transfer-Encoding: 8bit Content-Type: text/plain 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 6B20krt4074021 Document devicetree bindings for the Andes ATCGPIO100 GPIO controller. ATCGPIO100 is the IP name, which is embedded in AndesCore-based platforms such as AE350. Signed-off-by: CL Wang --- Changes in v2: - Dropped "andestech,qilai-gpio" from compatible property. - Dropped property ngpios. - Made "pclk, extclk, interrupts, interrupt-controller and #interrupt-cells" required. --- .../bindings/gpio/andestech,ae350-gpio.yaml | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/andestech,ae350-gpio.yaml diff --git a/Documentation/devicetree/bindings/gpio/andestech,ae350-gpio.yaml b/Documentation/devicetree/bindings/gpio/andestech,ae350-gpio.yaml new file mode 100644 index 000000000000..f604c7765d1e --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/andestech,ae350-gpio.yaml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/andestech,ae350-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Andes ATCGPIO100 GPIO controller on AE350 platform + +maintainers: + - CL Wang + +properties: + compatible: + const: andestech,ae350-gpio + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + + gpio-controller: true + + "#gpio-cells": + const: 2 + + gpio-line-names: + minItems: 1 + maxItems: 32 + + clocks: + items: + - description: APB bus clock + - description: External clock for debounce + + clock-names: + items: + - const: pclk + - const: extclk + +patternProperties: + "^.+-hog(-[0-9]+)?$": + type: object + required: + - gpio-hog + +required: + - compatible + - reg + - interrupts + - interrupt-controller + - "#interrupt-cells" + - gpio-controller + - "#gpio-cells" + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + + gpio@f0700000 { + compatible = "andestech,ae350-gpio"; + reg = <0xf0700000 0x100>; + interrupts = <7 IRQ_TYPE_LEVEL_HIGH>; + interrupt-parent = <&plic>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-controller; + #gpio-cells = <2>; + clocks = <&pclk>, <&extclk>; + clock-names = "pclk", "extclk"; + }; -- 2.34.1