From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,USER_AGENT_NEOMUTT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 207D5C43441 for ; Wed, 28 Nov 2018 10:26:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E547520832 for ; Wed, 28 Nov 2018 10:26:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E547520832 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-clk-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727783AbeK1V1V (ORCPT ); Wed, 28 Nov 2018 16:27:21 -0500 Received: from mail.bootlin.com ([62.4.15.54]:47574 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727616AbeK1V1V (ORCPT ); Wed, 28 Nov 2018 16:27:21 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 827CD207AD; Wed, 28 Nov 2018 11:26:09 +0100 (CET) Received: from localhost (aaubervilliers-681-1-94-205.w90-88.abo.wanadoo.fr [90.88.35.205]) by mail.bootlin.com (Postfix) with ESMTPSA id BFC5520729; Wed, 28 Nov 2018 11:25:50 +0100 (CET) Date: Wed, 28 Nov 2018 11:25:50 +0100 From: Maxime Ripard To: Chen-Yu Tsai Cc: Alexandre Belloni , Alessandro Zummo , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , 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: Re: [PATCH 09/15] clk: sunxi-ng: r40: Force LOSC parent to RTC LOSC output Message-ID: <20181128102550.qsipssx67y3uexsr@flea> References: <20181128093013.24442-1-wens@csie.org> <20181128093013.24442-11-wens@csie.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4n2727vtq662hds4" Content-Disposition: inline In-Reply-To: <20181128093013.24442-11-wens@csie.org> User-Agent: NeoMutt/20180716 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org --4n2727vtq662hds4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 28, 2018 at 05:30:07PM +0800, Chen-Yu Tsai wrote: > 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. >=20 > 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. >=20 > Signed-off-by: Chen-Yu Tsai Acked-by: Maxime Ripard Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --4n2727vtq662hds4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCW/5tLgAKCRDj7w1vZxhR xdunAP0Y7joL0G93OwwarlibBuYYf/c67aUUfM3jUrDo+bBJfQEA4l8rFMX29+K+ BwpOCedKejUv2dqzUeIcx6O19rnVEgc= =vA+0 -----END PGP SIGNATURE----- --4n2727vtq662hds4--