From patchwork Thu Sep 22 16:29:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 12985510 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 77811C6FA82 for ; Thu, 22 Sep 2022 16:31:28 +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=ZsR4qFCltux9ulUdFHoutqu4ZdbAyDetpVNQytSRdyI=; b=lK7FjGX+DyXwjU r+WR3J1L9ZO4ecSjP86IlgftdmwFPfR0BOAXgOME3rz98P8Z17HHv0gGv+dH7hSAaQw4gj7w0bckR I/K61szqfRV672MuL+/7cZ5UXkJfNBXPkUiKzb/kvmZcFFIl1/A3kgq8HnXzJ8OnzlgpUzsdZrMPV bvwBM9WL3sUPCGREYQG28quSTnJkpeUm8G87Xaly/KMvgXJ2160Nu4GKiHZE1oe1JW1TBP7b+e9BG /oijlmr9amY2/Jm0sEN7tjeS4pU7lceOeTvOEW8FuLSaWNk46/aHV6nFjVIO4EXfTw50e1KXLLvCg SHzNZCHhi8hs4SMYTooQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1obP5m-00GkBH-AT; Thu, 22 Sep 2022 16:30:26 +0000 Received: from mout.perfora.net ([74.208.4.196]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1obP5K-00Gk1C-LU for linux-arm-kernel@lists.infradead.org; Thu, 22 Sep 2022 16:30:01 +0000 Received: from toolbox.toradex.int ([31.10.206.125]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1N6tSF-1pLISL0qD9-018HVp; Thu, 22 Sep 2022 18:29:38 +0200 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: Max Krummenacher , Marcel Ziswiler , Fabio Estevam , Krzysztof Kozlowski , Laurent Pinchart , NXP Linux Team , Pengutronix Kernel Team , Philippe Schenker , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/8] arm64: dts: verdin-imx8mp: fix ctrl_sleep_moci Date: Thu, 22 Sep 2022 18:29:18 +0200 Message-Id: <20220922162925.2368577-2-marcel@ziswiler.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220922162925.2368577-1-marcel@ziswiler.com> References: <20220922162925.2368577-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:rCx/OIPa6XgOO7VW/1IdwU6W5BGuuyzdlYGSVYza4FCLLrCljmS anONKl0ZX5mJEcj0OR4gFkVDMK74OhcSjRsDfqUazp+unmfPGrNMcyJFGy4aDZiEohTpjM2 siAyxNIAw51bL1Fb2s9fjpLRs6aGqzdXfZMxtp341v11jjnnOUuke6uO7gJT0yQVeldKL5B mnlYZjg5I7E0AkvXpoaRA== X-UI-Out-Filterresults: notjunk:1;V03:K0:fkA2NXvifQs=:GoxWYMVAdSujuFkmDkJwps HmXKyD7Z9SQsf9fjfJ9kSqf8pWALzC9XcSVMb/5KL/Uojy3tTKyt49ktmNGx6Q7agTuTjA+xS r3rbqdUMspTJMfJ9iNm+MccL61Xk+M2lbBUzw+4U8uY8Be7KLjeXUMfxulhY4DkfJ7+jCYU32 RuNAGeygUKVswwslMgrkFfR421yeOCREGyoSevTXOHbnoEkFpPNpEEoJTrZAIjNwmBNcUEm1L ZNNA5mOL9zHe+T7ythVGj0RcKPuTRDIJzyatgQwc6Vk4musIADnG7V5n9cIme/Z06H9qLD8jn oHIFGOrjoDAcJycYwanENF77p81AH+aMPDGYIoYy1gTPTuQ/nzferfRdmoUYTiIcwn0jKRQss fI+Lc6CFwbLmAD4QWMQgMziDsZ4RuOoQNLNo4M5IVJ9aDDY8aSTC4oqoprOxxbhs3yiXTWPFa BpZs+upAfp08kEXplkkdN2YBoib3Bz6YwWD/bnrQSB6sXBhGvtfQNF22t0pCl1bvwbL6rOE6G cJMXHQudsB796RgW0/FnB2GGbTjrWgHyHdYhSGSk26Q/IyIxnMLycoYWHmZM7EWFWSoUWu+Fc MbRE9T7OomcB/T4lhsVc3/RPm2He1aqic/e2WBBZ1bxfp+SY9O0pPCX1bPo+UtCp0Kaefd3+f RVg72ax1ea2yLMabBnDjZtXAIZC3Xr8dA13wPB/VVBq0QLrISPagmk5GQzXeAov0bcTOGtcMH 5MlAJCDpC/K6uZU7HTbP4dsJ+XReQnJxX8DfTLXzoLjorZ9qOUwY2V3WRj0xTkm0Vhkhheq0Y DClhvB9 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220922_092958_800080_3A51A4D8 X-CRM114-Status: GOOD ( 10.45 ) 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 From: Max Krummenacher The GPIO signaling ctrl_sleep_moci is currently handled as a gpio hog. But the gpio-hog node is made a child of the wrong gpio controller. Move it to the node representing gpio4 so that it actually works. Without this carrier board components jumpered to use the signal are unconditionally switched off. Fixes: 1d8df9c74bff ("arm64: dts: freescale: add initial support for verdin imx8m plus") Signed-off-by: Max Krummenacher Signed-off-by: Marcel Ziswiler --- .../boot/dts/freescale/imx8mp-verdin.dtsi | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi index 1c74c6a19449..360be51a3527 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi @@ -339,16 +339,6 @@ &gpio2 { "SODIMM_82", "SODIMM_70", "SODIMM_72"; - - ctrl-sleep-moci-hog { - gpio-hog; - /* Verdin CTRL_SLEEP_MOCI# (SODIMM 256) */ - gpios = <29 GPIO_ACTIVE_HIGH>; - line-name = "CTRL_SLEEP_MOCI#"; - output-high; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ctrl_sleep_moci>; - }; }; &gpio3 { @@ -417,6 +407,16 @@ &gpio4 { "SODIMM_256", "SODIMM_48", "SODIMM_44"; + + ctrl-sleep-moci-hog { + gpio-hog; + /* Verdin CTRL_SLEEP_MOCI# (SODIMM 256) */ + gpios = <29 GPIO_ACTIVE_HIGH>; + line-name = "CTRL_SLEEP_MOCI#"; + output-high; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ctrl_sleep_moci>; + }; }; /* On-module I2C */