Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1470563 > unrolled thread

[PATCH] arm64: dts: rockchip: fix the address map for WDT0 and WDT1

Started byXing Zheng <zhengxing@rock-chips.com>
First post2016-08-26 08:40 +0200
Last post2016-08-26 12:50 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] arm64: dts: rockchip: fix the address map for WDT0 and WDT1 Xing Zheng <zhengxing@rock-chips.com> - 2016-08-26 08:40 +0200
    Re: [PATCH] arm64: dts: rockchip: fix the address map for WDT0 and  WDT1 Shawn Lin <shawn.lin@rock-chips.com> - 2016-08-26 11:50 +0200
      Re: [PATCH] arm64: dts: rockchip: fix the address map for WDT0 and  WDT1 Xing Zheng <zhengxing@rock-chips.com> - 2016-08-26 12:50 +0200

#1470563 — [PATCH] arm64: dts: rockchip: fix the address map for WDT0 and WDT1

FromXing Zheng <zhengxing@rock-chips.com>
Date2016-08-26 08:40 +0200
Subject[PATCH] arm64: dts: rockchip: fix the address map for WDT0 and WDT1
Message-ID<saiY1-3qe-1@gated-at.bofh.it>
Dues to incorrect description in the TRM, the WDTs base address
should be fixed and swap them like this:
WDT0 - 0xff848000
WDT1 - 0xff840000

And, it is right that only WDT0 can generate global software reset.
We will update the TRM to fix it.

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
---

 arch/arm64/boot/dts/rockchip/rk3399.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
index bc86e8c..f0f52c1 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
@@ -1002,9 +1002,9 @@
 		};
 	};
 
-	watchdog@ff840000 {
+	watchdog@ff848000 {
 		compatible = "snps,dw-wdt";
-		reg = <0x0 0xff840000 0x0 0x100>;
+		reg = <0x0 0xff848000 0x0 0x100>;
 		clocks = <&cru PCLK_WDT>;
 		interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
 	};
-- 
1.9.1

[toc] | [next] | [standalone]


#1470630 — Re: [PATCH] arm64: dts: rockchip: fix the address map for WDT0 and WDT1

FromShawn Lin <shawn.lin@rock-chips.com>
Date2016-08-26 11:50 +0200
SubjectRe: [PATCH] arm64: dts: rockchip: fix the address map for WDT0 and WDT1
Message-ID<salVT-5e5-3@gated-at.bofh.it>
In reply to#1470563
On 2016/8/26 14:22, Xing Zheng wrote:
> Dues to incorrect description in the TRM, the WDTs base address
> should be fixed and swap them like this:
> WDT0 - 0xff848000
> WDT1 - 0xff840000
>
> And, it is right that only WDT0 can generate global software reset.
> We will update the TRM to fix it.
>
> Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
> ---
>
>  arch/arm64/boot/dts/rockchip/rk3399.dtsi | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
> index bc86e8c..f0f52c1 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
> @@ -1002,9 +1002,9 @@
>  		};
>  	};
>
> -	watchdog@ff840000 {
> +	watchdog@ff848000 {

Just a nit, should we mark this explicitly as "watchdog0" ?
I still need to look up for which wdt you are using.:)

>  		compatible = "snps,dw-wdt";
> -		reg = <0x0 0xff840000 0x0 0x100>;
> +		reg = <0x0 0xff848000 0x0 0x100>;
>  		clocks = <&cru PCLK_WDT>;
>  		interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
>  	};
>


-- 
Best Regards
Shawn Lin

[toc] | [prev] | [next] | [standalone]


#1470652 — Re: [PATCH] arm64: dts: rockchip: fix the address map for WDT0 and WDT1

FromXing Zheng <zhengxing@rock-chips.com>
Date2016-08-26 12:50 +0200
SubjectRe: [PATCH] arm64: dts: rockchip: fix the address map for WDT0 and WDT1
Message-ID<samRX-5OT-1@gated-at.bofh.it>
In reply to#1470630
Hi Shawn,

On 2016年08月26日 17:41, Shawn Lin wrote:
> On 2016/8/26 14:22, Xing Zheng wrote:
>> Dues to incorrect description in the TRM, the WDTs base address
>> should be fixed and swap them like this:
>> WDT0 - 0xff848000
>> WDT1 - 0xff840000
>>
>> And, it is right that only WDT0 can generate global software reset.
>> We will update the TRM to fix it.
>>
>> Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
>> ---
>>
>> arch/arm64/boot/dts/rockchip/rk3399.dtsi | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi 
>> b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
>> index bc86e8c..f0f52c1 100644
>> --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
>> +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
>> @@ -1002,9 +1002,9 @@
>> };
>> };
>>
>> - watchdog@ff840000 {
>> + watchdog@ff848000 {
>
> Just a nit, should we mark this explicitly as "watchdog0" ?
> I still need to look up for which wdt you are using.:)
Done.

Thanks.
>
>> compatible = "snps,dw-wdt";
>> - reg = <0x0 0xff840000 0x0 0x100>;
>> + reg = <0x0 0xff848000 0x0 0x100>;
>> clocks = <&cru PCLK_WDT>;
>> interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
>> };
>>
>
>


-- 
- Xing Zheng

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web