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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 04860C54EBD for ; Mon, 9 Jan 2023 11:42:39 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D415D851B3; Mon, 9 Jan 2023 12:42:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=fris.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=fris.de header.i=@fris.de header.b="j1SH5DaG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C6F8480EB1; Mon, 9 Jan 2023 12:42:34 +0100 (CET) Received: from mail.fris.de (mail.fris.de [116.203.77.234]) (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 A02E9851B5 for ; Mon, 9 Jan 2023 12:42:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=fris.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=frieder@fris.de Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 2233CC0219; Mon, 9 Jan 2023 12:42:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1673264547; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=Pb2cIg5duuBQ3oCrXl8CHz73akcgFmesVxRWTnUOa1Q=; b=j1SH5DaGfSwEGF9saWSbjU1TWhevT3LJld6nCydA3eCTiztTdkA6cNEoXqpKGfjpQwVtaF 5bG+d+Qc0rEjKwrqJJaRmOCR0Xb4oxjuGQOxBEjvr/7m8Rnmsz4q4sbPMtiduJSGywY+DX zcQHXSx+ZieE0y7FZFvMvwdLWf1Ikt8BJ0PwmwuOBZ1KPuqIfu47YzGIcjvL6lZrBS1fPw pLXIz7zHkYWaLJZ83x4doC5qcJwtcywiuH31vLvMBt2SQ59urRN3mvF92Sfw809yVRtonc NsVj4zg6bW2TAWBaFqMYoVrf4Vltx7n8zO1nBDwXIbzMOLyt5F6E8puURMo0Sw== From: Frieder Schrempf To: Fabio Estevam , Frieder Schrempf , Stefano Babic , u-boot@lists.denx.de Cc: Shawn Guo , Fabio Estevam , Heiko Thiery , "NXP i.MX U-Boot Team" Subject: [PATCH] arm64: dts: imx8mm-kontron: Add RTC aliases Date: Mon, 9 Jan 2023 12:42:18 +0100 Message-Id: <20230109114220.69801-1-frieder@fris.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean From: Frieder Schrempf Add aliases for the RTCs on the board and on the SoC. This ensures that the primary RTC is always the one on the board that has a buffered supply and maximum accuracy. This is a direct port of the pending commit from linux-next. Signed-off-by: Frieder Schrempf Signed-off-by: Shawn Guo --- arch/arm/dts/imx8mm-kontron-bl.dts | 4 +++- arch/arm/dts/imx8mm-kontron-osm-s.dtsi | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/imx8mm-kontron-bl.dts b/arch/arm/dts/imx8mm-kontron-bl.dts index a079322a379..dcec57c2039 100644 --- a/arch/arm/dts/imx8mm-kontron-bl.dts +++ b/arch/arm/dts/imx8mm-kontron-bl.dts @@ -13,6 +13,8 @@ aliases { ethernet1 = &usbnet; + rtc0 = &rx8900; + rtc1 = &snvs_rtc; }; /* fixed crystal dedicated to mcp2515 */ @@ -136,7 +138,7 @@ pinctrl-0 = <&pinctrl_i2c4>; status = "okay"; - rtc@32 { + rx8900: rtc@32 { compatible = "epson,rx8900"; reg = <0x32>; }; diff --git a/arch/arm/dts/imx8mm-kontron-osm-s.dtsi b/arch/arm/dts/imx8mm-kontron-osm-s.dtsi index 8d10f5b4129..695da2fa7c4 100644 --- a/arch/arm/dts/imx8mm-kontron-osm-s.dtsi +++ b/arch/arm/dts/imx8mm-kontron-osm-s.dtsi @@ -10,6 +10,11 @@ model = "Kontron OSM-S i.MX8MM (N802X SOM)"; compatible = "kontron,imx8mm-osm-s", "fsl,imx8mm"; + aliases { + rtc0 = &rv3028; + rtc1 = &snvs_rtc; + }; + memory@40000000 { device_type = "memory"; /* @@ -200,7 +205,7 @@ }; }; - rtc@52 { + rv3028: rtc@52 { compatible = "microcrystal,rv3028"; reg = <0x52>; pinctrl-names = "default"; -- 2.39.0