From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2C361CDB46B for ; Mon, 22 Jun 2026 09:34:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=40JGwFEmBmNKnkhLt6xm/6eGR4tKmUx8gxq15/lQDJA=; b=FFnyFCrEV+R759b7rsLOuGmq0l s3QGG4ao/6ZW0rBpUku0JdY64z8nmMb2hp3I+WzZc8QxzeGxxCxzfZgDAyfbnLb1qbpd91VVXRtR0 cl75rcoW5KXUFxamDaiE2IGJbANN5/yTBknWh2upNWCL9iSqosJkfQLEvs02j3tfs7CQu0I/W0zjV aKTUz7ENT5rMxqlEFtl67ueONRJlclIyqCVR9ZJccRuXZn6UmNe3mNMR8G4iBdDiUNthog/WIjx+h nSSlGOgabA5+9g2rZHasjn+bRkByI4hs07tETtzo4pqQDeColhEX2Ow6M/YIeGXBAwh/sXidYIcsh SP2+DL3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wbb30-00000004lLG-0T44; Mon, 22 Jun 2026 09:34:30 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wbb2t-00000004lIA-0lOq; Mon, 22 Jun 2026 09:34:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=40JGwFEmBmNKnkhLt6xm/6eGR4tKmUx8gxq15/lQDJA=; b=Y9zlvqkfjP3BE9kvBxNvvetoE2 wsdcrMOqNZs8+QAHA/Sowj+3RAHKj3bxJc2l4bpbR3mz/uckVToYjaBSIKNAF49AsKiiIFQrPoAw/ fiHHeVxJorn3gGaQ8Dk3HAW3F7pbSseRLnuxYHlo5SpZCaASpoIe9Xuy/2+akXJKXGfqfTSSLaP/0 ofun9WTLLd73HoZHbxodsMOgdzEqA1/J7fbpcKP2RkwOrAJoAcBVWkRS8Lnhu6mtpldXQoZj6ukjF 3cZ3aQlmNpDl5dI21mhySFAxtY4ILpGYyKbhgibSVjgV5lzBef6150FaK6JeZ6iVL9O8qvDmfYQbb LHXhUchA==; Received: from rtits2.realtek.com ([211.75.126.72] helo=rtits2.realtek.com.tw) by desiato.infradead.org with esmtps (Exim 4.99.2 #2 (Red Hat Linux)) id 1wbb2n-0000000HHPC-3xUI; Mon, 22 Jun 2026 09:34:21 +0000 X-SpamFilter-By: ArmorX SpamTrap 5.80 with qID 65M9Nb3hA2430968, This message is accepted by code: ctloc85258 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=realtek.com; s=dkim; t=1782120217; bh=40JGwFEmBmNKnkhLt6xm/6eGR4tKmUx8gxq15/lQDJA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding:Content-Type; b=Ga0vX4S8jPOoIOfC27ZpK+b/ilYhjHt5tqJx4GsYtOyezNVnZF/4fycU/k4Tm3Cnk dNw66IRC1sL+9NONfYRr9Z+elFqtkoo1UK/YkP1AkAENk0V71qh+AkvUr6PhlzvDbf rvG/HXYutdcrCVJq6CJWxsw18cFnRgtqxRL4ndVAxxnxBy6HxNI7+dwH+alqmHf9vI wEeqfbtXgG9yOpi8jerQHzJlP+e/HuwejLdi4yzGq5n3N0a6njN1NCjxofWOLFT/SM R+a6k1G91tHXctRn81vDaMfDnaYkVaNnbVdBPeLoeDnnVrFU3ueXK7Q26uZmtnmDrk eaLNKqIcfDEvg== Received: from mail.realtek.com (rtkexhmbs03.realtek.com.tw[10.21.1.53]) by rtits2.realtek.com.tw (8.15.2/3.29/5.94) with ESMTPS id 65M9Nb3hA2430968 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 22 Jun 2026 17:23:37 +0800 Received: from RTKEXHMBS05.realtek.com.tw (10.21.1.55) by RTKEXHMBS03.realtek.com.tw (10.21.1.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Mon, 22 Jun 2026 17:23:37 +0800 Received: from RTKEXHMBS05.realtek.com.tw (10.21.1.55) by RTKEXHMBS05.realtek.com.tw (10.21.1.55) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Mon, 22 Jun 2026 17:23:36 +0800 Received: from cn1dhc-k02 (172.21.252.101) by RTKEXHMBS05.realtek.com.tw (10.21.1.55) with Microsoft SMTP Server id 15.2.2562.17 via Frontend Transport; Mon, 22 Jun 2026 17:23:36 +0800 From: Yu-Chun Lin To: , , , , , , , , CC: , , , , , , , , , Krzysztof Kozlowski Subject: [PATCH v4 1/4] dt-bindings: gpio: realtek: Add realtek,rtd1625-gpio Date: Mon, 22 Jun 2026 17:23:32 +0800 Message-ID: <20260622092335.1166876-2-eleanor.lin@realtek.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260622092335.1166876-1-eleanor.lin@realtek.com> References: <20260622092335.1166876-1-eleanor.lin@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260622_103418_619001_A8DD2D58 X-CRM114-Status: GOOD ( 13.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Tzuyi Chang Add the device tree bindings for the Realtek DHC (Digital Home Center) RTD1625 GPIO controllers. The RTD1625 GPIO controller features a per-pin register architecture that differs significantly from previous generations. It utilizes separate register blocks for GPIO configuration and interrupt control. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Tzuyi Chang Signed-off-by: Yu-Chun Lin --- Changes in v4: - None. --- .../bindings/gpio/realtek,rtd1625-gpio.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/realtek,rtd1625-gpio.yaml diff --git a/Documentation/devicetree/bindings/gpio/realtek,rtd1625-gpio.yaml b/Documentation/devicetree/bindings/gpio/realtek,rtd1625-gpio.yaml new file mode 100644 index 000000000000..f13c910b73c6 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/realtek,rtd1625-gpio.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2023 Realtek Semiconductor Corporation +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/realtek,rtd1625-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Realtek DHC RTD1625 GPIO controller + +maintainers: + - Tzuyi Chang + +description: | + GPIO controller for the Realtek RTD1625 SoC, featuring a per-pin register + architecture that differs significantly from earlier RTD series controllers. + Each GPIO has dedicated registers for configuration (direction, input/output + values, debounce), and interrupt control supporting edge and level detection + modes. + +properties: + compatible: + enum: + - realtek,rtd1625-iso-gpio + - realtek,rtd1625-isom-gpio + + reg: + maxItems: 1 + + interrupts: + items: + - description: Interrupt number of the assert GPIO interrupt, which is + triggered when there is a rising edge. + - description: Interrupt number of the deassert GPIO interrupt, which is + triggered when there is a falling edge. + - description: Interrupt number of the level-sensitive GPIO interrupt, + triggered by a configured logic level. + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + + gpio-ranges: true + + gpio-controller: true + + "#gpio-cells": + const: 2 + +required: + - compatible + - reg + - gpio-ranges + - gpio-controller + - "#gpio-cells" + +additionalProperties: false + +examples: + - | + gpio@89100 { + compatible = "realtek,rtd1625-isom-gpio"; + reg = <0x89100 0x30>; + interrupt-parent = <&iso_m_irq_mux>; + interrupts = <0>, <1>, <2>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-ranges = <&isom_pinctrl 0 0 4>; + gpio-controller; + #gpio-cells = <2>; + }; -- 2.43.0