1 From f15be3d4a0a55db2b50f319c378a2d16ceb21f86 Mon Sep 17 00:00:00 2001
2 From: Dmitry Osipenko <dmitry.osipenko@collabora.com>
3 Date: Mon, 17 Feb 2025 01:16:33 +0300
4 Subject: [PATCH] arm64: dts: rockchip: rk356x: Add MSI controller node
6 Rockchip 356x SoC's GIC has two hardware integration issues that
7 affect MSI functionality of the GIC. Previously, both these GIC
8 issues were worked around by using MBI for MSI instead of ITS
9 because kernel GIC driver didn't have necessary quirks.
11 First issue is about RK356x GIC not supporting programmable
12 shareability, while reporting it as supported in a GIC's feature
13 register. Rockchip assigned Erratum ID #3568001 for this issue. This
14 patch adds dma-noncoherent property to the GIC node, denoting that a SW
15 workaround is required for mitigating the issue.
17 Second issue is about GIC AXI master interface addressing limited to
18 the first 4GB of physical address space. Rockchip assigned Erratum
19 ID #3568002 for this issue.
21 Now that kernel supports quirks for both of the erratums, add
22 MSI controller node to RK356x device-tree.
24 Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
25 Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
26 Link: https://lore.kernel.org/all/20250216221634.364158-3-dmitry.osipenko@collabora.com
28 arch/arm64/boot/dts/rockchip/rk356x-base.dtsi | 12 ++++++++++++
29 1 file changed, 12 insertions(+)
31 --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi
32 +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi
34 mbi-alias = <0x0 0xfd410000>;
35 mbi-ranges = <296 24>;
38 + #address-cells = <2>;
42 + its: msi-controller@fd440000 {
43 + compatible = "arm,gic-v3-its";
44 + reg = <0x0 0xfd440000 0 0x20000>;
51 usb_host0_ehci: usb@fd800000 {