drivers/platform/mips

Loongson MIPS platform glue (Loongson-3 hwmon, RS780E ACPI, LS2K1000 reset)

A small collection of board-specific helpers for Chinese-designed Loongson MIPS systems: temperature monitoring for the Loongson-3 CPUs, ACPI plumbing for the AMD RS780E south-bridge paired with them, and the reset controller for the LS2K1000 SoC. These chips powered government, industrial, and education-market machines in China through the late 2010s and early 2020s.

keep-annotate conf=0.82 last_sold=2022 deploy=low replacement=none subsystem=platform category=platform-vendor
82%

recommendation

Worth keeping but documenting its niche, because Loongson moved its entire product line to the new LoongArch architecture by mid-2022, with LS2K1000LA and LS3A5000 superseding the MIPS-era parts this code supports. The hardware is no longer sold new, yet installed Loongson MIPS systems remain in use and the files still received genuine maintenance in 2023 and 2024, so removal would be premature. An annotation noting the legacy status and the LoongArch successor would help future janitors.

repository signals

5 files
391 source lines
7 commits, 5y
+111 / −96 lines added / removed, 5y
7 authors, 5y
monthly commits · 2021-04-21 → 2026-04-21 · 7 total · active in 7/61 months
2021 2022 2023 2024 2025 2026 2021-04: 0 commits · +0 −0 2021-05: 0 commits · +0 −0 2021-06: 0 commits · +0 −0 2021-07: 0 commits · +0 −0 2021-08: 0 commits · +0 −0 2021-09: 0 commits · +0 −0 2021-10: 0 commits · +0 −0 2021-11: 1 commit · +60 −0 2021-12: 0 commits · +0 −0 2022-01: 1 commit · +1 −1 2022-02: 0 commits · +0 −0 2022-03: 0 commits · +0 −0 2022-04: 0 commits · +0 −0 2022-05: 1 commit · +41 −86 2022-06: 1 commit · +1 −1 2022-07: 0 commits · +0 −0 2022-08: 0 commits · +0 −0 2022-09: 1 commit · +1 −0 2022-10: 0 commits · +0 −0 2022-11: 0 commits · +0 −0 2022-12: 0 commits · +0 −0 2023-01: 0 commits · +0 −0 2023-02: 0 commits · +0 −0 2023-03: 0 commits · +0 −0 2023-04: 0 commits · +0 −0 2023-05: 0 commits · +0 −0 2023-06: 0 commits · +0 −0 2023-07: 0 commits · +0 −0 2023-08: 0 commits · +0 −0 2023-09: 0 commits · +0 −0 2023-10: 0 commits · +0 −0 2023-11: 0 commits · +0 −0 2023-12: 1 commit · +4 −8 2024-01: 0 commits · +0 −0 2024-02: 0 commits · +0 −0 2024-03: 0 commits · +0 −0 2024-04: 0 commits · +0 −0 2024-05: 0 commits · +0 −0 2024-06: 1 commit · +3 −0 2024-07: 0 commits · +0 −0 2024-08: 0 commits · +0 −0 2024-09: 0 commits · +0 −0 2024-10: 0 commits · +0 −0 2024-11: 0 commits · +0 −0 2024-12: 0 commits · +0 −0 2025-01: 0 commits · +0 −0 2025-02: 0 commits · +0 −0 2025-03: 0 commits · +0 −0 2025-04: 0 commits · +0 −0 2025-05: 0 commits · +0 −0 2025-06: 0 commits · +0 −0 2025-07: 0 commits · +0 −0 2025-08: 0 commits · +0 −0 2025-09: 0 commits · +0 −0 2025-10: 0 commits · +0 −0 2025-11: 0 commits · +0 −0 2025-12: 0 commits · +0 −0 2026-01: 0 commits · +0 −0 2026-02: 0 commits · +0 −0 2026-03: 0 commits · +0 −0 2026-04: 0 commits · +0 −0

sources

  1. lore.kernel.org

    cpu_hwmon.c still received upstream maintenance in September 2024 via a Loongson64 IOCSR header conversion touching this directory.

  2. lore.kernel.org

    rs780e-acpi.c received upstream cleanup in December 2023, showing the code is not entirely dormant.

  3. lore.kernel.org

    ls2k-reset.c saw a post-merge fix in January 2022, indicating real maintenance after its 2021 introduction.

  4. loongson.cn

    Loongson said in May 2022 that LS2K1000LA marked its full transition to LoongArch and was a direct replacement for 2K1000, implying the original MIPS 2K1000 was being superseded.

  5. loongson.cn

    Current official LS3A5000 product page says it is pin-compatible with the older 3A4000, showing current new sales are on LoongArch replacements rather than the older MIPS 3A4000 generation.

codex reasoning notes (technical)

Local tree inspection via exec_command showed three tiny, hardware-specific Loongson-era platform drivers: Loongson-3 hwmon, RS780E ACPI glue, and LS2K1000 reset. lore_activity on each file found only sporadic touches, but notably real maintenance in 2023-2024 rather than removal work; no clear removal series surfaced, and lore_file_timeline on the directory itself returned no aggregated hits. Official loongson.cn pages obtained via web search show Loongson had transitioned its product line to LoongArch by 2022, with LS2K1000LA directly replacing 2K1000 and LS3A5000 replacing/pin-matching 3A4000. That points to legacy-but-deployed hardware: likely still present in installed industrial/government systems, but not meaningfully sold new in 2025. Because upstream still carries occasional fixes/cleanups, this is better tagged legacy/annotated than actively deprecated for removal. No single upstream replacement driver exists because the directory covers several unrelated board/SoC-specific functions.