Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6866EC4338F for ; Mon, 23 Aug 2021 15:06:30 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CA9DB6137B for ; Mon, 23 Aug 2021 15:06:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CA9DB6137B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 465F282D1C; Mon, 23 Aug 2021 17:06:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 8CCE28023C; Mon, 23 Aug 2021 17:04:54 +0200 (CEST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0A77E81BC0 for ; Mon, 23 Aug 2021 17:04:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=marcel@ziswiler.com Received: from toolbox.cardiotech.int ([81.221.236.183]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0Lg28r-1moA7O4AB9-00pcfl; Mon, 23 Aug 2021 17:04:26 +0200 From: Marcel Ziswiler To: u-boot@lists.denx.de Cc: Stefano Babic , Heiko Thiery , Fabio Estevam , Frieder Schrempf , Marcel Ziswiler , "NXP i.MX U-Boot Team" Subject: [PATCH v2 9/9] verdin-imx8mm: fix watchdog pinctrl issue Date: Mon, 23 Aug 2021 17:03:57 +0200 Message-Id: <20210823150357.247295-10-marcel@ziswiler.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210823150357.247295-1-marcel@ziswiler.com> References: <20210823150357.247295-1-marcel@ziswiler.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:6JtR6X3hnVs+otfZlVXm04cxp6t2A3HowCYXvT5SNFnFeOhLrSs 2cvjvk4RhDvapRipyXgJi8XnUHTj5iKq4ncqYy2OxFK5FHqvMg9tDy2EbYn6bu4jbRHgb8/ tW8Cj/ZLLJD896ghbijZPU5WQ5b0dhemEmxpH+4eNHzYpJfCuI/zFodCDnBw3YxSJd7HB+U uKI9tDLxJUt26Ns6+bNKw== X-UI-Out-Filterresults: notjunk:1;V03:K0:QCHdbeIE9sI=:XX6kK3AXwgqu9i1UHXEj5P v9mDd5hjA1eoIc1EtHmwXHJ/G2bOFo98/TKcO3iIBdtJvMkevo7wfvl7bYuCV2V1axPJ4ag1v nNCFtEZEHLDo6w/u5AwB2XOwii+tLfP8jivaMtTKijXYxxDrHPt/XkGETd+IycC/Kkmq0VYgT qWRihHOuaWId4NB8Xg0O2XcWe9CTpUArdbD2XiTSW3W5rLIUHucg1Qr2vfMK1XSa3HqxkxdFA LyiNF7bTslKQaC6jYSUm2TQDi9I1TimpK2MprM4C9asSib7RT70hBZJG6HYcgvPoFRwL48sHM Kq9wh27YhPOS/NfdnxPYHLPSW53sNe/WV6PzwIaLrmiElzq1gLvRPhCAZvWuPKngfYbWgbYAd vFfzwzMAeAz5lwwZavhZLGxHCkxOrZHE+siaD9JAcdAzX0q2ZrX72Ny+TGedKxgl5T7rS0eHt Vl9wC3T1PfN16AfNs5TISTI4cO0uTwJ3K7aFmTi7A7XASDJjzBfD1tG/WmrOPbHUgo+dWUJLl 4VRRfj72u1k+SsDKp8n9OaG3b8BdNEHCbGagRzebi8bk1zFi9nRRNvIaCcDRN/yWTqO4sZP0R CnCsKhVJ95cUuXFTI7eHwqhIYa8P25kMUORABrbrc3TVLwnGSlfWsYQRMwkU2plyDHk7yxQyq PbD3TMZEIjWl+pAhsDMOA4Vkv3dIv55+4hwZfAXt74g8nzN4gkogxnUIZk3P2D2xSKopCMCu8 nExPQnwEaZS4urnV4UsBIQQIt+rruGvW4n2rTMVK6jVMuIWZs0IyouIGfzGzXebtu9MYd0VHo SFUoHWTZi0QYmfrdYlukCoNgpMwLMkMmpfR6fFtBakk83AoG+ongCoXLyD+eyrn5CKfCLZO X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: Marcel Ziswiler Finally, found the root cause of the issue already once mentioned back here [2] which caused the following error message during boot: imx_wdt watchdog@30280000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19 Turns out while the watchdog node itself was already u-boot,dm-spl its pinctrl node was not which caused it to be unavailable at that early stage. Note that any and all other boards I checked also seem to be missing this. However, I can't judge whether or not they might indeed need a similar fix or not. [2] https://marc.info/?l=u-boot&m=161786572422973 Fixes: commit d304e7ace3a6 ("ARM: imx8m: Fix reset in SPL on Toradex iMX8MM Verdin") Signed-off-by: Marcel Ziswiler --- Changes in v2: - New patch fixing watchdog pinctrl issue. arch/arm/dts/imx8mm-verdin-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imx8mm-verdin-u-boot.dtsi b/arch/arm/dts/imx8mm-verdin-u-boot.dtsi index a3ad8f3ad37..2cc35a6e6f6 100644 --- a/arch/arm/dts/imx8mm-verdin-u-boot.dtsi +++ b/arch/arm/dts/imx8mm-verdin-u-boot.dtsi @@ -68,6 +68,10 @@ u-boot,dm-spl; }; +&pinctrl_wdog { + u-boot,dm-spl; +}; + &{/soc@0/bus@30800000/i2c@30a20000/pmic} { u-boot,dm-spl; }; -- 2.26.2