linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: mips: convert Ralink SoCs and boards to schema
@ 2021-10-19  4:16 Sergio Paracuellos
  2021-10-27  2:28 ` Rob Herring
  0 siblings, 1 reply; 3+ messages in thread
From: Sergio Paracuellos @ 2021-10-19  4:16 UTC (permalink / raw)
  To: devicetree; +Cc: robh, john, neil, linux-kernel

Convert Ralink SoCs and boards bindings to YAML schema.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 .../devicetree/bindings/mips/ralink.txt       | 32 -------
 .../devicetree/bindings/mips/ralink.yaml      | 87 +++++++++++++++++++
 2 files changed, 87 insertions(+), 32 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/mips/ralink.txt
 create mode 100644 Documentation/devicetree/bindings/mips/ralink.yaml

diff --git a/Documentation/devicetree/bindings/mips/ralink.txt b/Documentation/devicetree/bindings/mips/ralink.txt
deleted file mode 100644
index 8cc0ab41578c..000000000000
--- a/Documentation/devicetree/bindings/mips/ralink.txt
+++ /dev/null
@@ -1,32 +0,0 @@
-Ralink MIPS SoC device tree bindings
-
-1. SoCs
-
-Each device tree must specify a compatible value for the Ralink SoC
-it uses in the compatible property of the root node. The compatible
-value must be one of the following values:
-
-  ralink,rt2880-soc
-  ralink,rt3050-soc
-  ralink,rt3052-soc
-  ralink,rt3350-soc
-  ralink,rt3352-soc
-  ralink,rt3883-soc
-  ralink,rt5350-soc
-  ralink,mt7620a-soc
-  ralink,mt7620n-soc
-  ralink,mt7628a-soc
-  ralink,mt7688a-soc
-
-2. Boards
-
-GARDENA smart Gateway (MT7688)
-
-This board is based on the MediaTek MT7688 and equipped with 128 MiB
-of DDR and 8 MiB of flash (SPI NOR) and additional 128MiB SPI NAND
-storage.
-
-------------------------------
-Required root node properties:
-- compatible = "gardena,smart-gateway-mt7688", "ralink,mt7688a-soc",
-		"ralink,mt7628a-soc";
diff --git a/Documentation/devicetree/bindings/mips/ralink.yaml b/Documentation/devicetree/bindings/mips/ralink.yaml
new file mode 100644
index 000000000000..0588cee25ae9
--- /dev/null
+++ b/Documentation/devicetree/bindings/mips/ralink.yaml
@@ -0,0 +1,87 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mips/ralink.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Ralink SoC based Platforms Device Tree Bindings
+
+maintainers:
+  - Sergio Paracuellos <sergio.paracuellos@gmail.com>
+
+description: |
+    Boards with a Ralink SoC shall have the following properties.
+
+properties:
+  $nodename:
+    const: '/'
+  compatible:
+    oneOf:
+      - description: Boards with Ralink RT2880 SoC
+        items:
+          - enum:
+              - ralink,rt2880-eval-board
+          - const: ralink,rt2880-soc
+
+      - description: Boards with Ralink RT3050 SoC
+        items:
+          - const: ralink,rt3050-soc
+
+      - description: Boards with Ralink RT3052 SoC
+        items:
+          - enum:
+              - ralink,rt3052-eval-board
+          - const: ralink,rt3052-soc
+
+      - description: Boards with Ralink RT3350 SoC
+        items:
+          - const: ralink,rt3350-soc
+
+      - description: Boards with Ralink RT3352 SoC
+        items:
+          - const: ralink,rt3352-soc
+
+      - description: Boards with Ralink RT3383 SoC
+        items:
+          - enum:
+              - ralink,rt3883-eval-board
+          - const: ralink,rt3383-soc
+
+      - description: Boards with Ralink RT5350 SoC
+        items:
+          - const: ralink,rt5350-soc
+
+      - description: Boards with Mediatek/Ralink MT7620A SoC
+        items:
+          - enum:
+              - ralink,mt7620a-eval-board
+          - const: ralink,mt7620a-soc
+
+      - description: Boards with Mediatek/Ralink MT7620N SoC
+        items:
+          - const: ralink,mt7620n-soc
+
+      - description: Boards with Mediatek/Ralink MT7628A SoC
+        items:
+          - enum:
+              - onion,omega2+
+              - vocore,vocore2
+          - const: ralink,mt7628a-soc
+
+      - description: Boards with Mediatek/Ralink MT7688A SoC
+        items:
+          - enum:
+              - gardena,smart-gateway-mt7688
+              - onion,omega2+
+          - const: ralink,mt7628a-soc
+
+      - description: Boards with Mediatek/Ralink MT7621 SoC
+        items:
+          - enum:
+              - gnubee,gb-pc1
+              - gnubee,gb-pc2
+          - const: mediatek,mt7621-soc
+
+additionalProperties: true
+
+...
-- 
2.33.0


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

* Re: [PATCH] dt-bindings: mips: convert Ralink SoCs and boards to schema
  2021-10-19  4:16 [PATCH] dt-bindings: mips: convert Ralink SoCs and boards to schema Sergio Paracuellos
@ 2021-10-27  2:28 ` Rob Herring
  2021-10-27  8:36   ` Sergio Paracuellos
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring @ 2021-10-27  2:28 UTC (permalink / raw)
  To: Sergio Paracuellos; +Cc: john, linux-kernel, neil, devicetree

On Tue, 19 Oct 2021 06:16:59 +0200, Sergio Paracuellos wrote:
> Convert Ralink SoCs and boards bindings to YAML schema.
> 
> Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
> ---
>  .../devicetree/bindings/mips/ralink.txt       | 32 -------
>  .../devicetree/bindings/mips/ralink.yaml      | 87 +++++++++++++++++++
>  2 files changed, 87 insertions(+), 32 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/mips/ralink.txt
>  create mode 100644 Documentation/devicetree/bindings/mips/ralink.yaml
> 

Applied, thanks!

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

* Re: [PATCH] dt-bindings: mips: convert Ralink SoCs and boards to schema
  2021-10-27  2:28 ` Rob Herring
@ 2021-10-27  8:36   ` Sergio Paracuellos
  0 siblings, 0 replies; 3+ messages in thread
From: Sergio Paracuellos @ 2021-10-27  8:36 UTC (permalink / raw)
  To: Rob Herring
  Cc: John Crispin, linux-kernel, NeilBrown,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS

On Wed, Oct 27, 2021 at 4:28 AM Rob Herring <robh@kernel.org> wrote:
>
> On Tue, 19 Oct 2021 06:16:59 +0200, Sergio Paracuellos wrote:
> > Convert Ralink SoCs and boards bindings to YAML schema.
> >
> > Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
> > ---
> >  .../devicetree/bindings/mips/ralink.txt       | 32 -------
> >  .../devicetree/bindings/mips/ralink.yaml      | 87 +++++++++++++++++++
> >  2 files changed, 87 insertions(+), 32 deletions(-)
> >  delete mode 100644 Documentation/devicetree/bindings/mips/ralink.txt
> >  create mode 100644 Documentation/devicetree/bindings/mips/ralink.yaml
> >
>
> Applied, thanks!

Thanks, Rob. I cannot see the commit in your 'for-next' branch but I
guess it is just because you have not pushed it yet from your local
tree :)

Best regards,
    Sergio Paracuellos

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

end of thread, other threads:[~2021-10-27  8:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-19  4:16 [PATCH] dt-bindings: mips: convert Ralink SoCs and boards to schema Sergio Paracuellos
2021-10-27  2:28 ` Rob Herring
2021-10-27  8:36   ` Sergio Paracuellos

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).