[PATCH 12/73] ARM: tegra: Drop display controller parent clocks on Tegra114

Dmitry Osipenko digetx at gmail.com
Thu Jun 25 10:18:58 EDT 2020


25.06.2020 10:37, Thierry Reding пишет:
> On Wed, Jun 24, 2020 at 07:19:26PM +0300, Dmitry Osipenko wrote:
>> 16.06.2020 16:51, Thierry Reding пишет:
>>> From: Thierry Reding <treding at nvidia.com>
>>>
>>> The parent clocks are determined by the output that will be used, not by
>>> the display controller that drives the output. Drop the parent clocks
>>> from the display controller device tree nodes.
>>>
>>> Signed-off-by: Thierry Reding <treding at nvidia.com>
>>> ---
...
>> Hello Thierry,
>>
>> Tegra DRM fails to probe after this change using next-20200624 on T20/30
>> (T124 also should be broken):
>>
>>  tegra-dc 54200000.dc: failed to get parent clock
>>  tegra-dc 54200000.dc: failed to probe RGB output: -2
> 
> Indeed. I had completely missed that we used to have this RGB output on
> prior chips and therefore do need the parent clock. As of Tegra124 that
> RGB output is no longer present, so this isn't needed anymore.
> 
>> BTW, the commit's title is misleading since the patch touches all SoCs
>> and not only the T114.
> 
> Good catch. I've replaced this with the following:
> 
> --- >8 ---
> commit afd92390fcaa784a6d064f3b07c8d8124e43e5d1
> Author: Thierry Reding <treding at nvidia.com>
> Date:   Thu Jun 11 19:09:36 2020 +0200
> 
>     ARM: tegra: Drop display controller parent clocks on Tegra124
>     
>     The parent clocks are determined by the output that will be used, not by
>     the display controller that drives the output. On previous generations a
>     simple RGB output used to be part of the display controller and hence an
>     explicit parent clock needed to be assigned to the display controller to
>     drive the RGB output. Starting with Tegra124, that RGB output has been
>     dropped and the parent clock can therefore be removed from the display
>     controller device tree nodes.
>     
>     Signed-off-by: Thierry Reding <treding at nvidia.com>
> 
> diff --git a/arch/arm/boot/dts/tegra124.dtsi b/arch/arm/boot/dts/tegra124.dtsi
> index 1afed8496c95..2c992e8e3594 100644
> --- a/arch/arm/boot/dts/tegra124.dtsi
> +++ b/arch/arm/boot/dts/tegra124.dtsi
> @@ -105,9 +105,8 @@ dc at 54200000 {
>  			compatible = "nvidia,tegra124-dc";
>  			reg = <0x0 0x54200000 0x0 0x00040000>;
>  			interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
> -			clocks = <&tegra_car TEGRA124_CLK_DISP1>,
> -				 <&tegra_car TEGRA124_CLK_PLL_P>;
> -			clock-names = "dc", "parent";
> +			clocks = <&tegra_car TEGRA124_CLK_DISP1>;
> +			clock-names = "dc";
>  			resets = <&tegra_car 27>;
>  			reset-names = "dc";
>  
> @@ -120,9 +119,8 @@ dc at 54240000 {
>  			compatible = "nvidia,tegra124-dc";
>  			reg = <0x0 0x54240000 0x0 0x00040000>;
>  			interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
> -			clocks = <&tegra_car TEGRA124_CLK_DISP2>,
> -				 <&tegra_car TEGRA124_CLK_PLL_P>;
> -			clock-names = "dc", "parent";
> +			clocks = <&tegra_car TEGRA124_CLK_DISP2>;
> +			clock-names = "dc";
>  			resets = <&tegra_car 26>;
>  			reset-names = "dc";
> --- >8 ---

Looks good, thank you!



More information about the linux-arm-kernel mailing list