Hi all: This patchset introduces LoongArch's built-in dtb support. As we know, the Loongson-2K family supports DT. Inevitably, some systems do not provide a useful device tree to the kernel at boot time. Chasing around bootloaders for these systems is a headache, so we just keep a device tree table in the kernel, keyed by the dts filename, that contains the relevant DTBs. Thanks. Binbin Zhou (6): dt-bindings: loongarch: Add CPU bindings for LoongArch dt-bindings: loongarch: Add Loongson SoC boards compatibles LoongArch: Allow device trees to be built into the kernel LoongArch: DeviceTree for Loongson-2K0500 LoongArch: DeviceTree for Loongson-2K1000 LoongArch: DeviceTree for Loongson-2K2000 .../devicetree/bindings/loongarch/boards.yaml | 31 + .../devicetree/bindings/loongarch/cpus.yaml | 65 ++ arch/loongarch/Kconfig | 16 + arch/loongarch/Makefile | 10 +- arch/loongarch/boot/dts/Makefile | 7 +- arch/loongarch/boot/dts/loongson_2k0500.dts | 311 ++++++++++ arch/loongarch/boot/dts/loongson_2k1000.dts | 565 ++++++++++++++++++ arch/loongarch/boot/dts/loongson_2k2000.dts | 417 +++++++++++++ arch/loongarch/kernel/setup.c | 9 +- 9 files changed, 1425 insertions(+), 6 deletions(-) create mode 100644 Documentation/devicetree/bindings/loongarch/boards.yaml create mode 100644 Documentation/devicetree/bindings/loongarch/cpus.yaml create mode 100644 arch/loongarch/boot/dts/loongson_2k0500.dts create mode 100644 arch/loongarch/boot/dts/loongson_2k1000.dts create mode 100644 arch/loongarch/boot/dts/loongson_2k2000.dts -- 2.39.3