Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1689678imu; Wed, 28 Nov 2018 13:30:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/U+jtmjn3k7JxmVCli8rWsfTLJCGWYBkkCtYwGg5EjZCpH7EhX76HvEddQa6bQd80Qsx8Dl X-Received: by 2002:a17:902:8484:: with SMTP id c4mr37631847plo.59.1543440625816; Wed, 28 Nov 2018 13:30:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543440625; cv=none; d=google.com; s=arc-20160816; b=eeDM8HLZmtZhh5cPiU9OuXNINRMGi2vUJGuAoDfYqsxmzao77gtZMnV+/B7aSBUuD9 HB8opxu729cW52n4Y/IEWzd7t7ieeccRtQCZfTBfxxcO4KmVMr8bXBBy2/FzMqNWdQ5V 7mA5x0xgUCIejtpAznn0Zuo00OruQBiesPAW0EYolZEhqUFZLN92SQpvu+9H+d89n5WJ GZuDnsJvVyqHilYoBsRkQ7mhyj7gB0RJDN5U2Q7eUMWmArGN/GQx+wgmW9kzD1S0vW93 u8GJafWqIQ4hxDx2xx8dvFVLGxThJFshaW06l2kOItNKJFha+Pi3cPMIJlSoJBAB2QBB cBTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature; bh=+ePQ1+C+CiT7J2d8VmYN8mgSP5fwmIIfMuINI/pWZfA=; b=msxZPu+PhHndmuyQKsFIE1WpayAlSUa91JNkymEmQtGlkytTtp8BlQ61YG9+j5hNyf NbOfugkQJhEDMphIddAqpD59iVsyT/UEUdRf5aOnbJ19pMQnWkfTArjz/+/KKuENZJ8q gP4pFA0dFNPquJbXRv6V6h4U5HpPNNtftl5+L4+bo5fVVNvtB7fRachuN+HzhXHbpYrl GEKizL4/EwPX/Loe2N9J1rg3zILzOircD23PlbBZt6Fwddjv9uD9uk377Ex4+jnDMrQv 8LN8BGry41SEfoc6QkFqOnK065gTVEfF2TwSESphDoWsmFVtCahlVMnK05fOsgTsJ8rz H56Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=S1M6fi2B; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c17si9301931pfb.81.2018.11.28.13.30.10; Wed, 28 Nov 2018 13:30:25 -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; dkim=pass header.i=@kernel.org header.s=default header.b=S1M6fi2B; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726511AbeK2IcF (ORCPT + 99 others); Thu, 29 Nov 2018 03:32:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:42906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726283AbeK2IcF (ORCPT ); Thu, 29 Nov 2018 03:32:05 -0500 Received: from localhost (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1DC962081B; Wed, 28 Nov 2018 21:29:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543440545; bh=+ePQ1+C+CiT7J2d8VmYN8mgSP5fwmIIfMuINI/pWZfA=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=S1M6fi2BH+Yhgck29Td8JWPTWoJ35SJFs3w7jSr/fgaJwFH24KzUsQPAOKNOYTq8o oeIk5f0/yC8JMaTEyIdc8HJGs0zmZoIc1F3DjE/81jJxEWyhruuQX8OfYjWrdnB6zj 3bjm02M8mon+r8Ppn2JWv+/hIykLqcFHT2G5lYpM= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Alessandro Zummo , Alexandre Belloni , Chen-Yu Tsai , Mark Rutland , Maxime Ripard , Michael Turquette , Rob Herring From: Stephen Boyd In-Reply-To: <20181128093013.24442-11-wens@csie.org> 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 References: <20181128093013.24442-1-wens@csie.org> <20181128093013.24442-11-wens@csie.org> Message-ID: <154344054442.88331.8887745218976145062@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH 09/15] clk: sunxi-ng: r40: Force LOSC parent to RTC LOSC output Date: Wed, 28 Nov 2018 13:29:04 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Chen-Yu Tsai (2018-11-28 01:30:07) > On the R40, in addition to a mux between the RTC's own RC oscillator and > an external 32768 Hz crystal, which are muxed inside the RTC module, the > CCU also has its own RC oscillator, which runs at around 2 MHz, and can > be muxed with the LOSC output from the RTC. This muxed output is called > "SYS 32K" in the module clock diagram, but otherwise referred to as the > LOSC throughout the CCU documentation. > = > The RC oscillator is not very accurate, even though it has an undocumented > calibration function. We really want a precise clock at 32768 Hz, > instead of something at around 32 KHz. This patch forces the SYS 32K > clock to use the RTC output as its parent, and doesn't bother > registering the internal oscillator nor a clock mux. > = > Signed-off-by: Chen-Yu Tsai > --- Acked-by: Stephen Boyd