Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp966745imu; Wed, 28 Nov 2018 02:27:01 -0800 (PST) X-Google-Smtp-Source: AJdET5dPgBUdhRDw8pIhv3jenPlg+dOU1FsukcF5UhoexG7ScZFrR3pVipCdfLRav75u93l+wmzv X-Received: by 2002:a62:7e13:: with SMTP id z19mr36774885pfc.94.1543400821428; Wed, 28 Nov 2018 02:27:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543400821; cv=none; d=google.com; s=arc-20160816; b=sVFdwws+E+GkHZZxSExQSU1yyt6b4zJdEfFLkcrd/UbOt4/JK01j4xv8z40PjgKX9w BCZ0StY2t9tuZsgjJKCC4RRdC5OOG2c+lZdNxQq7f2FnMdZerlSIwtKFGWZ6TZKdYD7K newtXLkSK6Mxlk+0LDfONEo47K2GSu9QJV39mATKeoz+vXRb5kJy1vvfMeKv7kP8cCsi 0sZ78C+tpvA7n9MOTAxWo3kNWbj+TgpbCyxaL79J7nslf69ysTmb4qeAcFGxUKaGXdIc g20svM7bbuP93ega1AVMiQ3JoexMfOsXUArD8zNiLwAeW4fsdd6pg0/GWJPTsSue4Dtv +sYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=s+95TjVYQMOhM2T3kidTm5J4YWqIWF5d5LZoeKt+jYE=; b=lwWzuY5KbfOua6/Wtf8l2kXFfoaGUMWJcudQLKqIjD24wq1AyLbZ/BhAsXMbmxGIzX kBHZMN4xkuSEmpfXotpox2AW+tF2Wyhq7dJKLXgvRm/UvdSlCN4S4lbn2J5sXHW1VeBb JVy8bSC2+tHq3uz5oswvCShRzz0x+j4ECw99wKf14gAPtVGbvSpKNIL5nhQQduiN7XgC NaQh5QskcFf7pM7xrcm65zP0ZaRiAU6fW0L5deZMGAPo2twk5KNZ+BmTRhkM957Qeudu 2Isiz+yduTJ6tFaoT5fS7EW1M8JkXLvVxKvx5r+2rBGtN0dya6RHB/zvJ3pSDxSeddmO wVTw== 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 r39si7127745pld.434.2018.11.28.02.26.46; Wed, 28 Nov 2018 02:27:01 -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 S1727858AbeK1V1V (ORCPT + 99 others); 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) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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--