devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: add gce node for mt8183
@ 2019-03-06 10:10 Bibby Hsieh
  2019-03-07  1:24 ` CK Hu
  0 siblings, 1 reply; 3+ messages in thread
From: Bibby Hsieh @ 2019-03-06 10:10 UTC (permalink / raw)
  To: Jassi Brar, Matthias Brugger, Rob Herring, CK HU
  Cc: Daniel Kurtz, Sascha Hauer, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, srv_heupstream, Sascha Hauer,
	Philipp Zabel, Nicolas Boichat, Bibby Hsieh, YT Shen,
	Daoyuan Huang, Jiaguang Zhang, Dennis-YC Hsieh, Houlong Wei,
	ginny.chen, kendrick.hsu, Frederic Chen

This patch need based on v5.0-rc1 and these series
http://lists.infradead.org/pipermail/linux-mediatek/2019-February/017570.html
http://lists.infradead.org/pipermail/linux-mediatek/2019-February/017320.html
http://lists.infradead.org/pipermail/linux-mediatek/2019-January/017196.html
http://lists.infradead.org/pipermail/linux-mediatek/2019-March/018005.html

add gce device node for mt8183

Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
---
 arch/arm64/boot/dts/mediatek/mt8183.dtsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
index 165b859..5006368 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
@@ -8,6 +8,7 @@
 #include <dt-bindings/clock/mt8183-clk.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/gce/mt8183-gce.h>
 #include "mt8183-pinfunc.h"
 
 / {
@@ -238,6 +239,18 @@
 			clock-names = "spi", "wrap";
 		};
 
+		gce: gce@10238000 {
+			compatible = "mediatek,mt8183-gce";
+			reg = <0 0x10238000 0 0x4000>;
+			interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_LOW>;
+			thread-num = <CMDQ_THR_MAX_COUNT>;
+			#mbox-cells = <3>;
+			#gce-event-cells = <1>;
+			#gce-subsys-cells = <2>;
+			clocks = <&infracfg CLK_INFRA_GCE>;
+			clock-names = "gce";
+		};
+
 		uart0: serial@11002000 {
 			compatible = "mediatek,mt8183-uart",
 				     "mediatek,mt6577-uart";
-- 
1.9.1

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

* Re: [PATCH] arm64: dts: add gce node for mt8183
  2019-03-06 10:10 [PATCH] arm64: dts: add gce node for mt8183 Bibby Hsieh
@ 2019-03-07  1:24 ` CK Hu
  2019-03-07  1:47   ` houlong wei
  0 siblings, 1 reply; 3+ messages in thread
From: CK Hu @ 2019-03-07  1:24 UTC (permalink / raw)
  To: Bibby Hsieh
  Cc: Jassi Brar, Matthias Brugger, Rob Herring, Daniel Kurtz,
	Sascha Hauer, devicetree, linux-kernel, linux-arm-kernel,
	linux-mediatek, srv_heupstream, Sascha Hauer,
	Philipp Zabel  <p.zabel@pengutronix.de>, Nicolas Boichat <drinkcat@chromium.org>,  YT Shen  <yt.shen@mediatek.com>, Daoyuan Huang <daoyuan.huang@mediatek.com>, Jiaguang Zhang,
	Dennis-YC Hsieh, Houlong Wei, ginny.chen, kendrick.hsu,
	Frederic Chen

[-- Attachment #1: Type: text/plain, Size: 1829 bytes --]

Hi, Bibby:

On Wed, 2019-03-06 at 18:10 +0800, Bibby Hsieh wrote:

> This patch need based on v5.0-rc1 and these series
> http://lists.infradead.org/pipermail/linux-mediatek/2019-February/017570.html
> http://lists.infradead.org/pipermail/linux-mediatek/2019-February/017320.html
> http://lists.infradead.org/pipermail/linux-mediatek/2019-January/017196.html
> http://lists.infradead.org/pipermail/linux-mediatek/2019-March/018005.html
> 
> add gce device node for mt8183
> 
> Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
> ---
>  arch/arm64/boot/dts/mediatek/mt8183.dtsi | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
> index 165b859..5006368 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
> @@ -8,6 +8,7 @@
>  #include <dt-bindings/clock/mt8183-clk.h>
>  #include <dt-bindings/interrupt-controller/arm-gic.h>
>  #include <dt-bindings/interrupt-controller/irq.h>
> +#include <dt-bindings/gce/mt8183-gce.h>
>  #include "mt8183-pinfunc.h"
>  
>  / {
> @@ -238,6 +239,18 @@
>  			clock-names = "spi", "wrap";
>  		};
>  
> +		gce: gce@10238000 {
> +			compatible = "mediatek,mt8183-gce";
> +			reg = <0 0x10238000 0 0x4000>;
> +			interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_LOW>;
> +			thread-num = <CMDQ_THR_MAX_COUNT>;


I does not find 'thread-num' in binding document [1].

[1]
https://www.kernel.org/doc/Documentation/devicetree/bindings/mailbox/mtk-gce.txt

Regards,
CK


> +			#mbox-cells = <3>;
> +			#gce-event-cells = <1>;
> +			#gce-subsys-cells = <2>;
> +			clocks = <&infracfg CLK_INFRA_GCE>;
> +			clock-names = "gce";
> +		};
> +
>  		uart0: serial@11002000 {
>  			compatible = "mediatek,mt8183-uart",
>  				     "mediatek,mt6577-uart";



[-- Attachment #2: Type: text/html, Size: 2665 bytes --]

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

* Re: [PATCH] arm64: dts: add gce node for mt8183
  2019-03-07  1:24 ` CK Hu
@ 2019-03-07  1:47   ` houlong wei
  0 siblings, 0 replies; 3+ messages in thread
From: houlong wei @ 2019-03-07  1:47 UTC (permalink / raw)
  To: CK Hu, bibby.hsieh
  Cc: Bibby Hsieh (謝濟遠), Jassi Brar,
	Matthias Brugger, Rob Herring, Daniel Kurtz, Sascha Hauer,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org, srv_heupstream, Sascha Hauer,
	Philipp Zabel, Nicolas Boichat

On Thu, 2019-03-07 at 09:24 +0800, CK Hu wrote:
> Hi, Bibby:
> 
> On Wed, 2019-03-06 at 18:10 +0800, Bibby Hsieh wrote: 
> > This patch need based on v5.0-rc1 and these series
> > http://lists.infradead.org/pipermail/linux-mediatek/2019-February/017570.html
> > http://lists.infradead.org/pipermail/linux-mediatek/2019-February/017320.html
> > http://lists.infradead.org/pipermail/linux-mediatek/2019-January/017196.html
> > http://lists.infradead.org/pipermail/linux-mediatek/2019-March/018005.html
> > 
> > add gce device node for mt8183
> > 
> > Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
> > ---
> >  arch/arm64/boot/dts/mediatek/mt8183.dtsi | 13 +++++++++++++
> >  1 file changed, 13 insertions(+)
> > 
> > diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
> > index 165b859..5006368 100644
> > --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi
> > +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi
> > @@ -8,6 +8,7 @@
> >  #include <dt-bindings/clock/mt8183-clk.h>
> >  #include <dt-bindings/interrupt-controller/arm-gic.h>
> >  #include <dt-bindings/interrupt-controller/irq.h>
> > +#include <dt-bindings/gce/mt8183-gce.h>
> >  #include "mt8183-pinfunc.h"
> >  
> >  / {
> > @@ -238,6 +239,18 @@
> >  			clock-names = "spi", "wrap";
> >  		};
> >  
> > +		gce: gce@10238000 {
> > +			compatible = "mediatek,mt8183-gce";
> > +			reg = <0 0x10238000 0 0x4000>;
> > +			interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_LOW>;
> > +			thread-num = <CMDQ_THR_MAX_COUNT>;
> 
> I does not find 'thread-num' in binding document [1].
> 
> [1]
> https://www.kernel.org/doc/Documentation/devicetree/bindings/mailbox/mtk-gce.txt
> 
> Regards,
> CK

The property "thread-num" is not used and and it was removed from the
properties description, but I forgot to remove it from the example. That
is misleading and I'm sorry for that. @Bibby, could you please help
remove it from the example in mtk-gce.txt if you would upload a new
version?
> 
> > +			#mbox-cells = <3>;
> > +			#gce-event-cells = <1>;
> > +			#gce-subsys-cells = <2>;
> > +			clocks = <&infracfg CLK_INFRA_GCE>;
> > +			clock-names = "gce";
> > +		};
> > +
> >  		uart0: serial@11002000 {
> >  			compatible = "mediatek,mt8183-uart",
> >  				     "mediatek,mt6577-uart";
> 

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

end of thread, other threads:[~2019-03-07  1:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-06 10:10 [PATCH] arm64: dts: add gce node for mt8183 Bibby Hsieh
2019-03-07  1:24 ` CK Hu
2019-03-07  1:47   ` houlong wei

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