linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ARM: mstar: Initial Miyoo Mini support
@ 2021-12-13 10:01 Daniel Palmer
  2021-12-13 10:01 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add prefix for Miyoo Daniel Palmer
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Daniel Palmer @ 2021-12-13 10:01 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel, robh+dt
  Cc: linux-kernel, romain.perier, Daniel Palmer

Add a few device tree bits to support the Miyoo Mini
which is retro emulation device based on the SigmaStar
SSD202D.

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

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

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

-- 
2.34.1


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

* [PATCH 1/3] dt-bindings: vendor-prefixes: Add prefix for Miyoo
  2021-12-13 10:01 [PATCH 0/3] ARM: mstar: Initial Miyoo Mini support Daniel Palmer
@ 2021-12-13 10:01 ` Daniel Palmer
  2021-12-13 16:20   ` Rob Herring
  2021-12-13 10:01 ` [PATCH 2/3] dt-bindings: arm: mstar: Add compatible for Miyoo Mini Daniel Palmer
  2021-12-13 10:01 ` [PATCH 3/3] ARM: dts: mstar: Add a dts " Daniel Palmer
  2 siblings, 1 reply; 7+ messages in thread
From: Daniel Palmer @ 2021-12-13 10:01 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel, robh+dt
  Cc: linux-kernel, romain.perier, Daniel Palmer

Add a prefix for "miyoo". The only details I can find about
the company is their aliexpress store "miyoo global store":
https://www.aliexpress.com/store/912663639

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 66d6432fd781..9f76061dcad7 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -757,6 +757,8 @@ patternProperties:
     description: MiraMEMS Sensing Technology Co., Ltd.
   "^mitsubishi,.*":
     description: Mitsubishi Electric Corporation
+  "^miyoo,.*:
+    description: Miyoo
   "^mntre,.*":
     description: MNT Research GmbH
   "^modtronix,.*":
-- 
2.34.1


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

* [PATCH 2/3] dt-bindings: arm: mstar: Add compatible for Miyoo Mini
  2021-12-13 10:01 [PATCH 0/3] ARM: mstar: Initial Miyoo Mini support Daniel Palmer
  2021-12-13 10:01 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add prefix for Miyoo Daniel Palmer
@ 2021-12-13 10:01 ` Daniel Palmer
       [not found]   ` <CABgxDo+8VK+HQVfts6gxLnm1xW5fBog5rEfvoLN+tjk6KYwMTw@mail.gmail.com>
  2021-12-15 20:12   ` Rob Herring
  2021-12-13 10:01 ` [PATCH 3/3] ARM: dts: mstar: Add a dts " Daniel Palmer
  2 siblings, 2 replies; 7+ messages in thread
From: Daniel Palmer @ 2021-12-13 10:01 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel, robh+dt
  Cc: linux-kernel, romain.perier, Daniel Palmer

The Miyoo Mini is a SigmaStar SSD202D based retro emulation
device.

Add a compatible for it to the list of infinity2m devices.

Signed-off-by: Daniel Palmer <daniel@0x0f.com>
Link: http://linux-chenxing.org/infinity2/miyoomini/
---
 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..8e1a0e99a60b 100644
--- a/Documentation/devicetree/bindings/arm/mstar/mstar.yaml
+++ b/Documentation/devicetree/bindings/arm/mstar/mstar.yaml
@@ -25,6 +25,7 @@ properties:
           - enum:
               - honestar,ssd201htv2 # Honestar SSD201_HT_V2 devkit
               - m5stack,unitv2 # M5Stack UnitV2
+              - miyoo,miyoo-mini # Miyoo Mini
           - const: mstar,infinity2m
 
       - description: infinity3 boards
-- 
2.34.1


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

* [PATCH 3/3] ARM: dts: mstar: Add a dts for Miyoo Mini
  2021-12-13 10:01 [PATCH 0/3] ARM: mstar: Initial Miyoo Mini support Daniel Palmer
  2021-12-13 10:01 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add prefix for Miyoo Daniel Palmer
  2021-12-13 10:01 ` [PATCH 2/3] dt-bindings: arm: mstar: Add compatible for Miyoo Mini Daniel Palmer
@ 2021-12-13 10:01 ` Daniel Palmer
  2 siblings, 0 replies; 7+ messages in thread
From: Daniel Palmer @ 2021-12-13 10:01 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel, robh+dt
  Cc: linux-kernel, romain.perier, Daniel Palmer

Miyoo has released a portable retro games machine based
on the SigmaStar SSD202D. Add the initial device tree
for this machine. Just enough to get to an initramfs
shell.

Signed-off-by: Daniel Palmer <daniel@0x0f.com>
Link: http://linux-chenxing.org/infinity2/miyoomini/
---
 arch/arm/boot/dts/Makefile                    |  1 +
 .../mstar-infinity2m-ssd202d-miyoo-mini.dts   | 25 +++++++++++++++++++
 2 files changed, 26 insertions(+)
 create mode 100644 arch/arm/boot/dts/mstar-infinity2m-ssd202d-miyoo-mini.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 0de64f237cd8..b270a4d8e0d6 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-miyoo-mini.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-miyoo-mini.dts b/arch/arm/boot/dts/mstar-infinity2m-ssd202d-miyoo-mini.dts
new file mode 100644
index 000000000000..1bbbf47132dc
--- /dev/null
+++ b/arch/arm/boot/dts/mstar-infinity2m-ssd202d-miyoo-mini.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 = "Miyoo Mini";
+	compatible = "miyoo,miyoo-mini", "mstar,infinity2m";
+
+	aliases {
+		serial0 = &pm_uart;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+};
+
+&pm_uart {
+	status = "okay";
+};
-- 
2.34.1


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

* Re: [PATCH 1/3] dt-bindings: vendor-prefixes: Add prefix for Miyoo
  2021-12-13 10:01 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add prefix for Miyoo Daniel Palmer
@ 2021-12-13 16:20   ` Rob Herring
  0 siblings, 0 replies; 7+ messages in thread
From: Rob Herring @ 2021-12-13 16:20 UTC (permalink / raw)
  To: Daniel Palmer
  Cc: romain.perier, robh+dt, linux-kernel, devicetree, linux-arm-kernel

On Mon, 13 Dec 2021 19:01:10 +0900, Daniel Palmer wrote:
> Add a prefix for "miyoo". The only details I can find about
> the company is their aliexpress store "miyoo global store":
> https://www.aliexpress.com/store/912663639
> 
> Signed-off-by: Daniel Palmer <daniel@0x0f.com>
> ---
>  Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
>  1 file changed, 2 insertions(+)
> 

My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check'
on your patch (DT_CHECKER_FLAGS is new in v5.13):

yamllint warnings/errors:
./Documentation/devicetree/bindings/vendor-prefixes.yaml:762:4: [error] syntax error: could not find expected ':' (syntax)

dtschema/dtc warnings/errors:
./Documentation/devicetree/bindings/vendor-prefixes.yaml:  while scanning a simple key
  in "<unicode string>", line 760, column 3
could not find expected ':'
  in "<unicode string>", line 762, column 4
make[1]: *** Deleting file 'Documentation/devicetree/bindings/vendor-prefixes.example.dts'
Traceback (most recent call last):
  File "/usr/local/bin/dt-extract-example", line 45, in <module>
    binding = yaml.load(open(args.yamlfile, encoding='utf-8').read())
  File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/main.py", line 434, in load
    return constructor.get_single_data()
  File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 119, in get_single_data
    node = self.composer.get_single_node()
  File "_ruamel_yaml.pyx", line 706, in _ruamel_yaml.CParser.get_single_node
  File "_ruamel_yaml.pyx", line 724, in _ruamel_yaml.CParser._compose_document
  File "_ruamel_yaml.pyx", line 775, in _ruamel_yaml.CParser._compose_node
  File "_ruamel_yaml.pyx", line 889, in _ruamel_yaml.CParser._compose_mapping_node
  File "_ruamel_yaml.pyx", line 775, in _ruamel_yaml.CParser._compose_node
  File "_ruamel_yaml.pyx", line 889, in _ruamel_yaml.CParser._compose_mapping_node
  File "_ruamel_yaml.pyx", line 775, in _ruamel_yaml.CParser._compose_node
  File "_ruamel_yaml.pyx", line 891, in _ruamel_yaml.CParser._compose_mapping_node
  File "_ruamel_yaml.pyx", line 904, in _ruamel_yaml.CParser._parse_next_event
ruamel.yaml.scanner.ScannerError: while scanning a simple key
  in "<unicode string>", line 760, column 3
could not find expected ':'
  in "<unicode string>", line 762, column 4
make[1]: *** [Documentation/devicetree/bindings/Makefile:25: Documentation/devicetree/bindings/vendor-prefixes.example.dts] Error 1
make[1]: *** Waiting for unfinished jobs....
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/vendor-prefixes.yaml: ignoring, error parsing file
warning: no schema found in file: ./Documentation/devicetree/bindings/vendor-prefixes.yaml
make: *** [Makefile:1413: dt_binding_check] Error 2

doc reference errors (make refcheckdocs):

See https://patchwork.ozlabs.org/patch/1567228

This check can fail if there are any dependencies. The base for a patch
series is generally the most recent rc1.

If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:

pip3 install dtschema --upgrade

Please check and re-submit.


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

* Re: [PATCH 2/3] dt-bindings: arm: mstar: Add compatible for Miyoo Mini
       [not found]   ` <CABgxDo+8VK+HQVfts6gxLnm1xW5fBog5rEfvoLN+tjk6KYwMTw@mail.gmail.com>
@ 2021-12-14 16:12     ` Daniel Palmer
  0 siblings, 0 replies; 7+ messages in thread
From: Daniel Palmer @ 2021-12-14 16:12 UTC (permalink / raw)
  To: Romain Perier
  Cc: devicetree, linux-arm-kernel, Rob Herring, Linux Kernel Mailing List

Hi Romain,

On Wed, 15 Dec 2021 at 00:07, Romain Perier <romain.perier@gmail.com> wrote:
>> Signed-off-by: Daniel Palmer <daniel@0x0f.com>
>> Link: http://linux-chenxing.org/infinity2/miyoomini/
>
>
> 'Link:' should not be used for that purpose. Usually it is used for referencing discussions
> or patches on lore.k.o . This is typically what I used in the last pull request I sent to Arnd for 5.15.

I sort of remember having this pointed out somewhere else and then
looking at the text in submitting patches and thinking it background
info seemed to be what Link was for with the note that if it's a link
to an on list discussion to use a link to lore:

`If related discussions or any other background information behind the
change can be found on the web, add ‘Link:’ tags pointing to it.
....
When linking to mailing list archives, preferably use the
lore.kernel.org message archiver service."

mmm I need to send a v2 anyhow as I messed up the vendor prefix commit
so I'll move the links out into the message.

Cheers,

Daniel

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

* Re: [PATCH 2/3] dt-bindings: arm: mstar: Add compatible for Miyoo Mini
  2021-12-13 10:01 ` [PATCH 2/3] dt-bindings: arm: mstar: Add compatible for Miyoo Mini Daniel Palmer
       [not found]   ` <CABgxDo+8VK+HQVfts6gxLnm1xW5fBog5rEfvoLN+tjk6KYwMTw@mail.gmail.com>
@ 2021-12-15 20:12   ` Rob Herring
  1 sibling, 0 replies; 7+ messages in thread
From: Rob Herring @ 2021-12-15 20:12 UTC (permalink / raw)
  To: Daniel Palmer
  Cc: robh+dt, devicetree, linux-arm-kernel, romain.perier, linux-kernel

On Mon, 13 Dec 2021 19:01:11 +0900, Daniel Palmer wrote:
> The Miyoo Mini is a SigmaStar SSD202D based retro emulation
> device.
> 
> Add a compatible for it to the list of infinity2m devices.
> 
> Signed-off-by: Daniel Palmer <daniel@0x0f.com>
> Link: http://linux-chenxing.org/infinity2/miyoomini/
> ---
>  Documentation/devicetree/bindings/arm/mstar/mstar.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

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

end of thread, other threads:[~2021-12-15 20:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-13 10:01 [PATCH 0/3] ARM: mstar: Initial Miyoo Mini support Daniel Palmer
2021-12-13 10:01 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add prefix for Miyoo Daniel Palmer
2021-12-13 16:20   ` Rob Herring
2021-12-13 10:01 ` [PATCH 2/3] dt-bindings: arm: mstar: Add compatible for Miyoo Mini Daniel Palmer
     [not found]   ` <CABgxDo+8VK+HQVfts6gxLnm1xW5fBog5rEfvoLN+tjk6KYwMTw@mail.gmail.com>
2021-12-14 16:12     ` Daniel Palmer
2021-12-15 20:12   ` Rob Herring
2021-12-13 10:01 ` [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).