Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3179622rwd; Mon, 29 May 2023 06:53:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5UZJzYePY9zK3hghmHypIzhbwWKjplDl84KSjfOdMtUTRtj33N6GvFNlZmL+zB655meyhh X-Received: by 2002:a17:902:ab91:b0:1a6:b971:faf6 with SMTP id f17-20020a170902ab9100b001a6b971faf6mr9550642plr.35.1685368406799; Mon, 29 May 2023 06:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685368406; cv=none; d=google.com; s=arc-20160816; b=THN6iqtWpzYMZmYqyfvh5acs2tIorlYNftc5rJuUiqxe33LpOWBmoS83lOrwRoqIrH B2Ra97p/y8BKukjIDg9WQAQNs20AB/VHV/7Lv+IZuU8ivyLq4hyO5bPu+IcU+2UtAPAh bMcpIguv3UMzLGcwuIi/dhX+Dlk3SqlPzEy/8bR+J76k3RGDJlpxaqkdUZ3llus8hzJj xktu0vs14KQtZ0gsUuOGwHL+hgK/YFM7ZJF9ito/EnJM9gMjhY9wIYD1RvB8AvismwBh ABjNUKLefbc/jW3lq/8O3QBFs22dUQvK1QPKFU5W6iKnys4st5740tsDaN/zaluCHueo 75zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=THwSTiUgcfU0pN7hOf4QtxshefiF8YvUMoTpottLmWg=; b=QUgwj6SgrVJGplVXKf0iexrFs0DaDfHVjjh3fI+DDlPgKbIyhGUq6MDM9pyhHB6shc M+HiD5xrRgjCH8zoVNMQ/eOTJCIka8G/1re37nHn20pqwH8L4Ioc/m1jvlrJBGMtL2ZZ 8pVoiLAEW77ET/m2t86c9pqOcTWEqpkUuqGsYh+I5ZwwEryjtuiKby/kTbrBEdBYY5H0 lCCsyka0KcJQeKlwun40yKA8CkD5aEBxrWiIUBTt7Hq6ANTN9P16ZQpfOLxz8uy2Qj+j 9Bc1FTaxwYLbZWOXjBYj4YfKYEwHv2FN8hcZUxHAttKrcsw+SIrtEuoH5dNgkhA9KTng GDSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b="mddf9/y8"; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q20-20020a170902e31400b001b053ea9bc0si66456plc.469.2023.05.29.06.53.10; Mon, 29 May 2023 06:53:26 -0700 (PDT) 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=@sberdevices.ru header.s=mail header.b="mddf9/y8"; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229519AbjE2NuB (ORCPT + 99 others); Mon, 29 May 2023 09:50:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229607AbjE2Nt5 (ORCPT ); Mon, 29 May 2023 09:49:57 -0400 Received: from mx.sberdevices.ru (mx.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D591EA7; Mon, 29 May 2023 06:49:53 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mx.sberdevices.ru (Postfix) with ESMTP id 0756D5FD0A; Mon, 29 May 2023 16:49:51 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1685368191; bh=THwSTiUgcfU0pN7hOf4QtxshefiF8YvUMoTpottLmWg=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=mddf9/y8v6hAkp68ikcDPDEEZPFmcm9XfJgm/d/pBwXY7Tnrz9IJCEJl5RorF9lki Ss2Hje9CJuNmumleXd+y9THp7TpXjfmScVhtEKAPtqeh5VlHHWpUKIha7S3OgwMMHo JtcHoeLzZ81xVgpo2CabIB4th5WCdbc9HW6/c4nW4Lihra0ozcL/fJf+OQCwTgOiuC eTW/Noa0ZWB/YB4eTZAGTD7qua/4yoG4g4BlJ72F5BqwnCNSi6x3kOmqBpkJqLdYGc LiC6yZgLICBN8DiAblqAdXsEP19n/RS8RC14rFy1TNPtyOaYQjGMUEA0jmqd34hH/z yNMiW6geR5ZbQ== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mx.sberdevices.ru (Postfix) with ESMTP; Mon, 29 May 2023 16:49:49 +0300 (MSK) Date: Mon, 29 May 2023 16:49:44 +0300 From: Dmitry Rokosov To: Martin Blumenstingl CC: , , , , , , , , , , , , , , Subject: Re: [PATCH v13 4/6] clk: meson: a1: add Amlogic A1 PLL clock controller driver Message-ID: <20230529134944.dh7isqg5ontfbtpa@CAB-WSD-L081021> References: <20230405195927.13487-1-ddrokosov@sberdevices.ru> <20230405195927.13487-5-ddrokosov@sberdevices.ru> <20230425123304.xjmrkraybp2siwdw@CAB-WSD-L081021> <20230511132606.vk52yorf43alwgew@CAB-WSD-L081021> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20220415 X-Originating-IP: [172.16.1.6] X-ClientProxiedBy: S-MS-EXCH01.sberdevices.ru (172.16.1.4) To S-MS-EXCH01.sberdevices.ru (172.16.1.4) X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2023/05/29 07:59:00 #21367693 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, 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 Hello Martin, As I promised before, I'm now back with the vendor's reply regarding AUDDDS. The information is still incomplete, but I have provided the available details below. Please take a look. On Sun, May 14, 2023 at 10:53:53PM +0200, Martin Blumenstingl wrote: > Hi Dmitry. > > On Thu, May 11, 2023 at 3:26 PM Dmitry Rokosov wrote: > [...] > > > If you agree with my statement from above I'll be able to make my > > > original question more specific: > > > Since we know that we have all the required inputs for fixed_pll, > > > sys_pll and hifi_pll - do you know what AUDDDS is and whether it > > > requires any specific clock inputs (other than "fixpll_in" and > > > "hifipll_in")? > > > > > > > To be honest, I have prepared A1 peripherals and A1 PLL drivers based on very > > poor Amlogic datasheets and custom 4.19-based vendor drivers. > > The vendor driver has an AUDDDS clock in the PLL clock part, but it is not > > used anywhere. Unfortunately, as usual, the datasheet doesn't provide any > > information or explanation about what it is. However, the driver has a few > > lines of comments that indicate: > > > > /* > > * aud dds clock is not pll clock, not divider clock, > > * No clock model can describe it. > > * So we regard it as a gate, and the gate ops > > * should realize lonely. > > */ > > > > Additionally, the vendor driver states that AUDDDS has a 49Mhz clock, > > but I do not see any relationship with other clocks (including the exported > > GENCLK). > > Jian did not include it in the first version of the PLL driver, and I have > > decided not to change it either. > > > > I also noticed a few lines of AUDDDS initialization sequences in the vendor > > driver, which may affect CPU clock objects (from my point of view). > > However, they are currently under development, and I will try to figure it > > out with Amlogic support. > > > > > > However, I do not believe this to be a significant issue. The clock DT > > > > bindings are organized to simplify the process of introducing new bindings, > > > > whether public or private. For instance, we may add new bindings to > > > > include/dt-bindings at the end of the list and increase the overall number, > > > > without disrupting the DT bindings ABI (the old numbers will remain > > > > unchanged). > > > Yep, this part is clear to me. I should have been more specific that I > > > was asking about the inputs that are described in the .yaml file, not > > > the clock IDs. > > > > Actually, AUDDDS has an xtal2dds parent clock, and if we need to have > > the AUDDDS clock in the PLL driver, we should add one more link between > > peripherals and PLL drivers. > > > > Let me know if you have any questions. > I have no questions - all I can say is that: > - I like your approach of clarifying details of the AUDDDS clock with Amlogic > - and I fully agree with your conclusion that (depending on what > Amlogic says) we need one more link from the PLL driver to the AUDDDS > clock > > Thank you for your persistence with this series, I'm sure it will pay > off in the long run! AUDDDS is a direct digital synthesizer used as a clock source. It is not used as default. You need to modify some clk registers in dts to enable it. Basically, it is used for audio. In A1 design, you can use AUD DDS as a clock source and it is not necessary. It is not used in the Amlogic default setting. According to the vendor, it is not necessary and is currently disabled by default. While we don't have much information about AUDDDS, the vendor suggests that it's not a commonly used clock object in A1 projects and it may be skipped if not needed. Based on all above information, I suppose we can skip it now. -- Thank you, Dmitry