Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp921204imu; Wed, 28 Nov 2018 01:32:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/WFjvqU39Bx3si9atoOTti/ReONB8I8WfFJWSEac0dl6Wrx9PKbQ+ivcD/bGc5gkjExoyzg X-Received: by 2002:a17:902:6f09:: with SMTP id w9mr37136859plk.309.1543397568826; Wed, 28 Nov 2018 01:32:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543397568; cv=none; d=google.com; s=arc-20160816; b=ed1gkgQfJ2TYK+J2mC71KFf8y+qdtbn8EQ0VTUNJm6GxCPD/7wOhtOXYVqUYDdFLMk 1sW+pvRRIcpH5F0ipiYp0/x2tGO8WK+ESvCESjgcFBH7EiDlpIalga7yr8fMSOaZeBNw rPvY1zSqnhyBl/tUfLDiswyY+BdOXJr09szce4vHfxEre9fWnCgosDGdMFNQ5JtXCe3Q p0p3/AlhGE9GeUw2GHy2tzVxUTO6D3eRmuGFno51M+3w9iEqgQsEZ5648cRXY77W4Nj4 zxu7TGs/wCh971K/Fi588jWLlovprqh32KpMDVETOx4djA8IHWOU9xh4FCMT+oJ14sJP vkFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=sLXrdCpotGsNb70OH3GynSGGuvQUlV3K2D4n7IIGq88=; b=V4UlF63snPTtYKr+KbPZjIPpqRseuVrQUBRQttmiSjLzcUKcWL5xuOsxQ7G5XKX+wZ X5Vu+cA57K67XU/P9lXIMLgnyosXkK1/prBFylF6Fk9qUeV6PdJKGiDbOyqr/t06l/Gd wcU5FbROsBUfKEFJ+3gmoSnu4//e6W0bQiANSKwqa0QJAypgR8y7WacwYSpOsO4vj2TB +0E3i9T6g3YL9FCbypf1S1Un7rSjgx75YMUksHkK+b3Wat8kBhPIsmIvkTOf8e/SnDDe xjkRTZWiynArerJG+SBXfrD8SIKcsaEGoQ+qG9A5H0X+vgHDkzWGYg1iHVV3FAWST79F 5Jlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p4si6432673pgm.342.2018.11.28.01.32.34; Wed, 28 Nov 2018 01:32:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728340AbeK1Ubk (ORCPT + 99 others); Wed, 28 Nov 2018 15:31:40 -0500 Received: from mirror2.csie.ntu.edu.tw ([140.112.30.76]:49330 "EHLO wens.csie.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728164AbeK1Ubi (ORCPT ); Wed, 28 Nov 2018 15:31:38 -0500 Received: by wens.csie.org (Postfix, from userid 1000) id B287B60560; Wed, 28 Nov 2018 17:30:28 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Alexandre Belloni , Alessandro Zummo , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland Cc: Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 15/15] arm64: dts: allwinner: a64: Fix up RTC device node and clock references Date: Wed, 28 Nov 2018 17:30:13 +0800 Message-Id: <20181128093013.24442-17-wens@csie.org> X-Mailer: git-send-email 2.20.0.rc1 In-Reply-To: <20181128093013.24442-1-wens@csie.org> References: <20181128093013.24442-1-wens@csie.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The RTC module on the A64 was claimed to be the same as on the A31, when in fact it is not. It is actually compatible to the H3's RTC. The A64's RTC has some extra crypto-related registers which the H3's does not, but the exact function of these is not clear. This patch fixes the compatible string and clock properties to conform to the updated bindings. The device node for the internal oscillator is removed, as it is internalized into the RTC device. Clock references to the IOSC and LOSC are also fixed. Signed-off-by: Chen-Yu Tsai --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 384c417cb7a2..a729dcc63038 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -139,15 +139,7 @@ #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <32768>; - clock-output-names = "osc32k"; - }; - - iosc: internal-osc-clk { - #clock-cells = <0>; - compatible = "fixed-clock"; - clock-frequency = <16000000>; - clock-accuracy = <300000000>; - clock-output-names = "iosc"; + clock-output-names = "ext-osc32k"; }; psci { @@ -514,7 +506,7 @@ ccu: clock@1c20000 { compatible = "allwinner,sun50i-a64-ccu"; reg = <0x01c20000 0x400>; - clocks = <&osc24M>, <&osc32k>; + clocks = <&osc24M>, <&rtc 0>; clock-names = "hosc", "losc"; #clock-cells = <1>; #reset-cells = <1>; @@ -944,11 +936,12 @@ }; rtc: rtc@1f00000 { - compatible = "allwinner,sun6i-a31-rtc"; - reg = <0x01f00000 0x54>; + compatible = "allwinner,sun50i-a64-rtc", + "allwinner,sun8i-h3-rtc"; + reg = <0x01f00000 0x400>; interrupts = , ; - clock-output-names = "rtc-osc32k", "rtc-osc32k-out"; + clock-output-names = "osc32k", "osc32k-out", "iosc"; clocks = <&osc32k>; #clock-cells = <1>; }; @@ -965,8 +958,7 @@ r_ccu: clock@1f01400 { compatible = "allwinner,sun50i-a64-r-ccu"; reg = <0x01f01400 0x100>; - clocks = <&osc24M>, <&osc32k>, <&iosc>, - <&ccu 11>; + clocks = <&osc24M>, <&rtc 0>, <&rtc 2>, <&ccu 11>; clock-names = "hosc", "losc", "iosc", "pll-periph"; #clock-cells = <1>; #reset-cells = <1>; -- 2.20.0.rc1