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 60338C433DB for ; Thu, 18 Feb 2021 09:59:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 14D1A64DDA for ; Thu, 18 Feb 2021 09:59:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230377AbhBRJ4x (ORCPT ); Thu, 18 Feb 2021 04:56:53 -0500 Received: from mail.manjaro.org ([176.9.38.148]:41358 "EHLO mail.manjaro.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231277AbhBRIxB (ORCPT ); Thu, 18 Feb 2021 03:53:01 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.manjaro.org (Postfix) with ESMTP id AD8283E60018; Thu, 18 Feb 2021 09:52:00 +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 HKvwoosvfVV0; Thu, 18 Feb 2021 09:51:58 +0100 (CET) Subject: Re: [PATCH] clk: sunxi-ng: v3s: add support for variable rate audio pll output To: Maxime Ripard , Tobias Schramm 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> From: Tobias Schramm Message-ID: <7379a9c3-3578-5cf1-53ed-ace8ff68434b@manjaro.org> Date: Thu, 18 Feb 2021 09:51:54 +0100 MIME-Version: 1.0 In-Reply-To: <20210218075835.o43tyarpimrcwbvk@gilmour> 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 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