[V3,1/2] arm64: dts: ti: k3-j721s2-mcu-wakeup: Fix IO PADCONFIG size for wakeup domain
Message ID | 20230316114102.3602-2-sinthu.raja@ti.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp432681wrt; Thu, 16 Mar 2023 04:46:45 -0700 (PDT) X-Google-Smtp-Source: AK7set9MeQxbcVzlCZGoxAF/mKoV3/siElznt2cpjxOEv7jEOtU0+2zPYXpjNpdhDOBKT6aTViYG X-Received: by 2002:a62:7b4b:0:b0:625:c048:2f81 with SMTP id w72-20020a627b4b000000b00625c0482f81mr2654168pfc.32.1678967204536; Thu, 16 Mar 2023 04:46:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678967204; cv=none; d=google.com; s=arc-20160816; b=RNVDHA5rJajgDSlKRXWCEF/PlKZjrvKkmIW02+8bsdnznHEi7HmMCU9oKLzytdxm1/ 7wR1W3jlLReHQec+zkJUUqq1D1YnyK4SSCsSoTm5apq36JTnQA3TcTW3V2uQrVMccudt 6GBlPuOkCj8K1XECXJJtQIbd2tVTlX/+9m1MFmVDlcTm5PwG+Fsmbwnj0vdlvpOyCpYc RkBIfBuz49IycPV2FwNqSRULOBM5ITPvpdphzRMC3yF7Vx7iT811xnw7/QRuL+Slpoe1 I7JoR6kN1PCyZsX3z/wxkZmwesuc10vtfo4usv1pRbsbgCDDzd8bNbQ/fKyYDFZZwNsM /7xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cw0OJIVOqo5ioIagK89/DB9qVdzvhD7/kjEKYWm/ENA=; b=sgNyjrPDyOe8J4JI83sO5yeuK5IXtKbwS9tltOGzeoOJz1dlJkW9gKZ4XdF6f02jJD QtMOOLtfrSr1bLPoUsAOG4jezvo/mna+PRZPwor7IkMofyTyH36Z8j6hfHEwlBjYs3pv f25WPHn1Z/S+u/diL+3m/qZ7nuNQsnzI1PYBv/SV1bNdJrY56D4tcRY4Thg6IvYS9fkD 9rrEbUDbvjOyu92qWcU3UnwTLINjOqKGal88ylK+n0x6ALvuTJqAS4GNTUX11N25F1op YtdmIQ5ODsvL93Eo+B74vKKMcO6EImz/hGGO8eB03e8Ld7Tll2hpm3MlmhHEZhFfPwch FLag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mistralsolutions.com header.s=google header.b=gdM52pJi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mistralsolutions.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h190-20020a6383c7000000b0050bfc1d1b6dsi372762pge.132.2023.03.16.04.46.27; Thu, 16 Mar 2023 04:46:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mistralsolutions.com header.s=google header.b=gdM52pJi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mistralsolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229960AbjCPLl1 (ORCPT <rfc822;ruipengqi7@gmail.com> + 99 others); Thu, 16 Mar 2023 07:41:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbjCPLlX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 16 Mar 2023 07:41:23 -0400 Received: from egress-ip33b.ess.de.barracuda.com (egress-ip33b.ess.de.barracuda.com [18.185.115.237]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E796110 for <linux-kernel@vger.kernel.org>; Thu, 16 Mar 2023 04:41:18 -0700 (PDT) Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by mx-outbound19-80.eu-central-1b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 16 Mar 2023 11:41:16 +0000 Received: by mail-pl1-f200.google.com with SMTP id bh9-20020a170902a98900b0019e506b80d0so853401plb.13 for <linux-kernel@vger.kernel.org>; Thu, 16 Mar 2023 04:41:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mistralsolutions.com; s=google; t=1678966875; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cw0OJIVOqo5ioIagK89/DB9qVdzvhD7/kjEKYWm/ENA=; b=gdM52pJiD+OhE2sOot6P45KGiKXuQHtkqYD+xaMQNYZzEtQgU2okLaqmmNagvhhA4t BVmTTX9/95dR3O5Y5GBAL18RcxL3WHjxpnnlh/B9X7GBWoiNJisnP3Hnq2gcfPfYD6We cVAU/St/+ZJ514WimT7QPlKIJgaz0hmR0AnjQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678966875; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cw0OJIVOqo5ioIagK89/DB9qVdzvhD7/kjEKYWm/ENA=; b=w0JAbGeoossNgmJeVychRuYqBa60MXeREJwxE2SN/3wOp3yJpHW1C9FIs18GEFLqYM IIqgZlqGknVJnYFAC8GL6uy5t1UKbSxz/lWK9Bk//T0ZZKlfyo+ClB1qE8yIJpIJYoFm O87aj3eMB7fwwVIgh0I9+6EgGW1lQj6oa0b1P4cnak3gnXKauGwXb+w7YP1Z+r29C0U4 hgnmeLg3cVcPthb6m2B21Uv7B5SOkB4GF+BV6rmiDHitOHIByiBDmuAX9uspLdHw9nMB 1BAFFRiGm7kRHl2O55qfI6VTX93nbIbPHIPT3bmvnfAF+sEaVCqv6NQaEIcbXLPlaWiC Dv+w== X-Gm-Message-State: AO0yUKVqgVTtABRYGOB0Akvs2qRJhvKQRh6hto5OE/JvI2XSTtIuNDAp Qz7eED6991E6rqJwzaxfOF4iMYf/HTvI4BxrmwXSPVCE+uq02MlI+7jKPpgR4vRZp9Ap/N4VdM8 MCm1hVgmjgP7dXHEkKpQh+LPP04K79nBwsFoibhkViXwBG2fHNZOdgextFcDI X-Received: by 2002:a62:1dc3:0:b0:622:749a:b9de with SMTP id d186-20020a621dc3000000b00622749ab9demr2725214pfd.27.1678966875578; Thu, 16 Mar 2023 04:41:15 -0700 (PDT) X-Received: by 2002:a62:1dc3:0:b0:622:749a:b9de with SMTP id d186-20020a621dc3000000b00622749ab9demr2725196pfd.27.1678966875261; Thu, 16 Mar 2023 04:41:15 -0700 (PDT) Received: from localhost.localdomain ([49.207.217.20]) by smtp.gmail.com with ESMTPSA id j9-20020aa78dc9000000b00571f66721aesm5284534pfr.42.2023.03.16.04.41.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 04:41:14 -0700 (PDT) From: Sinthu Raja <sinthu.raja@mistralsolutions.com> X-Google-Original-From: Sinthu Raja <sinthu.raja@ti.com> To: Nishanth Menon <nm@ti.com>, Tero Kristo <kristo@kernel.org>, Rob Herring <robh+dt@kernel.org> Cc: Vignesh Raghavendra <vigneshr@ti.com>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sinthu Raja <sinthu.raja@ti.com> Subject: [PATCH V3 1/2] arm64: dts: ti: k3-j721s2-mcu-wakeup: Fix IO PADCONFIG size for wakeup domain Date: Thu, 16 Mar 2023 17:11:01 +0530 Message-Id: <20230316114102.3602-2-sinthu.raja@ti.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20230316114102.3602-1-sinthu.raja@ti.com> References: <20230316114102.3602-1-sinthu.raja@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BESS-ID: 1678966876-304944-5516-18129-1 X-BESS-VER: 2019.1_20230310.1716 X-BESS-Apparent-Source-IP: 209.85.214.200 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUirNy1bSUcovVrIyNDIyBbIygIImhmZGiUlmKS bGKQYmJiZp5hZpKZYmBimGBpbJlskWqUq1sQBevZ/pQQAAAA== X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.246833 [from cloudscan17-19.eu-central-1b.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_SC0_MISMATCH_TO META: Envelope rcpt doesn't match header 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS91090 scores of KILL_LEVEL=7.0 tests=BSF_SC0_MISMATCH_TO, BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760524715471710122?= X-GMAIL-MSGID: =?utf-8?q?1760524715471710122?= |
Series |
Fix WKUP domain IO PADCONFIG size issue and RPi header support
|
|
Commit Message
Sinthu Raja
March 16, 2023, 11:41 a.m. UTC
From: Sinthu Raja <sinthu.raja@ti.com> The size of wkup domain I/O PADCONFIG register set is incorrect for J721S2. Therefore, update the PADCONFIG total offset size to the correct value for J721S22 SoC. Fixes: b8545f9d3a54 ("arm64: dts: ti: Add initial support for J721S2 SoC") Signed-off-by: Sinthu Raja <sinthu.raja@ti.com> --- Changes in V3: - Added Fix tag Changes in V2: - Update commit description. - Update the offset value to 0x194 because 0x190 is the last register of the IO PADCONFIG register set. arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Sinthu, On 16/03/23 17:11, Sinthu Raja wrote: > From: Sinthu Raja <sinthu.raja@ti.com> > > The size of wkup domain I/O PADCONFIG register set is incorrect for J721S2. > Therefore, update the PADCONFIG total offset size to the correct value for > J721S22 SoC. > > Fixes: b8545f9d3a54 ("arm64: dts: ti: Add initial support for J721S2 SoC") > Signed-off-by: Sinthu Raja <sinthu.raja@ti.com> > --- > > Changes in V3: > - Added Fix tag > > Changes in V2: > - Update commit description. > - Update the offset value to 0x194 because 0x190 is the last register of the > IO PADCONFIG register set. > The existing PADCONFIG register region descriptions in the pinctrl nodes seems to be incorrect for j721s2-main and j721s2-mcu-wakeup due to non-addressable holes in the region which causes bus aborts when the registers are read and causes system crash if we read something like, /sys/kernel/debug/pinctrl/4301c000.pinctrl-pinctrl-single/pins This is what I saw from inspection of the datasheet: * WKUP_PADCONFIG13, WKUP_PADCONFIG25 missing in WKUP_PADCONFIG region * MAIN_PADCONFIG 64-68 missing in MAIN_PADCONFIG region I have verified that your patch does not introduce new issues, but since it is a Fix patch, I will defer the decision to the maintainers on whether we should split the nodes to avoid non-addressable regions and fix it completely here or later do a fix for the split. Thanks and Regards, Vaishnav > arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi > index 0af242aa9816..b10f1e8b98e6 100644 > --- a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi > @@ -50,7 +50,7 @@ mcu_ram: sram@41c00000 { > wkup_pmx0: pinctrl@4301c000 { > compatible = "pinctrl-single"; > /* Proxy 0 addressing */ > - reg = <0x00 0x4301c000 0x00 0x178>; > + reg = <0x00 0x4301c000 0x00 0x194>; > #pinctrl-cells = <1>; > pinctrl-single,register-width = <32>; > pinctrl-single,function-mask = <0xffffffff>;
On 16:48-20230328, Vaishnav Achath wrote: > Hi Sinthu, > > On 16/03/23 17:11, Sinthu Raja wrote: > > From: Sinthu Raja <sinthu.raja@ti.com> > > > > The size of wkup domain I/O PADCONFIG register set is incorrect for J721S2. > > Therefore, update the PADCONFIG total offset size to the correct value for > > J721S22 SoC. > > > > Fixes: b8545f9d3a54 ("arm64: dts: ti: Add initial support for J721S2 SoC") > > Signed-off-by: Sinthu Raja <sinthu.raja@ti.com> > > --- > > > > Changes in V3: > > - Added Fix tag > > > > Changes in V2: > > - Update commit description. > > - Update the offset value to 0x194 because 0x190 is the last register of the > > IO PADCONFIG register set. > > > > The existing PADCONFIG register region descriptions in the pinctrl nodes seems > to be incorrect for j721s2-main and j721s2-mcu-wakeup due to non-addressable > holes in the region which causes bus aborts when the registers are read and > causes system crash if we read something like, > /sys/kernel/debug/pinctrl/4301c000.pinctrl-pinctrl-single/pins > > This is what I saw from inspection of the datasheet: > > * WKUP_PADCONFIG13, WKUP_PADCONFIG25 missing in WKUP_PADCONFIG region > * MAIN_PADCONFIG 64-68 missing in MAIN_PADCONFIG region > > I have verified that your patch does not introduce new issues, but since it is a > Fix patch, I will defer the decision to the maintainers on whether we should > split the nodes to avoid non-addressable regions and fix it completely here or > later do a fix for the split. Do a single fix-up please.
diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi index 0af242aa9816..b10f1e8b98e6 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-mcu-wakeup.dtsi @@ -50,7 +50,7 @@ mcu_ram: sram@41c00000 { wkup_pmx0: pinctrl@4301c000 { compatible = "pinctrl-single"; /* Proxy 0 addressing */ - reg = <0x00 0x4301c000 0x00 0x178>; + reg = <0x00 0x4301c000 0x00 0x194>; #pinctrl-cells = <1>; pinctrl-single,register-width = <32>; pinctrl-single,function-mask = <0xffffffff>;