linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: net: marvell-bluetooth: Convert txt bindings to yaml
@ 2021-10-09 10:47 David Heidelberg
  2021-10-19 21:39 ` Rob Herring
  0 siblings, 1 reply; 2+ messages in thread
From: David Heidelberg @ 2021-10-09 10:47 UTC (permalink / raw)
  To: Rob Herring, Jakub Kicinski, David S. Miller
  Cc: netdev, devicetree, linux-kernel, ~okias/devicetree, David Heidelberg

Convert documentation for The Marvell Avastar 88W8897 into YAML syntax.

Signed-off-by: David Heidelberg <david@ixit.cz>
---
 .../bindings/net/marvell-bluetooth.txt        | 25 ---------------
 .../bindings/net/marvell-bluetooth.yaml       | 31 +++++++++++++++++++
 2 files changed, 31 insertions(+), 25 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/net/marvell-bluetooth.txt
 create mode 100644 Documentation/devicetree/bindings/net/marvell-bluetooth.yaml

diff --git a/Documentation/devicetree/bindings/net/marvell-bluetooth.txt b/Documentation/devicetree/bindings/net/marvell-bluetooth.txt
deleted file mode 100644
index 0e2842296032..000000000000
--- a/Documentation/devicetree/bindings/net/marvell-bluetooth.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-Marvell Bluetooth Chips
------------------------
-
-This documents the binding structure and common properties for serial
-attached Marvell Bluetooth devices. The following chips are included in
-this binding:
-
-* Marvell 88W8897 Bluetooth devices
-
-Required properties:
- - compatible: should be:
-    "mrvl,88w8897"
-
-Optional properties:
-None so far
-
-Example:
-
-&serial0 {
-	compatible = "ns16550a";
-	...
-	bluetooth {
-		compatible = "mrvl,88w8897";
-	};
-};
diff --git a/Documentation/devicetree/bindings/net/marvell-bluetooth.yaml b/Documentation/devicetree/bindings/net/marvell-bluetooth.yaml
new file mode 100644
index 000000000000..08813e3ecff6
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/marvell-bluetooth.yaml
@@ -0,0 +1,31 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: "http://devicetree.org/schemas/net/marvell-bluetooth.yaml#"
+$schema: "http://devicetree.org/meta-schemas/core.yaml#"
+
+title: Marvell Bluetooth chips
+
+description: |
+  This documents the binding structure and common properties for serial
+  attached Marvell Bluetooth devices.
+
+maintainers:
+  - Rob Herring <robh+dt@kernel.org>
+
+properties:
+  compatible:
+    const: mrvl,88w8897
+
+required:
+  - compatible
+
+additionalProperties: false
+
+examples:
+  - |
+    serial {
+      bluetooth {
+        compatible = "mrvl,88w8897";
+      };
+    };
-- 
2.33.0


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

* Re: [PATCH] dt-bindings: net: marvell-bluetooth: Convert txt bindings to yaml
  2021-10-09 10:47 [PATCH] dt-bindings: net: marvell-bluetooth: Convert txt bindings to yaml David Heidelberg
@ 2021-10-19 21:39 ` Rob Herring
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2021-10-19 21:39 UTC (permalink / raw)
  To: David Heidelberg
  Cc: David S. Miller, linux-kernel, ~okias/devicetree, Jakub Kicinski,
	Rob Herring, devicetree, netdev

On Sat, 09 Oct 2021 12:47:16 +0200, David Heidelberg wrote:
> Convert documentation for The Marvell Avastar 88W8897 into YAML syntax.
> 
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---
>  .../bindings/net/marvell-bluetooth.txt        | 25 ---------------
>  .../bindings/net/marvell-bluetooth.yaml       | 31 +++++++++++++++++++
>  2 files changed, 31 insertions(+), 25 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/net/marvell-bluetooth.txt
>  create mode 100644 Documentation/devicetree/bindings/net/marvell-bluetooth.yaml
> 

Applied, thanks!

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

end of thread, other threads:[~2021-10-19 21:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-09 10:47 [PATCH] dt-bindings: net: marvell-bluetooth: Convert txt bindings to yaml David Heidelberg
2021-10-19 21:39 ` Rob Herring

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