Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp408291rdb; Thu, 18 Jan 2024 07:10:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFVGX3BAVK6m7D25YaQi8qLTMmW/PCdO7pMoy+7B+nfxad+vjFyby9TYHvQOSMyRa1GOtEf X-Received: by 2002:a05:6512:4018:b0:50e:8eff:3982 with SMTP id br24-20020a056512401800b0050e8eff3982mr652015lfb.83.1705590626918; Thu, 18 Jan 2024 07:10:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705590626; cv=pass; d=google.com; s=arc-20160816; b=KYR1JUwZAoEb55skRmKlGzbmqJOhcsySPw0oLnPkF2gSGNrnOop0sxAcRJtu6/7Ibx BkCq+RvAatDZyTYFbbIUYBWiVw/z3dVFOld5C5vAVRMMQJWZsL/N+OyGG+x4cUBeqJTk KQQygmhaJosQnOBnzx58twKq2boxz/zFXpytR6tFN7qOCsC9Lw9mXyEDAt525G0HIzeu vPps23SduGOdCoGKql8RBsCi9jMy+UZsRA2bB5oFfynftSS2qerSbSQmS2scLY9xxut9 j5ciNrn3New/BZOeI5w9HeO1cNynbvVdQi2RDOcp/yMaqcYZMiOYsNwazL3LIEy0NQfu 2g4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=JegE1xbt2O1pAQCKD1b14IUP9aNDD4bXI2N+pkFsx88=; fh=NVdLrC/aRZzCoff/RLyO/XpR4Li6vF3qmyKSy+0HkxE=; b=1DRbSkLMhU5f9SICekWvbs74iQeb+aQFvhJKKOyMZ8Ad20spuNMjhPVHgNVPRC5Xyy aruP5anc3cQlRsLEzKIpBxWic1posPXn8cN7K3jfRo9MyIP6J+TkLQu779d9FwgOpS/L 4e1IMty4Ed+qZdEFV5NyNxVB8d1a+2L8Wb2UioLRr2O2Es1F9ATMgRwJ4BnrBtseExgP DHH6g4lkBqMyQvLUk/bjml7X0vDJ/3+GbuviPmrlN856RSSYDO1jwSIZCJQ5KYj65/va dsNsipzjhxhgrvUw46m0ULtSUzhs2jjv7+S46buOeDsc5ctdkqUxb26CgCRbU4bUqiGL QJrg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="YKPJI/Nz"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-30240-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30240-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n20-20020a05640205d400b00559c80ec583si711203edx.511.2024.01.18.07.10.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 07:10:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30240-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="YKPJI/Nz"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-30240-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30240-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A6CE91F22150 for ; Thu, 18 Jan 2024 15:10:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 65AF61E884; Thu, 18 Jan 2024 15:10:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YKPJI/Nz" Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6347E1DDD4; Thu, 18 Jan 2024 15:10:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705590616; cv=none; b=BSGmiVtfB1THnjmSZHoB/dgeQ6kJ56dDIcmpm3JF48WzLsq9QFuGmXNT66l9nyVAxrdw3JFzCuPRwmQ9PkbTNakrjsyXWuz5XIov6ZpF7Cq+YuMorKUyIMhgW9727LG+X+kPWs351iWIYZoV8dj3F+YmoENG1aRnkrWPWJjYopQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705590616; c=relaxed/simple; bh=JegE1xbt2O1pAQCKD1b14IUP9aNDD4bXI2N+pkFsx88=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:MIME-Version: References:In-Reply-To:From:Date:Message-ID:Subject:To:Cc: Content-Type:Content-Transfer-Encoding; b=Kyvux8gSEY15iodqWzY8yRfG9nl1VqyhVlRouos7vqcCgtybc9FB1NkGrfw+iquFGodWzTspyTbTwd8KbGAyoTWXA5dpMnHyQSgjpCRRcayj1F9xP/norNIZaBfZAfc4TyBAnzz7JKpPlVQtCCoIbFDWcxc/yDdcPpUteCVb6AE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=YKPJI/Nz; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1d51bf8a7dcso26492965ad.1; Thu, 18 Jan 2024 07:10:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705590614; x=1706195414; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=JegE1xbt2O1pAQCKD1b14IUP9aNDD4bXI2N+pkFsx88=; b=YKPJI/NzAQeFQOB+NourzaY3GTIv8pMUpoLv7mUZi2186z8E0ri6S0bSUnQ5TmZH3/ Dp8K12B4QpGxDP1FtQmswC3H5ZUDqbLgt8d3FOocFRZSu3X7n41Nscc7PcMXZrXQ7onb kktNizOgs9YOSFcBvKcQF+rn1y2tET+ICv4HKeGH9KZvkz3pUM/zREaeGJxWQussIqOG 86yolsfNNs2Pyd7eX/mMakfIVsGCdlzHMG/uMgij0SXi9yjAOt+Pa9GRckpCsZGK4+ln SL9sMFmI5Q/OjrJwt4Xd6zMHgdo3lljn2NYbp5zMeZJ2VzTA5F/YyNBfe70FHg8oGgLD tVOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705590614; x=1706195414; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JegE1xbt2O1pAQCKD1b14IUP9aNDD4bXI2N+pkFsx88=; b=uFH7+mkG/ueCsRagBa+GX4WCYik2tsswbMBixxSzNEUirJRV3GdNhdZ/PYzLJFtBAB r9r27FIwPjvgsX8FDQczcFsi58jxOb4Ne8pVBl2YiTT7aOjMkelS7xfmZdb2qrRlPUeO khFvHTmOVRevuVoJ37puuHJKtGNBWbCHamJ6PLkPPw1SkvzsOflbiO5UaS74W3Mddb2a 5rFIDLzVZ9Jb6KrxwVOaA1wMg1LoezAn5Nc69Xu1CzrgyJFTLUP2Yc4/9gyHmwLcgbal QSwzr/zFpJgskqpBD2D40y810y7EQ9wdJZvaDsoOxWnpeuPkOWpGxAjBP6h+DGPbHxFv l4bg== X-Gm-Message-State: AOJu0YxvFNcGTI//TWfIGsOsU2twWfdOr33ohPSnbYnsUJIKviNNulXl dR5Izst9Sx+ISuS+l7PR3lwQloZlzi70Rn/UKJOcjLT8f8cd0cNYbZW8KI9cKBFw5uoHbDlMSE4 +Y3S0up/5zG5kizeEMNtv2FgXZt4= X-Received: by 2002:a17:90a:e913:b0:290:172f:3b1a with SMTP id ki19-20020a17090ae91300b00290172f3b1amr1768675pjb.3.1705590614575; Thu, 18 Jan 2024 07:10:14 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240118-imx6-hb-primary-rtc-v1-1-81b87935c557@solid-run.com> In-Reply-To: <20240118-imx6-hb-primary-rtc-v1-1-81b87935c557@solid-run.com> From: Fabio Estevam Date: Thu, 18 Jan 2024 12:10:02 -0300 Message-ID: Subject: Re: [PATCH] ARM: dts: imx6qdl-hummingboard: Add rtc0 and rtc1 aliases to fix hctosys To: Josua Mayer Cc: Russell King , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , Yazan Shhady , Jon Nettleton , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 18, 2024 at 12:01=E2=80=AFPM Josua Mayer = wrote: > > HummingBoard has two RTCs, first integrated within SoC that can be used t= o > 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=3D"rtc0". > > Signed-off-by: Josua Mayer Reviewed-by: Fabio Estevam