Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2208341rwb; Wed, 30 Nov 2022 03:59:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf7RQS8mc5f8bI8pWGqeTZbyYKwxOFJ5mq542fIkokn/6LWPfmEI0NBpml6OhugvVJY5ypTq X-Received: by 2002:aa7:cc99:0:b0:44e:cd80:843b with SMTP id p25-20020aa7cc99000000b0044ecd80843bmr41639228edt.126.1669809584293; Wed, 30 Nov 2022 03:59:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669809584; cv=none; d=google.com; s=arc-20160816; b=ttfEr15fr7w6bGjjzpGyovd/QxbAY8QUayi9Qx8YCdf2REa63txYAM3g1sPxBqpY2N nwby2hxxJ8eHoAPXzz74zR+516GyBtxTIhU/2F8gofjulYP9hiYwQZekr0+Tk/6ljU7s dh3XAY4yQvl1a3kfxK4+eeRcluoWnvOjkzkMn1PnoH6obMCk+F0RIUI+goP6SC6+PrVB 8D8mKfhAoAIh9PbBXTKqpOla1yzhUe9XpJU4bvZqI384vu0ERQgv3Nm83Nm62oV63N/J AqSSLP4pHR7JSkdjR4lT4dTemde8zz0F0FchkKiz6wSht56MFmu4Fr9XW2eBO6Es6X5H s7Qg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=FRxluBfEJkiA18fBYeNlbUEW1rTsCtHz9h13qEpVFw8=; b=na6GByOdUNfvzlM9iXN8iSpdO46sxKo62NJejOiqZKCV9csBTVHo88nG72GrNjjVj6 smOibyjlEwYIlt6MxkwA4IszmMwNrKScaUkfGerytTn0oOqcY8wZ6wbVjYhypViBhgNG l+Tkalnz3f5Q6FR/eIFEShTD6+NMa1i3Gp6jeg5WzTiR7Es3rzoRrMgndInieXY1QAc4 IsZgtNpjVWgFc2zT0vM6av784HhdjXU6Bi/alaRvayPxYsKcj60OvEMwCWGgswXuMn2m te6ZJ1S/AovnkiuFEcw8mHjEhtVy/0EXa+qz58v/oC2sBWhJceqR1/YWH7hIW9M2qPOe SI+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fris.de header.s=dkim header.b=LlhH723w; 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=fris.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a0564020e0700b00461c531d8casi1120143edh.305.2022.11.30.03.59.24; Wed, 30 Nov 2022 03:59:44 -0800 (PST) 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=@fris.de header.s=dkim header.b=LlhH723w; 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=fris.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232969AbiK3LOg (ORCPT + 84 others); Wed, 30 Nov 2022 06:14:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229805AbiK3LOd (ORCPT ); Wed, 30 Nov 2022 06:14:33 -0500 Received: from mail.fris.de (mail.fris.de [116.203.77.234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F40D220E4 for ; Wed, 30 Nov 2022 03:14:31 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id CCC1ABFACA; Wed, 30 Nov 2022 12:14:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1669806866; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=FRxluBfEJkiA18fBYeNlbUEW1rTsCtHz9h13qEpVFw8=; b=LlhH723wWOsj558CVqc1B1IyaUxWewa/m5COH65zmc1/H2A+JMNguwLJ4kbTWpXRmnTi1M e+DpF3svrke1qdoBxwBuCe3iWK5abguQ4e86htmrA5TJHwm5y4XV7IEFZRMFJvQFFsnUXD ZKRb8c9qyKIN+iUiKLoJnL+qk4g87tDVkGylRSU12Kvv1aKymZVR1KVlwglXdqwMiSnzll /i1YlO/g1IJV3bxBiOnKTL9jXf3XavA6elWUE0cE3XlNUCXQXG1a+Bum0QH3HEUYwC3eo7 LPQUMFjsYzTFdIcL3saXoSTBgcVmPIJliebB4jB5c2tVcctmTcUal/uxgLCzfQ== From: Frieder Schrempf To: devicetree@vger.kernel.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , Shawn Guo Cc: Frieder Schrempf , Fabio Estevam , Heiko Thiery , Krzysztof Kozlowski , NXP Linux Team , Oleksij Rempel , Pengutronix Kernel Team Subject: [PATCH] arm64: dts: imx8mm-kontron: Add RTC aliases Date: Wed, 30 Nov 2022 12:13:49 +0100 Message-Id: <20221130111357.585560-1-frieder@fris.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Frieder Schrempf --- arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts | 4 +++- arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts b/arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts index a079322a3793..dcec57c20399 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts +++ b/arch/arm64/boot/dts/freescale/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 @@ &i2c4 { pinctrl-0 = <&pinctrl_i2c4>; status = "okay"; - rtc@32 { + rx8900: rtc@32 { compatible = "epson,rx8900"; reg = <0x32>; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi index 8d10f5b41297..695da2fa7c42 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi +++ b/arch/arm64/boot/dts/freescale/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 @@ reg_nvcc_sd: LDO5 { }; }; - rtc@52 { + rv3028: rtc@52 { compatible = "microcrystal,rv3028"; reg = <0x52>; pinctrl-names = "default"; -- 2.38.1