From patchwork Fri Aug 9 16:28:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jared McArthur X-Patchwork-Id: 13759010 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 2D718C3DA4A for ; Fri, 9 Aug 2024 16:29:56 +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=Stjc9pEOHDzRXfFji3xn4TMgnmocpeMMpD0DkLTI+Hs=; b=kYCnSOJOu7E03nQuL3ZERjS63c ZivU1EnpufL/bj1SY3FL9zBaU8uZAIE0UMlrFnSoz/Dp3CFxFsZg5KYKE23CQMqVbf0zg1CJprYtB a9z6xYQ5XeUrv0X9joGuOwetSq3KJAKd2HF+lRaiV5bC99M6gpQaPbDJR6+uduM5wnCET71IqW03z GEvaLkh7XA5hmilQ2+cCg8/iou4SNBZrJwqX6uUo1jEjJofqnmr5nehdCx2MumwscStRxsoDaoFQK h8i4/EPuyq7rO/FMqCFDplfurJ4L9s87kitnVFXwZ1DuUL3z7aVuxe3Kwh+gCLbtWaqhU/irpRaSq b1PbSURw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1scSUs-0000000BvqX-1NnS; Fri, 09 Aug 2024 16:29:46 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1scSTi-0000000BvYO-20gQ for linux-arm-kernel@lists.infradead.org; Fri, 09 Aug 2024 16:28:36 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 479GSUC8017022; Fri, 9 Aug 2024 11:28:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1723220910; bh=Stjc9pEOHDzRXfFji3xn4TMgnmocpeMMpD0DkLTI+Hs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=vz9jJYcB5DZZZ+bJ6b/JpMFhQVy7f690C17zyOiH8Rq6MbrvNubxi0ga/8SDdGrLR Mx5KRACAN+o05n0LdjpJ1e++2HHN9bscc0c3f2uICejbwevajiPs2ftMGW+MvvWk4N qr3cp+xztdgd4aBwEMwA4+LPDLmjTh0uWyEhcEsw= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 479GSUGH026888 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 9 Aug 2024 11:28:30 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 9 Aug 2024 11:28:29 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 9 Aug 2024 11:28:29 -0500 Received: from localhost (uda0499903.dhcp.ti.com [128.247.81.191]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 479GSTiZ030778; Fri, 9 Aug 2024 11:28:29 -0500 From: Jared McArthur To: Conor Dooley , Krzysztof Kozlowski , Rob Herring CC: , , , Tero Kristo , Vignesh Raghavendra , Nishanth Menon , Jared McArthur Subject: [PATCH 2/2] arm64: dts: ti: k3-j722s: Add gpio-reserved-ranges for main_gpio1 Date: Fri, 9 Aug 2024 11:28:28 -0500 Message-ID: <20240809162828.1945821-3-j-mcarthur@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240809162828.1945821-1-j-mcarthur@ti.com> References: <20240809162828.1945821-1-j-mcarthur@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240809_092834_631576_BA168B17 X-CRM114-Status: GOOD ( 11.14 ) 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 Commit ed07d82f9e3e8 ("arm64: dts: ti: k3-am62p-j722s: Move SoC-specific node properties") introduced the main_gpio1 node and included the ti,ngpio property, but did not include the gpio-reserved-ranges property. As a result, the user could try to access gpios that do not exist. Fix this by introducing the gpio-reserved-ranges property. The non-existent gpios are found in the am67x datasheet [1] in Table 5-27. Depends on patch: dt-bindings: gpio: gpio-davinci: Add the gpio-reserved-ranges property [2] [1] https://www.ti.com/lit/ds/symlink/am67.pdf [2] https://lore.kernel.org/all/20240809154638.394091-2-j-mcarthur@ti.com/ Signed-off-by: Jared McArthur --- arch/arm64/boot/dts/ti/k3-j722s-main.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/ti/k3-j722s-main.dtsi b/arch/arm64/boot/dts/ti/k3-j722s-main.dtsi index dde4bd5c6645..cadb4f7c2ea9 100644 --- a/arch/arm64/boot/dts/ti/k3-j722s-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j722s-main.dtsi @@ -214,5 +214,6 @@ &main_gpio0 { &main_gpio1 { gpio-ranges = <&main_pmx0 7 101 25>, <&main_pmx0 42 137 5>, <&main_pmx0 47 143 3>, <&main_pmx0 50 149 2>; + gpio-reserved-ranges = <0 7>, <32 10>; ti,ngpio = <73>; };