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=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no 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 A00F8C433E6 for ; Thu, 18 Feb 2021 09:59:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5ABF564E5F for ; Thu, 18 Feb 2021 09:59:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232288AbhBRJ6d (ORCPT ); Thu, 18 Feb 2021 04:58:33 -0500 Received: from mail.manjaro.org ([176.9.38.148]:41888 "EHLO mail.manjaro.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230468AbhBRIzE (ORCPT ); Thu, 18 Feb 2021 03:55:04 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id AE9C33E60012; Thu, 18 Feb 2021 09:53:45 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at manjaro.org Received: from mail.manjaro.org ([127.0.0.1]) by localhost (manjaro.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SW9Vy6rv8ZvD; Thu, 18 Feb 2021 09:53:42 +0100 (CET) Subject: Re: [PATCH] clk: sunxi-ng: v3s: add support for variable rate audio pll output To: Tobias Schramm , Maxime Ripard Cc: Michael Turquette , Stephen Boyd , Icenowy Zheng , Chen-Yu Tsai , Jernej Skrabec , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20210212135725.283877-1-t.schramm@manjaro.org> <20210218075835.o43tyarpimrcwbvk@gilmour> <7379a9c3-3578-5cf1-53ed-ace8ff68434b@manjaro.org> From: Tobias Schramm Message-ID: <2e4c479d-0132-2bb8-2bf1-7eec1a8daa08@manjaro.org> Date: Thu, 18 Feb 2021 09:53:39 +0100 MIME-Version: 1.0 In-Reply-To: <7379a9c3-3578-5cf1-53ed-ace8ff68434b@manjaro.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US-large Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Hi Maxime, >> >> It's not really clear to me how that would help. >> >> The closest frequency we can provide for 24.576MHz would be 24580645 Hz, >> with N = 127, M = 31 and P = 4, so it would work with what we have >> already? >> > > As far as I'm aware the multiplier N ranges from 0 to 128 (offset of 1 That should have of course been "from 1 to 128". > from 0 to 127). Thus 24MHz * 128 / 25 / 5 = 24.576MHz. Since this > requires the postdiv to be set to 5 it is not supported yet. > > Cheers, > Tobias