Skip to contentSkip to conversation

ARM: mstar: Initial DongShanPiOne support

PATCH In review Daniel Palmer 2 participants 6 messages Dec 17, 2021 – Dec 21, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover ARM: mstar: Initial DongShanPiOne support

Add a few device tree bits to support the DongShanPiOne which is an SBC module based on the SigmaStar SSD202D.

http://linux-chenxing.org/infinity2/dongshanpione/

Daniel Palmer (3):
dt-bindings: vendor-prefixes: Add prefix for 100ask
dt-bindings: arm: mstar: Add compatible for 100ask DongShanPiOne
ARM: dts: mstar: Add board for 100ask DongShanPiOne

 .../devicetree/bindings/arm/mstar/mstar.yaml  |  1 +
 .../devicetree/bindings/vendor-prefixes.yaml  |  2 ++
 arch/arm/boot/dts/Makefile                    |  1 +
 ...nfinity2m-ssd202d-100ask-dongshanpione.dts | 25 +++++++++++++++++++
 4 files changed, 29 insertions(+)
 create mode 100644 arch/arm/boot/dts/mstar-infinity2m-ssd202d-100ask-dongshanpione.dts
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/3 dt-bindings: vendor-prefixes: Add prefix for 100ask

100ask is Linux SBC/module/training provider.
Add a prefix for them.

---
To Rob: One thing I have noticed is that dtbs_check seems to be complaining about the prefix starting with a digit. If it's a problem I can change the prefix I think.

 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 66d6432fd781..f0fc682d3680 100644
@@ -23,6 +23,8 @@ patternProperties:
   "^(simple-audio-card|st-plgpio|st-spics|ts),.*": true
 
   # Keep list in alphabetical order.
+  "^100ask,.*":
+    description: Baiwen.com (100ask).
   "^70mai,.*":
     description: 70mai Co., Ltd.
   "^abb,.*":
Signature · 1 line
2.34.1
maintainer Acked-by on v1 1/3
#2 lore raw

Re: [PATCH 1/3] dt-bindings: vendor-prefixes: Add prefix for 100ask

Quoted 9 lines · Daniel Palmer

100ask is Linux SBC/module/training provider.
Add a prefix for them.

---
To Rob: One thing I have noticed is that dtbs_check seems to be complaining about the prefix starting with a digit. If it's a problem I can change the prefix I think.

Humm, we should relax that. I'll add a fix.

Quoted 3 lines
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
#3 lore raw

PATCH 2/3 dt-bindings: arm: mstar: Add compatible for 100ask DongShanPiOne

In reply to Daniel Palmer

The DongShanPiOne is a SigmaStar SSD202D based module. Add a compatible for it to the list of infinity2m boards.

---
 Documentation/devicetree/bindings/arm/mstar/mstar.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/mstar/mstar.yaml +1 -0
index a316eef1b728..371267b63a88 100644
@@ -23,6 +23,7 @@ properties:
       - description: infinity2m boards
         items:
           - enum:
+              - 100ask,dongshanpione # 100ask DongShanPiOne
               - honestar,ssd201htv2 # Honestar SSD201_HT_V2 devkit
               - m5stack,unitv2 # M5Stack UnitV2
           - const: mstar,infinity2m
Signature · 1 line
2.34.1
maintainer Acked-by on v1 2/3
#4 lore raw

Re: [PATCH 2/3] dt-bindings: arm: mstar: Add compatible for 100ask DongShanPiOne

Quoted 9 lines · Daniel Palmer

The DongShanPiOne is a SigmaStar SSD202D based module. Add a compatible for it to the list of infinity2m boards.

---
 Documentation/devicetree/bindings/arm/mstar/mstar.yaml | 1 +
 1 file changed, 1 insertion(+)
#5 lore raw

PATCH 3/3 ARM: dts: mstar: Add board for 100ask DongShanPiOne

In reply to Daniel Palmer

The DongShanPiOne is little SigmaStar SSD202D based module from 100ask.

Add an initial dts for this board.

---
 arch/arm/boot/dts/Makefile                    |  1 +
 ...nfinity2m-ssd202d-100ask-dongshanpione.dts | 25 +++++++++++++++++++
 2 files changed, 26 insertions(+)
 create mode 100644 arch/arm/boot/dts/mstar-infinity2m-ssd202d-100ask-dongshanpione.dts
arch/arm/boot/dts/Makefile +1 -0
index 0de64f237cd8..f31672c0c06c 100644
@@ -1468,6 +1468,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
 dtb-$(CONFIG_ARCH_MILBEAUT) += milbeaut-m10v-evb.dtb
 dtb-$(CONFIG_ARCH_MSTARV7) += \
 	mstar-infinity-msc313-breadbee_crust.dtb \
+	mstar-infinity2m-ssd202d-100ask-dongshanpione.dtb \
 	mstar-infinity2m-ssd202d-ssd201htv2.dtb \
 	mstar-infinity2m-ssd202d-unitv2.dtb \
 	mstar-infinity3-msc313e-breadbee.dtb \
arch/arm/boot/dts/mstar-infinity2m-ssd202d-100ask-dongshanpione.dts new file +25 -0
new file mode 100644
index 000000000000..f25a04c98ccb
@@ -0,0 +1,25 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (c) 2021 thingy.jp.
+ * Author: Daniel Palmer <[email protected]>
+ */
+
+/dts-v1/;
+#include "mstar-infinity2m-ssd202d.dtsi"
+
+/ {
+	model = "DongShanPi One";
+	compatible = "100ask,dongshanpione", "mstar,infinity2m";
+
+	aliases {
+		serial0 = &pm_uart;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+};
+
+&pm_uart {
+	status = "okay";
+};
Signature · 1 line
2.34.1