Re: [PATCH 1/2] iommu/arm-smmu: Use platform_irq_count() to get the interrupt count

2021-12-23 Thread Lad, Prabhakar
Hi Robin,

Thank you for the review.

On Thu, Dec 23, 2021 at 2:14 PM Robin Murphy  wrote:
>
> On 2021-12-23 13:00, Lad Prabhakar wrote:
> > platform_get_resource(pdev, IORESOURCE_IRQ, ..) relies on static
> > allocation of IRQ resources in DT core code, this causes an issue
> > when using hierarchical interrupt domains using "interrupts" property
> > in the node as this bypasses the hierarchical setup and messes up the
> > irq chaining.
> >
> > In preparation for removal of static setup of IRQ resource from DT core
> > code use platform_get_irq_count().
>
> Nit: platform_irq_count()
>
> > Signed-off-by: Lad Prabhakar 
> > ---
> >   drivers/iommu/arm/arm-smmu/arm-smmu.c | 12 ++--
> >   1 file changed, 6 insertions(+), 6 deletions(-)
> >
> > diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu.c 
> > b/drivers/iommu/arm/arm-smmu/arm-smmu.c
> > index 4bc75c4ce402..4844cd075644 100644
> > --- a/drivers/iommu/arm/arm-smmu/arm-smmu.c
> > +++ b/drivers/iommu/arm/arm-smmu/arm-smmu.c
> > @@ -2105,12 +2105,12 @@ static int arm_smmu_device_probe(struct 
> > platform_device *pdev)
> >   if (IS_ERR(smmu))
> >   return PTR_ERR(smmu);
> >
> > - num_irqs = 0;
> > - while ((res = platform_get_resource(pdev, IORESOURCE_IRQ, num_irqs))) 
> > {
> > - num_irqs++;
> > - if (num_irqs > smmu->num_global_irqs)
> > - smmu->num_context_irqs++;
> > - }
> > + num_irqs = platform_irq_count(pdev);
> > + if (num_irqs < 0)
> > + return num_irqs;
> > +
> > + if (num_irqs > smmu->num_global_irqs)
> > + smmu->num_context_irqs += (num_irqs - smmu->num_global_irqs);
>
> This seems a bit overcomplicated. I reckon:
>
> smmu->num_context_irqs = num_irqs - smmu->num_global_irqs;
> if (num_irqs <= smmu->num_global_irqs) {
> dev_err(...
>
> should do it.
>
Agreed.

> However, FYI I have some patches refactoring most of the IRQ stuff here
> that I plan to post next cycle (didn't quite have time to get them done
> for 5.17 as I'd hoped...), so unless this needs to go in right now as an
> urgent fix, I'm happy to take care of removing platform_get_resource()
> as part of that if it's easier.
>
Fine by me, let me know if it gets any later than planned I'll send a v2.

Cheers,
Prabhakar
___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


[PATCH 2/2] iommu/arm-smmu: Propagate errors from platform_get_irq()

2021-12-23 Thread Lad Prabhakar
The driver overrides the error code returned by platform_get_irq() to
-ENODEV. Switch to propagating the error code upstream so that errors
such as -EPROBE_DEFER are handled.

Fixes: 9ec36cafe43b ("of/irq: do irq resolution in platform_get_irq")
Signed-off-by: Lad Prabhakar 
---
 drivers/iommu/arm/arm-smmu/arm-smmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu.c 
b/drivers/iommu/arm/arm-smmu/arm-smmu.c
index 4844cd075644..6cf5612efcda 100644
--- a/drivers/iommu/arm/arm-smmu/arm-smmu.c
+++ b/drivers/iommu/arm/arm-smmu/arm-smmu.c
@@ -2129,7 +2129,7 @@ static int arm_smmu_device_probe(struct platform_device 
*pdev)
int irq = platform_get_irq(pdev, i);
 
if (irq < 0)
-   return -ENODEV;
+   return irq;
smmu->irqs[i] = irq;
}
 
-- 
2.17.1

___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


[PATCH 0/2] iommu/arm-smmu: Use platform_irq_count()

2021-12-23 Thread Lad Prabhakar
Hi All,

This patch series aims to drop using platform_get_resource() for IRQ types
in preparation for removal of static setup of IRQ resource from DT core
code.

Dropping usage of platform_get_resource() was agreed based on
the discussion [0].

[0] https://patchwork.kernel.org/project/linux-renesas-soc/
patch/20211209001056.29774-1-prabhakar.mahadev-lad...@bp.renesas.com/

While I was at it created patch 2/2 to propagate errors upstream.

Cheers,
Prabhakar

Lad Prabhakar (2):
  iommu/arm-smmu: Use platform_irq_count() to get the interrupt count
  iommu/arm-smmu: Propagate errors from platform_get_irq()

 drivers/iommu/arm/arm-smmu/arm-smmu.c | 14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

-- 
2.17.1

___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


[PATCH 1/2] iommu/arm-smmu: Use platform_irq_count() to get the interrupt count

2021-12-23 Thread Lad Prabhakar
platform_get_resource(pdev, IORESOURCE_IRQ, ..) relies on static
allocation of IRQ resources in DT core code, this causes an issue
when using hierarchical interrupt domains using "interrupts" property
in the node as this bypasses the hierarchical setup and messes up the
irq chaining.

In preparation for removal of static setup of IRQ resource from DT core
code use platform_get_irq_count().

Signed-off-by: Lad Prabhakar 
---
 drivers/iommu/arm/arm-smmu/arm-smmu.c | 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu.c 
b/drivers/iommu/arm/arm-smmu/arm-smmu.c
index 4bc75c4ce402..4844cd075644 100644
--- a/drivers/iommu/arm/arm-smmu/arm-smmu.c
+++ b/drivers/iommu/arm/arm-smmu/arm-smmu.c
@@ -2105,12 +2105,12 @@ static int arm_smmu_device_probe(struct platform_device 
*pdev)
if (IS_ERR(smmu))
return PTR_ERR(smmu);
 
-   num_irqs = 0;
-   while ((res = platform_get_resource(pdev, IORESOURCE_IRQ, num_irqs))) {
-   num_irqs++;
-   if (num_irqs > smmu->num_global_irqs)
-   smmu->num_context_irqs++;
-   }
+   num_irqs = platform_irq_count(pdev);
+   if (num_irqs < 0)
+   return num_irqs;
+
+   if (num_irqs > smmu->num_global_irqs)
+   smmu->num_context_irqs += (num_irqs - smmu->num_global_irqs);
 
if (!smmu->num_context_irqs) {
dev_err(dev, "found %d interrupts but expected at least %d\n",
-- 
2.17.1

___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


Re: [PATCH 8/9] dt-bindings: net: renesas,ravb: Add support for r8a774e1 SoC

2020-09-19 Thread Lad, Prabhakar
Hi David,

On Thu, Aug 27, 2020 at 11:28 AM Lad, Prabhakar
 wrote:
>
> Hi David,
>
> On Mon, Jul 13, 2020 at 10:36 PM Lad Prabhakar
>  wrote:
> >
> > From: Marian-Cristian Rotariu 
> >
> > Document RZ/G2H (R8A774E1) SoC bindings.
> >
> > Signed-off-by: Marian-Cristian Rotariu 
> > 
> > Signed-off-by: Lad Prabhakar 
> > ---
> >  Documentation/devicetree/bindings/net/renesas,ravb.txt | 1 +
> >  1 file changed, 1 insertion(+)
> >
> Gentle ping, this patch is not queued up yet at [1].
>
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/log/
>
Could you please pick this patch.

Cheers,
Prabhakar
___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


[PATCH v2] iommu: Kconfig: Update help description for IPMMU_VMSA config

2020-09-15 Thread Lad Prabhakar
ipmmu-vmsa driver is also used on Renesas RZ/G{1,2} Soc's, update the
description for the IPMMU_VMSA config symbol to reflect this.

Signed-off-by: Lad Prabhakar 
Reviewed-by: Chris Paterson 
Reviewed-by: Geert Uytterhoeven 
---
v1->v2
* Updated commit description as suggested by Geert
* Included RB from Geert
---
 drivers/iommu/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index bef5d75e306b..d8f71bf31786 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu/Kconfig
@@ -232,7 +232,7 @@ config IPMMU_VMSA
select ARM_DMA_USE_IOMMU
help
  Support for the Renesas VMSA-compatible IPMMU found in the R-Mobile
- APE6, R-Car Gen2, and R-Car Gen3 SoCs.
+ APE6, R-Car Gen{2,3} and RZ/G{1,2} SoCs.
 
  If unsure, say N.
 
-- 
2.17.1

___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


[PATCH] iommu: Kconfig: Update help description for IPMMU_VMSA config

2020-09-11 Thread Lad Prabhakar
ipmmu-vmsa driver is also used on Renesas RZ/G{1,2} Soc's, update the
same to reflect the help description for IPMMU_VMSA config.

Signed-off-by: Lad Prabhakar 
Reviewed-by: Chris Paterson 
---
 drivers/iommu/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index bef5d75e306b..d8f71bf31786 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu/Kconfig
@@ -232,7 +232,7 @@ config IPMMU_VMSA
select ARM_DMA_USE_IOMMU
help
  Support for the Renesas VMSA-compatible IPMMU found in the R-Mobile
- APE6, R-Car Gen2, and R-Car Gen3 SoCs.
+ APE6, R-Car Gen{2,3} and RZ/G{1,2} SoCs.
 
  If unsure, say N.
 
-- 
2.17.1

___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


Re: [PATCH 6/9] dt-bindings: gpio: renesas, rcar-gpio: Add r8a774e1 support

2020-08-27 Thread Lad, Prabhakar
Hi Linus and Bartosz,

On Mon, Jul 13, 2020 at 10:35 PM Lad Prabhakar
 wrote:
>
> Document Renesas RZ/G2H (R8A774E1) GPIO blocks compatibility within the
> relevant dt-bindings.
>
> Signed-off-by: Lad Prabhakar 
> ---
>  Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml | 1 +
>  1 file changed, 1 insertion(+)
>
Gentle ping.

Cheers,
Prabhakar
___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


Re: [PATCH 8/9] dt-bindings: net: renesas,ravb: Add support for r8a774e1 SoC

2020-08-27 Thread Lad, Prabhakar
Hi David,

On Mon, Jul 13, 2020 at 10:36 PM Lad Prabhakar
 wrote:
>
> From: Marian-Cristian Rotariu 
>
> Document RZ/G2H (R8A774E1) SoC bindings.
>
> Signed-off-by: Marian-Cristian Rotariu 
> 
> Signed-off-by: Lad Prabhakar 
> ---
>  Documentation/devicetree/bindings/net/renesas,ravb.txt | 1 +
>  1 file changed, 1 insertion(+)
>
Gentle ping, this patch is not queued up yet at [1].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/log/

Cheers,
Prabhakar
___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


[PATCH 1/2] dt-bindings: iommu: renesas, ipmmu-vmsa: Add r8a7742 support

2020-08-25 Thread Lad Prabhakar
Document RZ/G1H (R8A7742) SoC bindings.

No driver change is needed due to the fallback compatible value
"renesas,ipmmu-vmsa".

Signed-off-by: Lad Prabhakar 
Reviewed-by: Chris Paterson 
---
 Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml 
b/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml
index 6bfa090fd73a..a79b172b75cb 100644
--- a/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml
+++ b/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml
@@ -20,6 +20,7 @@ properties:
   - items:
   - enum:
   - renesas,ipmmu-r8a73a4  # R-Mobile APE6
+  - renesas,ipmmu-r8a7742  # RZ/G1H
   - renesas,ipmmu-r8a7743  # RZ/G1M
   - renesas,ipmmu-r8a7744  # RZ/G1N
   - renesas,ipmmu-r8a7745  # RZ/G1E
-- 
2.17.1

___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


[PATCH 2/2] ARM: dts: r8a7742: Add IPMMU DT nodes

2020-08-25 Thread Lad Prabhakar
Add the five IPMMU instances found in the r8a7742 to DT with a disabled
status.

Signed-off-by: Lad Prabhakar 
Reviewed-by: Chris Paterson 
---
 arch/arm/boot/dts/r8a7742.dtsi | 48 ++
 1 file changed, 48 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7742.dtsi b/arch/arm/boot/dts/r8a7742.dtsi
index 0fc52b27ae64..c62e26876f95 100644
--- a/arch/arm/boot/dts/r8a7742.dtsi
+++ b/arch/arm/boot/dts/r8a7742.dtsi
@@ -412,6 +412,54 @@
#thermal-sensor-cells = <0>;
};
 
+   ipmmu_sy0: iommu@e628 {
+   compatible = "renesas,ipmmu-r8a7742",
+"renesas,ipmmu-vmsa";
+   reg = <0 0xe628 0 0x1000>;
+   interrupts = ,
+;
+   #iommu-cells = <1>;
+   status = "disabled";
+   };
+
+   ipmmu_sy1: iommu@e629 {
+   compatible = "renesas,ipmmu-r8a7742",
+"renesas,ipmmu-vmsa";
+   reg = <0 0xe629 0 0x1000>;
+   interrupts = ;
+   #iommu-cells = <1>;
+   status = "disabled";
+   };
+
+   ipmmu_ds: iommu@e674 {
+   compatible = "renesas,ipmmu-r8a7742",
+"renesas,ipmmu-vmsa";
+   reg = <0 0xe674 0 0x1000>;
+   interrupts = ,
+;
+   #iommu-cells = <1>;
+   status = "disabled";
+   };
+
+   ipmmu_mp: iommu@ec68 {
+   compatible = "renesas,ipmmu-r8a7742",
+"renesas,ipmmu-vmsa";
+   reg = <0 0xec68 0 0x1000>;
+   interrupts = ;
+   #iommu-cells = <1>;
+   status = "disabled";
+   };
+
+   ipmmu_mx: iommu@fe951000 {
+   compatible = "renesas,ipmmu-r8a7742",
+"renesas,ipmmu-vmsa";
+   reg = <0 0xfe951000 0 0x1000>;
+   interrupts = ,
+;
+   #iommu-cells = <1>;
+   status = "disabled";
+   };
+
icram0: sram@e63a {
compatible = "mmio-sram";
reg = <0 0xe63a 0 0x12000>;
-- 
2.17.1

___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


[PATCH 0/2] r8a7742 SoC add IPMMU support

2020-08-25 Thread Lad Prabhakar
Hi All,

This patch series adds IPMMU support to R8A7742 (RZ/G1H)
SoC dtsi.

Cheers,
Prabhakar

Lad Prabhakar (2):
  dt-bindings: iommu: renesas,ipmmu-vmsa: Add r8a7742 support
  ARM: dts: r8a7742: Add IPMMU DT nodes

 .../bindings/iommu/renesas,ipmmu-vmsa.yaml|  1 +
 arch/arm/boot/dts/r8a7742.dtsi| 48 +++
 2 files changed, 49 insertions(+)

-- 
2.17.1

___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


[PATCH] dt-bindings: iommu: renesas, ipmmu-vmsa: Sort compatible string in increasing number of the SoC

2020-08-09 Thread Lad Prabhakar
Sort the items in the compatible string list in increasing number of SoC.

Signed-off-by: Lad Prabhakar 
---
 Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml 
b/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml
index 6bfa090fd73a..9ada67b1f5f4 100644
--- a/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml
+++ b/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml
@@ -32,8 +32,8 @@ properties:
   - enum:
   - renesas,ipmmu-r8a774a1 # RZ/G2M
   - renesas,ipmmu-r8a774b1 # RZ/G2N
-  - renesas,ipmmu-r8a774e1 # RZ/G2H
   - renesas,ipmmu-r8a774c0 # RZ/G2E
+  - renesas,ipmmu-r8a774e1 # RZ/G2H
   - renesas,ipmmu-r8a7795  # R-Car H3
   - renesas,ipmmu-r8a7796  # R-Car M3-W
   - renesas,ipmmu-r8a77961 # R-Car M3-W+
-- 
2.17.1

___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


Re: [PATCH 2/9] iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code

2020-07-14 Thread Lad, Prabhakar
Hi Geert,

Thank you for the review.

On Tue, Jul 14, 2020 at 9:09 AM Geert Uytterhoeven  wrote:
>
> Hi Prabhakar,
>
> On Mon, Jul 13, 2020 at 11:35 PM Lad Prabhakar
>  wrote:
> > From: Marian-Cristian Rotariu 
> >
> > Add support for RZ/G2H (R8A774E1) SoC IPMMUs.
> >
> > Signed-off-by: Marian-Cristian Rotariu 
> > 
> > Signed-off-by: Lad Prabhakar 
>
> Thanks for your patch!
>
> > --- a/drivers/iommu/ipmmu-vmsa.c
> > +++ b/drivers/iommu/ipmmu-vmsa.c
> > @@ -751,6 +751,7 @@ static const struct soc_device_attribute 
> > soc_rcar_gen3[] = {
> >  static const struct soc_device_attribute soc_rcar_gen3_whitelist[] = {
> > { .soc_id = "r8a774b1", },
> > { .soc_id = "r8a774c0", },
> > +   { .soc_id = "r8a774e1", },
>
> Adding an entry to soc_rcar_gen3_whitelist[] doesn't do anything, unless
> you also add the same entry to soc_rcar_gen3[].
>
I think the comment "For R-Car Gen3 use a white list to opt-in slave
devices." is misleading.  Booting through the kernel I do see iommu
groups (attached is the logs). Also the recent patch to add
"r8a77961" just adds to soc_rcar_gen3_whitelist.

Cheers,
--Prabhakar

> > { .soc_id = "r8a7795", .revision = "ES3.*" },
> > { .soc_id = "r8a77961", },
> > { .soc_id = "r8a77965", },
> > @@ -963,6 +964,9 @@ static const struct of_device_id ipmmu_of_ids[] = {
> > }, {
> > .compatible = "renesas,ipmmu-r8a774c0",
> > .data = _features_rcar_gen3,
> > +   }, {
> > +   .compatible = "renesas,ipmmu-r8a774e1",
> > +   .data = _features_rcar_gen3,
> > }, {
> > .compatible = "renesas,ipmmu-r8a7795",
> > .data = _features_rcar_gen3,
>
> Gr{oetje,eeting}s,
>
> Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- 
> ge...@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
[0.000149] NOTICE:  BL2: RZ G2H Initial Program Loader(CA57)
[0.004417] NOTICE:  BL2: Initial Program Loader(Rev.2.0.6)
[0.009949] NOTICE:  BL2: PRR is RZG G2H Ver.3.0
[0.014530] NOTICE:  BL2: Board is HiHope RZ/G2H Rev.4.0
[0.019796] NOTICE:  BL2: Boot device is QSPI Flash(40MHz)
[0.025236] NOTICE:  BL2: LCM state is CM
[0.029203] NOTICE:  BL2: CH0: 0x4 - 0x47fff, 2 GiB
[0.035071] NOTICE:  BL2: CH1: 0x5 - 0x57fff, 2 GiB
[0.040957] NOTICE:  BL2: DDR3200(rev.0.40)
[0.052413] NOTICE:  BL2: [COLD_BOOT]
[0.058356] NOTICE:  BL2: DRAM Split is 2ch(DDR 3)
[0.061655] NOTICE:  BL2: QoS is default setting(rev.0.07)
[0.067098] NOTICE:  BL2: DRAM refresh interval 1.95 usec
[0.072455] NOTICE:  BL2: Periodic Write DQ Training
[0.077485] NOTICE:  BL2: Lossy Decomp areas
[0.081614] NOTICE:   Entry 0: DCMPAREACRAx:0x8540 DCMPAREACRBx:0x570
[0.088698] NOTICE:   Entry 1: DCMPAREACRAx:0x4000 DCMPAREACRBx:0x0
[0.095611] NOTICE:   Entry 2: DCMPAREACRAx:0x2000 DCMPAREACRBx:0x0
[0.102525] NOTICE:  BL2: v1.5(release):af9f429-dirty
[0.107534] NOTICE:  BL2: Built : 13:06:47, Jun 11 2020
[0.112722] NOTICE:  BL2: Normal boot
[0.116360] NOTICE:  BL2: dst=0xe6321100 src=0x818 len=512(0x200)
[0.122850] NOTICE:  BL2: dst=0x43f0 src=0x8180400 len=6144(0x1800)
[0.130588] NOTICE:  BL2: dst=0x4400 src=0x81c len=65536(0x1)
[0.149490] NOTICE:  BL2: dst=0x5000 src=0x830 len=1048576(0x10)
[0.369751] NOTICE:  BL2: Booting BL31


U-Boot 2018.09 (Jun 11 2020 - 13:06:59 +)

CPU: Renesas Electronics R8A774E1 rev 3.0
Model: Hoperun Technology HiHope RZ/G2H platform (hihope-rzg2h)
DRAM:  3.9 GiB
Bank #0: 0x04800 - 0x0bfff, 1.9 GiB
Bank #1: 0x5 - 0x57fff, 2 GiB

Watchdog: Not found by seq!
WDT:   watchdog@e602
Watchdog: Started!
MMC:   sd@ee10: 0, sd@ee16: 1
Loading Environment from MMC... OK
In:serial@e6e88000
Out:   serial@e6e88000
Err:   serial@e6e88000
Net:   eth0: ethernet@e680
Hit any key t

[PATCH 0/2] iommu/ipmmu-vmsa: Add entry for R8A774E1 and r8a77961

2020-07-14 Thread Lad Prabhakar
Hi All,

Patch 1/2 was posted as part of series [1] as pointed out by Geert we need to
have an entry in both the lists soc_rcar_gen3 and soc_rcar_gen3_whitelist to
enable iommu unconditionally, this is now fixed in patch 1/2, also note the DT
binding documentation for R8A774E1 is part of [1]. Where as patch 2/2 is a
similar FIX for r8a77961.

Cheers,
Prabhakar

[1] https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=317627

Lad Prabhakar (1):
  iommu/ipmmu-vmsa: Add an entry for r8a77961 in soc_rcar_gen3[]

Marian-Cristian Rotariu (1):
  iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code

 drivers/iommu/ipmmu-vmsa.c | 6 ++
 1 file changed, 6 insertions(+)

-- 
2.17.1

___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


[PATCH 2/2] iommu/ipmmu-vmsa: Add an entry for r8a77961 in soc_rcar_gen3[]

2020-07-14 Thread Lad Prabhakar
Add an entry for r8a77961 in soc_rcar_gen3[] list so that we dont
enable iommu unconditionally.

Fixes: 17fe161816398 ("iommu/renesas: Add support for r8a77961")
Signed-off-by: Lad Prabhakar 
---
 drivers/iommu/ipmmu-vmsa.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c
index 55c09cb8fc56..093b4ac5db69 100644
--- a/drivers/iommu/ipmmu-vmsa.c
+++ b/drivers/iommu/ipmmu-vmsa.c
@@ -741,6 +741,7 @@ static const struct soc_device_attribute soc_rcar_gen3[] = {
{ .soc_id = "r8a774c0", },
{ .soc_id = "r8a774e1", },
{ .soc_id = "r8a7795", },
+   { .soc_id = "r8a77961", },
{ .soc_id = "r8a7796", },
{ .soc_id = "r8a77965", },
{ .soc_id = "r8a77970", },
-- 
2.17.1

___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


[PATCH 1/2] iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code

2020-07-14 Thread Lad Prabhakar
From: Marian-Cristian Rotariu 

Add support for RZ/G2H (R8A774E1) SoC IPMMUs.

Signed-off-by: Marian-Cristian Rotariu 

Signed-off-by: Lad Prabhakar 
---
 drivers/iommu/ipmmu-vmsa.c | 5 +
 1 file changed, 5 insertions(+)

diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c
index b90cd9ff96f6..55c09cb8fc56 100644
--- a/drivers/iommu/ipmmu-vmsa.c
+++ b/drivers/iommu/ipmmu-vmsa.c
@@ -739,6 +739,7 @@ static const struct soc_device_attribute soc_rcar_gen3[] = {
{ .soc_id = "r8a774a1", },
{ .soc_id = "r8a774b1", },
{ .soc_id = "r8a774c0", },
+   { .soc_id = "r8a774e1", },
{ .soc_id = "r8a7795", },
{ .soc_id = "r8a7796", },
{ .soc_id = "r8a77965", },
@@ -751,6 +752,7 @@ static const struct soc_device_attribute soc_rcar_gen3[] = {
 static const struct soc_device_attribute soc_rcar_gen3_whitelist[] = {
{ .soc_id = "r8a774b1", },
{ .soc_id = "r8a774c0", },
+   { .soc_id = "r8a774e1", },
{ .soc_id = "r8a7795", .revision = "ES3.*" },
{ .soc_id = "r8a77961", },
{ .soc_id = "r8a77965", },
@@ -963,6 +965,9 @@ static const struct of_device_id ipmmu_of_ids[] = {
}, {
.compatible = "renesas,ipmmu-r8a774c0",
.data = _features_rcar_gen3,
+   }, {
+   .compatible = "renesas,ipmmu-r8a774e1",
+   .data = _features_rcar_gen3,
}, {
.compatible = "renesas,ipmmu-r8a7795",
.data = _features_rcar_gen3,
-- 
2.17.1

___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


[PATCH 4/9] dt-bindings: dma: renesas, rcar-dmac: Document R8A774E1 bindings

2020-07-13 Thread Lad Prabhakar
Renesas RZ/G2H (R8A774E1) SoC also has the R-Car gen3 compatible
DMA controllers, therefore document RZ/G2H specific bindings.

Signed-off-by: Lad Prabhakar 
---
 Documentation/devicetree/bindings/dma/renesas,rcar-dmac.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.yaml 
b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.yaml
index b842dfd96a89..13f1a46be40d 100644
--- a/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.yaml
+++ b/Documentation/devicetree/bindings/dma/renesas,rcar-dmac.yaml
@@ -23,6 +23,7 @@ properties:
   - renesas,dmac-r8a774a1 # RZ/G2M
   - renesas,dmac-r8a774b1 # RZ/G2N
   - renesas,dmac-r8a774c0 # RZ/G2E
+  - renesas,dmac-r8a774e1 # RZ/G2H
   - renesas,dmac-r8a7790  # R-Car H2
   - renesas,dmac-r8a7791  # R-Car M2-W
   - renesas,dmac-r8a7792  # R-Car V2H
-- 
2.17.1

___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


[PATCH 5/9] arm64: dts: renesas: r8a774e1: Add SYS-DMAC device nodes

2020-07-13 Thread Lad Prabhakar
From: Marian-Cristian Rotariu 

Add sys-dmac[0-2] device nodes for RZ/G2H (R8A774E1) SoC.

Signed-off-by: Marian-Cristian Rotariu 

Signed-off-by: Lad Prabhakar 
---
 arch/arm64/boot/dts/renesas/r8a774e1.dtsi | 126 ++
 1 file changed, 126 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi 
b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
index 0fc0d9ff5bc5..9e05d134a295 100644
--- a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
@@ -408,6 +408,132 @@
/* placeholder */
};
 
+   dmac0: dma-controller@e670 {
+   compatible = "renesas,dmac-r8a774e1",
+"renesas,rcar-dmac";
+   reg = <0 0xe670 0 0x1>;
+   interrupts = ,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+;
+   interrupt-names = "error",
+ "ch0", "ch1", "ch2", "ch3",
+ "ch4", "ch5", "ch6", "ch7",
+ "ch8", "ch9", "ch10", "ch11",
+ "ch12", "ch13", "ch14", "ch15";
+   clocks = < CPG_MOD 219>;
+   clock-names = "fck";
+   power-domains = < R8A774E1_PD_ALWAYS_ON>;
+   resets = < 219>;
+   #dma-cells = <1>;
+   dma-channels = <16>;
+   iommus = <_ds0 0>, <_ds0 1>,
+<_ds0 2>, <_ds0 3>,
+<_ds0 4>, <_ds0 5>,
+<_ds0 6>, <_ds0 7>,
+<_ds0 8>, <_ds0 9>,
+<_ds0 10>, <_ds0 11>,
+<_ds0 12>, <_ds0 13>,
+<_ds0 14>, <_ds0 15>;
+   };
+
+   dmac1: dma-controller@e730 {
+   compatible = "renesas,dmac-r8a774e1",
+"renesas,rcar-dmac";
+   reg = <0 0xe730 0 0x1>;
+   interrupts = ,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+;
+   interrupt-names = "error",
+ "ch0", "ch1", "ch2", "ch3",
+ "ch4", "ch5", "ch6", "ch7",
+ "ch8", "ch9", "ch10", "ch11",
+ "ch12", "ch13", "ch14", "ch15";
+   clocks = < CPG_MOD 218>;
+   clock-names = "fck";
+   power-domains = < R8A774E1_PD_ALWAYS_ON>;
+   resets = < 218>;
+   #dma-cells = <1>;
+   dma-channels = <16>;
+   iommus = <_ds1 0>, <_ds1 1>,
+<_ds1 2>, <_ds1 3>,
+   

[PATCH 6/9] dt-bindings: gpio: renesas, rcar-gpio: Add r8a774e1 support

2020-07-13 Thread Lad Prabhakar
Document Renesas RZ/G2H (R8A774E1) GPIO blocks compatibility within the
relevant dt-bindings.

Signed-off-by: Lad Prabhakar 
---
 Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml 
b/Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml
index 397d9383d15a..a9a9dd0854e7 100644
--- a/Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml
+++ b/Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml
@@ -37,6 +37,7 @@ properties:
  - renesas,gpio-r8a774a1 # RZ/G2M
  - renesas,gpio-r8a774b1 # RZ/G2N
  - renesas,gpio-r8a774c0 # RZ/G2E
+ - renesas,gpio-r8a774e1 # RZ/G2H
  - renesas,gpio-r8a7795  # R-Car H3
  - renesas,gpio-r8a7796  # R-Car M3-W
  - renesas,gpio-r8a77961 # R-Car M3-W+
-- 
2.17.1

___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


[PATCH 8/9] dt-bindings: net: renesas, ravb: Add support for r8a774e1 SoC

2020-07-13 Thread Lad Prabhakar
From: Marian-Cristian Rotariu 

Document RZ/G2H (R8A774E1) SoC bindings.

Signed-off-by: Marian-Cristian Rotariu 

Signed-off-by: Lad Prabhakar 
---
 Documentation/devicetree/bindings/net/renesas,ravb.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/net/renesas,ravb.txt 
b/Documentation/devicetree/bindings/net/renesas,ravb.txt
index 032b76f14f4f..9119f1caf391 100644
--- a/Documentation/devicetree/bindings/net/renesas,ravb.txt
+++ b/Documentation/devicetree/bindings/net/renesas,ravb.txt
@@ -21,6 +21,7 @@ Required properties:
   - "renesas,etheravb-r8a774a1" for the R8A774A1 SoC.
   - "renesas,etheravb-r8a774b1" for the R8A774B1 SoC.
   - "renesas,etheravb-r8a774c0" for the R8A774C0 SoC.
+  - "renesas,etheravb-r8a774e1" for the R8A774E1 SoC.
   - "renesas,etheravb-r8a7795" for the R8A7795 SoC.
   - "renesas,etheravb-r8a7796" for the R8A77960 SoC.
   - "renesas,etheravb-r8a77961" for the R8A77961 SoC.
-- 
2.17.1

___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


[PATCH 3/9] arm64: dts: renesas: r8a774e1: Add IPMMU device nodes

2020-07-13 Thread Lad Prabhakar
From: Marian-Cristian Rotariu 

Add RZ/G2H (R8A774E1) IPMMU nodes.

Signed-off-by: Marian-Cristian Rotariu 

Signed-off-by: Lad Prabhakar 
---
 arch/arm64/boot/dts/renesas/r8a774e1.dtsi | 121 ++
 1 file changed, 121 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi 
b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
index 7484ad530068..0fc0d9ff5bc5 100644
--- a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
@@ -408,6 +408,127 @@
/* placeholder */
};
 
+   ipmmu_ds0: iommu@e674 {
+   compatible = "renesas,ipmmu-r8a774e1";
+   reg = <0 0xe674 0 0x1000>;
+   renesas,ipmmu-main = <_mm 0>;
+   power-domains = < R8A774E1_PD_ALWAYS_ON>;
+   #iommu-cells = <1>;
+   };
+
+   ipmmu_ds1: iommu@e774 {
+   compatible = "renesas,ipmmu-r8a774e1";
+   reg = <0 0xe774 0 0x1000>;
+   renesas,ipmmu-main = <_mm 1>;
+   power-domains = < R8A774E1_PD_ALWAYS_ON>;
+   #iommu-cells = <1>;
+   };
+
+   ipmmu_hc: iommu@e657 {
+   compatible = "renesas,ipmmu-r8a774e1";
+   reg = <0 0xe657 0 0x1000>;
+   renesas,ipmmu-main = <_mm 2>;
+   power-domains = < R8A774E1_PD_ALWAYS_ON>;
+   #iommu-cells = <1>;
+   };
+
+   ipmmu_mm: iommu@e67b {
+   compatible = "renesas,ipmmu-r8a774e1";
+   reg = <0 0xe67b 0 0x1000>;
+   interrupts = ,
+;
+   power-domains = < R8A774E1_PD_ALWAYS_ON>;
+   #iommu-cells = <1>;
+   };
+
+   ipmmu_mp0: iommu@ec67 {
+   compatible = "renesas,ipmmu-r8a774e1";
+   reg = <0 0xec67 0 0x1000>;
+   renesas,ipmmu-main = <_mm 4>;
+   power-domains = < R8A774E1_PD_ALWAYS_ON>;
+   #iommu-cells = <1>;
+   };
+
+   ipmmu_pv0: iommu@fd80 {
+   compatible = "renesas,ipmmu-r8a774e1";
+   reg = <0 0xfd80 0 0x1000>;
+   renesas,ipmmu-main = <_mm 6>;
+   power-domains = < R8A774E1_PD_ALWAYS_ON>;
+   #iommu-cells = <1>;
+   };
+
+   ipmmu_pv1: iommu@fd95 {
+   compatible = "renesas,ipmmu-r8a774e1";
+   reg = <0 0xfd95 0 0x1000>;
+   renesas,ipmmu-main = <_mm 7>;
+   power-domains = < R8A774E1_PD_ALWAYS_ON>;
+   #iommu-cells = <1>;
+   };
+
+   ipmmu_pv2: iommu@fd96 {
+   compatible = "renesas,ipmmu-r8a774e1";
+   reg = <0 0xfd96 0 0x1000>;
+   renesas,ipmmu-main = <_mm 8>;
+   power-domains = < R8A774E1_PD_ALWAYS_ON>;
+   #iommu-cells = <1>;
+   };
+
+   ipmmu_pv3: iommu@fd97 {
+   compatible = "renesas,ipmmu-r8a774e1";
+   reg = <0 0xfd97 0 0x1000>;
+   renesas,ipmmu-main = <_mm 9>;
+   power-domains = < R8A774E1_PD_ALWAYS_ON>;
+   #iommu-cells = <1>;
+   };
+
+   ipmmu_vc0: iommu@fe6b {
+   compatible = "renesas,ipmmu-r8a774e1";
+   reg = <0 0xfe6b 0 0x1000>;
+   renesas,ipmmu-main = <_mm 12>;
+   power-domains = < R8A774E1_PD_A3VC>;
+   #iommu-cells = <1>;
+   };
+
+   ipmmu_vc1: iommu@fe6f {
+   compatible = "renesas,ipmmu-r8a774e1";
+   reg = <0 0xfe6f 0 0x1000>;
+   renesas,ipmmu-main = <_mm 13>;
+   power-domains = < R8A774E1_PD_A3VC>;
+   #iommu-cells = <1>;
+   };
+
+   ipmmu_vi0: iommu@febd {
+   compatible = "renesas,ipmmu-r8a774e1";
+   reg = <0 0xfebd 0 0x1000>;
+   renesas,ipmmu-main = <

[PATCH 0/9] R8A774E1 SoC enable support for IPMMU, DMAC, GPIO and AVB

2020-07-13 Thread Lad Prabhakar
Hi All,

This patch series adds device nodes for IPMMU, DMAC, GPIO
and AVB nodes for RZ/G2H (R8A774E1) SoC.

Cheers,
Prabhakar

Lad Prabhakar (3):
  dt-bindings: iommu: renesas,ipmmu-vmsa: Add r8a774e1 support
  dt-bindings: dma: renesas,rcar-dmac: Document R8A774E1 bindings
  dt-bindings: gpio: renesas,rcar-gpio: Add r8a774e1 support

Marian-Cristian Rotariu (6):
  iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code
  arm64: dts: renesas: r8a774e1: Add IPMMU device nodes
  arm64: dts: renesas: r8a774e1: Add SYS-DMAC device nodes
  arm64: dts: renesas: r8a774e1: Add GPIO device nodes
  dt-bindings: net: renesas,ravb: Add support for r8a774e1 SoC
  arm64: dts: renesas: r8a774e1: Add Ethernet AVB node

 .../bindings/dma/renesas,rcar-dmac.yaml   |   1 +
 .../bindings/gpio/renesas,rcar-gpio.yaml  |   1 +
 .../bindings/iommu/renesas,ipmmu-vmsa.yaml|   1 +
 .../devicetree/bindings/net/renesas,ravb.txt  |   1 +
 arch/arm64/boot/dts/renesas/r8a774e1.dtsi | 361 +-
 drivers/iommu/ipmmu-vmsa.c|   4 +
 6 files changed, 350 insertions(+), 19 deletions(-)

-- 
2.17.1

___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


[PATCH 1/9] dt-bindings: iommu: renesas, ipmmu-vmsa: Add r8a774e1 support

2020-07-13 Thread Lad Prabhakar
Document RZ/G2H (R8A774E1) SoC bindings.

Signed-off-by: Lad Prabhakar 
---
 Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml 
b/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml
index e9d28a4060fa..6bfa090fd73a 100644
--- a/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml
+++ b/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml
@@ -32,6 +32,7 @@ properties:
   - enum:
   - renesas,ipmmu-r8a774a1 # RZ/G2M
   - renesas,ipmmu-r8a774b1 # RZ/G2N
+  - renesas,ipmmu-r8a774e1 # RZ/G2H
   - renesas,ipmmu-r8a774c0 # RZ/G2E
   - renesas,ipmmu-r8a7795  # R-Car H3
   - renesas,ipmmu-r8a7796  # R-Car M3-W
-- 
2.17.1

___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


[PATCH 9/9] arm64: dts: renesas: r8a774e1: Add Ethernet AVB node

2020-07-13 Thread Lad Prabhakar
From: Marian-Cristian Rotariu 

This patch adds the SoC specific part of the Ethernet AVB
device tree node.

Signed-off-by: Marian-Cristian Rotariu 

Signed-off-by: Lad Prabhakar 
---
 arch/arm64/boot/dts/renesas/r8a774e1.dtsi | 41 +--
 1 file changed, 39 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi 
b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
index 599703d87b56..caca319aafcf 100644
--- a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
@@ -695,12 +695,49 @@
};
 
avb: ethernet@e680 {
+   compatible = "renesas,etheravb-r8a774e1",
+"renesas,etheravb-rcar-gen3";
reg = <0 0xe680 0 0x800>;
+   interrupts = ,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+,
+;
+   interrupt-names = "ch0", "ch1", "ch2", "ch3",
+ "ch4", "ch5", "ch6", "ch7",
+ "ch8", "ch9", "ch10", "ch11",
+ "ch12", "ch13", "ch14", "ch15",
+ "ch16", "ch17", "ch18", "ch19",
+ "ch20", "ch21", "ch22", "ch23",
+ "ch24";
+   clocks = < CPG_MOD 812>;
+   power-domains = < R8A774E1_PD_ALWAYS_ON>;
+   resets = < 812>;
+   phy-mode = "rgmii";
+   iommus = <_ds0 16>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
-
-   /* placeholder */
};
 
can0: can@e6c3 {
-- 
2.17.1

___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu


[PATCH 7/9] arm64: dts: renesas: r8a774e1: Add GPIO device nodes

2020-07-13 Thread Lad Prabhakar
From: Marian-Cristian Rotariu 

Add GPIO device nodes to the DT of the r8a774e1 SoC.

Signed-off-by: Marian-Cristian Rotariu 

Signed-off-by: Lad Prabhakar 
---
 arch/arm64/boot/dts/renesas/r8a774e1.dtsi | 73 +--
 1 file changed, 56 insertions(+), 17 deletions(-)

diff --git a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi 
b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
index 9e05d134a295..599703d87b56 100644
--- a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi
@@ -246,84 +246,123 @@
};
 
gpio0: gpio@e605 {
+   compatible = "renesas,gpio-r8a774e1",
+"renesas,rcar-gen3-gpio";
reg = <0 0xe605 0 0x50>;
+   interrupts = ;
#gpio-cells = <2>;
gpio-controller;
+   gpio-ranges = < 0 0 16>;
#interrupt-cells = <2>;
interrupt-controller;
-
-   /* placeholder */
+   clocks = < CPG_MOD 912>;
+   power-domains = < R8A774E1_PD_ALWAYS_ON>;
+   resets = < 912>;
};
 
gpio1: gpio@e6051000 {
+   compatible = "renesas,gpio-r8a774e1",
+"renesas,rcar-gen3-gpio";
reg = <0 0xe6051000 0 0x50>;
+   interrupts = ;
#gpio-cells = <2>;
gpio-controller;
+   gpio-ranges = < 0 32 29>;
#interrupt-cells = <2>;
interrupt-controller;
-
-   /* placeholder */
+   clocks = < CPG_MOD 911>;
+   power-domains = < R8A774E1_PD_ALWAYS_ON>;
+   resets = < 911>;
};
 
gpio2: gpio@e6052000 {
+   compatible = "renesas,gpio-r8a774e1",
+"renesas,rcar-gen3-gpio";
reg = <0 0xe6052000 0 0x50>;
+   interrupts = ;
#gpio-cells = <2>;
gpio-controller;
+   gpio-ranges = < 0 64 15>;
#interrupt-cells = <2>;
interrupt-controller;
-
-   /* placeholder */
+   clocks = < CPG_MOD 910>;
+   power-domains = < R8A774E1_PD_ALWAYS_ON>;
+   resets = < 910>;
};
 
gpio3: gpio@e6053000 {
-   /* placeholder */
+   compatible = "renesas,gpio-r8a774e1",
+"renesas,rcar-gen3-gpio";
reg = <0 0xe6053000 0 0x50>;
+   interrupts = ;
#gpio-cells = <2>;
gpio-controller;
+   gpio-ranges = < 0 96 16>;
#interrupt-cells = <2>;
interrupt-controller;
-
-   /* placeholder */
+   clocks = < CPG_MOD 909>;
+   power-domains = < R8A774E1_PD_ALWAYS_ON>;
+   resets = < 909>;
};
 
gpio4: gpio@e6054000 {
+   compatible = "renesas,gpio-r8a774e1",
+"renesas,rcar-gen3-gpio";
reg = <0 0xe6054000 0 0x50>;
+   interrupts = ;
#gpio-cells = <2>;
gpio-controller;
+   gpio-ranges = < 0 128 18>;
#interrupt-cells = <2>;
interrupt-controller;
-
-   /* placeholder */
+   clocks = < CPG_MOD 908>;
+   power-domains = < R8A774E1_PD_ALWAYS_ON>;
+   resets = < 908>;
};
 
gpio5: gpio@e6055000 {
+   compatible = "renesas,gpio-r8a774e1",
+"renesas,rcar-gen3-gpio";
reg = <0 0xe6055000 0 0x50>;
+   interrupts = ;
#gpio-cells = <2>;
gpio-controller;
+   gpio-ranges = < 0 160 26>;
#interrupt-cells = <2>;
interrupt-controller;
-
-

[PATCH 2/9] iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code

2020-07-13 Thread Lad Prabhakar
From: Marian-Cristian Rotariu 

Add support for RZ/G2H (R8A774E1) SoC IPMMUs.

Signed-off-by: Marian-Cristian Rotariu 

Signed-off-by: Lad Prabhakar 
---
 drivers/iommu/ipmmu-vmsa.c | 4 
 1 file changed, 4 insertions(+)

diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c
index b90cd9ff96f6..cbce88ac5a71 100644
--- a/drivers/iommu/ipmmu-vmsa.c
+++ b/drivers/iommu/ipmmu-vmsa.c
@@ -751,6 +751,7 @@ static const struct soc_device_attribute soc_rcar_gen3[] = {
 static const struct soc_device_attribute soc_rcar_gen3_whitelist[] = {
{ .soc_id = "r8a774b1", },
{ .soc_id = "r8a774c0", },
+   { .soc_id = "r8a774e1", },
{ .soc_id = "r8a7795", .revision = "ES3.*" },
{ .soc_id = "r8a77961", },
{ .soc_id = "r8a77965", },
@@ -963,6 +964,9 @@ static const struct of_device_id ipmmu_of_ids[] = {
}, {
.compatible = "renesas,ipmmu-r8a774c0",
.data = _features_rcar_gen3,
+   }, {
+   .compatible = "renesas,ipmmu-r8a774e1",
+   .data = _features_rcar_gen3,
}, {
.compatible = "renesas,ipmmu-r8a7795",
.data = _features_rcar_gen3,
-- 
2.17.1

___
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu