From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5C0F39EF23; Mon, 22 Jun 2026 09:34:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782120871; cv=none; b=httO1DP749NLBi/FTEtU5plJVg0K3Ekv/QRhS4loX27ae0Q1k5W/qq0As/QIc1/me3KYNKZLFJZqvm1Sh0bg8nFt8TrPwQjbw1g6GJ04Bu7U0q4NxcFDtr6kkdkJNb6rKtdsJxSKhOvXNF7vP3wYcsxFYL2BrLZRkEUaIA5VAn4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782120871; c=relaxed/simple; bh=My22Z62U69O74Gdi6bm9DiSykrdDS24nF6hWyhQmDVs=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ZG+cyQUAGfTZvP+oS3eCXo957/SzUyrGjPTwkXxUKmiewJ+WvDcsQR+bp1rtWQajT1pUE8OetEZU6EiowomS1J4By0Y99IvdRYaFGEwmFLZPME694yDS00xfp3zGB4u2E/+FsJeFavRiep5B0GZOHXht1dY8EMAq4BoJuGXwHqQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; dkim=pass (2048-bit key) header.d=realtek.com header.i=@realtek.com header.b=Ga0vX4S8; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=realtek.com header.i=@realtek.com header.b="Ga0vX4S8" 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> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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