From patchwork Wed Feb 1 14:34:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frieder Schrempf X-Patchwork-Id: 13124479 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 6A4B7C636CD for ; Wed, 1 Feb 2023 14:47:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=e11hfWtMWEVEQU0XhkVnPS6CRQPrF0L0AqVcwuCOpII=; b=5ANxbpRXf+3jWw SEAuM3X8jtB9DeflpH4ay1R390lIzMxKJyXbQy+qYwx2+0axPnjrFQ73pdj3oQ+NGS7tAkQH4FM2A tuAHQ8a/UXQVBP82eePt8MrmJp2RTz7FlgrlZ5gjNUjyft1sy3EgsQPMuJIqKsV1nBVvtuDJHwl+1 5w0Ya+/QZz4Fm4aOYfjBtRxJSKPmstwgo5vgGnS4L0ZFErfDDD5PxGs4/kW1UPgSQnJzidQBF2sCa ny7Wj2TJA+Ya+s6tAAlqm54uBQ8PRJeMy4fWUPked/tAvw+ni9p1QQz5KinB0NfyWGg3kqky+9QH6 1SPCblkwP2TwuPhJ7XFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNENL-00CTok-8U; Wed, 01 Feb 2023 14:46:15 +0000 Received: from mail.fris.de ([2a01:4f8:c2c:390b::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pNECq-00CP11-Cq for linux-arm-kernel@lists.infradead.org; Wed, 01 Feb 2023 14:35:26 +0000 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 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 , Marek Vasut , NXP Linux Team , Pengutronix Kernel Team 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 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230201_063524_623928_2EF21509 X-CRM114-Status: GOOD ( 11.34 ) 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: Frieder Schrempf 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 --- 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 +#include #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 = ; }; };