All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: rockchip: Add cif test clocks for rk3399
@ 2018-01-08  5:48 Shunqian Zheng
       [not found] ` <1515390531-13147-1-git-send-email-zhengsq-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Shunqian Zheng @ 2018-01-08  5:48 UTC (permalink / raw)
  To: heiko-4mtYJXux2i+zQB+pC5nmwQ
  Cc: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	briannorris-F7+t8E8rja9g9hUCZPvPmw, Shunqian Zheng

There are three pins can act as cif test clock for rk3399.
They're sourced from 24M and output 24M by default and some boards
may use them as camera 24M xvclk.

Signed-off-by: Shunqian Zheng <zhengsq-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
---
 arch/arm64/boot/dts/rockchip/rk3399.dtsi | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
index 7aa2144..daad42f 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
@@ -2293,6 +2293,23 @@
 			};
 		};
 
+		test {
+			test_clkout0: test-clkout0 {
+				rockchip,pins =
+					<0 0 RK_FUNC_1 &pcfg_pull_none>;
+			};
+
+			test_clkout1: test-clkout1 {
+				rockchip,pins =
+					<2 25 RK_FUNC_2 &pcfg_pull_none>;
+			};
+
+			test_clkout2: test-clkout2 {
+				rockchip,pins =
+					<0 8 RK_FUNC_3 &pcfg_pull_none>;
+			};
+		};
+
 		tsadc {
 			otp_gpio: otp-gpio {
 				rockchip,pins = <1 6 RK_FUNC_GPIO &pcfg_pull_none>;
-- 
1.9.1

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

* Re: [PATCH] arm64: dts: rockchip: Add cif test clocks for rk3399
       [not found] ` <1515390531-13147-1-git-send-email-zhengsq-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
@ 2018-01-08 19:17   ` Brian Norris
       [not found]     ` <20180108191733.GA59523-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Brian Norris @ 2018-01-08 19:17 UTC (permalink / raw)
  To: Shunqian Zheng
  Cc: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	heiko-4mtYJXux2i+zQB+pC5nmwQ

Hi Shunqian,

On Mon, Jan 08, 2018 at 01:48:51PM +0800, Shunqian Zheng wrote:
> There are three pins can act as cif test clock for rk3399.
> They're sourced from 24M and output 24M by default and some boards
> may use them as camera 24M xvclk.
> 
> Signed-off-by: Shunqian Zheng <zhengsq-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
> ---
>  arch/arm64/boot/dts/rockchip/rk3399.dtsi | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
> index 7aa2144..daad42f 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
> @@ -2293,6 +2293,23 @@
>  			};
>  		};
>  
> +		test {

Doesn't really matter much, but 'test' is a weird group name to me. I
think 'testclk' or 'test-clk' might be a more descriptive name?

> +			test_clkout0: test-clkout0 {
> +				rockchip,pins =
> +					<0 0 RK_FUNC_1 &pcfg_pull_none>;
> +			};
> +
> +			test_clkout1: test-clkout1 {
> +				rockchip,pins =
> +					<2 25 RK_FUNC_2 &pcfg_pull_none>;
> +			};
> +
> +			test_clkout2: test-clkout2 {
> +				rockchip,pins =
> +					<0 8 RK_FUNC_3 &pcfg_pull_none>;

Your function indexing is a little confusing to me, but one or more of
your datasheet, TRM, or patch are incorrect here. The datasheet says
"Func 3" (which is 1-indexed, so really means RK_FUNC_2) should be
TEST_CLKOUT2, but your TRM agrees with the patch, saying
2'b11=test_clkout2. So I think your patch is correct, but the datasheet
needs updated?

All in all, I think the patch looks good though:

Reviewed-by: Brian Norris <briannorris-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>

> +			};
> +		};
> +
>  		tsadc {
>  			otp_gpio: otp-gpio {
>  				rockchip,pins = <1 6 RK_FUNC_GPIO &pcfg_pull_none>;
> -- 
> 1.9.1
> 

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

* Re: [PATCH] arm64: dts: rockchip: Add cif test clocks for rk3399
       [not found]     ` <20180108191733.GA59523-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
@ 2018-01-09  1:45       ` Shunqian Zheng
       [not found]         ` <d8aef67f-1de0-0216-7b22-4e7990855353-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Shunqian Zheng @ 2018-01-09  1:45 UTC (permalink / raw)
  To: Brian Norris
  Cc: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	heiko-4mtYJXux2i+zQB+pC5nmwQ

Hi Brian,


On 2018年01月09日 03:17, Brian Norris wrote:
> Hi Shunqian,
>
> On Mon, Jan 08, 2018 at 01:48:51PM +0800, Shunqian Zheng wrote:
>> There are three pins can act as cif test clock for rk3399.
>> They're sourced from 24M and output 24M by default and some boards
>> may use them as camera 24M xvclk.
>>
>> Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
>> ---
>>   arch/arm64/boot/dts/rockchip/rk3399.dtsi | 17 +++++++++++++++++
>>   1 file changed, 17 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
>> index 7aa2144..daad42f 100644
>> --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
>> +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
>> @@ -2293,6 +2293,23 @@
>>   			};
>>   		};
>>   
>> +		test {
> Doesn't really matter much, but 'test' is a weird group name to me. I
> think 'testclk' or 'test-clk' might be a more descriptive name?
Rename to testclk in v2.
>
>> +			test_clkout0: test-clkout0 {
>> +				rockchip,pins =
>> +					<0 0 RK_FUNC_1 &pcfg_pull_none>;
>> +			};
>> +
>> +			test_clkout1: test-clkout1 {
>> +				rockchip,pins =
>> +					<2 25 RK_FUNC_2 &pcfg_pull_none>;
>> +			};
>> +
>> +			test_clkout2: test-clkout2 {
>> +				rockchip,pins =
>> +					<0 8 RK_FUNC_3 &pcfg_pull_none>;
> Your function indexing is a little confusing to me, but one or more of
> your datasheet, TRM, or patch are incorrect here. The datasheet says
> "Func 3" (which is 1-indexed, so really means RK_FUNC_2) should be
> TEST_CLKOUT2, but your TRM agrees with the patch, saying
> 2'b11=test_clkout2. So I think your patch is correct, but the datasheet
> needs updated?
Yeah, please follow the TRM.
>
> All in all, I think the patch looks good though:
>
> Reviewed-by: Brian Norris <briannorris@chromium.org>
Thanks.
>
>> +			};
>> +		};
>> +
>>   		tsadc {
>>   			otp_gpio: otp-gpio {
>>   				rockchip,pins = <1 6 RK_FUNC_GPIO &pcfg_pull_none>;
>> -- 
>> 1.9.1
>>
>
>



_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH] arm64: dts: rockchip: Add cif test clocks for rk3399
       [not found]         ` <d8aef67f-1de0-0216-7b22-4e7990855353-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
@ 2018-01-09  1:56           ` Brian Norris
       [not found]             ` <20180109015612.GA180695-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Brian Norris @ 2018-01-09  1:56 UTC (permalink / raw)
  To: Shunqian Zheng
  Cc: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	heiko-4mtYJXux2i+zQB+pC5nmwQ

On Tue, Jan 09, 2018 at 09:45:05AM +0800, Shunqian Zheng wrote:
> On 2018年01月09日 03:17, Brian Norris wrote:
> >On Mon, Jan 08, 2018 at 01:48:51PM +0800, Shunqian Zheng wrote:
> >>+			test_clkout2: test-clkout2 {
> >>+				rockchip,pins =
> >>+					<0 8 RK_FUNC_3 &pcfg_pull_none>;
> >Your function indexing is a little confusing to me, but one or more of
> >your datasheet, TRM, or patch are incorrect here. The datasheet says
> >"Func 3" (which is 1-indexed, so really means RK_FUNC_2) should be
> >TEST_CLKOUT2, but your TRM agrees with the patch, saying
> >2'b11=test_clkout2. So I think your patch is correct, but the datasheet
> >needs updated?
> Yeah, please follow the TRM.

Can you make sure the datasheet gets updated?

Thanks,
Brian

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

* Re: [PATCH] arm64: dts: rockchip: Add cif test clocks for rk3399
       [not found]             ` <20180109015612.GA180695-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
@ 2018-01-09  3:17               ` Shunqian Zheng
  0 siblings, 0 replies; 5+ messages in thread
From: Shunqian Zheng @ 2018-01-09  3:17 UTC (permalink / raw)
  To: Brian Norris
  Cc: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	heiko-4mtYJXux2i+zQB+pC5nmwQ

Hi Brian,


On 2018年01月09日 09:56, Brian Norris wrote:
> On Tue, Jan 09, 2018 at 09:45:05AM +0800, Shunqian Zheng wrote:
>> On 2018年01月09日 03:17, Brian Norris wrote:
>>> On Mon, Jan 08, 2018 at 01:48:51PM +0800, Shunqian Zheng wrote:
>>>> +			test_clkout2: test-clkout2 {
>>>> +				rockchip,pins =
>>>> +					<0 8 RK_FUNC_3 &pcfg_pull_none>;
>>> Your function indexing is a little confusing to me, but one or more of
>>> your datasheet, TRM, or patch are incorrect here. The datasheet says
>>> "Func 3" (which is 1-indexed, so really means RK_FUNC_2) should be
>>> TEST_CLKOUT2, but your TRM agrees with the patch, saying
>>> 2'b11=test_clkout2. So I think your patch is correct, but the datasheet
>>> needs updated?
>> Yeah, please follow the TRM.
> Can you make sure the datasheet gets updated?
Sure, I've sent notification to the owner of datasheet.

Thank you
>
> Thanks,
> Brian
>
>
>



_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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

end of thread, other threads:[~2018-01-09  3:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-08  5:48 [PATCH] arm64: dts: rockchip: Add cif test clocks for rk3399 Shunqian Zheng
     [not found] ` <1515390531-13147-1-git-send-email-zhengsq-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2018-01-08 19:17   ` Brian Norris
     [not found]     ` <20180108191733.GA59523-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2018-01-09  1:45       ` Shunqian Zheng
     [not found]         ` <d8aef67f-1de0-0216-7b22-4e7990855353-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2018-01-09  1:56           ` Brian Norris
     [not found]             ` <20180109015612.GA180695-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2018-01-09  3:17               ` Shunqian Zheng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.