devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: dts: Add MFC clock entries for exynos4
@ 2013-04-04  6:26 Sachin Kamat
  2013-04-04  6:26 ` [PATCH 2/2] ARM: dts: Update MFC documentation for clock entries Sachin Kamat
  2013-04-04 10:49 ` [PATCH 1/2] ARM: dts: Add MFC clock entries for exynos4 Sylwester Nawrocki
  0 siblings, 2 replies; 5+ messages in thread
From: Sachin Kamat @ 2013-04-04  6:26 UTC (permalink / raw)
  To: linux-samsung-soc, devicetree-discuss
  Cc: kgene.kim, rob.herring, sachin.kamat, patches

Added MFC related clock entries in exynos4.dtsi file.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
Based on Kukjin's for-next.
Dependent on the below patch:
https://patchwork.kernel.org/patch/2349361/
---
 arch/arm/boot/dts/exynos4.dtsi |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi
index 59e6730..4061f48 100644
--- a/arch/arm/boot/dts/exynos4.dtsi
+++ b/arch/arm/boot/dts/exynos4.dtsi
@@ -150,6 +150,8 @@
 		reg = <0x13400000 0x10000>;
 		interrupts = <0 94 0>;
 		samsung,power-domain = <&pd_mfc>;
+		clocks = <&clock 170>, <&clock 273>;
+		clock-names = "sclk_mfc", "mfc";
 		status = "disabled";
 	};
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] ARM: dts: Update MFC documentation for clock entries
  2013-04-04  6:26 [PATCH 1/2] ARM: dts: Add MFC clock entries for exynos4 Sachin Kamat
@ 2013-04-04  6:26 ` Sachin Kamat
  2013-04-04 11:08   ` Sylwester Nawrocki
  2013-04-04 10:49 ` [PATCH 1/2] ARM: dts: Add MFC clock entries for exynos4 Sylwester Nawrocki
  1 sibling, 1 reply; 5+ messages in thread
From: Sachin Kamat @ 2013-04-04  6:26 UTC (permalink / raw)
  To: linux-samsung-soc, devicetree-discuss
  Cc: kgene.kim, rob.herring, sachin.kamat, patches

Added clock entry definitions to MFC bindings document.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 .../devicetree/bindings/media/s5p-mfc.txt          |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/media/s5p-mfc.txt b/Documentation/devicetree/bindings/media/s5p-mfc.txt
index bf0182d..d7b991a 100644
--- a/Documentation/devicetree/bindings/media/s5p-mfc.txt
+++ b/Documentation/devicetree/bindings/media/s5p-mfc.txt
@@ -15,6 +15,9 @@ Required properties:
 	  mapped region.
 
   - interrupts : MFC interrupt number to the CPU.
+  - clocks: from common clock binding: handle to mfc clocks.
+  - clock-names: from common clock binding: Shall be "sclk_mfc" and "mfc"
+		 for "samsung,mfc-v5".
 
   - samsung,mfc-r : Base address of the first memory bank used by MFC
 		    for DMA contiguous memory allocation and its size.
@@ -34,6 +37,8 @@ mfc: codec@13400000 {
 	reg = <0x13400000 0x10000>;
 	interrupts = <0 94 0>;
 	samsung,power-domain = <&pd_mfc>;
+	clocks = <&clock 170>, <&clock 273>;
+	clock-names = "sclk_mfc", "mfc";
 };
 
 Board specific DT entry:
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] ARM: dts: Add MFC clock entries for exynos4
  2013-04-04  6:26 [PATCH 1/2] ARM: dts: Add MFC clock entries for exynos4 Sachin Kamat
  2013-04-04  6:26 ` [PATCH 2/2] ARM: dts: Update MFC documentation for clock entries Sachin Kamat
@ 2013-04-04 10:49 ` Sylwester Nawrocki
  1 sibling, 0 replies; 5+ messages in thread
From: Sylwester Nawrocki @ 2013-04-04 10:49 UTC (permalink / raw)
  To: Sachin Kamat
  Cc: linux-samsung-soc, devicetree-discuss, kgene.kim, rob.herring,
	patches

On 04/04/2013 08:26 AM, Sachin Kamat wrote:
> Added MFC related clock entries in exynos4.dtsi file.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>

Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>

> ---
> Based on Kukjin's for-next.
> Dependent on the below patch:
> https://patchwork.kernel.org/patch/2349361/
> ---
>  arch/arm/boot/dts/exynos4.dtsi |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi
> index 59e6730..4061f48 100644
> --- a/arch/arm/boot/dts/exynos4.dtsi
> +++ b/arch/arm/boot/dts/exynos4.dtsi
> @@ -150,6 +150,8 @@
>  		reg = <0x13400000 0x10000>;
>  		interrupts = <0 94 0>;
>  		samsung,power-domain = <&pd_mfc>;
> +		clocks = <&clock 170>, <&clock 273>;
> +		clock-names = "sclk_mfc", "mfc";
>  		status = "disabled";
>  	};
>  
> 


-- 
Sylwester Nawrocki
실베스터 나브로츠키
Samsung Poland R&D Center

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] ARM: dts: Update MFC documentation for clock entries
  2013-04-04  6:26 ` [PATCH 2/2] ARM: dts: Update MFC documentation for clock entries Sachin Kamat
@ 2013-04-04 11:08   ` Sylwester Nawrocki
  2013-04-08  6:14     ` Sachin Kamat
  0 siblings, 1 reply; 5+ messages in thread
From: Sylwester Nawrocki @ 2013-04-04 11:08 UTC (permalink / raw)
  To: Sachin Kamat
  Cc: linux-samsung-soc, devicetree-discuss, kgene.kim, rob.herring,
	patches

On 04/04/2013 08:26 AM, Sachin Kamat wrote:
> Added clock entry definitions to MFC bindings document.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
>  .../devicetree/bindings/media/s5p-mfc.txt          |    5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/media/s5p-mfc.txt b/Documentation/devicetree/bindings/media/s5p-mfc.txt
> index bf0182d..d7b991a 100644
> --- a/Documentation/devicetree/bindings/media/s5p-mfc.txt
> +++ b/Documentation/devicetree/bindings/media/s5p-mfc.txt
> @@ -15,6 +15,9 @@ Required properties:
>  	  mapped region.
>  
>    - interrupts : MFC interrupt number to the CPU.
> +  - clocks: from common clock binding: handle to mfc clocks.
> +  - clock-names: from common clock binding: Shall be "sclk_mfc" and "mfc"
> +		 for "samsung,mfc-v5".

Not sure if we shouldn't be more specific about the fact the entries in
the clocks property must be in same order as names in clock-names. Perhaps
it's sufficient you mentioned the common clock binding which defines that.

Also we should keep the clock names same, regardless which MFC IP version
those apply to. At least as far as same driver is used for them and the
number of clocks is same. Thus perhaps this could be:

- clock-names : from common clock binding: must contain "sclk_mfc" and "mfc",
	corresponding to entries in the clocks property.

Please note there is a white space before the first colon, that makes
it really an important improvement...

Please feel free to add my

Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>

with those issues addressed.

>    - samsung,mfc-r : Base address of the first memory bank used by MFC
>  		    for DMA contiguous memory allocation and its size.
> @@ -34,6 +37,8 @@ mfc: codec@13400000 {
>  	reg = <0x13400000 0x10000>;
>  	interrupts = <0 94 0>;
>  	samsung,power-domain = <&pd_mfc>;
> +	clocks = <&clock 170>, <&clock 273>;
> +	clock-names = "sclk_mfc", "mfc";
>  };
>  
>  Board specific DT entry:

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] ARM: dts: Update MFC documentation for clock entries
  2013-04-04 11:08   ` Sylwester Nawrocki
@ 2013-04-08  6:14     ` Sachin Kamat
  0 siblings, 0 replies; 5+ messages in thread
From: Sachin Kamat @ 2013-04-08  6:14 UTC (permalink / raw)
  To: Sylwester Nawrocki
  Cc: linux-samsung-soc, devicetree-discuss, kgene.kim, rob.herring,
	patches

Hi Sylwester,

Thanks for your review.

On 4 April 2013 16:38, Sylwester Nawrocki <s.nawrocki@samsung.com> wrote:
> On 04/04/2013 08:26 AM, Sachin Kamat wrote:
>> Added clock entry definitions to MFC bindings document.
>>
>> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
>> ---
>>  .../devicetree/bindings/media/s5p-mfc.txt          |    5 +++++
>>  1 file changed, 5 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/media/s5p-mfc.txt b/Documentation/devicetree/bindings/media/s5p-mfc.txt
>> index bf0182d..d7b991a 100644
>> --- a/Documentation/devicetree/bindings/media/s5p-mfc.txt
>> +++ b/Documentation/devicetree/bindings/media/s5p-mfc.txt
>> @@ -15,6 +15,9 @@ Required properties:
>>         mapped region.
>>
>>    - interrupts : MFC interrupt number to the CPU.
>> +  - clocks: from common clock binding: handle to mfc clocks.
>> +  - clock-names: from common clock binding: Shall be "sclk_mfc" and "mfc"
>> +              for "samsung,mfc-v5".
>
> Not sure if we shouldn't be more specific about the fact the entries in
> the clocks property must be in same order as names in clock-names. Perhaps
> it's sufficient you mentioned the common clock binding which defines that.

Right.

> Also we should keep the clock names same, regardless which MFC IP version
> those apply to. At least as far as same driver is used for them and the
> number of clocks is same. Thus perhaps this could be:

Right. Since mfc-v6 currently took aclk_333 as second clk instead of
sclk_mfc, I made the description specific to mfc-v5.

>
> - clock-names : from common clock binding: must contain "sclk_mfc" and "mfc",
>         corresponding to entries in the clocks property.

I will update as above.

>
> Please note there is a white space before the first colon, that makes
> it really an important improvement...

Ok.

>
> Please feel free to add my
>
> Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
>
> with those issues addressed.

Thanks.



-- 
With warm regards,
Sachin

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-08  6:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-04  6:26 [PATCH 1/2] ARM: dts: Add MFC clock entries for exynos4 Sachin Kamat
2013-04-04  6:26 ` [PATCH 2/2] ARM: dts: Update MFC documentation for clock entries Sachin Kamat
2013-04-04 11:08   ` Sylwester Nawrocki
2013-04-08  6:14     ` Sachin Kamat
2013-04-04 10:49 ` [PATCH 1/2] ARM: dts: Add MFC clock entries for exynos4 Sylwester Nawrocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).