[7/7] arm64: dts: imx8mm-kontron: Enable backup switch mode for RTC on OSM-S module
Message ID | 20230201143431.863784-8-frieder@fris.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp317175wrn; Wed, 1 Feb 2023 06:44:10 -0800 (PST) X-Google-Smtp-Source: AK7set87hlj+/ACO8GO6LMzGH7eJISi5XeWvW9Hw2fidwECWkH8YXqBZ/UNGHu0Nhc39RsycyU3n X-Received: by 2002:aa7:9911:0:b0:592:5dd5:7655 with SMTP id z17-20020aa79911000000b005925dd57655mr2186086pff.28.1675262650444; Wed, 01 Feb 2023 06:44:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675262650; cv=none; d=google.com; s=arc-20160816; b=uoXqpg25OqhFNBon0KFKKJXnViznyZPuEPIzh67hv3rY8ygBzEPAAGRf1VnIxH13sk i0YgWmZ4WpFlAvs8PsgFmUq4saKAYsCj32rkz1lS5fDohdCfaTUt2ksd0kUm1sjnGdEg CMb2lzzWqEQ4GhX6C4IruV1v6Pwlt7SWg7Zo2hLzwtG0jJHVxUFtwScXTJBdlQTvZnIT /QwLu/rZIMmr40Ic4AQi/bIolelDM+Frb2wvclEw3iNKI79ABbs+LojTMckwKZ7Fsx+h zRGaz8M/v/V2uNGLi0fNzV4CXXnAdn7jtYTkpDnIiBAH5VzWTFwgmGJ+0KhmO/v/JXOM sSXg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=s+I2FNNs+N+h3hl6gVrjPwSvZ5ntoO7yYLOlsjMKshg=; b=Xi2pnz6vQD0kQasYGLbI9go3XWwRmqjvCGqa/a4Wa0mCSOJnRId8SRhY6xSjHi7BSg eeaZocFoJkfrclQorgO3UynCGDot9vVqqUnmRc2yRJ+LiZJy73euw2FD58vNFl9ZNJRQ 60I7wkM3IiWIsvR8pZndVITRIOJEeMFAqO43lpBze2BbG6jOvw7NZ/YFaerSFSA4WzUJ d3FbNtrEXPpCXuMnhfdlxvUDWA85DdxMWl+31RgO8IByZ7I223Pi9kWEq+gnsEgh80rS FvnVTTMzFK6OUg1MTxPjI6I8/PZgZM05fMflAj8rXVdvr3kJ0fAHiDIk7XUcudF+Txts Sg5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fris.de header.s=dkim header.b="X/aZQs7Z"; 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 190-20020a6205c7000000b0059394f3d4a0si13821667pff.93.2023.02.01.06.43.58; Wed, 01 Feb 2023 06:44:10 -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="X/aZQs7Z"; 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 S232525AbjBAOnQ (ORCPT <rfc822;duw91626@gmail.com> + 99 others); Wed, 1 Feb 2023 09:43:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232502AbjBAOnK (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 1 Feb 2023 09:43:10 -0500 Received: from mail.fris.de (mail.fris.de [116.203.77.234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39E1EF751; Wed, 1 Feb 2023 06:43:04 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id A3F56C0340; Wed, 1 Feb 2023 15:35:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1675262122; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=s+I2FNNs+N+h3hl6gVrjPwSvZ5ntoO7yYLOlsjMKshg=; b=X/aZQs7ZNCRFZ3MdWAMbtDzLN1eXorx7zqRcGW/qhiRxZxgRp0Kgil1B5Oes0tlJnDJbgt JTNHlMqlMF7pRitaPnLv3YBoWWkiVJLkHN5hf3r/AISUyQIpj25+oH8yRuFOL7L7H3QXk3 jU/1xffz52Ul4TR4OZZmEU42yLNjywbNT7aTYpbkbA4fRNZnbzkAqWLH3iGlUDBed6trYG +V39IaEbSi4eFiqYwghw5K5KZ/kPbh2oNf+3nATF3IWWYxfoNFNHUgh1GnC80ITObIT9PK Pn8ZZJkbMb/LgNdg981I76EOEeXzSuWDTMFI4finyA6fYyPBHv0xEO2tLx+F9Q== From: Frieder Schrempf <frieder@fris.de> To: devicetree@vger.kernel.org, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring <robh+dt@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Shawn Guo <shawnguo@kernel.org> Cc: Frieder Schrempf <frieder.schrempf@kontron.de>, Fabio Estevam <festevam@gmail.com>, Heiko Thiery <heiko.thiery@gmail.com>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Marek Vasut <marex@denx.de>, NXP Linux Team <linux-imx@nxp.com>, Pengutronix Kernel Team <kernel@pengutronix.de> Subject: [PATCH 7/7] arm64: dts: imx8mm-kontron: Enable backup switch mode for RTC on OSM-S module Date: Wed, 1 Feb 2023 15:34:29 +0100 Message-Id: <20230201143431.863784-8-frieder@fris.de> In-Reply-To: <20230201143431.863784-1-frieder@fris.de> References: <20230201143431.863784-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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756640209304156697?= X-GMAIL-MSGID: =?utf-8?q?1756640209304156697?= |
Series |
Enable backup switch mode on RTCs via devicetree
|
|
Commit Message
Frieder Schrempf
Feb. 1, 2023, 2:34 p.m. UTC
From: Frieder Schrempf <frieder.schrempf@kontron.de> The board has a battery backup supply for the RTC, but the factory default is to have BSM disabled. Therefore the time will not be preserved if the board is not supplied. Fix this by forcing the RTC into BSM level mode. Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de> --- arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi | 2 ++ 1 file changed, 2 insertions(+)
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 131f98cf5a04..5188b5b718a0 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi @@ -4,6 +4,7 @@ */ #include <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/rtc/rtc.h> #include "imx8mm.dtsi" / { @@ -206,6 +207,7 @@ rtc@52 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_rtc>; interrupts-extended = <&gpio4 1 IRQ_TYPE_LEVEL_HIGH>; + backup-switch-mode = <RTC_BSM_LEVEL>; }; };