linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] add systimer node for MT8183 SoC
@ 2019-10-28  6:09 Dehui Sun
  2019-10-28  6:09 ` [PATCH v2 1/2] dt-bindings: mediatek: update bindings for MT8183 systimer Dehui Sun
  2019-10-28  6:09 ` [PATCH v2 2/2] arm64: dts: mt8183: add systimer0 device node Dehui Sun
  0 siblings, 2 replies; 6+ messages in thread
From: Dehui Sun @ 2019-10-28  6:09 UTC (permalink / raw)
  To: Daniel Lezcano, Thomas Gleixner, Rob Herring, Mark Rutland,
	Matthias Brugger
  Cc: linux-kernel, devicetree, linux-arm-kernel, linux-mediatek,
	srv_heupstream, erin.lo, weiyi.lu, dehui.sun

This series are based on 5.4-rc1 and add systimer node for MT8183,
and this timer will serve as a wakeup source for cpu-idle feature.

Change in v2:
 - rename the node's name from 'systimer' to 'timer'.

Dehui Sun (2):
  dt-bindings: mediatek: update bindings for MT8183 systimer
  arm64: dts: mt8183: add systimer0 device node

 Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt | 1 +
 arch/arm64/boot/dts/mediatek/mt8183.dtsi                       | 9 +++++++++
 2 files changed, 10 insertions(+)

-- 
1.9.1


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

* [PATCH v2 1/2] dt-bindings: mediatek: update bindings for MT8183 systimer
  2019-10-28  6:09 [PATCH v2 0/2] add systimer node for MT8183 SoC Dehui Sun
@ 2019-10-28  6:09 ` Dehui Sun
  2019-10-28  9:34   ` Daniel Lezcano
  2019-10-28  6:09 ` [PATCH v2 2/2] arm64: dts: mt8183: add systimer0 device node Dehui Sun
  1 sibling, 1 reply; 6+ messages in thread
From: Dehui Sun @ 2019-10-28  6:09 UTC (permalink / raw)
  To: Daniel Lezcano, Thomas Gleixner, Rob Herring, Mark Rutland,
	Matthias Brugger
  Cc: linux-kernel, devicetree, linux-arm-kernel, linux-mediatek,
	srv_heupstream, erin.lo, weiyi.lu, dehui.sun

This commit adds mt8183 compatible node in mtk-timer binding document.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dehui Sun <dehui.sun@mediatek.com>
---
 Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt b/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt
index 74c3ead..0d25648 100644
--- a/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt
+++ b/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt
@@ -21,6 +21,7 @@ Required properties:
 	* "mediatek,mt6577-timer" for MT6577 and all above compatible timers (GPT)
 
 	For those SoCs that use SYST
+	* "mediatek,mt8183-timer" for MT8183 compatible timers (SYST)
 	* "mediatek,mt7629-timer" for MT7629 compatible timers (SYST)
 	* "mediatek,mt6765-timer" for MT6765 and all above compatible timers (SYST)
 
-- 
1.9.1


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

* [PATCH v2 2/2] arm64: dts: mt8183: add systimer0 device node
  2019-10-28  6:09 [PATCH v2 0/2] add systimer node for MT8183 SoC Dehui Sun
  2019-10-28  6:09 ` [PATCH v2 1/2] dt-bindings: mediatek: update bindings for MT8183 systimer Dehui Sun
@ 2019-10-28  6:09 ` Dehui Sun
  2019-11-10 20:15   ` Matthias Brugger
  1 sibling, 1 reply; 6+ messages in thread
From: Dehui Sun @ 2019-10-28  6:09 UTC (permalink / raw)
  To: Daniel Lezcano, Thomas Gleixner, Rob Herring, Mark Rutland,
	Matthias Brugger
  Cc: linux-kernel, devicetree, linux-arm-kernel, linux-mediatek,
	srv_heupstream, erin.lo, weiyi.lu, dehui.sun

Add systimer0 device node for MT8183.

Signed-off-by: Dehui Sun <dehui.sun@mediatek.com>
---
 arch/arm64/boot/dts/mediatek/mt8183.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
index 7e23179..40145dc 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
@@ -326,6 +326,15 @@
 			clock-names = "spi", "wrap";
 		};
 
+		systimer: timer@10017000 {
+			compatible = "mediatek,mt8183-timer",
+				     "mediatek,mt6765-timer";
+			reg = <0 0x10017000 0 0x1000>;
+			interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&topckgen CLK_TOP_CLK13M>;
+			clock-names = "clk13m";
+		};
+
 		auxadc: auxadc@11001000 {
 			compatible = "mediatek,mt8183-auxadc",
 				     "mediatek,mt8173-auxadc";
-- 
1.9.1


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

* Re: [PATCH v2 1/2] dt-bindings: mediatek: update bindings for MT8183 systimer
  2019-10-28  6:09 ` [PATCH v2 1/2] dt-bindings: mediatek: update bindings for MT8183 systimer Dehui Sun
@ 2019-10-28  9:34   ` Daniel Lezcano
  2019-11-10 20:14     ` Matthias Brugger
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Lezcano @ 2019-10-28  9:34 UTC (permalink / raw)
  To: Dehui Sun, Thomas Gleixner, Rob Herring, Mark Rutland, Matthias Brugger
  Cc: linux-kernel, devicetree, linux-arm-kernel, linux-mediatek,
	srv_heupstream, erin.lo, weiyi.lu

On 28/10/2019 07:09, Dehui Sun wrote:
> This commit adds mt8183 compatible node in mtk-timer binding document.
> 
> Reviewed-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Dehui Sun <dehui.sun@mediatek.com>

Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>

> ---
>  Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt b/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt
> index 74c3ead..0d25648 100644
> --- a/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt
> +++ b/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt
> @@ -21,6 +21,7 @@ Required properties:
>  	* "mediatek,mt6577-timer" for MT6577 and all above compatible timers (GPT)
>  
>  	For those SoCs that use SYST
> +	* "mediatek,mt8183-timer" for MT8183 compatible timers (SYST)
>  	* "mediatek,mt7629-timer" for MT7629 compatible timers (SYST)
>  	* "mediatek,mt6765-timer" for MT6765 and all above compatible timers (SYST)
>  
> 


-- 
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog


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

* Re: [PATCH v2 1/2] dt-bindings: mediatek: update bindings for MT8183 systimer
  2019-10-28  9:34   ` Daniel Lezcano
@ 2019-11-10 20:14     ` Matthias Brugger
  0 siblings, 0 replies; 6+ messages in thread
From: Matthias Brugger @ 2019-11-10 20:14 UTC (permalink / raw)
  To: Daniel Lezcano, Dehui Sun, Thomas Gleixner, Rob Herring, Mark Rutland
  Cc: linux-kernel, devicetree, linux-arm-kernel, linux-mediatek,
	srv_heupstream, erin.lo, weiyi.lu



On 28/10/2019 10:34, Daniel Lezcano wrote:
> On 28/10/2019 07:09, Dehui Sun wrote:
>> This commit adds mt8183 compatible node in mtk-timer binding document.
>>
>> Reviewed-by: Rob Herring <robh@kernel.org>
>> Signed-off-by: Dehui Sun <dehui.sun@mediatek.com>
> 
> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
> 

Applied

>> ---
>>  Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt b/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt
>> index 74c3ead..0d25648 100644
>> --- a/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt
>> +++ b/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt
>> @@ -21,6 +21,7 @@ Required properties:
>>  	* "mediatek,mt6577-timer" for MT6577 and all above compatible timers (GPT)
>>  
>>  	For those SoCs that use SYST
>> +	* "mediatek,mt8183-timer" for MT8183 compatible timers (SYST)
>>  	* "mediatek,mt7629-timer" for MT7629 compatible timers (SYST)
>>  	* "mediatek,mt6765-timer" for MT6765 and all above compatible timers (SYST)
>>  
>>
> 
> 

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

* Re: [PATCH v2 2/2] arm64: dts: mt8183: add systimer0 device node
  2019-10-28  6:09 ` [PATCH v2 2/2] arm64: dts: mt8183: add systimer0 device node Dehui Sun
@ 2019-11-10 20:15   ` Matthias Brugger
  0 siblings, 0 replies; 6+ messages in thread
From: Matthias Brugger @ 2019-11-10 20:15 UTC (permalink / raw)
  To: Dehui Sun, Daniel Lezcano, Thomas Gleixner, Rob Herring, Mark Rutland
  Cc: linux-kernel, devicetree, linux-arm-kernel, linux-mediatek,
	srv_heupstream, erin.lo, weiyi.lu



On 28/10/2019 07:09, Dehui Sun wrote:
> Add systimer0 device node for MT8183.

I renamed systemer0 to systimer.

Applied, thanks!

> 
> Signed-off-by: Dehui Sun <dehui.sun@mediatek.com>
> ---
>  arch/arm64/boot/dts/mediatek/mt8183.dtsi | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
> index 7e23179..40145dc 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
> @@ -326,6 +326,15 @@
>  			clock-names = "spi", "wrap";
>  		};
>  
> +		systimer: timer@10017000 {
> +			compatible = "mediatek,mt8183-timer",
> +				     "mediatek,mt6765-timer";
> +			reg = <0 0x10017000 0 0x1000>;
> +			interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&topckgen CLK_TOP_CLK13M>;
> +			clock-names = "clk13m";
> +		};
> +
>  		auxadc: auxadc@11001000 {
>  			compatible = "mediatek,mt8183-auxadc",
>  				     "mediatek,mt8173-auxadc";
> 

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

end of thread, other threads:[~2019-11-10 20:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-28  6:09 [PATCH v2 0/2] add systimer node for MT8183 SoC Dehui Sun
2019-10-28  6:09 ` [PATCH v2 1/2] dt-bindings: mediatek: update bindings for MT8183 systimer Dehui Sun
2019-10-28  9:34   ` Daniel Lezcano
2019-11-10 20:14     ` Matthias Brugger
2019-10-28  6:09 ` [PATCH v2 2/2] arm64: dts: mt8183: add systimer0 device node Dehui Sun
2019-11-10 20:15   ` Matthias Brugger

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).