]> git.itanic.dy.fi Git - linux-stable/commit
dt-bindings: mmc: mtk-sd: Set clocks based on compatible
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Tue, 25 Oct 2022 13:29:48 +0000 (15:29 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 7 Dec 2022 12:22:33 +0000 (13:22 +0100)
commit0b36b7cd3f1f3df707c98de65b764294c02cc8cc
tree4a0e8446debc7e928c234b4f8e314d687f159f5f
parent1ad0dcb984c51db655f38ed97bb88545fd55f407
dt-bindings: mmc: mtk-sd: Set clocks based on compatible

The binding was describing a single clock list for all platforms, but
that's not really suitable:

Most platforms using at least 2 clocks (source, hclk), some of them
a third "source_cg". Mt2712 requires an extra 'bus_clk' on some of
its controllers, while mt8192 requires 8 clocks.

Move the clock definitions inside if blocks that match on the
compatibles.

I used Patch from Nícolas F. R. A. Prado and modified it to not using
"not" statement.

Fixes: 59a23395d8aa ("dt-bindings: mmc: Add support for MT8192 SoC")
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221025132953.81286-2-linux@fw-web.de
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Documentation/devicetree/bindings/mmc/mtk-sd.yaml