]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
riscv: dts: spacemit: Add 'linux,pci-domain' to PCIe nodes for K1
authorChukun Pan <amadeus@jmu.edu.cn>
Mon, 9 Mar 2026 03:00:00 +0000 (11:00 +0800)
committerYixun Lan <dlan@kernel.org>
Tue, 10 Mar 2026 09:38:57 +0000 (09:38 +0000)
The SpacemiT K1 SoC has 3 PCIe EP controller nodes. Add the
'linux,pci-domain' property to assign a PCI domain number to
each of the controllers instead of assigning it randomly.

This creates a stable sysfs path, allowing userspace scripts
to reliably target specific PCIe devices (such as PCIe NICs).

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Reviewed-by: Yixun Lan <dlan@kernel.org>
Link: https://lore.kernel.org/r/20260309030000.1157040-1-amadeus@jmu.edu.cn
Signed-off-by: Yixun Lan <dlan@kernel.org>
arch/riscv/boot/dts/spacemit/k1.dtsi

index 529ec68e9c23eb2a93c04e9ccd3f22a01c4cc4ff..d2015201f8e5adff8bda75712036b8dc2b79bcb5 100644 (file)
                        #size-cells = <2>;
                        dma-ranges = <0x0 0x00000000 0x0 0x00000000 0x0 0x80000000>,
                                     <0x0 0xb8000000 0x1 0x38000000 0x3 0x48000000>;
+
                        pcie0: pcie@ca000000 {
                                device_type = "pci";
                                compatible = "spacemit,k1-pcie";
                                            "atu",
                                            "config",
                                            "link";
+                               linux,pci-domain = <0>;
                                #address-cells = <3>;
                                #size-cells = <2>;
                                ranges = <0x01000000 0x0 0x00000000 0x0 0x8f002000 0x0 0x00100000>,
                                            "atu",
                                            "config",
                                            "link";
+                               linux,pci-domain = <1>;
                                #address-cells = <3>;
                                #size-cells = <2>;
                                ranges = <0x01000000 0x0 0x00000000 0x0 0x9f002000 0x0 0x00100000>,
                                            "atu",
                                            "config",
                                            "link";
+                               linux,pci-domain = <2>;
                                #address-cells = <3>;
                                #size-cells = <2>;
                                ranges = <0x01000000 0x0 0x00000000 0x0 0xb7002000 0x0 0x00100000>,