From patchwork Wed Nov 30 11:13:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frieder Schrempf X-Patchwork-Id: 27743 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp863082wrr; Wed, 30 Nov 2022 03:19:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf6+kHd1MDzH0to1iE7bF4eJey19dlVG6T9c6Rseuf4oILoeXYen4hEuNRYSWAdLnia1zIm4 X-Received: by 2002:a05:6402:158f:b0:469:acc:1c1b with SMTP id c15-20020a056402158f00b004690acc1c1bmr51463177edv.228.1669807157248; Wed, 30 Nov 2022 03:19:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669807157; cv=none; d=google.com; s=arc-20160816; b=zqAK8qvOw/oFHWnXWNgxJfD0GKGSzPDGVIWm7AmsUeRKMe5CLhcj2IAlUnUCY7geHT fMn9vxX6yZ2AnbQWTb+ZOK0JTKhcGIowNX1MbyhRsOhoDo5iXinTUo4GyTaVFZ/ecHyO PjETmnP6JPh3+ewd9cvU7z2SFfIaRYsQfCuN/uCgHQoVVlNHlG5b9vVrotd7xjmrnfQI EI/YhlapYy2DFjhsu98OtVe96yM+JADVaM+blBCER6WgHT4AKNspRs4U/3+fjwUPd7ZV wQiEvtyyAX0jlzVAh6T0T5a9HNBSIZBcwyiHDBlgZoXRrcfjFP7T50XlqvB1luhWa4C7 r3VQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t22-20020a056402525600b0045c3592301dsi1181875edd.191.2022.11.30.03.18.49; Wed, 30 Nov 2022 03:19:17 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750919709446589023?= X-GMAIL-MSGID: =?utf-8?q?1750919709446589023?= 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";