Skip to contentSkip to conversation

dt-bindings: loongarch: Add Loongson-2K0300

PATCH In review wjjsn 2 participants 4 messages Mar 22 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

wjjsn

author
#1 lore raw

PATCH v5 1/2 dt-bindings: loongarch: Add Loongson-2K0300

From: wjjsn <[email protected]>

---
 Documentation/devicetree/bindings/loongarch/loongson.yaml | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/loongarch/loongson.yaml +4 -0
index e1a4a97b7576..8e0a917ffc01 100644
@@ -14,6 +14,10 @@ properties:
     const: '/'
   compatible:
     oneOf:
+      - description: Loongson-2K0300 processor based boards
+        items:
+          - const: loongson,ls2k0300-ref
+          - const: loongson,ls2k0300
       - description: Loongson-2K0500 processor based boards
         items:
           - const: loongson,ls2k0500-ref
Signature · 1 line
2.43.0
author
#2 lore raw

PATCH v5 2/2 loongarch: boot: dts: Add Loongson-2K0300 support

In reply to a message not in the archive

From: wjjsn <[email protected]>

---
 arch/loongarch/boot/dts/Makefile              |  2 +-
 .../boot/dts/loongson-2k0300-ref.dts          | 34 +++++++
 arch/loongarch/boot/dts/loongson-2k0300.dtsi  | 94 +++++++++++++++++++
 3 files changed, 129 insertions(+), 1 deletion(-)
 create mode 100644 arch/loongarch/boot/dts/loongson-2k0300-ref.dts
 create mode 100644 arch/loongarch/boot/dts/loongson-2k0300.dtsi
arch/loongarch/boot/dts/Makefile +1 -1
index 15d5e14fe418..4a096608cfad 100644
@@ -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
arch/loongarch/boot/dts/loongson-2k0300-ref.dts new file +34 -0
new file mode 100644
index 000000000000..f85d2caa94b0
@@ -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";
+};
+
arch/loongarch/boot/dts/loongson-2k0300.dtsi new file +94 -0

94 lines not on this page · raw message

Signature · 1 line
2.43.0
#3 lore raw

Re: [PATCH v5 2/2] loongarch: boot: dts: Add Loongson-2K0300 support

Quoted 3 lines · wjjsn

From: wjjsn <[email protected]>

I don't understand what is happening here. You sent bunch of unthreaded patches, empty commit msgs, some are being duplicated (seems at least?)...

Quoted 43 lines
---
 arch/loongarch/boot/dts/Makefile              |  2 +-
 .../boot/dts/loongson-2k0300-ref.dts          | 34 +++++++
 arch/loongarch/boot/dts/loongson-2k0300.dtsi  | 94 +++++++++++++++++++
 3 files changed, 129 insertions(+), 1 deletion(-)
 create mode 100644 arch/loongarch/boot/dts/loongson-2k0300-ref.dts
 create mode 100644 arch/loongarch/boot/dts/loongson-2k0300.dtsi
arch/loongarch/boot/dts/Makefile +1 -1
index 15d5e14fe418..4a096608cfad 100644
@@ -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
arch/loongarch/boot/dts/loongson-2k0300-ref.dts new file +20 -0
new file mode 100644
index 000000000000..f85d2caa94b0
@@ -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";
+	};

arch/loongarch/boot/dts/loongson-2k0300-ref.dts line 30

Quoted 10 lines
arch/loongarch/boot/dts/loongson-2k0300-ref.dts new file +10 -0
+
+	memory@200000 {
+		device_type = "memory";
+		reg = <0x0 0x00200000 0x0 0x0ee00000>,
+			  <0x0 0x90000000 0x0 0x10000000>;
+	};
+
+};
+
+

This code has many white space issues. Please clean it up everywhere.

arch/loongarch/boot/dts/loongson-2k0300-ref.dts line 34

Quoted 4 lines
arch/loongarch/boot/dts/loongson-2k0300-ref.dts new file +4 -0
+&uart0 {
+	status = "okay";
+};
+

And here

Best regards,
Krzysztof

#4 lore raw

Re: [PATCH v5 2/2] loongarch: boot: dts: Add Loongson-2K0300 support

Quoted 7 lines · Krzysztof Kozlowski
Quoted 3 lines · wjjsn

From: wjjsn <[email protected]>

I don't understand what is happening here. You sent bunch of unthreaded patches, empty commit msgs, some are being duplicated (seems at least?)...

So you sent like 3 versions with similar issues, one after another. No, slow down. One version of the same patchset per 24h, so you will actually see what you sent.

None of the versions you sent are correct, none pass basic tests or basic submission style.

Finally - we do not take anonymous contributions.

Best regards,
Krzysztof