powerpc: dts: turris1x.dts: Fix PCIe MEM size for pci2 node
authorPali Rohár <pali@kernel.org>
Fri, 5 May 2023 17:28:18 +0000 (19:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2023 14:22:04 +0000 (16:22 +0200)
commitd50baa75c689d0e10b93547378dd4e039b0f6da1
tree657a6b47baa2ce7e175d1ce66be9e19eab126cf4
parentd33b0ddf7afa7fa71ba3a8d0f8b1948dad003257
powerpc: dts: turris1x.dts: Fix PCIe MEM size for pci2 node

[ Upstream commit abaa02fc944f2f9f2c2e1925ddaceaf35c48528c ]

Freescale PCIe controllers on their PCIe Root Ports do not have any
mappable PCI BAR allocate from PCIe MEM.

Information about 1MB window on BAR0 of PCIe Root Port was misleading
because Freescale PCIe controllers have at BAR0 position different register
PEXCSRBAR, and kernel correctly skipts BAR0 for these Freescale PCIe Root
Ports.

So update comment about P2020 PCIe Root Port and decrease PCIe MEM size
required for PCIe controller (pci2 node) on which is on-board xHCI
controller.

lspci confirms that on P2020 PCIe Root Port is no PCI BAR and /proc/iomem
sees that only c0000000-c000ffff and c0010000-c0011fff ranges are used.

Fixes: 54c15ec3b738 ("powerpc: dts: Add DTS file for CZ.NIC Turris 1.x routers")
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230505172818.18416-1-pali@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/boot/dts/turris1x.dts