Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3288703imu; Thu, 29 Nov 2018 19:58:29 -0800 (PST) X-Google-Smtp-Source: AFSGD/UKDjRFZDPJefUBvBIV7cUPSPn5NpUURA8gQxcpN4fnKnGQ3sMAb5U6u8g/4169oztbwUi2 X-Received: by 2002:a17:902:2d81:: with SMTP id p1-v6mr4015232plb.97.1543550309540; Thu, 29 Nov 2018 19:58:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543550309; cv=none; d=google.com; s=arc-20160816; b=ROjqpGpX4ifm/dXhl9ukHaNaNJYtll1z/EJicL79C9Dg404M4FdvQl78OF9zsMmZwf DQjJcVBxT3Hvq+BNMzU3InBRDDlTEdgzvdmGkHkQHRt7++9wGWxDIa8YU8aGTQYUOUNM WBCFPZeNagdF0zHr7LDML5r8HyINpVUrzu6iQqR73rVbnWD+C1T1Sck/QZPUMHk60ew/ ySl7QqUgYfIfHPwXkQa6QczriaUu4WYyDm9nw0DT/daZpyD53h/i/1ZGQeg8D7B64EH4 WPTpzwmyzxCWkI9eC+DAuiSWsHNz8l0/khSAcqbv/WIiubIw0f6i4Fxx6qgDFMwIJ9Zu VucQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=rtVlvmxu/HbPwX1djWwZgBZo6Exl0kkMIvLIu0XvI7s=; b=WslE+xpQ6IYlOy03XZbslBIQXPCt8+Zt2djDiQGR+qgVnndg0lbO3jUqCXBVYoaqzX aTMCXKAy7E/219o2qZ+OH6u8brkn5KNqOQYhj4EFH5jo7pndP7YhnEDPKoc0DQHp1tr2 /ogMo/ymxy296RWRsK98KTkLMHw/Fr7pxSnfJgubHs1tbn7t08qSYHvo2r9jDZ/0juQj q6yi6x9FcNPwOOWhrGVqQHG3OGUWpI4y6CWeRF2mVDUAwepqe2OQ7k9dR1BUe2hCACMe GI9Q0tvCizFfHArZENshCEUUiv6UObe5P0v9sJ5rZlyFlOFt2eaDFf0WLzdQjICAnoFP 4pkw== 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 y21si3670417pga.192.2018.11.29.19.58.14; Thu, 29 Nov 2018 19:58:29 -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 S1726744AbeK3PDz (ORCPT + 99 others); Fri, 30 Nov 2018 10:03:55 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:43918 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726161AbeK3PDz (ORCPT ); Fri, 30 Nov 2018 10:03:55 -0500 Received: by mail-ed1-f68.google.com with SMTP id f4so3692494edq.10; Thu, 29 Nov 2018 19:56:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rtVlvmxu/HbPwX1djWwZgBZo6Exl0kkMIvLIu0XvI7s=; b=KLuqeSPYh6s8nqp6VO0Jst4pLFmzIpFxQXa3BVz1nJx8F3A953vqPfIN1r9JltgdMN IMCYRsP9Fe5PazMQhdcwEjDA1Zcn6y1rpDzIsJX1WXcE0yJ+QMlEmLvpRJNKKYZ4go/1 8WQMlfqyVpFiXf4/WH0YG8QPmcxjCNJgDE96gdxLGF1GJRQJ7p2avlfK6K6sT8FRBiGy nRK+JVcTjFJ9IeH6UketjgOE3QN/6dfgXOPeqWiRbtguT/AdQWGPaFdOx7b5dukQf3Jl jxdIkzU5OrB8HB9Ve3lcVhXAo20KwgJGLnZSi6WCDDQHpZ+f0iYCHWy5XFTlbFHdPw2X buUQ== X-Gm-Message-State: AA+aEWaoBEWHpJ0+QtayLU0d+2JGatBj4h2EJUSJNO4JF9CDmFsX4xt9 da8qglUq1ld3Qh6fE5kJ+XowAp1j+1M= X-Received: by 2002:a50:bb08:: with SMTP id y8mr3884467ede.10.1543550159225; Thu, 29 Nov 2018 19:55:59 -0800 (PST) Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com. [209.85.128.49]) by smtp.gmail.com with ESMTPSA id f35sm1091926edd.80.2018.11.29.19.55.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Nov 2018 19:55:58 -0800 (PST) Received: by mail-wm1-f49.google.com with SMTP id g67so4281198wmd.2; Thu, 29 Nov 2018 19:55:58 -0800 (PST) X-Received: by 2002:a1c:2382:: with SMTP id j124mr3896642wmj.14.1543550158329; Thu, 29 Nov 2018 19:55:58 -0800 (PST) MIME-Version: 1.0 References: <20181128093013.24442-1-wens@csie.org> <20181128093013.24442-11-wens@csie.org> <154344054442.88331.8887745218976145062@swboyd.mtv.corp.google.com> In-Reply-To: <154344054442.88331.8887745218976145062@swboyd.mtv.corp.google.com> From: Chen-Yu Tsai Date: Fri, 30 Nov 2018 11:55:44 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 09/15] clk: sunxi-ng: r40: Force LOSC parent to RTC LOSC output To: Maxime Ripard Cc: Stephen Boyd , Alessandro Zummo , alexandre.belloni@bootlin.com, Mark Rutland , Mike Turquette , Rob Herring , linux-arm-kernel , linux-rtc@vger.kernel.org, linux-clk , devicetree , linux-kernel , linux-sunxi@googlegroups.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 29, 2018 at 5:29 AM Stephen Boyd wrote: > > 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 Merged with acks from Maxime and Stephen.