Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp46654pxu; Tue, 24 Nov 2020 18:09:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/VX3eWhMFAdNmmJ2pha8IhdXkKfK59DCeqpU+Km8Y0m7vcLDp7aGgD/QCQy9Wr14lmkrQ X-Received: by 2002:a17:906:2454:: with SMTP id a20mr1243459ejb.208.1606270180707; Tue, 24 Nov 2020 18:09:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606270180; cv=none; d=google.com; s=arc-20160816; b=mJICtIYLslyZBiKG7t8Ol8LcSd/d+GLEZfWva0XxJwXvmmlk8+lbPc/n5x4sN6VIOY UFlExNS8Iq7qhjjT2TlQkO+NiZ1BbuZVpmS9a+A0eyrjJwovRZ8QVYTBJbI06pcFmSzq NdVIcyreA0kdOuWEnZ8rAb58UMtbt1j0LjPprCwUFSnSEbprSLe9xjV9f8yKE4yYJ2qC U4lMmmmDtmEUYxZG5yPKDu3Rvi4oQyjAxYPTGFGQNMMZqHu4/12xPLfY6LdEHN820ta8 7e2Gs0HZhfHFCUNlG6xsLDcAY1qnKnS1O/cR4aChOryNa7o3hQgMjXeNa3jnq2H9AhmP pGGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=U85Rj/DRPt7jatgyQvBV2N/elTeJi8YB+AB1/+8bH98=; b=Mvqdv5TTIrdurMAoTbJSvPOGbo/tGm4Fup4sfRYpUHz8h5S1NOGL2GuK44G+SKLTpw kxKtIcoVzqlLv/TPMByqecFReCcm4wJCs/9BzD10qe7/jIy5Gl7DGBP+1eiYcvEaD/Oh k+VjZhsq1FDQSoecsUKSf6nT7GrhfkRdeT5HduFD3pmmGXlvvDTbOXEVM1f7vaLDLBAk sF8uSDRSwBUndXbW1x0kVnQCfcDxG00a878KeyRnBt3sK2sLTKeqx7JAg//WnK4yNG22 xjxngQFpHgbgyY9qtqV7nH8ukw6E4j7mVlJsmPPWUxcE/YrezLft97DIE8RIWqoReVbv 0+4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BsWfmB+f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z10si407898edp.346.2020.11.24.18.09.17; Tue, 24 Nov 2020 18:09:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BsWfmB+f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389330AbgKXOxp (ORCPT + 99 others); Tue, 24 Nov 2020 09:53:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389237AbgKXOxp (ORCPT ); Tue, 24 Nov 2020 09:53:45 -0500 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13F0CC0613D6; Tue, 24 Nov 2020 06:53:45 -0800 (PST) Received: by mail-wm1-x341.google.com with SMTP id x13so2200913wmj.1; Tue, 24 Nov 2020 06:53:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=U85Rj/DRPt7jatgyQvBV2N/elTeJi8YB+AB1/+8bH98=; b=BsWfmB+fF8m5306hgWRxHXjKleQcreC92v8fefHpo9f6djstFLrwU6ffb7ajMN1JDI NS+DowqTq3C1G4VABHtnEAPRhTFmdA7s8fty4kY7pauWFqgI7nFnbjD7dtjY3Rik2SIN xs64HE+hVe/Khp4PzxeWMg8F2HRM38WXkdpX447gmp9HElsK68hB+ly7cS6fIilzHE7Q TLAmLWSPuaH3SHAAJxREjliPH6Poeu3/NUGnk9z/dZCWJprpYQ2kasXgxfbxtv07LNdL W4SwiSMPuomApTprge70sAjvjmKF8fGH6Ti7jEeXOQCTJC6TCDt19sHS5oWpku0dNIJ+ pshA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=U85Rj/DRPt7jatgyQvBV2N/elTeJi8YB+AB1/+8bH98=; b=QUGPNJTHfjz3JdAGqcszXRoiEjzFwVOC+d0Hcm5LDSH9FFPmXRIZ0bA9OpHtgfbqCy a9gOwcUflXV2IcOyCvjbNwE43hLSv1flPudAmG2qPY53/tuBBC2tMrBB217FNQcqocDA hKg9RWtIrzes+x8tuDq8hvwv2ucMEzWJ1Gv92HMlajbNBLjQR5bIBqQ55ZazrYpCuMWf CE9wU3IvtiDr5keBKxPdDyeeQnb+mOIxURwEWfA8w5eRpieS7HubHfVqY+hlkziiYH9S rDSF/zlByGu763d7cK4OjGONB3kcg//USex9PIizr/ySSZvu6HIOlPfHHEcSOLoo6MpU HT7A== X-Gm-Message-State: AOAM530oRqy6u2cE7lW4R/oLEuiqm219zKQ95yxiEjjC6ggEFUi0iyeg 9R6kstrAdIairkjGoJzurNw= X-Received: by 2002:a1c:3d05:: with SMTP id k5mr5042689wma.151.1606229623776; Tue, 24 Nov 2020 06:53:43 -0800 (PST) Received: from localhost.localdomain ([87.200.95.144]) by smtp.gmail.com with ESMTPSA id u23sm5749930wmc.32.2020.11.24.06.53.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2020 06:53:42 -0800 (PST) From: Christian Hewitt To: Rob Herring , Mark Rutland , Kevin Hilman , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Christian Hewitt Subject: [PATCH] arm64: dts: meson: add rtc aliases to meson-khadas-vim3.dtsi Date: Tue, 24 Nov 2020 14:53:38 +0000 Message-Id: <20201124145338.17137-1-christianshewitt@gmail.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tweak the node name to make it aliasable, then add aliases for the on-board RTC chip and meson-vrtc timer so they probe as rtc0 and rtc1 respectively. before: VIM3:~ # dmesg | grep rtc [ 3.622530] meson-vrtc ff8000a8.rtc: registered as rtc0 [ 3.622574] meson-vrtc ff8000a8.rtc: setting system clock to 1970-01-01T00:00:03 UTC (3) [ 3.646936] rtc-hym8563 0-0051: no valid clock/calendar values available [ 3.647125] rtc-hym8563 0-0051: registered as rtc1 [ 3.852382] rtc-hym8563 0-0051: no valid clock/calendar values available after: VIM3:~ # dmesg | grep rtc [ 3.583735] meson-vrtc ff8000a8.rtc: registered as rtc1 [ 3.633888] rtc-hym8563 0-0051: no valid clock/calendar values available [ 3.634120] rtc-hym8563 0-0051: registered as rtc0 [ 3.635250] rtc-hym8563 0-0051: no valid clock/calendar values available [ 3.635267] rtc-hym8563 0-0051: hctosys: unable to read the hardware clock [ 3.852632] rtc-hym8563 0-0051: no valid clock/calendar values available Signed-off-by: Christian Hewitt --- arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi index 69e6c03a787c..8f8656262ae7 100644 --- a/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi @@ -14,6 +14,8 @@ aliases { serial0 = &uart_AO; ethernet0 = ðmac; + rtc0 = &rtc; + rtc1 = &vrtc; }; chosen { @@ -333,7 +335,7 @@ #gpio-cells = <2>; }; - rtc@51 { + rtc: rtc@51 { compatible = "haoyu,hym8563"; reg = <0x51>; #clock-cells = <0>; -- 2.17.1