From patchwork Thu Jan 18 15:01:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13522932 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 A2CC2C4707B for ; Thu, 18 Jan 2024 15:02:20 +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:Cc:To:Message-Id:Subject: Date:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=d+OwAG31saZ7MgNKsEGR312/IASL2/BI41nkN6AQ8wQ=; b=oQNSLluNxaMOpg cT1qeeiVvpdgMUsFfTstnFY7Y2AwsyPIX4JKJf+Q1S4TN02oAR0jqTT5TBwE2jknCk1wT/oGId2Qg xfDYwRWQNrJ3aOV+RkqDDRfFRMm5Y4eold7Cvmeo6KEvwQGQDXMPvRjOm7ytyCNtr3THW1jGs1N2b VQ2Hz0f/SsunHquM6mTvFxEjerPSDDnRAlyZmP5HEyEs2JSYC4h3qbJlX34AlWyUA7b01bGhqrzgy msfUr/FKN2WOvm5HsTnQdfSeiT7drDwZ0+X7vwDbAKqdOrlS/eLLmT+B32fijOeCY5eVylSY+AUhh 7IblG891h2HyFnzge/6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rQTts-0031rr-0b; Thu, 18 Jan 2024 15:01:48 +0000 Received: from mail-vi1eur04on0601.outbound.protection.outlook.com ([2a01:111:f400:fe0e::601] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rQTtq-0031qn-1W for linux-arm-kernel@lists.infradead.org; Thu, 18 Jan 2024 15:01:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bywqv2pCDPKus3gpfHBdl9igNZOY+hCw7UU8txI+Mw5FyhKSaCobJIRxEkONDVTdfHAfDnORKeNbFwHfSL2/ZEudfV5P1Hd+n9ws0SukT0RTNYSQgSKloGBLoLghrYYj+MENObz088l3NrikH/tFLhQM1vGPmWCKH5zltIUqAhZLUA7JvrzcTX8mcM/wZjqaMLjdxJJPcV1ChZKaclzTYlMkSSoI7e7gAJSXHj9dhp9Q0UIrewdPRBsdFNgmmaWHxsmAbo7V2cbTJqka5YMUtcdj7RpFVNzT7j1GONcct3POGlrlBjm88F1k+uedJJoube4WybDPHw8OHHz/Fq0qGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rSL13OySgps+fz6qHc7H95AzCwGqwCdrvTQ6XAjwsYU=; b=DhSJqzlUD0qPzuz7OLNtcNfU4k8GRVdLhYZsbxwYrtJGPB+j0bL+0+ZEi05ZyLoArp3l0Vwr3KJtfKjAwyveJluXnD9q+tcZy1AwRgaTQ3ChMacmyS9sZ9ZjOvADF2fbaMK7uSHcbbo624GSNEL1XDSvLq+yrAaEICkJVBTRyQzqB9jjJdU0RH1ounXSm+f1DcPckghM8pcMt0WDPsnhgXonhJt79N2bsBQHNzYWJCZl3cVK45R3RJ3/vJzqg6dMckUVL7bS+19+IvuwgvAzrnQ3fYSCvKFJLc6lM6GAOuMQUkd3jX02ct6RmVnb1TzIjl0jEu4CvyI41EZ845vWHQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=solid-run.com; dmarc=pass action=none header.from=solid-run.com; dkim=pass header.d=solid-run.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solidrn.onmicrosoft.com; s=selector1-solidrn-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rSL13OySgps+fz6qHc7H95AzCwGqwCdrvTQ6XAjwsYU=; b=mOz2tg6blVFMZ69L70ZPhxVVb5ITSEeu0qmg0I6hfIOMj7qrE8WIBlE3c8TqdOw2428awVMSqgHQ6vBrGr6vSjhl0sQqxZgaVisqR6R4fTNc2CTE+WE9fpPO7baaS8AtPhVhFCzmxL975lywSeLOY/QvVl+1IENlI/Fzj2fMVGI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=solid-run.com; Received: from AS8PR04MB8963.eurprd04.prod.outlook.com (2603:10a6:20b:42e::18) by PAXPR04MB8752.eurprd04.prod.outlook.com (2603:10a6:102:20e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.23; Thu, 18 Jan 2024 15:01:29 +0000 Received: from AS8PR04MB8963.eurprd04.prod.outlook.com ([fe80::1ca2:718f:8566:763e]) by AS8PR04MB8963.eurprd04.prod.outlook.com ([fe80::1ca2:718f:8566:763e%4]) with mapi id 15.20.7202.024; Thu, 18 Jan 2024 15:01:29 +0000 From: Josua Mayer Date: Thu, 18 Jan 2024 16:01:10 +0100 Subject: [PATCH] ARM: dts: imx6qdl-hummingboard: Add rtc0 and rtc1 aliases to fix hctosys Message-Id: <20240118-imx6-hb-primary-rtc-v1-1-81b87935c557@solid-run.com> X-B4-Tracking: v=1; b=H4sIADU9qWUC/x3MQQqAIBBA0avIrBtQkYquEi0sp5qFFWNEEd49a fkW/7+QSJgSdOoFoYsT71uBqRRMq98WQg7FYLV12pgWOd41riMewtHLg3JOqF0TXDOHmryHUh5 CM9//tR9y/gBqbKWBZQAAAA== To: Russell King , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: Yazan Shhady , Jon Nettleton , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Josua Mayer X-Mailer: b4 0.12.4 X-ClientProxiedBy: FR3P281CA0083.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1f::21) To AS8PR04MB8963.eurprd04.prod.outlook.com (2603:10a6:20b:42e::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8963:EE_|PAXPR04MB8752:EE_ X-MS-Office365-Filtering-Correlation-Id: 22138f2f-75fc-49f5-df35-08dc183659ef X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HlOun0LN4dKnrqV1Opnh/sdPpkp5OU2ps0/0kD9NiHYACtKHrj++noZNEG/U9SW/Hv9LYdo+2Vg+W19e3lWUu4kvvmnPC56RWdEHhY9ZftKUGSgfadqizPczhIQhDFiVByeSaumpQIAsZZAY9Nk0rcqn4Z5FjrV8jy0VcrifLBdecZRTdiPfIN2Xvq8XeaOxacHEjXVB1JS+j6EiQX9cOAtWEWoqrPIMjidfJpOXdqakDjHdRNBvYx0Ke3D8jvUGqO4zM2ZzhCV9PD9HSdq/Eoav23+Ia/pTmGbaLXISMJFCe4lneaHnb9F8bWZrIYkkMA2z0/FCGOWYUCEATfakdm1XKvDM/lz+jTaXS39d9mDwCcp+jstwzHvD9jux2I3D88/O9vGaWggaa/VCsDTptANYV8LRsxclcdHt4zVYmPlgvpugYIdVSH9/xfdNZBy2zwozkz9QOXAfABcx31wYdYT1dUukXfSAXvWS9M3Yu+w6u/gPvibThlKWGEZbHLZUvbPgacvaziANROO/s+08PBraPn7jhQjLFtFz37VmqXOc/OQgsQvLeooSWT86K5q784aLH106/fcoeTk67rqt6L/4gqmwnMNSy1kBbGWtZLSoLluoMV9Ci2dvTS3AKK52mBPXu5BCnBfXNI3hB7pgIw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB8963.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(346002)(39840400004)(396003)(136003)(376002)(230922051799003)(1800799012)(186009)(451199024)(64100799003)(8676002)(8936002)(5660300002)(4326008)(66946007)(7416002)(66556008)(316002)(66476007)(2906002)(107886003)(26005)(54906003)(2616005)(38350700005)(86362001)(36756003)(110136005)(6506007)(6512007)(6666004)(6486002)(478600001)(52116002)(41300700001)(38100700002)(83380400001)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?gCGgx+zUAOttI8L/3pZCN6EY56h7?= =?utf-8?q?t0wOXjFRv96bpzWC0NLj/vKUqmGuI9V6Oee5k5Us+fG3RdM8Qy7iDIixgOnfAQy3v?= =?utf-8?q?qY2CCQoBIGQG5XH+3GprYrgJjYdvlWm4zm0ABQkR14RzoQz1Pz3H0TdaSUkhvXYQl?= =?utf-8?q?h1syhwc4hwikgg6Rrljbjzb6MGK/tmXmh3P12BRzE9a4ZLqHKbGSxcEsSf35UbSIC?= =?utf-8?q?/LUL7/Mnu+2bccL+tfX4G3C33q2036tsdl15UEVbJ4fCm5JXg+/5Bn3LjK9PPbBxk?= =?utf-8?q?/HXhFBK2H+MG9b46ouSWZMq4vsDQvoo3WlCJNBlnnbRfQ7HhvxX94V14rARbKM+nX?= =?utf-8?q?j6e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P3MwEua7dkh3m2ebdWdKRxa27duo5WDVtWqsKz/1pzL9k16o?= =?utf-8?q?TeBzbMfUacXbEntmIgmBa839I4PRm3vtYXOF8T0uawNe0X3XMsEXGhjEf1TT+GvuC?= =?utf-8?q?u7DB1Krxm+IP9LO64gch5qH4evLuk2SsTMOW3X8v0PJcDvCuTodbSzIIj/U+dcxlf?= =?utf-8?q?ZLgmTEivGh/zSMfg3GcxVLhE6nTPqGQo3PWVDe4m1xTo4gTDgMWwWHq2U/pW47T7v?= =?utf-8?q?NMyb2GnbH49RBXc4+vQmEOnIvpJRomWyxp4AA84g4qOYRjvpL13BDiZ/BtrZDwaSs?= =?utf-8?q?gzRQ3VMZUTp4?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 22138f2f-75fc-49f5-df35-08dc183659ef X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8963.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2024 15:01:29.7788 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a4a8aaf3-fd27-4e27-add2-604707ce5b82 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 69XVKPZ0Xt5I9dHfS9ybRnHeldhpma1F4Y2Uf5air8qUi+IYWS4nZzCCkVvHNyra5eU/9guhVtYoX/W5dwcnmA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8752 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240118_070146_528123_F9640D16 X-CRM114-Status: GOOD ( 13.63 ) 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 HummingBoard has two RTCs, first integrated within SoC that can be used to wake up from sleep - and a second on the carrier board including back-up battery which is intended for keeping time during power-off. Add aliases for both, ensuring that the battery-backed clock is primary rtc and used by default during boot for restoring system time. Fixes keeping time across power-cycle observed on Debian, which sets RTC_HCTOSYS_DEVICE="rtc0". Signed-off-by: Josua Mayer Reviewed-by: Fabio Estevam --- arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard.dtsi | 7 ++++++- arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard2.dtsi | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) --- base-commit: 0dd3ee31125508cd67f7e7172247f05b7fd1753a change-id: 20240118-imx6-hb-primary-rtc-047d47fd6eaa Sincerely, diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard.dtsi index bfade7149080..a955c77cd499 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard.dtsi @@ -41,6 +41,11 @@ #include / { + aliases { + rtc0 = &carrier_rtc; + rtc1 = &snvs_rtc; + }; + /* Will be filled by the bootloader */ memory@10000000 { device_type = "memory"; @@ -187,7 +192,7 @@ &i2c1 { status = "okay"; /* Pro baseboard model */ - rtc@68 { + carrier_rtc: rtc@68 { compatible = "nxp,pcf8523"; reg = <0x68>; }; diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard2.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard2.dtsi index 0883ef99cded..e6017f9bf640 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard2.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-hummingboard2.dtsi @@ -41,6 +41,11 @@ #include / { + aliases { + rtc0 = &pcf8523; + rtc1 = &snvs_rtc; + }; + /* Will be filled by the bootloader */ memory@10000000 { device_type = "memory";