LoongArch: dts: Describe PCI sideband IRQ through interrupt-extended

SoC integrated peripherals on LS2K1000 and LS2K2000 could be discovered
as PCI devices, but require sideband interrupts to function, which are
previously described by interrupts and interrupt-parent properties.

However, pci/pci-device.yaml allows interrupts property to only specify
PCI INTx interrupts, not sideband ones. Convert these devices to use
interrupt-extended property, which describes sideband interrupts used by
PCI devices since dt-schema commit e6ea659d2baa ("schemas: pci-device:
Allow interrupts-extended for sideband interrupts"), eliminating
dtbs_check warnings.

Cc: stable@vger.kernel.org
Fixes: 30a5532a3206 ("LoongArch: dts: DeviceTree for Loongson-2K1000")
Signed-off-by: Yao Zi <me@ziyao.cc>
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
maoxiaochuan
2026-02-04 16:39:59 +08:00
parent 96702d68ec
commit 5318de7663
2 changed files with 21 additions and 36 deletions
+9 -16
View File
@@ -827,9 +827,8 @@
"pciclass0c0320", "pciclass0c0320",
"pciclass0c03"; "pciclass0c03";
reg = <0x1800 0x0 0x0 0x0 0x0>; reg = <0x1800 0x0 0x0 0x0 0x0>;
interrupt-parent = <&liointc0>; interrupts-extended = <&liointc0 12 IRQ_TYPE_LEVEL_HIGH>,
interrupts = <12 IRQ_TYPE_LEVEL_HIGH>, <&liointc0 13 IRQ_TYPE_LEVEL_HIGH>;
<13 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq", "eth_lpi"; interrupt-names = "macirq", "eth_lpi";
status = "disabled"; status = "disabled";
}; };
@@ -837,9 +836,8 @@
gmac1: ethernet@3,1 { gmac1: ethernet@3,1 {
// compatible = "snps,dwmac-3.70a"; // compatible = "snps,dwmac-3.70a";
reg = <0x1900 0x0 0x0 0x0 0x0>; reg = <0x1900 0x0 0x0 0x0 0x0>;
interrupt-parent = <&liointc0>; interrupts-extended = <&liointc0 14 IRQ_TYPE_LEVEL_HIGH>,
interrupts = <14 IRQ_TYPE_LEVEL_HIGH>, <&liointc0 15 IRQ_TYPE_LEVEL_HIGH>;
<15 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq", "eth_lpi"; interrupt-names = "macirq", "eth_lpi";
status = "disabled"; status = "disabled";
}; };
@@ -860,8 +858,7 @@
"pciclass0c03"; "pciclass0c03";
reg = <0x2100 0x0 0x0 0x0 0x0>; reg = <0x2100 0x0 0x0 0x0 0x0>;
interrupt-parent = <&liointc1>; interrupts-extended = <&liointc1 18 IRQ_TYPE_LEVEL_HIGH>;
interrupts = <18 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled"; status = "disabled";
}; };
@@ -872,22 +869,19 @@
"pciclass0c0310", "pciclass0c0310",
"pciclass0c03"; "pciclass0c03";
reg = <0x2200 0x0 0x0 0x0 0x0>; reg = <0x2200 0x0 0x0 0x0 0x0>;
interrupt-parent = <&liointc1>; interrupts-extended = <&liointc1 19 IRQ_TYPE_LEVEL_HIGH>;
interrupts = <19 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled"; status = "disabled";
}; };
dc: display@6,0 { dc: display@6,0 {
reg = <0x3000 0x0 0x0 0x0 0x0>; reg = <0x3000 0x0 0x0 0x0 0x0>;
interrupt-parent = <&liointc0>; interrupts-extended = <&liointc0 28 IRQ_TYPE_LEVEL_HIGH>;
interrupts = <28 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled"; status = "disabled";
}; };
hda@7,0 { hda@7,0 {
reg = <0x3800 0x0 0x0 0x0 0x0>; reg = <0x3800 0x0 0x0 0x0 0x0>;
interrupt-parent = <&liointc0>; interrupts-extended = <&liointc0 4 IRQ_TYPE_LEVEL_HIGH>;
interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled"; status = "disabled";
}; };
@@ -899,8 +893,7 @@
"pciclass0106"; "pciclass0106";
reg = <0x4000 0x0 0x0 0x0 0x0>; reg = <0x4000 0x0 0x0 0x0 0x0>;
interrupt-parent = <&liointc0>; interrupts-extended = <&liointc0 19 IRQ_TYPE_LEVEL_HIGH>;
interrupts = <19 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled"; status = "disabled";
}; };
+12 -20
View File
@@ -291,65 +291,57 @@
gmac0: ethernet@3,0 { gmac0: ethernet@3,0 {
reg = <0x1800 0x0 0x0 0x0 0x0>; reg = <0x1800 0x0 0x0 0x0 0x0>;
interrupts = <12 IRQ_TYPE_LEVEL_HIGH>, interrupts-extended = <&pic 12 IRQ_TYPE_LEVEL_HIGH>,
<13 IRQ_TYPE_LEVEL_HIGH>; <&pic 13 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq", "eth_lpi"; interrupt-names = "macirq", "eth_lpi";
interrupt-parent = <&pic>;
status = "disabled"; status = "disabled";
}; };
gmac1: ethernet@3,1 { gmac1: ethernet@3,1 {
reg = <0x1900 0x0 0x0 0x0 0x0>; reg = <0x1900 0x0 0x0 0x0 0x0>;
interrupts = <14 IRQ_TYPE_LEVEL_HIGH>, interrupts-extended = <&pic 14 IRQ_TYPE_LEVEL_HIGH>,
<15 IRQ_TYPE_LEVEL_HIGH>; <&pic 15 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq", "eth_lpi"; interrupt-names = "macirq", "eth_lpi";
interrupt-parent = <&pic>;
status = "disabled"; status = "disabled";
}; };
gmac2: ethernet@3,2 { gmac2: ethernet@3,2 {
reg = <0x1a00 0x0 0x0 0x0 0x0>; reg = <0x1a00 0x0 0x0 0x0 0x0>;
interrupts = <17 IRQ_TYPE_LEVEL_HIGH>, interrupts-extended = <&pic 17 IRQ_TYPE_LEVEL_HIGH>,
<18 IRQ_TYPE_LEVEL_HIGH>; <&pic 18 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq", "eth_lpi"; interrupt-names = "macirq", "eth_lpi";
interrupt-parent = <&pic>;
status = "disabled"; status = "disabled";
}; };
xhci0: usb@4,0 { xhci0: usb@4,0 {
reg = <0x2000 0x0 0x0 0x0 0x0>; reg = <0x2000 0x0 0x0 0x0 0x0>;
interrupts = <48 IRQ_TYPE_LEVEL_HIGH>; interrupts-extended = <&pic 48 IRQ_TYPE_LEVEL_HIGH>;
interrupt-parent = <&pic>;
status = "disabled"; status = "disabled";
}; };
xhci1: usb@19,0 { xhci1: usb@19,0 {
reg = <0xc800 0x0 0x0 0x0 0x0>; reg = <0xc800 0x0 0x0 0x0 0x0>;
interrupts = <22 IRQ_TYPE_LEVEL_HIGH>; interrupts-extended = <&pic 22 IRQ_TYPE_LEVEL_HIGH>;
interrupt-parent = <&pic>;
status = "disabled"; status = "disabled";
}; };
display@6,1 { display@6,1 {
reg = <0x3100 0x0 0x0 0x0 0x0>; reg = <0x3100 0x0 0x0 0x0 0x0>;
interrupts = <28 IRQ_TYPE_LEVEL_HIGH>; interrupts-extended = <&pic 28 IRQ_TYPE_LEVEL_HIGH>;
interrupt-parent = <&pic>;
status = "disabled"; status = "disabled";
}; };
i2s@7,0 { i2s@7,0 {
reg = <0x3800 0x0 0x0 0x0 0x0>; reg = <0x3800 0x0 0x0 0x0 0x0>;
interrupts = <78 IRQ_TYPE_LEVEL_HIGH>, interrupts-extended = <&pic 78 IRQ_TYPE_LEVEL_HIGH>,
<79 IRQ_TYPE_LEVEL_HIGH>; <&pic 79 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "tx", "rx"; interrupt-names = "tx", "rx";
interrupt-parent = <&pic>;
status = "disabled"; status = "disabled";
}; };
sata: sata@8,0 { sata: sata@8,0 {
reg = <0x4000 0x0 0x0 0x0 0x0>; reg = <0x4000 0x0 0x0 0x0 0x0>;
interrupts = <16 IRQ_TYPE_LEVEL_HIGH>; interrupts-extended = <&pic 16 IRQ_TYPE_LEVEL_HIGH>;
interrupt-parent = <&pic>;
status = "disabled"; status = "disabled";
}; };