From patchwork Tue Apr 8 12:32:13 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Frattaroli X-Patchwork-Id: 14043033 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 42799C369A2 for ; Tue, 8 Apr 2025 13:16:06 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=dxPWRUM+Lmlc7lbL7SefS+1aIcIp06X3EqAUwi7F43g=; b=TJtMrvNsv6GsQSf+kwXobhR64+ vxPkDmZ53f087Sk1P1yc//rMYCf7IOr0FjWd7figmJA3yv/CPKTde0p/MF9MuaKML/coNDJS/1xJ9 7cmE+L+NwvaunysX3cagU6dcLMY/vq+ASuLfiB+yl5RS0vBoGPU6iM+DuGnjNFrhbsZIpW8IP+Nb/ /LD207UT0y0NyDB7H5nlgOIRalrEShdyQEEZwUgrwlji874aelKL2BMmQfyAymQcDMRSdiIt2MDxG BTHk7tlbMrcvLZVrSBChAQbo7R/dqkLYeZ/gf53O8K1/D+1XC8qtCWfzATarQ4aWG7SZhqgr5IVUf 5rt8XMxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1u28ny-000000049ZI-2EDP; Tue, 08 Apr 2025 13:15:54 +0000 Received: from sender4-pp-f112.zoho.com ([136.143.188.112]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1u289N-00000003zsU-3WQd; Tue, 08 Apr 2025 12:33:59 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1744115623; cv=none; d=zohomail.com; s=zohoarc; b=HzP064aaOCF6y6hOj7dRK5sI3bN/dS5Ihvs9eNBiFgnKC8sjICTZhSUPSTjXKDloFic5z0N5t8p9fCvvanhNPTkEVsiKTvlFqiJOtTJ/QLUNdyMrZGOlrwi5xsXsahPeCB7eyOGpWEpZ9wVcU4QOTG39BKnsnNPqXfqVbt8pMFU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1744115623; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=dxPWRUM+Lmlc7lbL7SefS+1aIcIp06X3EqAUwi7F43g=; b=DT7W5IHpEByyCYaiOVIG7DaCHy+Ml/e6/MGp++rnCdZJ5IWqdFpOv+Fb9e/Ykg9le6HWnd7td2iow3oAgFULBpof1XL2RCTedjSkhngWjefX4az6YfoUFd0XnQhqyhW25WowpbgCadDfBBW4z6lnu3ULscN6ICxs1V7TuulExbQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=nicolas.frattaroli@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1744115623; s=zohomail; d=collabora.com; i=nicolas.frattaroli@collabora.com; h=From:From:Date:Date:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Message-Id:References:In-Reply-To:To:To:Cc:Cc:Reply-To; bh=dxPWRUM+Lmlc7lbL7SefS+1aIcIp06X3EqAUwi7F43g=; b=alue8/mPvPyWvAXKI/G7dJ1Na5tsAAzwmYg/1zXv6sUCiIYciYGR+Al/RmcnDvuO cAH3D8gDuzjLJVCE/4V05SXR9xB9owHg7LgjhgcFDL9vXCbv+wC+Xz2GIBRQSTxFgRX NdF4r0JexJJRZkk6GCB4wffEN6TOTJd+Iv1WUQCI= Received: by mx.zohomail.com with SMTPS id 1744115621608488.26624651220584; Tue, 8 Apr 2025 05:33:41 -0700 (PDT) From: Nicolas Frattaroli Date: Tue, 08 Apr 2025 14:32:13 +0200 Subject: [PATCH 1/7] dt-bindings: pinctrl: rockchip: increase max amount of device functions MIME-Version: 1.0 Message-Id: <20250408-rk3576-pwm-v1-1-a49286c2ca8e@collabora.com> References: <20250408-rk3576-pwm-v1-0-a49286c2ca8e@collabora.com> In-Reply-To: <20250408-rk3576-pwm-v1-0-a49286c2ca8e@collabora.com> To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , William Breathitt Gray , Sebastian Reichel , Kever Yang Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, linux-iio@vger.kernel.org, kernel@collabora.com, Jonas Karlman , Detlev Casanova , Nicolas Frattaroli X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250408_053357_940479_9480B381 X-CRM114-Status: GOOD ( 12.23 ) 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 With the introduction of the RK3576, the maximum device function ID used increased to 14, as anyone can easily verify for themselves with: rg -g '*-pinctrl.dtsi' '<\d+\s+RK_P..\s+(?\d+)\s.*>;$' --trim \ -NI -r '$func' arch/arm64/boot/dts/rockchip/ | sort -g | uniq Unfortunately, this wasn't caught by dt-validate as those pins are omit-if-no-ref and we had no reference to them in any tree so far. Once again kick the can down the road by increasing the limit to 14. Signed-off-by: Nicolas Frattaroli Acked-by: Conor Dooley --- Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml index 960758dc417f7405010fab067bfbf6f5c4704179..125af766b99297dc229db158846daea974dda28e 100644 --- a/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.yaml @@ -135,7 +135,7 @@ additionalProperties: description: Pin bank index. - minimum: 0 - maximum: 13 + maximum: 14 description: Mux 0 means GPIO and mux 1 to N means the specific device function.