From mboxrd@z Thu Jan 1 00:00:00 1970 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 75DC3C531FF for ; Fri, 20 Feb 2026 10:37:00 +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-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=WOmq4oIh50CVOlYgICncz5bv3GLxzZaAhwh07HpubHg=; b=gC0RoZ7eB7Nons6RinWWJ6qi1O fY34R6uoAta5QgvlWi/MYLcq3JmfKCeS9MFmUCJYa/VkrVkygYqQ91DaCBnAHuvEfs4A8PZEcSAiC dmhFG4HKgfeZLLRaE00QG5RP7S7Spv1Q8Ik2qTPwdRqhmryjsiayVZ7tAnN0ZGsFSulQVNn0bkuvx AhVch1jEtieUQy4NZS+dAQYBY1WpNrAxG+rluVX+2BNzZsghuUlIb5UtoQt29mwEjNAwCaRf+w3Yl kO8vSnYo5UhizuhL5I5UoHC8pJnEWkZuddT/D3kb8lKawILZRRTghxqzyHK8gtN2LtbDKy+t+h3au qjo4Nqqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vtNsV-0000000E5mf-46iR; Fri, 20 Feb 2026 10:36:55 +0000 Received: from mail.fris.de ([116.203.77.234] helo=mail2.fris.de) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vtNsQ-0000000E5g6-03gh for linux-arm-kernel@lists.infradead.org; Fri, 20 Feb 2026 10:36:51 +0000 From: Frieder Schrempf DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=mail; t=1771583808; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WOmq4oIh50CVOlYgICncz5bv3GLxzZaAhwh07HpubHg=; b=SKA3P/Ur0pz9ThsYK6y9UIZI8d+qxCeqKJWmzeR1K0WecCE2PbpaX0Mehf3s1SlAd8+k4f b3x2IMQ+e3BRRi1HUaOACw3+sfmoSwZkUXKAlWHe3SHKhauD/7kLf+ZlEDtqVcTu+LqnvS 3f5Y+jcTxJ2nUPMIR6+d6eFYV+tLq1TJ9qvAjR0qxJBP2aLSFRV2Ru2X8U5HE8oaDa4Jpq MlKPqTwMza3J0jj/NG2f14boQsXTcNy0fRLbw3jvUQ55Mbl6t7HbQyru2hxK4/6NQphqbT c7Imtq4cCBUKjcArvXn2Kf/jVgCqaCKtGV3Z76eoImpGfjQ4maQE9HlKF3U2Iw== To: Conor Dooley , devicetree@vger.kernel.org, Frank Li , Frieder Schrempf , imx@lists.linux.dev, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , Shawn Guo Cc: Annette Kobou , Fabio Estevam , Pengutronix Kernel Team Subject: [PATCH v2 3/4] arm64: dts: imx8mp-kontron: Fix boot order for PMIC and RTC Date: Fri, 20 Feb 2026 11:36:18 +0100 Message-ID: <20260220103636.9697-4-frieder@fris.de> In-Reply-To: <20260220103636.9697-1-frieder@fris.de> References: <20260220103636.9697-1-frieder@fris.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam: Yes X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260220_023650_851601_762B39C0 X-CRM114-Status: GOOD ( 11.30 ) 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: Annette Kobou The PMIC provides a level-shifter for the I2C lines to the RTC. As the level shifter needs to be enabled before the RTC can be accessed, we need to make sure that the PMIC driver is probed first. As the PMIC also provides the supply voltage for the RTC through the 3.3V regulator, we can simply express this in the DT to create the required dependency. This fixes sporadic boot hangs that occurred when the RTC was accessed before the level-shifter was enabled. Fixes: 946ab10e3f40f ("arm64: dts: Add support for Kontron OSM-S i.MX8MP SoM and BL carrier board") Signed-off-by: Annette Kobou Signed-off-by: Frieder Schrempf --- arch/arm64/boot/dts/freescale/imx8mp-kontron-osm-s.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-kontron-osm-s.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-kontron-osm-s.dtsi index b97bfeb1c30f8..bc1a261bb000e 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-kontron-osm-s.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-kontron-osm-s.dtsi @@ -330,6 +330,12 @@ rv3028: rtc@52 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_rtc>; interrupts-extended = <&gpio3 24 IRQ_TYPE_LEVEL_LOW>; + /* + * While specifying the vdd-supply is normally not strictly necessary, + * here it also makes sure that the PMIC driver enables the level- + * shifter for the RTC before the RTC is probed. + */ + vdd-supply = <®_vdd_3v3>; }; }; -- 2.52.0