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 82974EB3636 for ; Mon, 2 Mar 2026 20:55:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id: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=68WYxe8fZWpUddAVg1zecUAgdP2St2/lrwm5elhwk2E=; b=mSztKLwrPrBrn7 Pp5b8RAobYFOQP2Z8a6Bif9ANfEfsXsRliohs+v/iGn+t35s9HfoH4dyhpYdnd75OgatWaTmF+PW/ EHQ2LC0BHCtyQ4hYAY6gv7sirNUi8MlbKhW9DDM2U/X7IELarsdTiXX9I49FxhPUuoFf0ypPOgr9h hTY6At9k/Bj/J+kdgkCvfT3oEhbnUGUI4sesv2a0MED9DfAvkUzT2WJTXvCMbpECUuKYt2GXFlxPt hFGu1TVor3/BWP/DXeKfrfOoeaUmNaeQIMBIQU2IoT9LLQSgWK8oVzEtDdtiTJ0ch9gkjcBPj77Jt Oe7sEO1sMpOgSTRRcz0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vxAIS-0000000Dycs-0xWA; Mon, 02 Mar 2026 20:55:20 +0000 Received: from tika.stderr.nl ([94.142.244.14]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vxAIP-0000000DyZv-1LH7 for linux-rockchip@lists.infradead.org; Mon, 02 Mar 2026 20:55:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.tikatika.nl; s=201709.tika; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=NaQco9z9Nma2E2mabZxblSYYNbReqO+JGj82aIQuKH0=; b=wOnXC1G/Vt7gdctTcUfcM3RVK8 OoBRunMK2CcwRG2miNLn2nPYzMiTzDmGBzi8i0MdlosJXUttAMIVY7c6MSzMvzXoXKkcLjdly/8or Cg6COCiehVfyyXsMwEyTPyFJPJBEwIbrPgE0iHY9cHbfmcmCltXjAoMCuBtxGAxkYxLQ=; X-Preliminary-Spam-Score: -4.2 (----) Received: from [45.142.19.84] (helo=zozo) by tika.stderr.nl with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vx9m9-00HGhC-1D; Mon, 02 Mar 2026 21:22:00 +0100 Received: (nullmailer pid 198612 invoked by uid 1000); Mon, 02 Mar 2026 20:21:57 -0000 From: Matthijs Kooijman To: Heiko Stuebner , Linus Walleij , Bartosz Golaszewski Cc: matthijs@stdin.nl, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org Subject: [PATCH RESEND 1/2] arm64: dts: rockchip: rk3308: Add gpio-ranges properties Date: Mon, 2 Mar 2026 21:17:14 +0100 Message-ID: <20260302202121.197288-3-matthijs@stdin.nl> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20260302202121.197288-1-matthijs@stdin.nl> References: <20260302202121.197288-1-matthijs@stdin.nl> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260302_125517_356593_E2FB39DE X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org This makes the mapping between gpio and pinctrl explicit. This does not immediately change functionality, because the gpio-rockchip.c driver has a workaround that defines ranges when they are not present in DT, but that relies on global gpio numbering (so AFAICS only works when the rockchip gpio banks are initialized first and in-order). Signed-off-by: Matthijs Kooijman --- arch/arm64/boot/dts/rockchip/rk3308.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3308.dtsi b/arch/arm64/boot/dts/rockchip/rk3308.dtsi index 31c25de2d689c..681d2429d541d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3308.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3308.dtsi @@ -889,6 +889,7 @@ gpio0: gpio@ff220000 { interrupts = ; clocks = <&cru PCLK_GPIO0>; gpio-controller; + gpio-ranges = <&pinctrl 0 0 32>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; @@ -900,6 +901,7 @@ gpio1: gpio@ff230000 { interrupts = ; clocks = <&cru PCLK_GPIO1>; gpio-controller; + gpio-ranges = <&pinctrl 0 32 32>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; @@ -911,6 +913,7 @@ gpio2: gpio@ff240000 { interrupts = ; clocks = <&cru PCLK_GPIO2>; gpio-controller; + gpio-ranges = <&pinctrl 0 64 32>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; @@ -922,6 +925,7 @@ gpio3: gpio@ff250000 { interrupts = ; clocks = <&cru PCLK_GPIO3>; gpio-controller; + gpio-ranges = <&pinctrl 0 96 32>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; @@ -933,6 +937,7 @@ gpio4: gpio@ff260000 { interrupts = ; clocks = <&cru PCLK_GPIO4>; gpio-controller; + gpio-ranges = <&pinctrl 0 128 32>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; -- 2.48.1 _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip