arm64: dts: r8a7795: IPMMU upstream USB integration
Subsystems (2)
Magnus Damm
maintainercover arm64: dts: r8a7795: IPMMU upstream USB integration
arm64: dts: r8a7795: IPMMU upstream USB integration
[PATCH 01/03] arm64: dts: r8a7795: Connect USB-DMAC0/1 to IPMMU-HC [PATCH 02/03] arm64: dts: r8a7795: Connect USB3 Host to IPMMU-HC [PATCH 03/03] arm64: dts: r8a7795: Tie USB2 and USB1 Host to IPMMU-HC
This series adds IPMMU connections of on-chip r8a7795 USB devices such as:
- USB2.0 Peripheral USB-DMAC Controllers
- USB3.0 Host Controllers (XHCI)
- USB2.0 and USB1.0 Host Controllers (EHCI, OHCI)
The modifications are based on the R-Car-Gen3-rev0.52E.pdf data sheet.
The recommended IPMMU driver patch stack consists of the following series:
[PATCH v7 00/07] iommu/ipmmu-vmsa: IPMMU multi-arch update V7 [PATCH v3 00/09] iommu/ipmmu-vmsa: r8a7795 support V3
[PATCH v3 0/3] iommu/ipmmu-vmsa: r8a7796 support V3
Untested at this point, needs testing and driver white list enablement.
---
Developed on top of renesas-drivers-2017-03-21-v4.11-rc3 that includes:
[PATCH v3 00/09] arm64: dts: r8a7795: IPMMU upstream integration V3
arch/arm64/boot/dts/renesas/r8a7795.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
Magnus Damm
maintainerPATCH 1/3 arm64: dts: r8a7795: Connect USB-DMAC0/1 to IPMMU-HC
From: Magnus Damm <[email protected]>
Point the USB-DMAC0 and USB-DMAC1 devices to IPMMU-HC.
---
arch/arm64/boot/dts/renesas/r8a7795.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/renesas/r8a7795.dtsi +2 -0
@@ -1442,6 +1442,7 @@ GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "ch0", "ch1"; clocks = <&cpg CPG_MOD 330>; + iommus = <&ipmmu_hc 9>; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; resets = <&cpg 330>; #dma-cells = <1>;
@@ -1456,6 +1457,7 @@ GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "ch0", "ch1"; clocks = <&cpg CPG_MOD 331>; + iommus = <&ipmmu_hc 10>; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; resets = <&cpg 331>; #dma-cells = <1>;
Magnus Damm
maintainerPATCH 2/3 arm64: dts: r8a7795: Connect USB3 Host to IPMMU-HC
In reply to Magnus DammFrom: Magnus Damm <[email protected]>
Point the USB3.0 Host CH0 and CH1 devices to IPMMU-HC.
---
arch/arm64/boot/dts/renesas/r8a7795.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/renesas/r8a7795.dtsi +2 -0
@@ -1419,6 +1419,7 @@ reg = <0 0xee000000 0 0xc00>; interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 328>; + iommus = <&ipmmu_hc 12>; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; resets = <&cpg 328>; status = "disabled";
@@ -1429,6 +1430,7 @@ reg = <0 0xee040000 0 0xc00>; interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 327>; + iommus = <&ipmmu_hc 14>; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; resets = <&cpg 327>; status = "disabled";
Magnus Damm
maintainerPATCH 3/3 arm64: dts: r8a7795: Tie USB2 and USB1 Host to IPMMU-HC
In reply to Magnus DammFrom: Magnus Damm <[email protected]>
Point the USB2.0 Host CH0, CH1 and CH2 devices to IPMMU-HC. This includes 3 channels of both EHCI and OHCI.
---
arch/arm64/boot/dts/renesas/r8a7795.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/renesas/r8a7795.dtsi +6 -0
@@ -1551,6 +1551,7 @@ clocks = <&cpg CPG_MOD 703>; phys = <&usb2_phy0>; phy-names = "usb"; + iommus = <&ipmmu_hc 4>; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; resets = <&cpg 703>; status = "disabled";
@@ -1563,6 +1564,7 @@ clocks = <&cpg CPG_MOD 702>; phys = <&usb2_phy1>; phy-names = "usb"; + iommus = <&ipmmu_hc 5>; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; resets = <&cpg 702>; status = "disabled";
@@ -1575,6 +1577,7 @@ clocks = <&cpg CPG_MOD 701>; phys = <&usb2_phy2>; phy-names = "usb"; + iommus = <&ipmmu_hc 6>; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; resets = <&cpg 701>; status = "disabled";
@@ -1587,6 +1590,7 @@ clocks = <&cpg CPG_MOD 703>; phys = <&usb2_phy0>; phy-names = "usb"; + iommus = <&ipmmu_hc 4>; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; resets = <&cpg 703>; status = "disabled";
@@ -1599,6 +1603,7 @@ clocks = <&cpg CPG_MOD 702>; phys = <&usb2_phy1>; phy-names = "usb"; + iommus = <&ipmmu_hc 5>; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; resets = <&cpg 702>; status = "disabled";
@@ -1611,6 +1616,7 @@ clocks = <&cpg CPG_MOD 701>; phys = <&usb2_phy2>; phy-names = "usb"; + iommus = <&ipmmu_hc 6>; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; resets = <&cpg 701>; status = "disabled";
Quoted 3 lines · Magnus Damm
The recommended IPMMU driver patch stack consists of the following series:
[PATCH v7 00/07] iommu/ipmmu-vmsa: IPMMU multi-arch update V7 [PATCH v3 00/09] iommu/ipmmu-vmsa: r8a7795 support V3
These two patch-sets have unaddressed comments. Please address these and get a Reviewed-by from Robin on the re-posts.
Joerg
Magnus Damm
maintainerHi Joerg,
Quoted 7 lines · Joerg Roedel
Quoted 3 lines · Magnus Damm
The recommended IPMMU driver patch stack consists of the following series:
[PATCH v7 00/07] iommu/ipmmu-vmsa: IPMMU multi-arch update V7 [PATCH v3 00/09] iommu/ipmmu-vmsa: r8a7795 support V3These two patch-sets have unaddressed comments. Please address these and get a Reviewed-by from Robin on the re-posts.
Thanks, yes will do!
Best,
/ magnus