clk: tegra: Make vic03 a child of pll_c3
Subsystems (3)
PATCH 1/1 clk: tegra: Make vic03 a child of pll_c3
From: Thierry Reding <[email protected]>
By default, the vic03 clock is a child of pll_m but that runs at 924 MHz which is too fast for VIC. Make vic03 a child of pll_c3 by default so it will run at a supported frequency.
--- drivers/clk/tegra/clk-tegra124.c | 1 + 1 file changed, 1 insertion(+)
drivers/clk/tegra/clk-tegra124.c +1 -0
@@ -1290,6 +1290,7 @@ static struct tegra_clk_init_table common_init_table[] __initdata = { { TEGRA124_CLK_MSELECT, TEGRA124_CLK_CLK_MAX, 0, 1 }, { TEGRA124_CLK_CSITE, TEGRA124_CLK_CLK_MAX, 0, 1 }, { TEGRA124_CLK_TSENSOR, TEGRA124_CLK_CLK_M, 400000, 0 }, + { TEGRA124_CLK_VIC03, TEGRA124_CLK_PLL_C3, 0, 0 },/* must be the last entry */ { TEGRA124_CLK_CLK_MAX, TEGRA124_CLK_CLK_MAX, 0, 0 }, };
Signature · 1 line
2.17.0
Quoted 16 lines · Thierry Reding
From: Thierry Reding <[email protected]>
By default, the vic03 clock is a child of
pll_mbut that runs at 924 MHz which is too fast for VIC. Make vic03 a child ofpll_c3by default so it will run at a supported frequency.Signed-off-by Thierry Reding <[email protected]>--- drivers/clk/tegra/clk-tegra124.c | 1 + 1 file changed, 1 insertion(+)drivers/clk/tegra/clk-tegra124.c +0
-0
drivers/clk/tegra/clk-tegra124.c static struct tegra_clk_init_table common_init_table[] __initdata = { · line 1296
Quoted 7 lines
drivers/clk/tegra/clk-tegra124.c +1
-0@@ -1290,6 +1290,7 @@ static struct tegra_clk_init_table common_init_table[] __initdata = { { TEGRA124_CLK_MSELECT, TEGRA124_CLK_CLK_MAX, 0, 1 }, { TEGRA124_CLK_CSITE, TEGRA124_CLK_CLK_MAX, 0, 1 }, { TEGRA124_CLK_TSENSOR, TEGRA124_CLK_CLK_M, 400000, 0 }, + { TEGRA124_CLK_VIC03, TEGRA124_CLK_PLL_C3, 0, 0 },/* must be the last entry */ { TEGRA124_CLK_CLK_MAX, TEGRA124_CLK_CLK_MAX, 0, 0 }, };
Adding Peter for visibility.
Thierry
Quoted 12 lines · Thierry Reding
Quoted 11 lines · Thierry Reding
From: Thierry Reding <[email protected]>
By default, the vic03 clock is a child of
pll_mbut that runs at 924 MHz which is too fast for VIC. Make vic03 a child ofpll_c3by default so it will run at a supported frequency.Signed-off-by Thierry Reding <[email protected]>--- drivers/clk/tegra/clk-tegra124.c | 1 + 1 file changed, 1 insertion(+)
Quoted 14 lines
drivers/clk/tegra/clk-tegra124.c static struct tegra_clk_init_table common_init_table[] __initdata = { · line 1296
Quoted 12 lines
drivers/clk/tegra/clk-tegra124.c +1
-0@@ -1290,6 +1290,7 @@ static struct tegra_clk_init_table common_init_table[] __initdata = { { TEGRA124_CLK_MSELECT, TEGRA124_CLK_CLK_MAX, 0, 1 }, { TEGRA124_CLK_CSITE, TEGRA124_CLK_CLK_MAX, 0, 1 }, { TEGRA124_CLK_TSENSOR, TEGRA124_CLK_CLK_M, 400000, 0 }, + { TEGRA124_CLK_VIC03, TEGRA124_CLK_PLL_C3, 0, 0 },/* must be the last entry */ { TEGRA124_CLK_CLK_MAX, TEGRA124_CLK_CLK_MAX, 0, 0 }, };Adding Peter for visibility.
I think we should consider using the Assigned clock parents and rate feature of the DT clock binding.
Peter.
Quoted 28 lines · Peter De Schrijver
Quoted 12 lines · Thierry Reding
Quoted 11 lines · Thierry Reding
From: Thierry Reding <[email protected]>
By default, the vic03 clock is a child of
pll_mbut that runs at 924 MHz which is too fast for VIC. Make vic03 a child ofpll_c3by default so it will run at a supported frequency.Signed-off-by Thierry Reding <[email protected]>--- drivers/clk/tegra/clk-tegra124.c | 1 + 1 file changed, 1 insertion(+)Quoted 14 lines
drivers/clk/tegra/clk-tegra124.c static struct tegra_clk_init_table common_init_table[] __initdata = { · line 1296
Quoted 12 lines
drivers/clk/tegra/clk-tegra124.c +1
-0@@ -1290,6 +1290,7 @@ static struct tegra_clk_init_table common_init_table[] __initdata = { { TEGRA124_CLK_MSELECT, TEGRA124_CLK_CLK_MAX, 0, 1 }, { TEGRA124_CLK_CSITE, TEGRA124_CLK_CLK_MAX, 0, 1 }, { TEGRA124_CLK_TSENSOR, TEGRA124_CLK_CLK_M, 400000, 0 }, + { TEGRA124_CLK_VIC03, TEGRA124_CLK_PLL_C3, 0, 0 },/* must be the last entry */ { TEGRA124_CLK_CLK_MAX, TEGRA124_CLK_CLK_MAX, 0, 0 }, };Adding Peter for visibility.
Quoted 2 lines
I think we should consider using the Assigned clock parents and rate feature of the DT clock binding.
I'm sure we could do that, but it'd also be completely inconsistent with what we've done so far. These init tables effectively do the same thing as the assigned parents and rate bindings, only they predate them and we have done it this way essentially forever.
I think there's some benefit in moving to the new bindings, but perhaps it'd make more sense to do it for Tegra186 and later because we don't have any of these initialization tables there yet and we don't even have a custom driver like this.
Thierry
Quoting Thierry Reding (2018-06-11 01:18:53)
Quoted 10 lines
From: Thierry Reding <[email protected]>
=By default, the vic03 clock is a child of
pll_mbut that runs at 924 MHz which is too fast for VIC. Make vic03 a child ofpll_c3by default so it will run at a supported frequency.
=Signed-off-by Thierry Reding <[email protected]>---
Applied to clk-next