OSDN Git Service

arm64: tegra: Bump #address-cells and #size-cells
authorThierry Reding <treding@nvidia.com>
Thu, 17 Nov 2022 08:38:34 +0000 (09:38 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 17 Jan 2023 12:55:04 +0000 (13:55 +0100)
commit2838cfddbc1c4e12dacf8219efb481ab11c114a4
treefe3821dba66112b6829d4a6140b750b558bc434b
parentc71e18973be1c0ce65dcb45bfd0e1e755bab6d26
arm64: tegra: Bump #address-cells and #size-cells

The #address-cells and #size-cells properties for the top-level bus were
set to 1 because that was enough to represent the register ranges of all
the IP blocks on that bus. However, most of these devices can do DMA to
a larger address space, so translation of DMA addresses needs to happen
in a 64-bit address space.

Partially this was already done by the memory controller increasing that
address space by setting #address-cells and #size-cells to 2, but a full
DMA address translation would still cause truncation when traversing to
the top-level bus.

Fix this by setting #address-cells = <2> and #size-cells = <2> on the
top-level bus and adjusting all "reg" and "ranges" properties of its
children.

While at it, also move the PCI and GPU nodes back under the top-level
bus where they belong. The were put outside of it to work around this
same problem.

Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra194-p2972-0000.dts
arch/arm64/boot/dts/nvidia/tegra194-p3509-0000.dtsi
arch/arm64/boot/dts/nvidia/tegra194.dtsi
arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts
arch/arm64/boot/dts/nvidia/tegra234.dtsi