From 42cdb424bb4651e45c707d78555f7c9b9ee17e1f Mon Sep 17 00:00:00 2001 From: Shawn Lin Date: Thu, 25 Feb 2021 10:26:22 +0800 Subject: [PATCH] arm64: dts: rockchip: rk3568: Add Legacy INT support for PCIe Change-Id: I9afd5332467d35e3450a228a8cb4d7f94426881a Signed-off-by: Shawn Lin --- arch/arm64/boot/dts/rockchip/rk3568.dtsi | 42 ++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568.dtsi b/arch/arm64/boot/dts/rockchip/rk3568.dtsi index a8040429cc60..49a468a5fe53 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3568.dtsi @@ -2049,6 +2049,12 @@ , ; interrupt-names = "sys", "pmc", "msg", "legacy", "err"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie2x1_intc 0>, + <0 0 0 2 &pcie2x1_intc 1>, + <0 0 0 3 &pcie2x1_intc 2>, + <0 0 0 4 &pcie2x1_intc 3>; linux,pci-domain = <0>; num-ib-windows = <6>; num-ob-windows = <2>; @@ -2067,6 +2073,14 @@ resets = <&cru SRST_PCIE20_POWERUP>; reset-names = "pipe"; status = "disabled"; + + pcie2x1_intc: legacy-interrupt-controller { + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <1>; + interrupt-parent = <&gic>; + interrupts = ; + }; }; pcie3x1: pcie@fe270000 { @@ -2086,6 +2100,12 @@ , ; interrupt-names = "sys", "pmc", "msg", "legacy", "err"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie3x1_intc 0>, + <0 0 0 2 &pcie3x1_intc 1>, + <0 0 0 3 &pcie3x1_intc 2>, + <0 0 0 4 &pcie3x1_intc 3>; linux,pci-domain = <1>; num-ib-windows = <6>; num-ob-windows = <2>; @@ -2105,6 +2125,14 @@ reset-names = "pipe"; /* rockchip,bifurcation; lane1 when using 1+1 */ status = "disabled"; + + pcie3x1_intc: legacy-interrupt-controller { + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <1>; + interrupt-parent = <&gic>; + interrupts = ; + }; }; pcie3x2: pcie@fe280000 { @@ -2124,6 +2152,12 @@ , ; interrupt-names = "sys", "pmc", "msg", "legacy", "err"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie3x2_intc 0>, + <0 0 0 2 &pcie3x2_intc 1>, + <0 0 0 3 &pcie3x2_intc 2>, + <0 0 0 4 &pcie3x2_intc 3>; linux,pci-domain = <2>; num-ib-windows = <6>; num-ob-windows = <2>; @@ -2143,6 +2177,14 @@ reset-names = "pipe"; /* rockchip,bifurcation; lane0 when using 1+1 */ status = "disabled"; + + pcie3x2_intc: legacy-interrupt-controller { + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <1>; + interrupt-parent = <&gic>; + interrupts = ; + }; }; gmac0: ethernet@fe2a0000 {