[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdYGnCd8fkAPPTP6VHFXC9k-_BNGqTE4cvPORyXJ=rVWLA@mail.gmail.com>
Date: Fri, 17 Sep 2021 00:53:42 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Maxime Ripard <maxime@...no.tech>
Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@...r.kernel.org>, Rob Herring <robh+dt@...nel.org>,
Frank Rowand <frowand.list@...il.com>,
Chen-Yu Tsai <wens@...e.org>,
Jernej Škrabec <jernej.skrabec@...il.com>,
Linux ARM <linux-arm-kernel@...ts.infradead.org>,
linux-sunxi <linux-sunxi@...glegroups.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
netdev <netdev@...r.kernel.org>, Rob Herring <robh@...nel.org>
Subject: Re: [PATCH v2 07/52] dt-bindings: bluetooth: broadcom: Fix clocks check
On Wed, Sep 1, 2021 at 11:19 AM Maxime Ripard <maxime@...no.tech> wrote:
> The original binding was mentioning that valid values for the clocks and
> clock-names property were one or two clocks from extclk, txco and lpo,
> with extclk being deprecated in favor of txco.
>
> However, the current binding lists a valid array as extclk, txco and
> lpo, with either one or two items.
>
> While this looks similar, it actually enforces that all the device trees
> use either ["extclk"], or ["extclk", "txco"]. That doesn't make much
> sense, since the two clocks are said to be equivalent, with one
> superseeding the other.
>
> lpo is also not a valid clock anymore, and would be as the third clock
> of the list, while we could have only this clock in the previous binding
> (and in DTs).
>
> Let's rework the clock clause to allow to have either:
>
> - extclk, and mark it a deprecated
> - txco alone
> - lpo alone
> - txco, lpo
>
> While ["extclk", "lpo"] wouldn't be valid, it wasn't found in any device
> tree so it's not an issue in practice.
>
> Similarly, ["lpo", "txco"] is still considered invalid, but it's
> generally considered as a best practice to fix the order of clocks.
>
> Cc: "David S. Miller" <davem@...emloft.net>
> Cc: Jakub Kicinski <kuba@...nel.org>
> Cc: Linus Walleij <linus.walleij@...aro.org>
> Cc: netdev@...r.kernel.org
> Reviewed-by: Rob Herring <robh@...nel.org>
> Signed-off-by: Maxime Ripard <maxime@...no.tech>
Looks good to me!
Reviewed-by: Linus Walleij <linus.walleij@...aro.org>
Yours,
Linus Walleij
Powered by blists - more mailing lists