All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: renesas: r8a77961: Add TPU device node
@ 2021-08-27  7:38 Wolfram Sang
  2021-08-27  8:15 ` Niklas Söderlund
  2021-09-06  9:25 ` Geert Uytterhoeven
  0 siblings, 2 replies; 4+ messages in thread
From: Wolfram Sang @ 2021-08-27  7:38 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: Wolfram Sang

Add the missing TPU node for the R-Car M3-W+ SoC.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---

When I wanted to enable TPU on M3-N for some testing, building M3-W+
DTBs failed due to this missing.

 arch/arm64/boot/dts/renesas/r8a77961.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a77961.dtsi b/arch/arm64/boot/dts/renesas/r8a77961.dtsi
index 91b501e0121e..22da1c0436be 100644
--- a/arch/arm64/boot/dts/renesas/r8a77961.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a77961.dtsi
@@ -1367,6 +1367,17 @@ scif5: serial@e6f30000 {
 			status = "disabled";
 		};
 
+		tpu: pwm@e6e80000 {
+			compatible = "renesas,tpu-r8a77961", "renesas,tpu";
+			reg = <0 0xe6e80000 0 0x148>;
+			interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 304>;
+			power-domains = <&sysc R8A77961_PD_ALWAYS_ON>;
+			resets = <&cpg 304>;
+			#pwm-cells = <3>;
+			status = "disabled";
+		};
+
 		msiof0: spi@e6e90000 {
 			compatible = "renesas,msiof-r8a77961",
 				     "renesas,rcar-gen3-msiof";
-- 
2.30.2


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

* Re: [PATCH] arm64: dts: renesas: r8a77961: Add TPU device node
  2021-08-27  7:38 [PATCH] arm64: dts: renesas: r8a77961: Add TPU device node Wolfram Sang
@ 2021-08-27  8:15 ` Niklas Söderlund
  2021-09-06  9:25 ` Geert Uytterhoeven
  1 sibling, 0 replies; 4+ messages in thread
From: Niklas Söderlund @ 2021-08-27  8:15 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: linux-renesas-soc

Hi Wolfram,

Thanks for your patch.

On 2021-08-27 09:38:19 +0200, Wolfram Sang wrote:
> Add the missing TPU node for the R-Car M3-W+ SoC.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>

> ---
> 
> When I wanted to enable TPU on M3-N for some testing, building M3-W+
> DTBs failed due to this missing.
> 
>  arch/arm64/boot/dts/renesas/r8a77961.dtsi | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/renesas/r8a77961.dtsi b/arch/arm64/boot/dts/renesas/r8a77961.dtsi
> index 91b501e0121e..22da1c0436be 100644
> --- a/arch/arm64/boot/dts/renesas/r8a77961.dtsi
> +++ b/arch/arm64/boot/dts/renesas/r8a77961.dtsi
> @@ -1367,6 +1367,17 @@ scif5: serial@e6f30000 {
>  			status = "disabled";
>  		};
>  
> +		tpu: pwm@e6e80000 {
> +			compatible = "renesas,tpu-r8a77961", "renesas,tpu";
> +			reg = <0 0xe6e80000 0 0x148>;
> +			interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&cpg CPG_MOD 304>;
> +			power-domains = <&sysc R8A77961_PD_ALWAYS_ON>;
> +			resets = <&cpg 304>;
> +			#pwm-cells = <3>;
> +			status = "disabled";
> +		};
> +
>  		msiof0: spi@e6e90000 {
>  			compatible = "renesas,msiof-r8a77961",
>  				     "renesas,rcar-gen3-msiof";
> -- 
> 2.30.2
> 

-- 
Regards,
Niklas Söderlund

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

* Re: [PATCH] arm64: dts: renesas: r8a77961: Add TPU device node
  2021-08-27  7:38 [PATCH] arm64: dts: renesas: r8a77961: Add TPU device node Wolfram Sang
  2021-08-27  8:15 ` Niklas Söderlund
@ 2021-09-06  9:25 ` Geert Uytterhoeven
  2021-09-06  9:38   ` Wolfram Sang
  1 sibling, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2021-09-06  9:25 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: Linux-Renesas

Hi Wolfram,

On Fri, Aug 27, 2021 at 9:38 AM Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> Add the missing TPU node for the R-Car M3-W+ SoC.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Thanks for your patch!

> --- a/arch/arm64/boot/dts/renesas/r8a77961.dtsi
> +++ b/arch/arm64/boot/dts/renesas/r8a77961.dtsi
> @@ -1367,6 +1367,17 @@ scif5: serial@e6f30000 {
>                         status = "disabled";
>                 };
>
> +               tpu: pwm@e6e80000 {
> +                       compatible = "renesas,tpu-r8a77961", "renesas,tpu";

scripts/checkpatch.pl:

    WARNING: DT compatible string "renesas,tpu-r8a77961" appears
un-documented -- check ./Documentation/devicetree/bindings/
    #34: FILE: arch/arm64/boot/dts/renesas/r8a77961.dtsi:1371:

make dtbs_check:

    arch/arm64/boot/dts/renesas/r8a77961-ulcb.dt.yaml: pwm@e6e80000:
compatible:0: 'renesas,tpu-r8a77961' is not one of
['renesas,tpu-r8a73a4', 'renesas,tpu-r8a7740', 'renesas,tpu-r8a7742',
'renesas,tpu-r8a7743', 'renesas,tpu-r8a7744', 'renesas,tpu-r8a7745',
'renesas,tpu-r8a7790', 'renesas,tpu-r8a7791', 'renesas,tpu-r8a7792',
'renesas,tpu-r8a7793', 'renesas,tpu-r8a7794', 'renesas,tpu-r8a7795',
'renesas,tpu-r8a7796', 'renesas,tpu-r8a77965', 'renesas,tpu-r8a77970',
'renesas,tpu-r8a77980']

Any chance you can send a DT binding update? TIA!

> +                       reg = <0 0xe6e80000 0 0x148>;
> +                       interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>;
> +                       clocks = <&cpg CPG_MOD 304>;
> +                       power-domains = <&sysc R8A77961_PD_ALWAYS_ON>;
> +                       resets = <&cpg 304>;
> +                       #pwm-cells = <3>;
> +                       status = "disabled";
> +               };
> +
>                 msiof0: spi@e6e90000 {
>                         compatible = "renesas,msiof-r8a77961",
>                                      "renesas,rcar-gen3-msiof";

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v5.16.

Gr{oetje,eeting}s,

                        Geert


--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH] arm64: dts: renesas: r8a77961: Add TPU device node
  2021-09-06  9:25 ` Geert Uytterhoeven
@ 2021-09-06  9:38   ` Wolfram Sang
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfram Sang @ 2021-09-06  9:38 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Linux-Renesas

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


> Any chance you can send a DT binding update? TIA!

Sure, will do! Thanks for the pointer.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2021-09-06  9:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27  7:38 [PATCH] arm64: dts: renesas: r8a77961: Add TPU device node Wolfram Sang
2021-08-27  8:15 ` Niklas Söderlund
2021-09-06  9:25 ` Geert Uytterhoeven
2021-09-06  9:38   ` Wolfram Sang

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.