Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4833900rwr; Sun, 23 Apr 2023 14:37:17 -0700 (PDT) X-Google-Smtp-Source: AKy350YDz9xg/7UGdWw4wcl0+AM/pG/XILoHAxLmbDBSlA2iCR5BspyggxK6WAarQZ9jJfMMs8Ko X-Received: by 2002:a17:902:b495:b0:1a6:dc4a:b8f8 with SMTP id y21-20020a170902b49500b001a6dc4ab8f8mr10747683plr.38.1682285837633; Sun, 23 Apr 2023 14:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682285837; cv=none; d=google.com; s=arc-20160816; b=rQv5Yp46rOW1MAzFeAetwCNg5zUS+KjuJDNeV8KMDKP2OeJADo4AKY9cSXo8w8eU0H Jy5MEgbK7j2ghYSOP21X/LZ5MQsnyYvF4E0z35HHrraMuKyIXCW6HeR4Nfa5JPYd4jim Ou5UiPntKf4zK9R/u9CrimdC7smY+rxtCTina3mvL3qTx1xym0TZBZOMajq6TSlp7mhd z+h2uqOxWrSdxqme0vRPnH3a1BWQxUnsHSgKbuHE7ol4+vSCAfRRYNLszFAqxPHBIPbB w92bwevbjffi1k78QjGskIXuBl6+FHiqNGY+uPvXJQNOJCAWJVtYsh5n6R5ssLJH4Lci drLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=rRKnMw4QG50vnSFwd6Sq3W6Jkn3ZJ2yur8UiF0FgUbM=; b=TX4NVwi0PmRx4v1mlnhFmfBYO/CNH3epPbaBvAC6dz9En7G5lqhbLXgogWqdVMxsWM G9+HtNqM5MX8bbgUWlti57wTOlkzfiHu4MR5BgiHQFq9m86nMawNmXrhg1Ay2B0x6MFq 9lGP0/fT+7BS9tkzwmEZWq2zQ4N4hnU/D7cPfQE8vNgDGvedUJhNbDHoid5lJ4vI6nyU BHalhiHrHQzTJVOlMbLHCicjSK9ikJVQwaMSk6TAnkEwt91VEPUkuoN6f0/BXEX+35aa ldpZE8SGnV2dhUKFFBs74sdZhkIASulb4S8LxIMoNDmqvoYjffp1mJ+fwQ7LFywphjJ3 Yw/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20221208 header.b=bQs61RS+; 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=googlemail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a1-20020a1709027d8100b00195f4f578fasi9216995plm.564.2023.04.23.14.37.04; Sun, 23 Apr 2023 14:37:17 -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=@googlemail.com header.s=20221208 header.b=bQs61RS+; 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=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230152AbjDWVMn (ORCPT + 99 others); Sun, 23 Apr 2023 17:12:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjDWVMm (ORCPT ); Sun, 23 Apr 2023 17:12:42 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E2791B3; Sun, 23 Apr 2023 14:12:40 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-94f7a0818aeso522605266b.2; Sun, 23 Apr 2023 14:12:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20221208; t=1682284359; x=1684876359; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=rRKnMw4QG50vnSFwd6Sq3W6Jkn3ZJ2yur8UiF0FgUbM=; b=bQs61RS+BXawVW4hK2pXsIzqZif6LIir0t7z6rldZ2pSXl/J7TnR5PH81Xnrjs9rbS /l/LyNd7WQrQJrp0egB9ucSZ2q9xJj7TuYqO2XLs1UWnVN6Z1Pl/QRUvcYvYs6tCwKUI BtUL+eizagvmjUSMhrnTQXL+mVcYJRSJXaBW5XOlmqrs5Jbsnufir/3QgA5Ym9LjQaMp upZwDwTP5dXgWGq5CBi41Rit8LZx5+v1I+eanfKvTGhCdMOcmdRvmYnR4UYz0AMhD+ia y43NYxdUmugr+9kM0/w0W9YcrO3IgUYc4gaOjUXbNtgaQJM/nprXEPrC6xjvdBMrmyqC 0GTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682284359; x=1684876359; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rRKnMw4QG50vnSFwd6Sq3W6Jkn3ZJ2yur8UiF0FgUbM=; b=Ybr8NdBybXwP7FgMhRj+BR6ZMI8WBxeF/tMThoHhVQmcCE2cEb3CAS2O+TP+pdJom4 coYt4336Hq3vDoUbpXJyOIeB/NAc2dVYdrs22JUknCDkSPIlOQzkv3xW+TFhXIqrPNo2 YrVJmB90f71nz2JtEshnjFXxIxY0JVxqeJE4gmG/KhvSNuhgAQcVDuTlXI9RUV4MZrUe T3Zo2Qdp3ewTs4uBcpzg+jp0+1cq83GvMjXM/rLeTzuzEc5dRW/ZGYzAyx5tDsDpI3Vw YanBj+/HFeEM9PJp1vOUdMNbhIwLehqPjMzAotEBDmKa/yRBCKkbrmmOL3u003p7JEm3 eWHg== X-Gm-Message-State: AAQBX9c/jC2a/RFG6mXY9GTOIrEjlG1SIZea057nWoIPkmgP4QvM2qXd VVTebCf/h9SYMCvCydknvLr9vr3l34oLk5h3yz8= X-Received: by 2002:a17:906:abd9:b0:94a:5d5c:fe6f with SMTP id kq25-20020a170906abd900b0094a5d5cfe6fmr8162781ejb.47.1682284358711; Sun, 23 Apr 2023 14:12:38 -0700 (PDT) MIME-Version: 1.0 References: <20230405195927.13487-1-ddrokosov@sberdevices.ru> <20230405195927.13487-5-ddrokosov@sberdevices.ru> In-Reply-To: <20230405195927.13487-5-ddrokosov@sberdevices.ru> From: Martin Blumenstingl Date: Sun, 23 Apr 2023 23:12:27 +0200 Message-ID: Subject: Re: [PATCH v13 4/6] clk: meson: a1: add Amlogic A1 PLL clock controller driver To: Dmitry Rokosov Cc: neil.armstrong@linaro.org, jbrunet@baylibre.com, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, khilman@baylibre.com, jian.hu@amlogic.com, kernel@sberdevices.ru, rockosov@gmail.com, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 Hello Dmitry, currently Jerome is busy so I am trying to continue where he left off. I have followed the previous iterations a bit but may have missed some details. So apologies if I'm repeating some questions that Jerome previously asked. On Wed, Apr 5, 2023 at 9:59=E2=80=AFPM Dmitry Rokosov wrote: [...] > +config COMMON_CLK_A1_PLL > + tristate "Meson A1 SoC PLL controller support" Should this be "Amlogic A1 SoC PLL controller support"? My understanding is that the "meson" name was dropped for this generation of SoCs. [...] > +static const struct of_device_id a1_pll_clkc_match_table[] =3D { > + { .compatible =3D "amlogic,a1-pll-clkc", }, > + {}, nit-pick: please drop the comma after {} This empty entry is a sentinel, no other entries are supposed to come after this - so a trailing comma is not necessary. [...] > +/* PLL register offset */ > +#define ANACTRL_FIXPLL_CTRL0 0x0 > +#define ANACTRL_FIXPLL_CTRL1 0x4 > +#define ANACTRL_FIXPLL_STS 0x14 > +#define ANACTRL_HIFIPLL_CTRL0 0xc0 > +#define ANACTRL_HIFIPLL_CTRL1 0xc4 > +#define ANACTRL_HIFIPLL_CTRL2 0xc8 > +#define ANACTRL_HIFIPLL_CTRL3 0xcc > +#define ANACTRL_HIFIPLL_CTRL4 0xd0 > +#define ANACTRL_HIFIPLL_STS 0xd4 Here I have a question that will potentially affect patch 3/6 ("dt-bindings: clock: meson: add A1 PLL clock controller bindings"). In the cover-letter you mentioned that quite a few clocks have been omitted= . Any dt-bindings that we create need to be stable going forward. That means: the dt-bindings will always need to describe what the hardware is capable of, not what the driver implements. So my question is: do we have all needed inputs described in the dt-bindings (even though we're omitting quite a few registers here that will only be added/used in the future)? Older SoCs require (temporarily) using the XTAL clock for CPU clock tree changes. To make a long story short: I'm wondering if - at least - the XTAL clock input is missing. PS: I don't have an A1 datasheet nor a vendor kernel source (and even less a board for testing). So I can't verify any of this myself and I'm asking questions instead. Best regards, Martin