Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp383966yba; Fri, 12 Apr 2019 05:40:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDZ1yiEzoB6IqKXAj1dwz79MNlF6CnECriGISbTTdr1inmtKpTWRJyGm5DV5BB5xvZULtO X-Received: by 2002:a63:525f:: with SMTP id s31mr52979274pgl.172.1555072838542; Fri, 12 Apr 2019 05:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555072838; cv=none; d=google.com; s=arc-20160816; b=PtHmsP+vltQaRdLs3ZnISrg39WEpF8kOp2On9CSyvujoa4x4xmwwBf/J0yl/YQmIOE ndCr+MnXfHuwhVMe2skj3UxzJIxr1bFMnnyUdzf4senlQYHe+gejjhj1lPMnZ9X6FaYC pX/0ed/eMAQxeBRFXnjA3tLyWOLZEoqkSqlLUQ569ZEgPQEAG4Or1Q6u7qfj6ZSllh35 k6xx6jUSdryj2Oweq598wRAPe5dtPuRaIYh76N4ubeiVGRZFx+VdMTJeYizCnVt+3ys8 wDyCi5leX1BeUi6+Aritbb0a6XYxZoF/u/PO8fV6gqw06Zuue8RMx91B/MuZ/tnxsyNs ucrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=BiLtpUdYv/oVl/iybiqXWevxukUf7707zIXs81Oin9M=; b=jEBoSpPxuTNSOz3F2g6DYF2wNzob6BrXP8bkw6KD3Bbe02GzDJL3xqygs4KVx7t6/l YFHZCHfN0wTmo+MsWYRJmwMMkQMQ//ldhb+HqFQFdxm38zTgVuhgqQGy/M7m5ierDqXl Q39ja9r3DGNNtO8FkrneUomz8hnr3agO8uJGJNgJ2d3BQkN4UnXkMF1o5Gto4Dt+tZwl SsIog+iVXoVuPkCY182Sn5MovlV+PZl8DKIdItOIazE2+jiJp3iTTmAGPj153e+vHA8e PkrRwxSYf+K50KeToTkvLHjmve1kzTzHwjl7fw7xvfesCoBbkG/3rOTWIb0hf849OCBX qBOA== 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 a3si37890660pfc.276.2019.04.12.05.40.22; Fri, 12 Apr 2019 05:40:38 -0700 (PDT) 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 S1727831AbfDLMjm convert rfc822-to-8bit (ORCPT + 99 others); Fri, 12 Apr 2019 08:39:42 -0400 Received: from gloria.sntech.de ([185.11.138.130]:39918 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726843AbfDLMjl (ORCPT ); Fri, 12 Apr 2019 08:39:41 -0400 Received: from ip5f5a6320.dynamic.kabel-deutschland.de ([95.90.99.32] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hEvSw-0005aO-ET; Fri, 12 Apr 2019 14:39:34 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Christoph =?ISO-8859-1?Q?M=FCllner?= Cc: Elaine Zhang , mturquette@baylibre.com, sboyd@kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, xxx@rock-chips.com, xf@rock-chips.com, huangtao@rock-chips.com, Finley Xiao Subject: Re: [PATCH v1 1/6] clk: rockchip: Add supprot to limit input rate for fractional divider Date: Fri, 12 Apr 2019 14:39:33 +0200 Message-ID: <2068630.7I2iUbhqZj@diego> In-Reply-To: <0e47770b-fa20-74f9-8548-c07aebdcaa53@theobroma-systems.com> References: <1554284549-24916-1-git-send-email-zhangqing@rock-chips.com> <3395739.hcHkC3K37q@diego> <0e47770b-fa20-74f9-8548-c07aebdcaa53@theobroma-systems.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Freitag, 12. April 2019, 14:32:08 CEST schrieb Christoph M?llner: > > On 12.04.19 14:21, Heiko St?bner wrote: > > Hi Christoph, > > > > Am Freitag, 12. April 2019, 14:12:52 CEST schrieb Christoph M?llner: > >> On 12.04.19 13:52, Heiko St?bner wrote: > >>> Am Mittwoch, 3. April 2019, 11:42:24 CEST schrieb Elaine Zhang: > >>>> From: Finley Xiao > >>>> > >>>> From Rockchips fractional divider usage, some clocks can be generated > >>>> by fractional divider, but the input clock frequency of fractional > >>>> divider should be less than a specified value. > >>>> > >>>> Signed-off-by: Finley Xiao > >>>> Signed-off-by: Elaine Zhang > >>> > >>> can you tell me where these maximum input values come from? > >>> > >>> I talked to Christoph from Theobroma (Cc'ed) last week and he mentioned > >>> that they're using the fractional divider with a higher input frequency > >>> to create a very specific frequency [some details are gone from my memory > >>> though] they can't get otherwise. > >>> > >>> So I really don't want to break their working setup by introducing barriers > >>> that are not strictly necessary. > >>> > >>> @Christoph: can you describe the bits from your fractional setup that > >>> I've forgotten please? > >> > >> We need to set the I2S0 clock to 24.56 MHz. > >> > >> When restricting the input frequency to a maximum of 600 Mhz, > >> we could use the integer divider to get 400 Mhz (dividing by 2). > >> However, with the 400 Mhz as input to the frac divider, > >> we run into the problem, that the maximum possible output frequency > >> is 20 MHz (there is another restriction which states that the > >> fraction input : output frequency must be >= 20). > > > > just for clarification, what is the current input frequency you > > already use sucessfully? > > Our working setup uses the integer divider to reduce to 400 MHz > and uses the frac divider to get something near 24.56 MHz. > I have to admit I have never measured what's on the clock line. Ah ok, so the 600MHz input maximum is ok for your setup and the "< 20" ratio is the question. I thought I remembered you using a higher than 600MHz input rate. [bad memory on my side]