From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.173 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796265962; b=FgLUnemteStJ31bk6FkbjgqlxWu8IenzOOXiBzq1bbWDTyGorz8VuTUVZkHfywZ4y5Ao L3kEAZIiz1p0iIKBxYYR7L7UroZGYcQfR9+EliaIsfAl85mn8rx3V1iP3g0C4sx/c1jFw XdFfL/j4lB0fsUJnEbA6ypxmqjdkVuofDGQ6ZBfUv6esAq9elQxQAij7WH8qNyOuZ3SDT p+veCx+tceodan4DUYH7OUS64c1X5t+DxAU3eojWA3M7p9d8TJmm1DIulpya8ziI+bkqq lO60AUV08HblmjPBSL0YtbvHiM7o7Z9+66jfX0PwKwSeoei0AqlTxwX12oPUs8JEe6g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796265962; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=sfonlJfdd8SqIYCFkZbXSVH2NFN+YOgaRb68OR9Hsyk=; b=xjE9YpRepiDdIRSmo4EPjz1UECW3WiDgujQuUjKcX3Lom//a0IBX0/CJ3Iuhqr3VMYLW JkjL/paNLUc0MuCjySaq288KF88Gr3+Ca8c4zyjzu/EGFiR2Q3KEnQlJALb0lhQ0g5TgR 3PUwQk5y/30PxHq/Rhh27rXSghMDaRDcn4rSramrpdVowDIm28KdD14pR6K1rS6c0Wx4b F5wOPVGVRKFIuGQBCe9GkemUMcUCqcsvefwBMpb4J+vcuyWVxTWE7Q0eFsvvQ3fei99wc S5+tJp+vG6C1t37wfZtNIyjgHAJJPnt18WlgEAj9hFv4rgXj4metYFS0ZDv4Y6XgDCA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=LXjiSbdN; arc=none smtp.remote-ip=74.125.82.173 Received: from mail-dy1-f173.google.com (mail-dy1-f173.google.com [74.125.82.173]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 26601606A322 for ; Thu, 3 Dec 2026 02:46:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 26601606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=LXjiSbdN Received: by mail-dy1-f173.google.com with SMTP id 5a478bee46e88-386bd881d39so9383547eec.1 for ; Wed, 02 Dec 2026 18:46:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796265961; x=1796870761; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=sfonlJfdd8SqIYCFkZbXSVH2NFN+YOgaRb68OR9Hsyk=; b=LXjiSbdNJKHmogJop4BcfGabosOmkaSWSnbhNcvEr2ZQzdIxJeb/bwfQoC0C9qs1Xo sBtOCAHpACY1N73JJShTmhlKqJWx4A+EjFL2rVuo70Uaz9OwQEkX9YpOyWMAlcVQlsha SrBh/h3EyQWhhwt+tCPxDh0kPeJS1mwyEYeLR8alc1JNDzBT/T4ZPEONwiDnm24jwF2B akCqtHG9d5ONHpdR1MkrAMNKk+QO4m87J8V14DgjVCjQQAqW/KNSzklid0uIacfhrjNL aGzW6Y5ZBaHmiuZ9r1JOZQYbS26NhSIVredRtdoBqrN2yk+7baezU6mjgSiXpGtKcDDT UICQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796265961; x=1796870761; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=sfonlJfdd8SqIYCFkZbXSVH2NFN+YOgaRb68OR9Hsyk=; b=GssL2FxitB7SdxP0D6PFCv3BtWrfOvdcOvh/rJWceCdrI20vrfbjk2seARkEzdiMW1 rQIDR+hpIaakL39FYhA+mN5fQgoklgXPRTfHh+Yj29lX3rnsEDhxQVGkEqq07I2vbXO8 Lv495u/c8MnOd7L4r6f/OSdJTOBOyEDSml98y1EFhg7l5RKMiHmdKmwIE7bY9L2Tl+CX O++ldF17FuLXA0XZTQmizaVzmUY5SBJB51w86B/5zPBEtauInDG5bzQKCdf5lFZJpNtK 1RS3Bi8jGbcy8h85IIzD5B23iJeCcv8aOFJqe/T/JCpPQLdxZsPeb75d3n6WK3CBYRIv +Xkg== X-Forwarded-Encrypted: i=1; AL+hErGCpHuIWbk6/SnO0Kl8xi54Aoz+wZehAY2zisXYH66g8zPm6ii9N2h5kKuleRmjy85udX8ofOhTkgLq@vger.kernel.org X-Gm-Message-State: APuU4Z/0Kw9YFt6Q2LYTojdbMhYGIN7nHlWtGDnCVDL8VRFre1s8Md8g ahGaKtXm1Up5sqlf+v+V4d7hhz6SJPSTS4prqR76zM911px9JcZwoEgZ X-Gm-Gg: AZFdTZek+w66st7Nmp0rgpX66FYVOgGbTVeedPHwPS7uNvMNR7FT642Z+QqC/OXZr7+ +XWlqPBHsr+3MDtaikFBLS+X0z6aQ4U0MluoS5N8aLb0iIrycouojIKexmjSOgXfHeBsxsgJwtg iQPtA1Ogu1+ABt+eRyM5d/mBB5IOsgxnWV3jxxuzZ3Dr6S2ygDnysx9jJIOupls2qtxsbp3yrmQ rZrlEUG9G9TLdwEv9zcu6yJ8ZULIK4accsPDazKxild/Kz52o9+0FkNAG96BWte6M32tRUoSCTx xXy1Hpu7E5206XxklTqakRbGqUcWmPkosFM9jdGIhlvLH+/JhvEwWiCitcDkCAwlNcuplxCQH/7 HEC3KxAFG5tDOB46k2YKpsoh/Z2hVQIDSB12M/J0h5j+jfiJlZO86jK14JefxSO975HD78yyxDI UV2Iy2bB/G5hPOvN3VNG3tUik9Wa1WKlwumWiLyQ/YsO2qz3Gp0hchNfqoVxbXP5Y/MQqM5pJaJ ZeytPG20nz6XDvnf+bjZsMXEniWWSze4LnI/kspK2sFeQcI1TS2mhjePEcVaukC/uLt+tKzKr+9 tIh7Gbhd1w0Mn0YHf5R0gI5T4qgVERoqplFubdyuLhUEN+z1n8srVIM= X-Received: by 2002:a05:693c:415c:20b0:386:c4f1:bbdb with SMTP id 5a478bee46e88-386c4f1d23dmr34056237eec.21.1796265961242; Wed, 02 Dec 2026 18:46:01 -0800 (PST) Received: from debian.tfbnw.net ([2620:10d:c090:400::5:6099]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38567ea2cc5sm110161104eec.29.2026.12.02.18.46.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 18:46:00 -0800 (PST) From: Pablo Mazzini To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Pablo Mazzini , Andre Przywara , Alastair D'Silva , Norman Herms , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH v4 0/3] pinctrl: sunxi: number the IRQ banks from the first one that has IRQs Date: Thu, 3 Dec 2026 02:43:34 +0000 Message-ID: <20261203024338.13729-1-pmazzini@gmail.com> X-Mailer: git-send-email 2.53.0 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 The DT pinctrl helper numbers the first IRQ bank 1 on SoCs without PortA. The A523 got a DT interrupt for its unimplemented PA bank to work around that, the A733 would need the same, and on both PK is written past the end of irq_array. Number the IRQ banks from the first one that has IRQs, map them to the hardware with irq_bank_map on the A523 and A733, and drop the PA interrupt from the binding and the A523 DT. The B288 (IRQ banks on PB, PD, PF and PG) then needs no made-up interrupt. v4: - rebased on the pinctrl fixes branch, where the A733 no longer sets irq_read_needs_mux - 1/3: only start counting the IRQ banks at -1, comment the A523 and A733 maps, and explain both in the commit message (Andre) - 2/3, 3/3: add Fixes tags, reword 3/3 (Andre) - add the review and test tags v3 RESEND: - rebased on v7.4-rc1, no changes - add Rob's ack on 2/3 v3: - apply irq_bank_map to the A733 register layout too (Sashiko) v2: - give the A523 and A733 an irq_bank_map, and drop the PA interrupt from the binding and the A523 DT Pablo Mazzini (3): pinctrl: sunxi: dt: number the IRQ banks from the first one that has IRQs dt-bindings: pinctrl: sun55i-a523: one interrupt per implemented bank arm64: dts: allwinner: a523: drop the PA GPIO interrupt .../bindings/pinctrl/allwinner,sun55i-a523-pinctrl.yaml | 8 ++++---- arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | 3 +-- drivers/pinctrl/sunxi/pinctrl-sun55i-a523.c | 6 +++++- drivers/pinctrl/sunxi/pinctrl-sun60i-a733.c | 6 +++++- drivers/pinctrl/sunxi/pinctrl-sunxi-dt.c | 4 ++-- drivers/pinctrl/sunxi/pinctrl-sunxi.h | 7 ++++--- 6 files changed, 21 insertions(+), 13 deletions(-) base-commit: 5ae02132d8038b5290a21e05c0fa5376472c191a -- 2.52.1