linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ARM: mstar: Add initial support for M5Stack UnitV2
@ 2021-04-17  1:10 Daniel Palmer
  2021-04-17  1:10 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add vendor prefix for M5Stack Daniel Palmer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Daniel Palmer @ 2021-04-17  1:10 UTC (permalink / raw)
  To: devicetree, soc, linux-arm-kernel, linux-kernel, robh+dt, olof, arnd
  Cc: w, Daniel Palmer

This series adds basic support for the soon to be released M5Stack
UnitV2 based on the SigmaStar SSD202D.

With the rest of the commits in my tree the SPI NAND, ethernet, USB etc
should work so the UnitV2 should be fully usable with a mainline-ish
kernel.

Hopefully this will encourage someone else to help with cleaning
up and pushing the commits for these SoCs.

Link: https://m5stack-store.myshopify.com/products/unitv2-ai-camera-gc2145

Daniel Palmer (3):
  dt-bindings: vendor-prefixes: Add vendor prefix for M5Stack
  dt-bindings: arm: mstar: Add compatible for M5Stack UnitV2
  ARM: dts: mstar: Add a dts for M5Stack UnitV2

 .../devicetree/bindings/arm/mstar/mstar.yaml  |  1 +
 .../devicetree/bindings/vendor-prefixes.yaml  |  2 ++
 arch/arm/boot/dts/Makefile                    |  1 +
 .../dts/mstar-infinity2m-ssd202d-unitv2.dts   | 25 +++++++++++++++++++
 4 files changed, 29 insertions(+)
 create mode 100644 arch/arm/boot/dts/mstar-infinity2m-ssd202d-unitv2.dts

-- 
2.31.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/3] dt-bindings: vendor-prefixes: Add vendor prefix for M5Stack
  2021-04-17  1:10 [PATCH 0/3] ARM: mstar: Add initial support for M5Stack UnitV2 Daniel Palmer
@ 2021-04-17  1:10 ` Daniel Palmer
  2021-04-17  1:10 ` [PATCH 2/3] dt-bindings: arm: mstar: Add compatible for M5Stack UnitV2 Daniel Palmer
  2021-04-17  1:10 ` [PATCH 3/3] ARM: dts: mstar: Add a dts " Daniel Palmer
  2 siblings, 0 replies; 4+ messages in thread
From: Daniel Palmer @ 2021-04-17  1:10 UTC (permalink / raw)
  To: devicetree, soc, linux-arm-kernel, linux-kernel, robh+dt, olof, arnd
  Cc: w, Daniel Palmer

M5Stack make various modules for STEM, Makers, IoT.
Their UnitV2 is based on a SigmaStar SSD202D SoC which
we already have some minimal support for so add a
prefix in preparation for UnitV2 board support.

Link: https://m5stack.com/
Signed-off-by: Daniel Palmer <daniel@0x0f.com>
---
 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 f6064d84a424..7129fe3b9144 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -651,6 +651,8 @@ patternProperties:
     description: Liebherr-Werk Nenzing GmbH
   "^lxa,.*":
     description: Linux Automation GmbH
+  "^m5stack,.*":
+    description: M5Stack
   "^macnica,.*":
     description: Macnica Americas
   "^mantix,.*":
-- 
2.31.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/3] dt-bindings: arm: mstar: Add compatible for M5Stack UnitV2
  2021-04-17  1:10 [PATCH 0/3] ARM: mstar: Add initial support for M5Stack UnitV2 Daniel Palmer
  2021-04-17  1:10 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add vendor prefix for M5Stack Daniel Palmer
@ 2021-04-17  1:10 ` Daniel Palmer
  2021-04-17  1:10 ` [PATCH 3/3] ARM: dts: mstar: Add a dts " Daniel Palmer
  2 siblings, 0 replies; 4+ messages in thread
From: Daniel Palmer @ 2021-04-17  1:10 UTC (permalink / raw)
  To: devicetree, soc, linux-arm-kernel, linux-kernel, robh+dt, olof, arnd
  Cc: w, Daniel Palmer

Add a compatible for the M5Stack UnitV2 that is based on the
SigmaStar SSD202D (inifinity2m).

Signed-off-by: Daniel Palmer <daniel@0x0f.com>
---
 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 61d08c473eb8..a316eef1b728 100644
--- a/Documentation/devicetree/bindings/arm/mstar/mstar.yaml
+++ b/Documentation/devicetree/bindings/arm/mstar/mstar.yaml
@@ -24,6 +24,7 @@ properties:
         items:
           - enum:
               - honestar,ssd201htv2 # Honestar SSD201_HT_V2 devkit
+              - m5stack,unitv2 # M5Stack UnitV2
           - const: mstar,infinity2m
 
       - description: infinity3 boards
-- 
2.31.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 3/3] ARM: dts: mstar: Add a dts for M5Stack UnitV2
  2021-04-17  1:10 [PATCH 0/3] ARM: mstar: Add initial support for M5Stack UnitV2 Daniel Palmer
  2021-04-17  1:10 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add vendor prefix for M5Stack Daniel Palmer
  2021-04-17  1:10 ` [PATCH 2/3] dt-bindings: arm: mstar: Add compatible for M5Stack UnitV2 Daniel Palmer
@ 2021-04-17  1:10 ` Daniel Palmer
  2 siblings, 0 replies; 4+ messages in thread
From: Daniel Palmer @ 2021-04-17  1:10 UTC (permalink / raw)
  To: devicetree, soc, linux-arm-kernel, linux-kernel, robh+dt, olof, arnd
  Cc: w, Daniel Palmer

M5Stack are releasing a new widget based on the
SigmaStar SSD202D. We have some support for the
SSD202D so lets add a dts for it.

Link: https://m5stack-store.myshopify.com/products/unitv2-ai-camera-gc2145
Signed-off-by: Daniel Palmer <daniel@0x0f.com>
---
 arch/arm/boot/dts/Makefile                    |  1 +
 .../dts/mstar-infinity2m-ssd202d-unitv2.dts   | 25 +++++++++++++++++++
 2 files changed, 26 insertions(+)
 create mode 100644 arch/arm/boot/dts/mstar-infinity2m-ssd202d-unitv2.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 8e5d4ab4e75e..66ddc7d0bd03 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -1397,6 +1397,7 @@ dtb-$(CONFIG_ARCH_MILBEAUT) += milbeaut-m10v-evb.dtb
 dtb-$(CONFIG_ARCH_MSTARV7) += \
 	mstar-infinity-msc313-breadbee_crust.dtb \
 	mstar-infinity2m-ssd202d-ssd201htv2.dtb \
+	mstar-infinity2m-ssd202d-unitv2.dtb \
 	mstar-infinity3-msc313e-breadbee.dtb \
 	mstar-mercury5-ssc8336n-midrived08.dtb
 dtb-$(CONFIG_ARCH_ASPEED) += \
diff --git a/arch/arm/boot/dts/mstar-infinity2m-ssd202d-unitv2.dts b/arch/arm/boot/dts/mstar-infinity2m-ssd202d-unitv2.dts
new file mode 100644
index 000000000000..a81684002e45
--- /dev/null
+++ b/arch/arm/boot/dts/mstar-infinity2m-ssd202d-unitv2.dts
@@ -0,0 +1,25 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (c) 2021 thingy.jp.
+ * Author: Daniel Palmer <daniel@thingy.jp>
+ */
+
+/dts-v1/;
+#include "mstar-infinity2m-ssd202d.dtsi"
+
+/ {
+	model = "UnitV2";
+	compatible = "m5stack,unitv2", "mstar,infinity2m";
+
+	aliases {
+		serial0 = &pm_uart;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+};
+
+&pm_uart {
+	status = "okay";
+};
-- 
2.31.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-17  1:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-17  1:10 [PATCH 0/3] ARM: mstar: Add initial support for M5Stack UnitV2 Daniel Palmer
2021-04-17  1:10 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add vendor prefix for M5Stack Daniel Palmer
2021-04-17  1:10 ` [PATCH 2/3] dt-bindings: arm: mstar: Add compatible for M5Stack UnitV2 Daniel Palmer
2021-04-17  1:10 ` [PATCH 3/3] ARM: dts: mstar: Add a dts " Daniel Palmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).