diff mbox

[V2] clockevents: rockchip: Add rockchip timer for rk3288

Message ID 2285293.ZBcGIuxxDo@diego (mailing list archive)
State New, archived
Headers show

Commit Message

Heiko Stübner Jan. 25, 2015, 8:52 p.m. UTC
Hi Daniel,

one big request and some more style nitpicks :-)

With the nitpicks fixed
Reviewed-by: Heiko Stuebner <heiko@sntech.de>


Before applying this patch could you drop the rk3288.dtsi change please?
Instead I'd like to add the following patch separately to _my_ devicetree
branch for 3.20.

I already wasn't fast enough to prevent the ethernet controller changes
going through the network tree and would like to prevent a third tree sending
changes for the same dts area to Linus - merge conflicts and all.


I don't think that neither the nitpicks nor dropping the dtsi segment need
another submission though.


Heiko


----- 8< -----------
From: Daniel Lezcano <daniel.lezcano@linaro.org>
Date: Sun, 25 Jan 2015 10:42:59 +0100
Subject: [PATCH] ARM: dts: rockchip: Add rockchip timer node for rk3288

The rk3288 board uses the architected timers and these ones are shutdown when
the cpu is powered down. There is a need of a broadcast timer in this case to
ensure proper wakeup when the cpus are in sleep mode and a timer expires.

Add the timer node for the broadcast timer.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
 arch/arm/boot/dts/rk3288.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Daniel Lezcano Jan. 25, 2015, 9:16 p.m. UTC | #1
On 01/25/2015 09:52 PM, Heiko Stübner wrote:
> Hi Daniel,
>
> one big request and some more style nitpicks :-)
>
> With the nitpicks fixed
> Reviewed-by: Heiko Stuebner <heiko@sntech.de>
>
>
> Before applying this patch could you drop the rk3288.dtsi change please?
> Instead I'd like to add the following patch separately to _my_ devicetree
> branch for 3.20.
>
> I already wasn't fast enough to prevent the ethernet controller changes
> going through the network tree and would like to prevent a third tree sending
> changes for the same dts area to Linus - merge conflicts and all.
>
>
> I don't think that neither the nitpicks nor dropping the dtsi segment need
> another submission though.

Hi Heiko,

I removed the dtsi change, fixed the spaces indentation and pushed in my 
tree the driver [1]

Thanks the review

   -- Daniel

[1] http://git.linaro.org/people/daniel.lezcano/linux.git clockevents/3.20


> ----- 8< -----------
> From: Daniel Lezcano <daniel.lezcano@linaro.org>
> Date: Sun, 25 Jan 2015 10:42:59 +0100
> Subject: [PATCH] ARM: dts: rockchip: Add rockchip timer node for rk3288
>
> The rk3288 board uses the architected timers and these ones are shutdown when
> the cpu is powered down. There is a need of a broadcast timer in this case to
> ensure proper wakeup when the cpus are in sleep mode and a timer expires.
>
> Add the timer node for the broadcast timer.
>
> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> ---
>   arch/arm/boot/dts/rk3288.dtsi | 8 ++++++++
>   1 file changed, 8 insertions(+)
>
> diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
> index c7235fa..37847c1 100644
> --- a/arch/arm/boot/dts/rk3288.dtsi
> +++ b/arch/arm/boot/dts/rk3288.dtsi
> @@ -149,6 +149,14 @@
>   		clock-frequency = <24000000>;
>   	};
>
> +	timer: timer@ff810000 {
> +		compatible = "rockchip,rk3288-timer";
> +		reg = <0xff810000 0x20>;
> +		interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
> +		clocks = <&xin24m>, <&cru PCLK_TIMER>;
> +		clock-names = "timer", "pclk";
> +	};
> +
>   	display-subsystem {
>   		compatible = "rockchip,display-subsystem";
>   		ports = <&vopl_out>, <&vopb_out>;
>
Heiko Stübner Jan. 25, 2015, 9:28 p.m. UTC | #2
Hi Daniel,

Am Sonntag, 25. Januar 2015, 22:16:10 schrieb Daniel Lezcano:
> On 01/25/2015 09:52 PM, Heiko Stübner wrote:
> > one big request and some more style nitpicks :-)
> > 
> > With the nitpicks fixed
> > Reviewed-by: Heiko Stuebner <heiko@sntech.de>
> > 
> > 
> > Before applying this patch could you drop the rk3288.dtsi change please?
> > Instead I'd like to add the following patch separately to _my_ devicetree
> > branch for 3.20.
> > 
> > I already wasn't fast enough to prevent the ethernet controller changes
> > going through the network tree and would like to prevent a third tree
> > sending changes for the same dts area to Linus - merge conflicts and all.
> > 
> > 
> > I don't think that neither the nitpicks nor dropping the dtsi segment need
> > another submission though.
> 
> Hi Heiko,
> 
> I removed the dtsi change, fixed the spaces indentation and pushed in my
> tree the driver [1]

and I pushed the corresponding dt change to [2] and am going to send the
pull request to arm-soc in the next days.


Heiko


[2] https://git.kernel.org/cgit/linux/kernel/git/mmind/linux-rockchip.git/log/?h=v3.20-armsoc/dts
diff mbox

Patch

diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
index c7235fa..37847c1 100644
--- a/arch/arm/boot/dts/rk3288.dtsi
+++ b/arch/arm/boot/dts/rk3288.dtsi
@@ -149,6 +149,14 @@ 
 		clock-frequency = <24000000>;
 	};
 
+	timer: timer@ff810000 {
+		compatible = "rockchip,rk3288-timer";
+		reg = <0xff810000 0x20>;
+		interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&xin24m>, <&cru PCLK_TIMER>;
+		clock-names = "timer", "pclk";
+	};
+
 	display-subsystem {
 		compatible = "rockchip,display-subsystem";
 		ports = <&vopl_out>, <&vopb_out>;