Skip to contentSkip to conversation

dt-bindings: loongarch: Add Loongson-2K0300

PATCH Superseded wjjsn 2 participants 3 messages Mar 22 1 message not in the archive

Subsystems (2)

v3 of 5 Superseded Latest is v5 →

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 v3 1/2 dt-bindings: loongarch: Add Loongson-2K0300

---
 Documentation/devicetree/bindings/loongarch/loongson.yaml | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/loongarch/loongson.yaml +4 -0
index e1a4a97b7576..8bea8b9f75b1 100644
@@ -14,6 +14,10 @@ properties:
     const: '/'
   compatible:
     oneOf:
+      - description: Loongson-2K0300 processor based boards
+        items:
+          - const: loongson,99pi
+          - 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 v3 2/2 loongarch: boot: dts: Add Loongson-2K0300 support

In reply to a message not in the archive
---
 .../bindings/loongarch/loongson.yaml          |  2 +-
 arch/loongarch/boot/dts/Makefile              |  2 +-
 .../boot/dts/loongson-2k0300-ref.dts          | 34 +++++++
 arch/loongarch/boot/dts/loongson-2k0300.dtsi  | 95 +++++++++++++++++++
 4 files changed, 131 insertions(+), 2 deletions(-)
 create mode 100644 arch/loongarch/boot/dts/loongson-2k0300-ref.dts
 create mode 100644 arch/loongarch/boot/dts/loongson-2k0300.dtsi
Documentation/devicetree/bindings/loongarch/loongson.yaml +1 -1
index 8bea8b9f75b1..8e0a917ffc01 100644
@@ -16,7 +16,7 @@ properties:
     oneOf:
       - description: Loongson-2K0300 processor based boards
         items:
-          - const: loongson,99pi
+          - const: loongson,ls2k0300-ref
           - const: loongson,ls2k0300
       - description: Loongson-2K0500 processor based boards
         items:
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 +95 -0

95 lines not on this page · raw message

Signature · 1 line
2.43.0
#3 lore raw

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

Quoted 6 lines · wjjsn
---
 .../bindings/loongarch/loongson.yaml          |  2 +-
 arch/loongarch/boot/dts/Makefile              |  2 +-
 .../boot/dts/loongson-2k0300-ref.dts          | 34 +++++++
 arch/loongarch/boot/dts/loongson-2k0300.dtsi  | 95 +++++++++++++++++++

Random posting.

Documentation/devicetree/bindings/loongarch/loongson.yaml properties: · line 19

Quoted 13 lines
 4 files changed, 131 insertions(+), 2 deletions(-)
 create mode 100644 arch/loongarch/boot/dts/loongson-2k0300-ref.dts
 create mode 100644 arch/loongarch/boot/dts/loongson-2k0300.dtsi
Documentation/devicetree/bindings/loongarch/loongson.yaml +0 -1
index 8bea8b9f75b1..8e0a917ffc01 100644
@@ -16,7 +16,7 @@ properties:
     oneOf:
       - description: Loongson-2K0300 processor based boards
         items:
-          - const: loongson,99pi

But this is obviously NAK without explanation.

Documentation/devicetree/bindings/loongarch/loongson.yaml properties: · line 19

Quoted 1 line
Documentation/devicetree/bindings/loongarch/loongson.yaml +1 -0
+          - const: loongson,ls2k0300-ref

Best regards,
Krzysztof