clk: exynos5250: Add G2D gate clock
Subsystems (6)
PATCH 1/3 clk: exynos5250: Add G2D gate clock
Adds gate clock for G2D IP for Exynos5250 SoC.
---
This patch depends on the following patch:
http://thread.gmane.org/gmane.linux.kernel.samsung-soc/20581
--- .../devicetree/bindings/clock/exynos5250-clock.txt | 1 + drivers/clk/samsung/clk-exynos5250.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/clock/exynos5250-clock.txt +1 -0
@@ -155,6 +155,7 @@ clock which they consume. dp 342 mixer 343 hdmi 344 + g2d 345 Example 1: An example of a clock controller node is listed below.
drivers/clk/samsung/clk-exynos5250.c +4 -1
@@ -62,6 +62,7 @@#define SRC_CDREX 0x20200#define PLL_DIV2_SEL 0x20a24#define GATE_IP_DISP1 0x10928 +#define GATE_IP_ACP 0x10000/* * Let each supported clock get a unique id. This id is used to lookup the clock
@@ -99,7 +100,7 @@ enum exynos5250_clks { spi2, i2s1, i2s2, pcm1, pcm2, pwm, spdif, ac97, hsi2c0, hsi2c1, hsi2c2, hsi2c3, chipid, sysreg, pmu, cmu_top, cmu_core, cmu_mem, tzpc0, tzpc1, tzpc2, tzpc3, tzpc4, tzpc5, tzpc6, tzpc7, tzpc8, tzpc9, hdmi_cec, mct, - wdt, rtc, tmu, fimd1, mie1, dsim0, dp, mixer, hdmi, + wdt, rtc, tmu, fimd1, mie1, dsim0, dp, mixer, hdmi, g2d, nr_clks, };
@@ -152,6 +153,7 @@ static __initdata unsigned long exynos5250_clk_regs[] = {SRC_CDREX ,PLL_DIV2_SEL ,GATE_IP_DISP1 , + GATE_IP_ACP, };/* list of all parent clock list */
@@ -463,6 +465,7 @@ struct samsung_gate_clock exynos5250_gate_clks[] __initdata = {GATE (dp,"dp" ,"aclk200" ,GATE_IP_DISP1 ,4 ,0 ,0 ),GATE (mixer,"mixer" ,"aclk200" ,GATE_IP_DISP1 ,5 ,0 ,0 ),GATE (hdmi,"hdmi" ,"aclk200" ,GATE_IP_DISP1 ,6 ,0 ,0 ), + GATE(g2d, "g2d", "aclk200", GATE_IP_ACP, 3, 0, 0), }; static __initdata struct of_device_id ext_clk_match[] = {
Signature · 1 line
1.7.9.5
PATCH 1/3 clk: exynos5250: Add G2D gate clock
Quoted 62 lines · Sachin Kamat
Adds gate clock for G2D IP for Exynos5250 SoC.
Signed-off-by Sachin Kamat <[email protected]>Cc Mike Turquette <[email protected]>---
This patch depends on the following patch:
http://thread.gmane.org/gmane.linux.kernel.samsung-soc/20581--- .../devicetree/bindings/clock/exynos5250-clock.txt | 1 + drivers/clk/samsung/clk-exynos5250.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/clock/exynos5250-clock.txt +1
-0@@ -155,6 +155,7 @@ clock which they consume. dp 342 mixer 343 hdmi 344 + g2d 345 Example 1: An example of a clock controller node is listed below.drivers/clk/samsung/clk-exynos5250.c +4
-2@@ -62,6 +62,7 @@#define SRC_CDREX 0x20200#define PLL_DIV2_SEL 0x20a24#define GATE_IP_DISP1 0x10928 +#define GATE_IP_ACP 0x10000/* * Let each supported clock get a unique id. This id is used to lookup the clock @@ -99,7 +100,7 @@ enum exynos5250_clks { spi2, i2s1, i2s2, pcm1, pcm2, pwm, spdif, ac97, hsi2c0, hsi2c1, hsi2c2, hsi2c3, chipid, sysreg, pmu, cmu_top, cmu_core, cmu_mem, tzpc0, tzpc1, tzpc2, tzpc3, tzpc4, tzpc5, tzpc6, tzpc7, tzpc8, tzpc9, hdmi_cec, mct, - wdt, rtc, tmu, fimd1, mie1, dsim0, dp, mixer, hdmi, + wdt, rtc, tmu, fimd1, mie1, dsim0, dp, mixer, hdmi, g2d, nr_clks, };@@ -152,6 +153,7 @@ static __initdata unsigned long exynos5250_clk_regs[] = {SRC_CDREX ,PLL_DIV2_SEL ,GATE_IP_DISP1 , + GATE_IP_ACP, };/* list of all parent clock list */ @@ -463,6 +465,7 @@ struct samsung_gate_clock exynos5250_gate_clks[] __initdata = {GATE (dp,"dp" ,"aclk200" ,GATE_IP_DISP1 ,4 ,0 ,0 ),GATE (mixer,"mixer" ,"aclk200" ,GATE_IP_DISP1 ,5 ,0 ,0 ),GATE (hdmi,"hdmi" ,"aclk200" ,GATE_IP_DISP1 ,6 ,0 ,0 ), + GATE(g2d, "g2d", "aclk200", GATE_IP_ACP, 3, 0, 0), }; static __initdata struct of_device_id ext_clk_match[] = { --
Quoted 2 lines
1.7.9.5
Ping Mike.
Signature · 2 lines
With warm regards, Sachin
PATCH 2/3 of/documentation: Update G2D documentation
In reply to Sachin KamatExynos5250 G2D IP requires only the gate clock. Update the binding documentation accordingly.
--- .../devicetree/bindings/gpu/samsung-g2d.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/gpu/samsung-g2d.txt +3 -1
@@ -12,7 +12,9 @@ Required properties: - interrupts : G2D interrupt number to the CPU. - clocks : from common clock binding: handle to G2D clocks. - clock-names : from common clock binding: must contain "sclk_fimg2d" and - "fimg2d", corresponding to entries in the clocks property. + "fimg2d" for S5PV210 & Exynos4 based SoCs and "fimg2d" for + Exynos5250 SoC, corresponding to entries in the clocks + property. Example: g2d at 12800000 {
Signature · 1 line
1.7.9.5
PATCH 2/3 of/documentation: Update G2D documentation
Hi Sachin,
Quoted 18 lines · On Friday 05 of July 2013 14:12:28 Sachin Kamat wrote:
Exynos5250 G2D IP requires only the gate clock. Update the binding documentation accordingly.
Signed-off-by Sachin Kamat <[email protected]>Cc Inki Dae <[email protected]>--- .../devicetree/bindings/gpu/samsung-g2d.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)(quoted diff) +0
-0
b/Documentation/devicetree/bindings/gpu/samsung-g2d.txtindex 3f454ff..60ca631 100644Documentation/devicetree/bindings/gpu/samsung-g2d.txt +0
-0@@ -12,7 +12,9 @@ Required properties: - interrupts : G2D interrupt number to the CPU. - clocks : from common clock binding: handle to G2D clocks. - clock-names : from common clock binding: must contain "sclk_fimg2d"
Quoted 1 line
and - "fimg2d", corresponding to entries in the clocks
property. +
Documentation/devicetree/bindings/gpu/samsung-g2d.txt Required properties: · line 17
Quoted 3 lines
"fimg2d" for S5PV210 & Exynos4 based SoCs and "fimg2d" for +
Exynos5250 SoC, corresponding to entries in the clocksDocumentation/devicetree/bindings/gpu/samsung-g2d.txt +1
-0+ property.
I think this needs to be rephrased, because I can't get any sense from this sentence.
Maybe something like:
- clock-names : names of clocks listed in clocks property, in the same order, depending on SoC type:
- for S5PV210 and Exynos4 based SoCs : "fimg2d" and "sclk_fimg2d"
- for Exynos5250 SoC : "fimg2d".
What do you think?
Best regards,
Tomasz
PATCH 2/3 of/documentation: Update G2D documentation
Hi Tomasz,
Quoted 30 lines · Tomasz Figa
Hi Sachin,
Quoted 18 lines · On Friday 05 of July 2013 14:12:28 Sachin Kamat wrote:
Exynos5250 G2D IP requires only the gate clock. Update the binding documentation accordingly.
Signed-off-by Sachin Kamat <[email protected]>Cc Inki Dae <[email protected]>--- .../devicetree/bindings/gpu/samsung-g2d.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)(quoted diff) +0
-0
b/Documentation/devicetree/bindings/gpu/samsung-g2d.txtindex 3f454ff..60ca631 100644Documentation/devicetree/bindings/gpu/samsung-g2d.txt +0
-0@@ -12,7 +12,9 @@ Required properties: - interrupts : G2D interrupt number to the CPU. - clocks : from common clock binding: handle to G2D clocks. - clock-names : from common clock binding: must contain "sclk_fimg2d"Quoted 1 line
and - "fimg2d", corresponding to entries in the clocks
property. +
Quoted 3 lines
"fimg2d" for S5PV210 & Exynos4 based SoCs and "fimg2d" for +
Exynos5250 SoC, corresponding to entries in the clocks
+ property.I think this needs to be rephrased, because I can't get any sense from this sentence.
Quoted 8 lines
Maybe something like:
- clock-names : names of clocks listed in clocks property, in the same order, depending on SoC type:
- for S5PV210 and Exynos4 based SoCs : "fimg2d" and "sclk_fimg2d"
- for Exynos5250 SoC : "fimg2d".What do you think?
Sure. Will update and re-send.
Thanks for the review.
Signature · 2 lines
With warm regards, Sachin
PATCH 3/3 ARM: EXYNOS: Add G2D support to exynos5250
In reply to Sachin KamatAdds G2D node to exynos5250 DT file.
--- arch/arm/boot/dts/exynos5250.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm/boot/dts/exynos5250.dtsi +8 -0
@@ -163,6 +163,14 @@ clock-names = "watchdog"; }; + g2d at 10850000 { + compatible = "samsung,exynos5250-g2d"; + reg = <0x10850000 0x1000>; + interrupts = <0 91 0>; + clocks = <&clock 345>; + clock-names = "fimg2d"; + }; + codec at 11000000 { compatible = "samsung,mfc-v6"; reg = <0x11000000 0x10000>;
Signature · 1 line
1.7.9.5
PATCH 3/3 ARM: EXYNOS: Add G2D support to exynos5250
Quoted 29 lines · Sachin Kamat
Adds G2D node to exynos5250 DT file.
Signed-off-by Sachin Kamat <[email protected]>--- arch/arm/boot/dts/exynos5250.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+)arch/arm/boot/dts/exynos5250.dtsi +8
-1@@ -163,6 +163,14 @@ clock-names = "watchdog"; }; + g2d at 10850000 { + compatible = "samsung,exynos5250-g2d"; + reg = <0x10850000 0x1000>; + interrupts = <0 91 0>; + clocks = <&clock 345>; + clock-names = "fimg2d"; + }; + codec at 11000000 { compatible = "samsung,mfc-v6"; reg = <0x11000000 0x10000>; --
Quoted 1 line
1.7.9.5
Looks ok to me, applied.
Thanks,
Kukjin
PATCH 1/3 clk: exynos5250: Add G2D gate clock
In reply to Sachin KamatQuoting Sachin Kamat (2013-07-05 01:42:27)
Quoted 4 lines
Adds gate clock for G2D IP for Exynos5250 SoC.
Signed-off-by Sachin Kamat <[email protected]>Cc Mike Turquette <[email protected]>
I've taken patch #1 into clk-next.
Quoted 3 lines
---
This patch depends on the following patch:
http://thread.gmane.org/gmane.linux.kernel.samsung-soc/20581
I think I've gotten all three series you sent out, can you confirm?
http://thread.gmane.org/gmane.linux.kernel.samsung-soc/20581
http://comments.gmane.org/gmane.linux.kernel.samsung-soc/20829
http://comments.gmane.org/gmane.linux.kernel.samsung-soc/20582
Regards,
Mike
Quoted 56 lines
--- .../devicetree/bindings/clock/exynos5250-clock.txt | 1 + drivers/clk/samsung/clk-exynos5250.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/clock/exynos5250-clock.txt +1
-0@@ -155,6 +155,7 @@ clock which they consume. dp 342 mixer 343 hdmi 344 + g2d 345 Example 1: An example of a clock controller node is listed below.drivers/clk/samsung/clk-exynos5250.c +4
-1@@ -62,6 +62,7 @@#define SRC_CDREX 0x20200#define PLL_DIV2_SEL 0x20a24#define GATE_IP_DISP1 0x10928 +#define GATE_IP_ACP 0x10000/* * Let each supported clock get a unique id. This id is used to lookup the clock @@ -99,7 +100,7 @@ enum exynos5250_clks { spi2, i2s1, i2s2, pcm1, pcm2, pwm, spdif, ac97, hsi2c0, hsi2c1, hsi2c2, hsi2c3, chipid, sysreg, pmu, cmu_top, cmu_core, cmu_mem, tzpc0, tzpc1, tzpc2, tzpc3, tzpc4, tzpc5, tzpc6, tzpc7, tzpc8, tzpc9, hdmi_cec, mct, - wdt, rtc, tmu, fimd1, mie1, dsim0, dp, mixer, hdmi, + wdt, rtc, tmu, fimd1, mie1, dsim0, dp, mixer, hdmi, g2d, nr_clks, };@@ -152,6 +153,7 @@ static __initdata unsigned long exynos5250_clk_regs[] = {SRC_CDREX ,PLL_DIV2_SEL ,GATE_IP_DISP1 , + GATE_IP_ACP, };/* list of all parent clock list */ @@ -463,6 +465,7 @@ struct samsung_gate_clock exynos5250_gate_clks[] __initdata = {GATE (dp,"dp" ,"aclk200" ,GATE_IP_DISP1 ,4 ,0 ,0 ),GATE (mixer,"mixer" ,"aclk200" ,GATE_IP_DISP1 ,5 ,0 ,0 ),GATE (hdmi,"hdmi" ,"aclk200" ,GATE_IP_DISP1 ,6 ,0 ,0 ), + GATE(g2d, "g2d", "aclk200", GATE_IP_ACP, 3, 0, 0), }; static __initdata struct of_device_id ext_clk_match[] = {Signature · 1 line
1.7.9.5
PATCH 1/3 clk: exynos5250: Add G2D gate clock
Quoted 7 lines · Mike Turquette
Quoting Sachin Kamat (2013-07-05 01:42:27)
Quoted 4 lines
Adds gate clock for G2D IP for Exynos5250 SoC.
Signed-off-by Sachin Kamat <[email protected]>Cc Mike Turquette <[email protected]>I've taken patch #1 into clk-next.
Thanks Mike.
Quoted 6 lines
Quoted 4 lines
---
This patch depends on the following patch:
http://thread.gmane.org/gmane.linux.kernel.samsung-soc/20581I think I've gotten all three series you sent out, can you confirm?
I haven't seen any update in your tree [1] since quite some time. The last commit I see in clk-next branch is 45e3ec3784 ("clk: tegra: fix ifdef for tegra_periph_reset_assert inline"). I hope I am looking at the right tree?
[1] git://git.linaro.org/people/mturquette/linux.git
Signature · 2 lines
With warm regards, Sachin
PATCH 1/3 clk: exynos5250: Add G2D gate clock
Quoting Sachin Kamat (2013-07-27 06:29:56)
Quoted 16 lines · Mike Turquette
Quoted 7 lines
Quoting Sachin Kamat (2013-07-05 01:42:27)
Quoted 4 lines
Adds gate clock for G2D IP for Exynos5250 SoC.
Signed-off-by Sachin Kamat <[email protected]>Cc Mike Turquette <[email protected]>I've taken patch #1 into clk-next.
Thanks Mike.
Quoted 5 lines
Quoted 4 lines
---
This patch depends on the following patch:
http://thread.gmane.org/gmane.linux.kernel.samsung-soc/20581
Quoted 6 lines
Quoted 1 line
I think I've gotten all three series you sent out, can you confirm?
I haven't seen any update in your tree [1] since quite some time. The last commit I see in clk-next branch is
45e3ec3784("clk: tegra: fix ifdef fortegra_periph_reset_assertinline"). I hope I am looking at the right tree?
You are, but I had not pushed to it since the merge window closed. It is now updated.
Regards,
Mike
Quoted 6 lines
[1]
git://git.linaro.org/people/mturquette/linux.gitSignature · 2 lines
With warm regards, Sachin
PATCH 1/3 clk: exynos5250: Add G2D gate clock
Quoted 19 lines · Mike Turquette
Quoting Sachin Kamat (2013-07-27 06:29:56)
Quoted 18 lines · Mike Turquette
Quoted 7 lines
Quoting Sachin Kamat (2013-07-05 01:42:27)
Quoted 4 lines
Adds gate clock for G2D IP for Exynos5250 SoC.
Signed-off-by Sachin Kamat <[email protected]>Cc Mike Turquette <[email protected]>I've taken patch #1 into clk-next.
Thanks Mike.
Quoted 6 lines
Quoted 4 lines
---
This patch depends on the following patch:
http://thread.gmane.org/gmane.linux.kernel.samsung-soc/20581I think I've gotten all three series you sent out, can you confirm?
Quoted 8 lines
Quoted 4 lines
I haven't seen any update in your tree [1] since quite some time. The last commit I see in clk-next branch is
45e3ec3784("clk: tegra: fix ifdef fortegra_periph_reset_assertinline"). I hope I am looking at the right tree?You are, but I had not pushed to it since the merge window closed. It is now updated.
Thanks Mike. I confirm that all the three patch series that you mentioned are applied in your tree.
Please check the below one too.
http://www.mail-archive.com/linux-samsung-soc at vger.kernel.org/msg20598.html
Signature · 2 lines
With warm regards, Sachin
PATCH 1/3 clk: exynos5250: Add G2D gate clock
Quoting Sachin Kamat (2013-07-29 23:55:33)
Quoted 29 lines · Mike Turquette
Quoted 19 lines
Quoting Sachin Kamat (2013-07-27 06:29:56)
Quoted 18 lines · Mike Turquette
Quoted 7 lines
Quoting Sachin Kamat (2013-07-05 01:42:27)
Quoted 4 lines
Adds gate clock for G2D IP for Exynos5250 SoC.
Signed-off-by Sachin Kamat <[email protected]>Cc Mike Turquette <[email protected]>I've taken patch #1 into clk-next.
Thanks Mike.
Quoted 6 lines
Quoted 4 lines
---
This patch depends on the following patch:
http://thread.gmane.org/gmane.linux.kernel.samsung-soc/20581I think I've gotten all three series you sent out, can you confirm?
Quoted 8 lines
Quoted 4 lines
I haven't seen any update in your tree [1] since quite some time. The last commit I see in clk-next branch is
45e3ec3784("clk: tegra: fix ifdef fortegra_periph_reset_assertinline"). I hope I am looking at the right tree?You are, but I had not pushed to it since the merge window closed. It is now updated.
Quoted 5 lines
Thanks Mike. I confirm that all the three patch series that you mentioned are applied in your tree.
Please check the below one too.http://www.mail-archive.com/linux-samsung-soc at vger.kernel.org/msg20598.html
Ok, I picked that one up too.
Regards,
Mike
Quoted 4 lines
Signature · 3 lines
-- With warm regards, Sachin
PATCH 1/3 clk: exynos5250: Add G2D gate clock
Quoted 30 lines · Mike Turquette
Quoting Sachin Kamat (2013-07-29 23:55:33)
Quoted 29 lines · Mike Turquette
Quoted 27 lines
Quoting Sachin Kamat (2013-07-27 06:29:56)
Quoted 16 lines · Mike Turquette
Quoted 7 lines
Quoting Sachin Kamat (2013-07-05 01:42:27)
Quoted 4 lines
Adds gate clock for G2D IP for Exynos5250 SoC.
Signed-off-by Sachin Kamat <[email protected]>Cc Mike Turquette <[email protected]>I've taken patch #1 into clk-next.
Thanks Mike.
Quoted 5 lines
Quoted 4 lines
---
This patch depends on the following patch:
http://thread.gmane.org/gmane.linux.kernel.samsung-soc/20581Quoted 6 lines
Quoted 1 line
I think I've gotten all three series you sent out, can you confirm?
I haven't seen any update in your tree [1] since quite some time. The last commit I see in clk-next branch is
45e3ec3784("clk: tegra: fix ifdef fortegra_periph_reset_assertinline"). I hope I am looking at the right tree?You are, but I had not pushed to it since the merge window closed. It is now updated.
Quoted 7 lines
Quoted 5 lines
Thanks Mike. I confirm that all the three patch series that you mentioned are applied in your tree.
Please check the below one too.http://www.mail-archive.com/linux-samsung-soc at vger.kernel.org/msg20598.html
Ok, I picked that one up too.
Thanks Mike.
Signature · 2 lines
With warm regards, Sachin