2021-12-17 09:35:33

by Daniel Palmer

[permalink] [raw]
Subject: [PATCH 0/3] 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

--
2.34.1



2021-12-17 09:35:37

by Daniel Palmer

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

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

Link: https://www.100ask.net
Signed-off-by: Daniel Palmer <[email protected]>
---
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(+)

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index 66d6432fd781..f0fc682d3680 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -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,.*":
--
2.34.1


2021-12-17 09:35:39

by Daniel Palmer

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

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

Link: http://linux-chenxing.org/infinity2/dongshanpione/
Signed-off-by: Daniel Palmer <[email protected]>
---
Documentation/devicetree/bindings/arm/mstar/mstar.yaml | 1 +
1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/arm/mstar/mstar.yaml b/Documentation/devicetree/bindings/arm/mstar/mstar.yaml
index a316eef1b728..371267b63a88 100644
--- a/Documentation/devicetree/bindings/arm/mstar/mstar.yaml
+++ b/Documentation/devicetree/bindings/arm/mstar/mstar.yaml
@@ -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
--
2.34.1


2021-12-17 09:35:46

by Daniel Palmer

[permalink] [raw]
Subject: [PATCH 3/3] ARM: dts: mstar: Add board for 100ask DongShanPiOne

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

Add an initial dts for this board.

Link: http://linux-chenxing.org/infinity2/dongshanpione/
Signed-off-by: Daniel Palmer <[email protected]>
---
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

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 0de64f237cd8..f31672c0c06c 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -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 \
diff --git a/arch/arm/boot/dts/mstar-infinity2m-ssd202d-100ask-dongshanpione.dts b/arch/arm/boot/dts/mstar-infinity2m-ssd202d-100ask-dongshanpione.dts
new file mode 100644
index 000000000000..f25a04c98ccb
--- /dev/null
+++ b/arch/arm/boot/dts/mstar-infinity2m-ssd202d-100ask-dongshanpione.dts
@@ -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";
+};
--
2.34.1


2021-12-21 18:07:05

by Rob Herring (Arm)

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

On Fri, Dec 17, 2021 at 06:35:08PM +0900, Daniel Palmer wrote:
> 100ask is Linux SBC/module/training provider.
> Add a prefix for them.
>
> Link: https://www.100ask.net
> Signed-off-by: Daniel Palmer <[email protected]>
> ---
> 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.

>
> Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
> 1 file changed, 2 insertions(+)

Acked-by: Rob Herring <[email protected]>

2021-12-21 18:08:08

by Rob Herring (Arm)

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

On Fri, 17 Dec 2021 18:35:09 +0900, Daniel Palmer wrote:
> The DongShanPiOne is a SigmaStar SSD202D based module.
> Add a compatible for it to the list of infinity2m boards.
>
> Link: http://linux-chenxing.org/infinity2/dongshanpione/
> Signed-off-by: Daniel Palmer <[email protected]>
> ---
> Documentation/devicetree/bindings/arm/mstar/mstar.yaml | 1 +
> 1 file changed, 1 insertion(+)
>

Acked-by: Rob Herring <[email protected]>