* [PATCH] loongarch: boot: dts: Add Loongson-2K0300 support
@ 2026-03-22 4:54 wjjsn
0 siblings, 0 replies; 2+ messages in thread
From: wjjsn @ 2026-03-22 4:54 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, chenhuacai
Cc: kernel, devicetree, loongarch, linux-kernel, wjjsn
Signed-off-by: wjjsn <wjjsn@qq.com>
---
arch/loongarch/boot/dts/Makefile | 2 +-
.../boot/dts/loongson-2k0300-ref.dts | 34 +++++++
arch/loongarch/boot/dts/loongson-2k0300.dtsi | 95 +++++++++++++++++++
3 files changed, 130 insertions(+), 1 deletion(-)
create mode 100644 arch/loongarch/boot/dts/loongson-2k0300-ref.dts
create mode 100644 arch/loongarch/boot/dts/loongson-2k0300.dtsi
diff --git a/arch/loongarch/boot/dts/Makefile b/arch/loongarch/boot/dts/Makefile
index 15d5e14fe418..4a096608cfad 100644
--- a/arch/loongarch/boot/dts/Makefile
+++ b/arch/loongarch/boot/dts/Makefile
@@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
-dtb-y = loongson-2k0500-ref.dtb loongson-2k1000-ref.dtb loongson-2k2000-ref.dtb
+dtb-y = loongson-2k0300-ref.dtb loongson-2k0500-ref.dtb loongson-2k1000-ref.dtb loongson-2k2000-ref.dtb
diff --git a/arch/loongarch/boot/dts/loongson-2k0300-ref.dts b/arch/loongarch/boot/dts/loongson-2k0300-ref.dts
new file mode 100644
index 000000000000..f85d2caa94b0
--- /dev/null
+++ b/arch/loongarch/boot/dts/loongson-2k0300-ref.dts
@@ -0,0 +1,34 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2023 Loongson Technology Corporation Limited
+ */
+
+/dts-v1/;
+
+#include "loongson-2k0300.dtsi"
+
+/ {
+ compatible = "loongson,ls2k0300-ref", "loongson,ls2k0300";
+ model = "Loongson-2K0300 Reference Board";
+
+ aliases {
+ serial0 = &uart0;
+ };
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+
+ memory@200000 {
+ device_type = "memory";
+ reg = <0x0 0x00200000 0x0 0x0ee00000>,
+ <0x0 0x90000000 0x0 0x10000000>;
+ };
+
+};
+
+
+&uart0 {
+ status = "okay";
+};
+
diff --git a/arch/loongarch/boot/dts/loongson-2k0300.dtsi b/arch/loongarch/boot/dts/loongson-2k0300.dtsi
new file mode 100644
index 000000000000..91062b388e77
--- /dev/null
+++ b/arch/loongarch/boot/dts/loongson-2k0300.dtsi
@@ -0,0 +1,95 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2023 Loongson Technology Corporation Limited
+ */
+
+/dts-v1/;
+
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/clock/loongson,ls2k-clk.h>
+
+/ {
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ interrupt-parent = <&cpuintc>;
+
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ cpu0: cpu@0 {
+ compatible = "loongson,la264";
+ device_type = "cpu";
+ reg = <0x0>;
+ clocks = <&clk LS2K0300_CLK_NODE_DIV>;
+ };
+ };
+
+ ref_120m: clock-ref-120m {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <120000000>;
+ clock-output-names = "ref_120m";
+ };
+
+ cpuintc: interrupt-controller {
+ compatible = "loongson,cpu-interrupt-controller";
+ #interrupt-cells = <1>;
+ interrupt-controller;
+ };
+
+ liointc0: interrupt-controller@16001400 {
+ compatible = "loongson,liointc-2.0";
+ reg = <0x0 0x16001400 0x0 0x40>,
+ <0x0 0x16001040 0x0 0x8>;
+ reg-names = "main", "isr0";
+
+ interrupt-controller;
+ #address-cells = <0>;
+ #interrupt-cells = <2>;
+ interrupt-parent = <&cpuintc>;
+ interrupts = <2>;
+ interrupt-names = "int0";
+
+ loongson,parent_int_map = <0xffffffff>, /* int0 */
+ <0x00000000>, /* int1 */
+ <0x00000000>, /* int2 */
+ <0x00000000>; /* int3 */
+ };
+ liointc1: interrupt-controller@16001440 {
+ compatible = "loongson,liointc-2.0";
+ reg = <0x0 0x16001440 0x0 0x40>,
+ <0x0 0x16001048 0x0 0x8>;
+ reg-names = "main", "isr0";
+
+ interrupt-controller;
+ #address-cells = <0>;
+ #interrupt-cells = <2>;
+ interrupt-parent = <&cpuintc>;
+ interrupts = <4>;
+ interrupt-names = "int2";
+
+ loongson,parent_int_map = <0x00000000>, /* int0 */
+ <0x00000000>, /* int1 */
+ <0xffffffff>, /* int2 */
+ <0x00000000>; /* int3 */
+ };
+ clk: clock-controller@16000400 {
+ compatible = "loongson,ls2k0300-clk";
+ reg = <0x0 0x16000400 0x0 0x2c>;
+ #clock-cells = <1>;
+ clocks = <&ref_120m>;
+ clock-names = "ref_120m";
+ };
+
+ uart0: serial@16100000 {
+ compatible = "ns16550a";
+ reg = <0x0 0x16100000 0x0 0x10>;
+ clocks = <&clk LS2K0300_CLK_APB_GATE>;
+ interrupt-parent = <&liointc0>;
+ interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
+ no-loopback-test;
+ status = "disabled";
+ };
+};
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] loongarch: boot: dts: Add Loongson-2K0300 support
@ 2026-03-22 17:38 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-03-22 17:38 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp
::::::
:::::: Manual check reason: "dtcheck: binding changes may go via different trees"
::::::
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <tencent_043BCD1F1043957E96ED022D75601AF05505@qq.com>
References: <tencent_043BCD1F1043957E96ED022D75601AF05505@qq.com>
TO: wjjsn <wjjsn@qq.com>
TO: robh@kernel.org
TO: krzk+dt@kernel.org
TO: conor+dt@kernel.org
TO: chenhuacai@kernel.org
CC: kernel@xen0n.name
CC: devicetree@vger.kernel.org
CC: loongarch@lists.linux.dev
CC: linux-kernel@vger.kernel.org
CC: wjjsn <wjjsn@qq.com>
Hi wjjsn,
kernel test robot noticed the following build warnings:
[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v7.0-rc4 next-20260320]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/wjjsn/loongarch-boot-dts-Add-Loongson-2K0300-support/20260322-130435
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link: https://lore.kernel.org/r/tencent_043BCD1F1043957E96ED022D75601AF05505%40qq.com
patch subject: [PATCH] loongarch: boot: dts: Add Loongson-2K0300 support
:::::: branch date: 12 hours ago
:::::: commit date: 12 hours ago
config: loongarch-randconfig-2051-20260322 (https://download.01.org/0day-ci/archive/20260322/202603221812.paxyhoFM-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project f43d6834093b19baf79beda8c0337ab020ac5f17)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
dtschema: 2025.13.dev8+g0515abdd9
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260322/202603221812.paxyhoFM-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202603221812.paxyhoFM-lkp@intel.com/
dtcheck warnings: (new ones prefixed by >>)
>> arch/loongarch/boot/dts/loongson-2k0300-ref.dtb: /: failed to match any schema with compatible: ['loongson,ls2k0300-ref', 'loongson,ls2k0300']
>> arch/loongarch/boot/dts/loongson-2k0300-ref.dtb: /: failed to match any schema with compatible: ['loongson,ls2k0300-ref', 'loongson,ls2k0300']
>> arch/loongarch/boot/dts/loongson-2k0300-ref.dtb: clock-controller@16000400 (loongson,ls2k0300-clk): False schema does not allow ['ref_120m']
from schema $id: http://devicetree.org/schemas/clock/loongson,ls2k-clk.yaml
>> arch/loongarch/boot/dts/loongson-2k0300-ref.dtb: clock-controller@16000400 (loongson,ls2k0300-clk): clock-names:0: 'ref_100m' was expected
from schema $id: http://devicetree.org/schemas/clock/loongson,ls2k-clk.yaml
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-22 17:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-22 17:38 [PATCH] loongarch: boot: dts: Add Loongson-2K0300 support kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-03-22 4:54 wjjsn
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.