]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64: dts: imx8mq: Add dbi2 and atu reg for i.MX8MQ PCIe EP
authorRichard Zhu <hongxing.zhu@nxp.com>
Tue, 13 Aug 2024 07:42:21 +0000 (15:42 +0800)
committerShawn Guo <shawnguo@kernel.org>
Tue, 8 Oct 2024 08:26:51 +0000 (16:26 +0800)
commit64c7f0e513de1293179dd168a439d43e39cdeed9
tree384f650a4f8b7cd8feec87448dacb5c3df6bb5e5
parent9852d85ec9d492ebef56dc5f229416c925758edc
arm64: dts: imx8mq: Add dbi2 and atu reg for i.MX8MQ PCIe EP

Add dbi2 and iatu reg for i.MX8MQ PCIe EP.

For i.MX8M PCIe EP, the dbi2 and atu addresses are pre-defined in the
driver. This method is not good.

In commit b7d67c6130ee ("PCI: imx6: Add iMX95 Endpoint (EP) support"),
Frank suggests to fetch the dbi2 and atu from DT directly. This commit is
preparation to do that for i.MX8MQ PCIe EP.

These changes wouldn't break driver function. When "dbi2" and "atu"
properties are present, i.MX PCIe driver would fetch the according base
addresses from DT directly. If only two reg properties are provided, i.MX
PCIe driver would fall back to the old method.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mq.dtsi