clk: exynos: add gate clock descriptions of System MMU
PATCH v11 11/27 clk: exynos: add gate clock descriptions of System MMU
This adds gate clocks of all System MMUs and their master IPs that are not apeared in clk-exynos5250.c and clk-exynos5420.c Also fixes GATE_IP_ACP to 0x18800 and changed GATE_DA to GATE for System MMU clocks in clk-exynos4.c
--- .../devicetree/bindings/clock/exynos5250-clock.txt | 3 +++ .../devicetree/bindings/clock/exynos5420-clock.txt | 6 +++++- drivers/clk/samsung/clk-exynos5250.c | 5 +++++ drivers/clk/samsung/clk-exynos5420.c | 13 +++++++++++-- include/dt-bindings/clock/exynos5250.h | 4 ++++ include/dt-bindings/clock/exynos5420.h | 6 +++++- 6 files changed, 33 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/clock/exynos5250-clock.txt +3 -0
@@ -162,6 +162,9 @@ clock which they consume. g2d 345 mdma0 346 smmu_mdma0 347 + smmu_tv 348 + smmu_fimd1 349 + smmu_2d 350 [Clock Muxes]
Documentation/devicetree/bindings/clock/exynos5420-clock.txt +5 -1
@@ -146,7 +146,8 @@ clock which they consume. hdmi 413 aclk300_disp1 420 fimd1 421 - smmu_fimd1 422 + smmu_fimd1m0 422 + smmu_fimd1m1 423 aclk166 430 mixer 431 aclk266 440
@@ -172,12 +173,15 @@ clock which they consume. mdma0 473 aclk333_g2d 480 g2d 481 + smmu_g2d 482 aclk333_432_gscl 490 smmu_3aa 491 smmu_fimcl0 492 smmu_fimcl1 493 smmu_fimcl3 494 fimc_lite3 495 + fimc_lite0 496 + fimc_lite1 497 aclk_g3d 500 g3d 501 smmu_mixer 502
drivers/clk/samsung/clk-exynos5250.c +5 -0
@@ -615,6 +615,11 @@ static struct samsung_gate_clock exynos5250_gate_clks[] __initdata = {GATE (CLK_WDT ,"wdt" ,"div_aclk66" ,GATE_IP_PERIS ,19 ,0 ,0 ),GATE (CLK_RTC ,"rtc" ,"div_aclk66" ,GATE_IP_PERIS ,20 ,0 ,0 ),GATE (CLK_TMU ,"tmu" ,"div_aclk66" ,GATE_IP_PERIS ,21 ,0 ,0 ), +GATE (CLK_SMMU_TV ,"smmu_tv" ,"mout_aclk200_disp1_sub" , +GATE_IP_DISP1 ,2 ,0 ,0 ), +GATE (CLK_SMMU_FIMD1 ,"smmu_fimd1" ,"mout_aclk200_disp1_sub" , +GATE_IP_DISP1 ,8 ,0 ,0 ), + GATE(CLK_SMMU_2D, "smmu_2d", "div_aclk200", GATE_IP_ACP, 7, 0, 0), }; static struct samsung_pll_rate_table vpll_24mhz_tbl[] __initdata = {
drivers/clk/samsung/clk-exynos5420.c +11 -2
@@ -82,6 +82,7 @@#define GATE_BUS_PERIC1 0x10754#define GATE_BUS_PERIS0 0x10760#define GATE_BUS_PERIS1 0x10764 +#define GATE_IP_G2D 0x08800#define GATE_IP_GSCL0 0x10910#define GATE_IP_GSCL1 0x10920#define GATE_IP_MFC 0x1092c
@@ -707,6 +708,10 @@ static struct samsung_gate_clock exynos5420_gate_clks[] __initdata = {GATE (CLK_GSCL_WB ,"gscl_wb" ,"aclk300_gscl" ,GATE_IP_GSCL1 ,13 ,0 ,0 ),GATE (CLK_SMMU_FIMCL3 ,"smmu_fimcl3," ,"aclk333_432_gscl" ,GATE_IP_GSCL1 ,16 ,0 ,0 ), +GATE (CLK_FIMC_LITE0 ,"fimc_lite0" ,"aclk333_432_gscl" , +GATE_IP_GSCL0 ,5 ,0 ,0 ), +GATE (CLK_FIMC_LITE1 ,"fimc_lite1" ,"aclk333_432_gscl" , +GATE_IP_GSCL0 ,6 ,0 ,0 ),GATE (CLK_FIMC_LITE3 ,"fimc_lite3" ,"aclk333_432_gscl" , GATE_IP_GSCL1, 17, 0, 0),
@@ -715,8 +720,10 @@ static struct samsung_gate_clock exynos5420_gate_clks[] __initdata = {GATE (CLK_DP1 ,"dp1" ,"aclk200_disp1" ,GATE_IP_DISP1 ,4 ,0 ,0 ),GATE (CLK_MIXER ,"mixer" ,"aclk166" ,GATE_IP_DISP1 ,5 ,0 ,0 ),GATE (CLK_HDMI ,"hdmi" ,"aclk200_disp1" ,GATE_IP_DISP1 ,6 ,0 ,0 ), -GATE (CLK_SMMU_FIMD1 ,"smmu_fimd1" ,"aclk300_disp1" ,GATE_IP_DISP1 ,8 ,0 , -0 ), +GATE (CLK_SMMU_FIMD1M0 ,"smmu_fimd1m0" ,"aclk300_disp1" ,GATE_IP_DISP1 , +7 ,0 ,0 ), +GATE (CLK_SMMU_FIMD1M1 ,"smmu_fimd1m1" ,"aclk300_disp1" ,GATE_IP_DISP1 , +8 ,0 ,0 ),GATE (CLK_MFC ,"mfc" ,"aclk333" ,GATE_IP_MFC ,0 ,0 ,0 ), GATE(CLK_SMMU_MFCL, "smmu_mfcl", "aclk333", GATE_IP_MFC, 1, 0, 0),
@@ -743,6 +750,8 @@ static struct samsung_gate_clock exynos5420_gate_clks[] __initdata = { 0),GATE (CLK_SMMU_MIXER ,"smmu_mixer" ,"aclk200_disp1" ,GATE_IP_DISP1 ,9 ,0 ,0 ), +GATE (CLK_G2D ,"g2d" ,"aclk333_g2d" ,GATE_IP_G2D ,3 ,0 ,0 ), + GATE(CLK_SMMU_G2D, "smmu_g2d", "aclk333_g2d", GATE_IP_G2D, 7, 0, 0), }; static struct samsung_pll_clock exynos5420_plls[nr_plls] __initdata = {
include/dt-bindings/clock/exynos5250.h +4 -0
@@ -150,6 +150,10 @@#define CLK_G2D 345#define CLK_MDMA0 346#define CLK_SMMU_MDMA0 347 +#define CLK_SMMU_TV 348 +#define CLK_SMMU_FIMD1 349 +#define CLK_SMMU_2D 350 +/* mux clocks */ #define CLK_MOUT_HDMI 1024
include/dt-bindings/clock/exynos5420.h +5 -1
@@ -140,7 +140,8 @@#define CLK_HDMI 413#define CLK_ACLK300_DISP1 420#define CLK_FIMD1 421 -#define CLK_SMMU_FIMD1 422 +#define CLK_SMMU_FIMD1M0 422 +#define CLK_SMMU_FIMD1M1 423#define CLK_ACLK166 430#define CLK_MIXER 431#define CLK_ACLK266 440
@@ -166,12 +167,15 @@#define CLK_MDMA0 473#define CLK_ACLK333_G2D 480#define CLK_G2D 481 +#define CLK_SMMU_G2D 482#define CLK_ACLK333_432_GSCL 490#define CLK_SMMU_3AA 491#define CLK_SMMU_FIMCL0 492#define CLK_SMMU_FIMCL1 493#define CLK_SMMU_FIMCL3 494#define CLK_FIMC_LITE3 495 +#define CLK_FIMC_LITE1 496 +#define CLK_FIMC_LITE0 497#define CLK_ACLK_G3D 500#define CLK_G3D 501#define CLK_SMMU_MIXER 502
Signature · 1 line
1.7.9.5
Hi KyongHo,
Quoted 20 lines · Cho KyongHo
This adds gate clocks of all System MMUs and their master IPs that are not apeared in
clk-exynos5250.candclk-exynos5420.cAlso fixesGATE_IP_ACPto0x18800and changedGATE_DAto GATE for System MMU clocks inclk-exynos4.cSigned-off-by Cho KyongHo <[email protected]>--- .../devicetree/bindings/clock/exynos5250-clock.txt | 3 +++ .../devicetree/bindings/clock/exynos5420-clock.txt | 6 +++++- drivers/clk/samsung/clk-exynos5250.c | 5 +++++ drivers/clk/samsung/clk-exynos5420.c | 13 +++++++++++-- include/dt-bindings/clock/exynos5250.h | 4 ++++ include/dt-bindings/clock/exynos5420.h | 6 +++++- 6 files changed, 33 insertions(+), 4 deletions(-)Documentation/devicetree/bindings/clock/exynos5250-clock.txt +0
-0
Documentation/devicetree/bindings/clock/exynos5250-clock.txt clock which they consume. · line 168
Quoted 7 lines
Documentation/devicetree/bindings/clock/exynos5250-clock.txt +3
-0@@ -162,6 +162,9 @@ clock which they consume. g2d 345 mdma0 346 smmu_mdma0 347 + smmu_tv 348 + smmu_fimd1 349 + smmu_2d 350
This patch should be rebased on top of Andrzej Hajda's patches removing these clock ID listings and reworking dts files to use defined macros. They are present in v3.15-next/dt-clk-exynos branch of linux-samsung tree, but I have asked Kukjin to merge them to his for-next branch, so they could show up in linux-next tree.
Best regards,
Tomasz
Quoted 28 lines · Tomasz Figa
Hi KyongHo,
Quoted 25 lines · Cho KyongHo
This adds gate clocks of all System MMUs and their master IPs that are not apeared in
clk-exynos5250.candclk-exynos5420.cAlso fixesGATE_IP_ACPto0x18800and changedGATE_DAto GATE for System MMU clocks inclk-exynos4.cSigned-off-by Cho KyongHo <[email protected]>--- .../devicetree/bindings/clock/exynos5250-clock.txt | 3 +++ .../devicetree/bindings/clock/exynos5420-clock.txt | 6 +++++- drivers/clk/samsung/clk-exynos5250.c | 5 +++++ drivers/clk/samsung/clk-exynos5420.c | 13 +++++++++++-- include/dt-bindings/clock/exynos5250.h | 4 ++++ include/dt-bindings/clock/exynos5420.h | 6 +++++- 6 files changed, 33 insertions(+), 4 deletions(-)Documentation/devicetree/bindings/clock/exynos5250-clock.txt +2
-0@@ -162,6 +162,9 @@ clock which they consume. g2d 345 mdma0 346 smmu_mdma0 347 + smmu_tv 348 + smmu_fimd1 349
Quoted 9 lines
Documentation/devicetree/bindings/clock/exynos5250-clock.txt clock which they consume. · line 168
Quoted 2 lines
Documentation/devicetree/bindings/clock/exynos5250-clock.txt +1
-0+ smmu_2d 350This patch should be rebased on top of Andrzej Hajda's patches removing these clock ID listings and reworking dts files to use defined macros. They are present in v3.15-next/dt-clk-exynos branch of linux-samsung tree, but I have asked Kukjin to merge them to his for-next branch, so they could show up in linux-next tree.
Thanks for the information.
I will also ask Kukjin for the correct base of the patches.
KyongHo.