arm64: dts: juno: Add dma-ranges property
Subsystems (2)
PATCH 1/3 arm64: dts: juno: Add dma-ranges property
The interconnects around Juno have a 40-bit address width, and DMA masters have no restrictions beyond their own individual limitations. Describe this to ensure that DT-based DMA masks get set up correctly for all devices capable of 40-bit addressing.
---
These apply on top of Sudeep's for-next/updates/juno branch, which supercedes the .dtsi cleanup I had locally to make this one work.
Robin.
arch/arm64/boot/dts/arm/juno-base.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/arm/juno-base.dtsi +1 -0
@@ -4,6 +4,7 @@ /* * Devices shared by all Juno boards */ + dma-ranges = <0 0 0 0 0x100 0>; memtimer: timer at 2a810000 { compatible = "arm,armv7-timer-mem";
Signature · 1 line
2.11.0.dirty
PATCH 2/3 arm64: dts: juno: Add ETR SMMU power domain
It is not at all clear from the documentation, but straightforward to determine in practice, that the ETR SMMU is actually in the DEBUGSYS power domain. Add that to the DT so that anyone brave enough to enable said SMMU doesn't experience a system lockup on boot, especially a sneaky one which goes away as soon as you connect an external debugger to have a look at where it's stuck (thus powering up DEBUGSYS by other means and allowing it to make progress again before actually halting...)
--- arch/arm64/boot/dts/arm/juno-base.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/arm/juno-base.dtsi +1 -0
@@ -52,6 +52,7 @@ #iommu-cells = <1>; #global-interrupts = <1>; dma-coherent; + power-domains = <&scpi_devpd 0>; status = "disabled"; };
Signature · 1 line
2.11.0.dirty
PATCH 3/3 arm64: dts: juno: Remove Motherboard USB node
In reply to Robin MurphyThe first batch of Juno boards included a discrete USB controller chip as a contingency in case of issues with the USB 2.0 IP integrated into the SoC. As it turned out, the latter was fine, and to the best of my knowledge the motherboard USB was never even brought up and validated.
Since this also isn't present on later boards, and uses a compatible string undocumented and unmatched by any driver in the kernel, let's just tidy it away for ever to avoid any confusion.
--- arch/arm64/boot/dts/arm/juno-motherboard.dtsi | 7 ------- 1 file changed, 7 deletions(-)
arch/arm64/boot/dts/arm/juno-motherboard.dtsi +0 -7
@@ -131,13 +131,6 @@ vddvario-supply = <&mb_fixed_3v3>; }; - usb at 5,00000000 { - compatible = "nxp,usb-isp1763"; - reg = <5 0x00000000 0x20000>; - bus-width = <16>; - interrupts = <4>; - }; - iofpga at 3,00000000 { compatible = "simple-bus"; #address-cells = <1>;
Signature · 1 line
2.11.0.dirty
Local user for Liviu Dudau
maintainerPATCH 3/3 arm64: dts: juno: Remove Motherboard USB node
Hi Robin,
Quoted 10 lines · Robin Murphy
The first batch of Juno boards included a discrete USB controller chip as a contingency in case of issues with the USB 2.0 IP integrated into the SoC. As it turned out, the latter was fine, and to the best of my knowledge the motherboard USB was never even brought up and validated.
Since this also isn't present on later boards, and uses a compatible string undocumented and unmatched by any driver in the kernel, let's just tidy it away for ever to avoid any confusion.
Signed-off-by Robin Murphy <[email protected]>
For all 3 patches:
Thanks,
Liviu
Quoted 25 lines
--- arch/arm64/boot/dts/arm/juno-motherboard.dtsi | 7 ------- 1 file changed, 7 deletions(-)arch/arm64/boot/dts/arm/juno-motherboard.dtsi +0
-7@@ -131,13 +131,6 @@ vddvario-supply = <&mb_fixed_3v3>; }; - usb at 5,00000000 { - compatible = "nxp,usb-isp1763"; - reg = <5 0x00000000 0x20000>; - bus-width = <16>; - interrupts = <4>; - }; - iofpga at 3,00000000 { compatible = "simple-bus"; #address-cells = <1>;Signature · 1 line
2.11.0.dirty
PATCH 3/3 arm64: dts: juno: Remove Motherboard USB node
Quoted 12 lines · Local user for Liviu Dudau
Hi Robin,
Quoted 9 lines · Robin Murphy
The first batch of Juno boards included a discrete USB controller chip as a contingency in case of issues with the USB 2.0 IP integrated into the SoC. As it turned out, the latter was fine, and to the best of my knowledge the motherboard USB was never even brought up and validated.
Since this also isn't present on later boards, and uses a compatible string undocumented and unmatched by any driver in the kernel, let's just tidy it away for ever to avoid any confusion.
Quoted 6 lines
Quoted 1 line
Signed-off-by Robin Murphy <[email protected]>For all 3 patches:
Acked-by Liviu Dudau <[email protected]>
Thanks Liviu (or/and Local user for Liviu Dudau :))
All 3 patches applied to [1]
Signature · 4 lines
Regards, Sudeep [1] git.kernel.org/sudeep.holla/linux/h/for-next/updates/juno