Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp339189pxm; Wed, 23 Feb 2022 01:15:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTuii9cOdHU+RjyNpczbL9iAABacsk0whZAGexdeR5v40kRCWujuv08ZugThdE/Y+k8NnC X-Received: by 2002:a62:e813:0:b0:4e1:922a:2a6d with SMTP id c19-20020a62e813000000b004e1922a2a6dmr29266728pfi.50.1645607758734; Wed, 23 Feb 2022 01:15:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645607758; cv=none; d=google.com; s=arc-20160816; b=uScMpw5zSGUN5TY9pi+VcXo3QnktInQNI5nXgmRhcOivyBzWCNwsqaRwFYv0KLVPGZ XcPCJZPzzzDJB8yR0j3l0Kb2NWWCzrxRCRsCubX8Mal5CcTC20nww+4WQ8PtjRPWphYC +oz54eCdJico7vGWP4ibiDJ6xF10QQpnoZx1bwvD5yKtFoaQJOKHHGTpZ1bFKXkeyO6h yxtEqjIFbd4svWtP3g3FAlRn9LZ7+qqPNTGDo2HC6QEiixkFsFeAO40++xp7c+uC2mda 86j5U94XnzRTqTdIL7/dcAZT9rqRDU0fQvbXMjS39DudvTHk3G0rAcghS428h85BPMJo /E7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=JCqBgtNrf0VbGBX+MXj8hMt+8kzvUy1V9drTUch1PIs=; b=lGdkoW0mFc8/lYLzN87mKuGSjpOQdT1u9AQYvb9icOBEJ6z12n7I/0asz/ToDc5Gd3 UuWGc1zwj19Vquyc6Ll8RWbYECw3GrRkWJ6XB4VIlRaliDwfm2Fm26ZwlaFpHve6CE/e 6oHd8aoRVsLQ36TcNGiZApg/fNDZon01CUsnAfyYbKSjJMlcD7mDgwnniJkhclKNIvOJ tS6a2896mzeNYHEo3wltueYT0O/fwrsOER2idSEGrSZqQuTaegPmQipiNURfRPF/nLIi NUvg0o8dPPhtziCW0XJdVxZSq3KzV72GuFjXkrAAMwOhl5wVlISqaP8f85z9lX5QgwIR aShw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=GRA1Na8S; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=aXtb9lFD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t7si5034331pfh.276.2022.02.23.01.15.43; Wed, 23 Feb 2022 01:15:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=GRA1Na8S; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=aXtb9lFD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237848AbiBWD25 (ORCPT + 99 others); Tue, 22 Feb 2022 22:28:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230404AbiBWD24 (ORCPT ); Tue, 22 Feb 2022 22:28:56 -0500 Received: from new3-smtp.messagingengine.com (new3-smtp.messagingengine.com [66.111.4.229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE9613584A; Tue, 22 Feb 2022 19:28:27 -0800 (PST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id 584A1580155; Tue, 22 Feb 2022 22:28:27 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 22 Feb 2022 22:28:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; bh=JCqBgtNrf0VbGB X+MXj8hMt+8kzvUy1V9drTUch1PIs=; b=GRA1Na8SRlnu6vXXEtILV4NHpyAH7W 6WFMOU8GWAQg8hQrP2W1N5r7AtIvHtih9brwtIpXVXtJdJIYYQasI9ewCGennSzf C/txPce6CyOdrtAXfgcYDeusKVEXk+ErM/XrPDQR1x22UlnGSdg1XoOAzGhqxhi+ hHGr/difWEtpYlTQYK/z0A0XBn37/zSM9C6VRTElAAPj4eaBf2gY+SB9fKvrhwK9 846CCLE4deqJTons7yhCTKDFYfO5yYcJqcPWN8GYJLqVpe2Nef+L1dPwJzKQezAf U+a4abS3yfZbr6yt3QzRjeY2kvFmCbjqHUgG0wA1WU11qw/1QBFIq6cA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=JCqBgtNrf0VbGBX+MXj8hMt+8kzvUy1V9drTUch1P Is=; b=aXtb9lFDfLKP2er/8eZkqMaZq+S8iiOcW8h6tlYrS7+gCvqKO5pyj31bT ffnGu70hMWPKSTnYlbGczEb0JtVWhQeo4RgiiN7dvp0DJZJu+/qF0Olavhao6yYb Sl8JgfTZsCWUdkSoGJ5KzOk2czNZSPQlfM2Xv/2HgknFW2GRJt9+xiSw4dcCjuaA HvMt+9BJo2il2hOWy4MCLVDrC4mdB5UKZhySCRpz7zHmFWS/jhkibdfwtq7iazpN dQ3x3Mbjr1EbOiN0zqRAlMgTXAavTxyAdrMuPc4fBsVe9+cOIlLuDGqckcM+jxWD Yy2XngbmicwpLTNrD9j1CCn0baVvA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrkeelgdehkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpefgveffteelheffjeeukedvkedviedtheevgeefkeehueeiieeuteeu gfettdeggeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 22 Feb 2022 22:28:26 -0500 (EST) Subject: Re: [PATCH v10 02/18] clk: sunxi-ng: h616: Add PLL derived 32KHz clock To: Andre Przywara , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec Cc: Rob Herring , Ondrej Jirman , Icenowy Zheng , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org References: <20220211122643.1343315-1-andre.przywara@arm.com> <20220211122643.1343315-3-andre.przywara@arm.com> From: Samuel Holland Message-ID: <6a70f0fc-ddaf-b9f7-8b04-4544e399c45f@sholland.org> Date: Tue, 22 Feb 2022 21:28:25 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20220211122643.1343315-3-andre.przywara@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/11/22 6:26 AM, Andre Przywara wrote: > The RTC section of the H616 manual mentions in a half-sentence the > existence of a clock "32K divided by PLL_PERI(2X)". This is used as > one of the possible inputs for the mux that selects the clock for the > 32 KHz fanout pad. On the H616 this is routed to pin PG10, and some > boards use that clock output to compensate for a missing 32KHz crystal. > On the OrangePi Zero2 this is for instance connected to the LPO pin of > the WiFi/BT chip. > The new RTC clock binding requires this clock to be named as one input > clock, so we need to expose this to the DT. In contrast to the D1 SoC > there does not seem to be a gate for this clock, so just use a fixed > divider clock, using a newly assigned clock number. > > Signed-off-by: Andre Przywara Reviewed-by: Samuel Holland