All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: arm: Convert Realtek board/soc bindings to json-schema
@ 2019-09-05  8:17 ` jamestai.sky
  0 siblings, 0 replies; 7+ messages in thread
From: jamestai.sky @ 2019-09-05  8:17 UTC (permalink / raw)
  To: devicetree, linux-kernel, linux-arm-kernel
  Cc: Andreas Färber, Rob Herring, Mark Rutland, CY_Huang,
	Phinex Hung, james.tai

From: "james.tai" <james.tai@realtek.com>

Convert Realtek SoC bindings to DT schema format using json-schema.

Signed-off-by: james.tai <james.tai@realtek.com>
---
 .../devicetree/bindings/arm/realtek.txt       | 22 -------------------
 .../devicetree/bindings/arm/realtek.yaml      | 17 ++++++++++++++
 2 files changed, 17 insertions(+), 22 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/realtek.txt
 create mode 100644 Documentation/devicetree/bindings/arm/realtek.yaml

diff --git a/Documentation/devicetree/bindings/arm/realtek.txt b/Documentation/devicetree/bindings/arm/realtek.txt
deleted file mode 100644
index 95839e19ae92..000000000000
--- a/Documentation/devicetree/bindings/arm/realtek.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-Realtek platforms device tree bindings
---------------------------------------
-
-
-RTD1295 SoC
-===========
-
-Required root node properties:
-
- - compatible :  must contain "realtek,rtd1295"
-
-
-Root node property compatible must contain, depending on board:
-
- - MeLE V9: "mele,v9"
- - ProBox2 AVA: "probox2,ava"
- - Zidoo X9S: "zidoo,x9s"
-
-
-Example:
-
-    compatible = "zidoo,x9s", "realtek,rtd1295";
diff --git a/Documentation/devicetree/bindings/arm/realtek.yaml b/Documentation/devicetree/bindings/arm/realtek.yaml
new file mode 100644
index 000000000000..ad9b13bc42f0
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/realtek.yaml
@@ -0,0 +1,17 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/realtek.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Realtek platforms device tree bindings
+
+properties:
+  compatible:
+    oneOf:
+        items:
+          - enum:
+              - mele,v9
+              - probox2,ava
+              - zidoo,x9s
+          - const: realtek,rtd1295
-- 
2.17.1


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

* [PATCH] dt-bindings: arm: Convert Realtek board/soc bindings to json-schema
@ 2019-09-05  8:17 ` jamestai.sky
  0 siblings, 0 replies; 7+ messages in thread
From: jamestai.sky @ 2019-09-05  8:17 UTC (permalink / raw)
  To: devicetree, linux-kernel, linux-arm-kernel
  Cc: Mark Rutland, james.tai, CY_Huang, Phinex Hung, Rob Herring,
	Andreas Färber

From: "james.tai" <james.tai@realtek.com>

Convert Realtek SoC bindings to DT schema format using json-schema.

Signed-off-by: james.tai <james.tai@realtek.com>
---
 .../devicetree/bindings/arm/realtek.txt       | 22 -------------------
 .../devicetree/bindings/arm/realtek.yaml      | 17 ++++++++++++++
 2 files changed, 17 insertions(+), 22 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/realtek.txt
 create mode 100644 Documentation/devicetree/bindings/arm/realtek.yaml

diff --git a/Documentation/devicetree/bindings/arm/realtek.txt b/Documentation/devicetree/bindings/arm/realtek.txt
deleted file mode 100644
index 95839e19ae92..000000000000
--- a/Documentation/devicetree/bindings/arm/realtek.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-Realtek platforms device tree bindings
---------------------------------------
-
-
-RTD1295 SoC
-===========
-
-Required root node properties:
-
- - compatible :  must contain "realtek,rtd1295"
-
-
-Root node property compatible must contain, depending on board:
-
- - MeLE V9: "mele,v9"
- - ProBox2 AVA: "probox2,ava"
- - Zidoo X9S: "zidoo,x9s"
-
-
-Example:
-
-    compatible = "zidoo,x9s", "realtek,rtd1295";
diff --git a/Documentation/devicetree/bindings/arm/realtek.yaml b/Documentation/devicetree/bindings/arm/realtek.yaml
new file mode 100644
index 000000000000..ad9b13bc42f0
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/realtek.yaml
@@ -0,0 +1,17 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/realtek.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Realtek platforms device tree bindings
+
+properties:
+  compatible:
+    oneOf:
+        items:
+          - enum:
+              - mele,v9
+              - probox2,ava
+              - zidoo,x9s
+          - const: realtek,rtd1295
-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH] dt-bindings: arm: Convert Realtek board/soc bindings to json-schema
  2019-09-05  8:17 ` jamestai.sky
@ 2019-09-05  9:21   ` Rob Herring
  -1 siblings, 0 replies; 7+ messages in thread
From: Rob Herring @ 2019-09-05  9:21 UTC (permalink / raw)
  To: jamestai.sky
  Cc: devicetree, linux-kernel,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE,
	Andreas Färber, Mark Rutland, CY_Huang, Phinex Hung,
	james.tai

On Thu, Sep 5, 2019 at 9:19 AM <jamestai.sky@gmail.com> wrote:
>
> From: "james.tai" <james.tai@realtek.com>
>
> Convert Realtek SoC bindings to DT schema format using json-schema.
>
> Signed-off-by: james.tai <james.tai@realtek.com>
> ---
>  .../devicetree/bindings/arm/realtek.txt       | 22 -------------------
>  .../devicetree/bindings/arm/realtek.yaml      | 17 ++++++++++++++
>  2 files changed, 17 insertions(+), 22 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/arm/realtek.txt
>  create mode 100644 Documentation/devicetree/bindings/arm/realtek.yaml

I've already submitted a patch for this that's *still* waiting on
Andreas to apply or comment on the licensing.

Also, your patch isn't valid schema. Please check with 'make dt_binding_check'.

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

* Re: [PATCH] dt-bindings: arm: Convert Realtek board/soc bindings to json-schema
@ 2019-09-05  9:21   ` Rob Herring
  0 siblings, 0 replies; 7+ messages in thread
From: Rob Herring @ 2019-09-05  9:21 UTC (permalink / raw)
  To: jamestai.sky
  Cc: Mark Rutland, devicetree, james.tai, CY_Huang, linux-kernel,
	Phinex Hung, Andreas Färber,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE

On Thu, Sep 5, 2019 at 9:19 AM <jamestai.sky@gmail.com> wrote:
>
> From: "james.tai" <james.tai@realtek.com>
>
> Convert Realtek SoC bindings to DT schema format using json-schema.
>
> Signed-off-by: james.tai <james.tai@realtek.com>
> ---
>  .../devicetree/bindings/arm/realtek.txt       | 22 -------------------
>  .../devicetree/bindings/arm/realtek.yaml      | 17 ++++++++++++++
>  2 files changed, 17 insertions(+), 22 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/arm/realtek.txt
>  create mode 100644 Documentation/devicetree/bindings/arm/realtek.yaml

I've already submitted a patch for this that's *still* waiting on
Andreas to apply or comment on the licensing.

Also, your patch isn't valid schema. Please check with 'make dt_binding_check'.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* RE: [PATCH] dt-bindings: arm: Convert Realtek board/soc bindings to json-schema
  2019-09-05  9:21   ` Rob Herring
  (?)
@ 2019-09-11  7:19     ` James Tai[戴志峰]
  -1 siblings, 0 replies; 7+ messages in thread
From: James Tai[戴志峰] @ 2019-09-11  7:19 UTC (permalink / raw)
  To: Rob Herring, jamestai.sky
  Cc: devicetree, linux-kernel,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE,
	Andreas Färber, Mark Rutland,
	CY_Huang[黃鉦晏],
	Phinex Hung

> Subject: Re: [PATCH] dt-bindings: arm: Convert Realtek board/soc bindings to
> json-schema
> 
> On Thu, Sep 5, 2019 at 9:19 AM <jamestai.sky@gmail.com> wrote:
> >
> > From: "james.tai" <james.tai@realtek.com>
> >
> > Convert Realtek SoC bindings to DT schema format using json-schema.
> >
> > Signed-off-by: james.tai <james.tai@realtek.com>
> > ---
> >  .../devicetree/bindings/arm/realtek.txt       | 22 -------------------
> >  .../devicetree/bindings/arm/realtek.yaml      | 17 ++++++++++++++
> >  2 files changed, 17 insertions(+), 22 deletions(-)  delete mode
> > 100644 Documentation/devicetree/bindings/arm/realtek.txt
> >  create mode 100644
> Documentation/devicetree/bindings/arm/realtek.yaml
> 
> I've already submitted a patch for this that's *still* waiting on Andreas to apply
> or comment on the licensing.

Thanks for your reply.

> Also, your patch isn't valid schema. Please check with 'make
> dt_binding_check'.
> 
I will check with 'make dt_binding_check'. 
Thanks!

> ------Please consider the environment before printing this e-mail.

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

* RE: [PATCH] dt-bindings: arm: Convert Realtek board/soc bindings to json-schema
@ 2019-09-11  7:19     ` James Tai[戴志峰]
  0 siblings, 0 replies; 7+ messages in thread
From: James Tai[戴志峰] @ 2019-09-11  7:19 UTC (permalink / raw)
  To: Rob Herring, jamestai.sky
  Cc: Mark Rutland, devicetree, CY_Huang[黃鉦晏],
	linux-kernel, Phinex Hung, Andreas Färber,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE

> Subject: Re: [PATCH] dt-bindings: arm: Convert Realtek board/soc bindings to
> json-schema
> 
> On Thu, Sep 5, 2019 at 9:19 AM <jamestai.sky@gmail.com> wrote:
> >
> > From: "james.tai" <james.tai@realtek.com>
> >
> > Convert Realtek SoC bindings to DT schema format using json-schema.
> >
> > Signed-off-by: james.tai <james.tai@realtek.com>
> > ---
> >  .../devicetree/bindings/arm/realtek.txt       | 22 -------------------
> >  .../devicetree/bindings/arm/realtek.yaml      | 17 ++++++++++++++
> >  2 files changed, 17 insertions(+), 22 deletions(-)  delete mode
> > 100644 Documentation/devicetree/bindings/arm/realtek.txt
> >  create mode 100644
> Documentation/devicetree/bindings/arm/realtek.yaml
> 
> I've already submitted a patch for this that's *still* waiting on Andreas to apply
> or comment on the licensing.

Thanks for your reply.

> Also, your patch isn't valid schema. Please check with 'make
> dt_binding_check'.
> 
I will check with 'make dt_binding_check'. 
Thanks!

> ------Please consider the environment before printing this e-mail.

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

* RE: [PATCH] dt-bindings: arm: Convert Realtek board/soc bindings to json-schema
@ 2019-09-11  7:19     ` James Tai[戴志峰]
  0 siblings, 0 replies; 7+ messages in thread
From: James Tai[戴志峰] @ 2019-09-11  7:19 UTC (permalink / raw)
  To: Rob Herring, jamestai.sky
  Cc: Mark Rutland, devicetree, CY_Huang[黃鉦晏],
	linux-kernel, Phinex Hung, Andreas Färber,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE

> Subject: Re: [PATCH] dt-bindings: arm: Convert Realtek board/soc bindings to
> json-schema
> 
> On Thu, Sep 5, 2019 at 9:19 AM <jamestai.sky@gmail.com> wrote:
> >
> > From: "james.tai" <james.tai@realtek.com>
> >
> > Convert Realtek SoC bindings to DT schema format using json-schema.
> >
> > Signed-off-by: james.tai <james.tai@realtek.com>
> > ---
> >  .../devicetree/bindings/arm/realtek.txt       | 22 -------------------
> >  .../devicetree/bindings/arm/realtek.yaml      | 17 ++++++++++++++
> >  2 files changed, 17 insertions(+), 22 deletions(-)  delete mode
> > 100644 Documentation/devicetree/bindings/arm/realtek.txt
> >  create mode 100644
> Documentation/devicetree/bindings/arm/realtek.yaml
> 
> I've already submitted a patch for this that's *still* waiting on Andreas to apply
> or comment on the licensing.

Thanks for your reply.

> Also, your patch isn't valid schema. Please check with 'make
> dt_binding_check'.
> 
I will check with 'make dt_binding_check'. 
Thanks!

> ------Please consider the environment before printing this e-mail.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2019-09-11  7:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-05  8:17 [PATCH] dt-bindings: arm: Convert Realtek board/soc bindings to json-schema jamestai.sky
2019-09-05  8:17 ` jamestai.sky
2019-09-05  9:21 ` Rob Herring
2019-09-05  9:21   ` Rob Herring
2019-09-11  7:19   ` James Tai[戴志峰]
2019-09-11  7:19     ` James Tai[戴志峰]
2019-09-11  7:19     ` James Tai[戴志峰]

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.