Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp920767imu; Wed, 28 Nov 2018 01:32:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/VWF0yBr782WkSrYrZeR9wPLCH5hD2cnQHcRfzrABjFG4uDswi0ecNG+rWElLoeNEQoVT7c X-Received: by 2002:a62:2702:: with SMTP id n2mr2441840pfn.29.1543397539186; Wed, 28 Nov 2018 01:32:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543397539; cv=none; d=google.com; s=arc-20160816; b=PnmTd0ARYiRELqJrSG94wmS7L0Rk3+ZjEmIsgUEILxI4t+3V2xhNwgDcne7BeTUiTK SIiCsCL1QEZCA2AjAm4wfcGP7irnf4lQKw1hrvMvWoXZN83SUiQnCK/wO3YRM8lj2FIy zUIRXhucV5jB6cMaG8RgwvKX8lLNLFDk9HE9S5/VTdUejJxvlFiuQgbk4kSWjXlFlWlK qRbDmlaHsYX6mVZrWstBqHdNqNDUL3M7bPOkFOTcnNa7bj35DHFTg3dl/ATbgMIVrYuZ bjxNnqbHFk2bKV+dxEQQLjpsS9eDJ3kbep/TcJ5x87um5UwpyWe6ByNRra0Mjq85YKKF b7zA== 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=FKvZ4hLqn7eHLu3VvCcBBEJ5pe+Pgei1uCvG2+E/7AI=; b=GYou3agxAcsyuARyTjabMbFLzbrZGFdsFFmY8qp8bDyHSM0FLRA4g3wU5Llpc3IEDd tbtFLv+jMWjHt826zamvj90KIccbo5Oi0SgknepweGDAYvdeQ40RBINmaiFpSQGE0EqD ttLp0H4dIBas1JLPSpxQBtm1ZJnx4FmcmL+j+yJ205ESohRUYH/Q3G0241O59EFU8SYB 6t10+OSpQU9PH70DJ8X5r1cogwwPm8bo6lilt1vlco/C9XbSGoWa62M/68ILVG6S+HdV OPpXXMd9wkkhmvXyPiF9t9Crdsfa1DEQLrUSBaqE6HZpHTDDqyPSkNI4+LTL2eyYzkct S6/A== 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 p3si6416059plr.376.2018.11.28.01.32.04; Wed, 28 Nov 2018 01:32:19 -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 S1728322AbeK1Ubi (ORCPT + 99 others); Wed, 28 Nov 2018 15:31:38 -0500 Received: from mirror2.csie.ntu.edu.tw ([140.112.30.76]:49290 "EHLO wens.csie.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728222AbeK1Ubh (ORCPT ); Wed, 28 Nov 2018 15:31:37 -0500 Received: by wens.csie.org (Postfix, from userid 1000) id A8B4F60553; 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 14/15] ARM: dts: sun8i: r40: Add RTC device node Date: Wed, 28 Nov 2018 17:30:12 +0800 Message-Id: <20181128093013.24442-16-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 R40 has an RTC hardware block, which has additional registers that are not related to RTC or clock functions, and is otherwise compatible with the H3's RTC. Add a device node for it, and fix up any references to the LOSC. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-r40.dtsi | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-r40.dtsi b/arch/arm/boot/dts/sun8i-r40.dtsi index a8917f8b1c80..89762dbefe42 100644 --- a/arch/arm/boot/dts/sun8i-r40.dtsi +++ b/arch/arm/boot/dts/sun8i-r40.dtsi @@ -70,7 +70,7 @@ compatible = "fixed-clock"; clock-frequency = <32768>; clock-accuracy = <20000>; - clock-output-names = "osc32k"; + clock-output-names = "ext-osc32k"; }; }; @@ -315,17 +315,27 @@ ccu: clock@1c20000 { compatible = "allwinner,sun8i-r40-ccu"; reg = <0x01c20000 0x400>; - clocks = <&osc24M>, <&osc32k>; + clocks = <&osc24M>, <&rtc 0>; clock-names = "hosc", "losc"; #clock-cells = <1>; #reset-cells = <1>; }; + rtc: rtc@1c20400 { + compatible = "allwinner,sun8i-r40-rtc", + "allwinner,sun8i-h3-rtc"; + reg = <0x01c20400 0x400>; + interrupts = ; + clock-output-names = "osc32k", "osc32k-out"; + clocks = <&osc32k>; + #clock-cells = <1>; + }; + pio: pinctrl@1c20800 { compatible = "allwinner,sun8i-r40-pinctrl"; reg = <0x01c20800 0x400>; interrupts = ; - clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&osc32k>; + clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&rtc 0>; clock-names = "apb", "hosc", "losc"; gpio-controller; interrupt-controller; -- 2.20.0.rc1