ARM: tegra: acer-a500: Use PLLC for WiFi MMC clock parent
authorDmitry Osipenko <digetx@gmail.com>
Sun, 23 Aug 2020 14:47:24 +0000 (17:47 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 17 Sep 2020 16:09:39 +0000 (18:09 +0200)
The default parent for all MMCs is PLLP, which is running at 216 MHz on
Tegra20 and 50 MHz clock can't be derived from PLLP. The maximum SDIO
clock rate is 50 MHz, but this rate isn't achievable using PLLP.

Let's switch the WiFi MMC clock parent to PLLC in order to get true 50
MHz. This patch doesn't fix any problems, it's just a minor improvement.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/boot/dts/tegra20-acer-a500-picasso.dts

index 9489eed..a0b8297 100644 (file)
                #address-cells = <1>;
                #size-cells = <0>;
 
+               assigned-clocks = <&tegra_car TEGRA20_CLK_SDMMC1>;
+               assigned-clock-parents = <&tegra_car TEGRA20_CLK_PLL_C>;
+               assigned-clock-rates = <50000000>;
+
                max-frequency = <50000000>;
                keep-power-in-suspend;
                bus-width = <4>;