Skip to contentSkip to conversation

dt-bindings: mips: loongson: Add Loongson-1 based boards

PATCH Superseded Keguang Zhang 2 participants 3 messages Feb 21, 2023

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dt-bindings: mips: loongson: Add Loongson-1 based boards

Add two Loongson-1 based boards: LSGZ 1B and Smartloong 1C.

---
V1 -> V2: Add the according vendor prefix
Change the board string to enum
Modify the board description

---
 .../devicetree/bindings/mips/loongson/devices.yaml   | 12 ++++++++++++
 .../devicetree/bindings/vendor-prefixes.yaml         |  2 ++
 2 files changed, 14 insertions(+)
Documentation/devicetree/bindings/mips/loongson/devices.yaml +12 -0
index f13ce386f42c..15a43ce51bbf 100644
@@ -37,6 +37,18 @@ properties:
         items:
           - const: loongson,loongson64v-4core-virtio
 
+      - description: LS1B based boards
+        items:
+          - enum:
+              - loongson,lsgz-1b-dev
+          - const: loongson,ls1b
+
+      - description: LS1C based boards
+        items:
+          - enum:
+              - loongsonclub,smartloong-1c
+          - const: loongson,ls1c
+
 additionalProperties: true
 
 ...
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 0e57ae744199..47565ebae4d1 100644
@@ -757,6 +757,8 @@ patternProperties:
     description: Lontium Semiconductor Corporation
   "^loongson,.*":
     description: Loongson Technology Corporation Limited
+  "^loongsonclub,.*":
+    description: Loongson Club
   "^lsi,.*":
     description: LSI Corp. (LSI Logic)
   "^lwn,.*":

base-commit: 39459ce717b863556d7d75466fcbd904a6fbbbd8

Signature · 1 line
2.34.1
#1 lore raw
Quoted 7 lines · Keguang Zhang

Add two Loongson-1 based boards: LSGZ 1B and Smartloong 1C.

---
V1 -> V2: Add the according vendor prefix
Change the board string to enum
Modify the board description

Thank you for your patch. There is something to discuss/improve.

Quoted 33 lines
---
 .../devicetree/bindings/mips/loongson/devices.yaml   | 12 ++++++++++++
 .../devicetree/bindings/vendor-prefixes.yaml         |  2 ++
 2 files changed, 14 insertions(+)
Documentation/devicetree/bindings/mips/loongson/devices.yaml +12 -0
index f13ce386f42c..15a43ce51bbf 100644
@@ -37,6 +37,18 @@ properties:
         items:
           - const: loongson,loongson64v-4core-virtio
 
+      - description: LS1B based boards
+        items:
+          - enum:
+              - loongson,lsgz-1b-dev
+          - const: loongson,ls1b
+
+      - description: LS1C based boards
+        items:
+          - enum:
+              - loongsonclub,smartloong-1c
+          - const: loongson,ls1c
+
 additionalProperties: true
 
...
Documentation/devicetree/bindings/vendor-prefixes.yaml +0 -0
index 0e57ae744199..47565ebae4d1 100644

Documentation/devicetree/bindings/vendor-prefixes.yaml patternProperties: · line 761

Quoted 5 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -757,6 +757,8 @@ patternProperties:
     description: Lontium Semiconductor Corporation
   "^loongson,.*":
     description: Loongson Technology Corporation Limited
+  "^loongsonclub,.*":
+    description: Loongson Club

Are you sure that this is a board manufacturer?

Best regards,
Krzysztof

#2 lore raw
Quoted 39 lines · Krzysztof Kozlowski
Quoted 7 lines · Keguang Zhang

Add two Loongson-1 based boards: LSGZ 1B and Smartloong 1C.

---
V1 -> V2: Add the according vendor prefix
Change the board string to enum
Modify the board description

Thank you for your patch. There is something to discuss/improve.

Quoted 27 lines
---
 .../devicetree/bindings/mips/loongson/devices.yaml   | 12 ++++++++++++
 .../devicetree/bindings/vendor-prefixes.yaml         |  2 ++
 2 files changed, 14 insertions(+)
Documentation/devicetree/bindings/mips/loongson/devices.yaml +12 -0
index f13ce386f42c..15a43ce51bbf 100644
@@ -37,6 +37,18 @@ properties:
         items:
           - const: loongson,loongson64v-4core-virtio
 
+      - description: LS1B based boards
+        items:
+          - enum:
+              - loongson,lsgz-1b-dev
+          - const: loongson,ls1b
+
+      - description: LS1C based boards
+        items:
+          - enum:
+              - loongsonclub,smartloong-1c
+          - const: loongson,ls1c
+
 additionalProperties: true
 
Quoted 14 lines

Documentation/devicetree/bindings/vendor-prefixes.yaml patternProperties: · line 761

Quoted 11 lines
Documentation/devicetree/bindings/mips/loongson/devices.yaml +0 -0
...
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 0e57ae744199..47565ebae4d1 100644
@@ -757,6 +757,8 @@ patternProperties:
     description: Lontium Semiconductor Corporation
   "^loongson,.*":
     description: Loongson Technology Corporation Limited
+  "^loongsonclub,.*":
+    description: Loongson Club

Are you sure that this is a board manufacturer?

Sorry, that's inaccurate.
Let me update the manufacturer later.

Quoted 3 lines

Best regards,
Krzysztof

Signature · 3 lines
Best regards,

Kelvin Cheung