mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2] dt-bindings: misc: convert pvpanic-mmio binding to YAML
@ 2026-05-29  6:04 Rohan Mithari
  2026-05-29  7:56 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 2+ messages in thread
From: Rohan Mithari @ 2026-05-29  6:04 UTC (permalink / raw)
  To: robh
  Cc: krzk+dt, conor+dt, devicetree, linux-kernel, peng.hao2, Rohan Mithari

Convert the legacy pvpanic-mmio txt binding into YAML schema
format for device tree validation support.

---
Changes in v2:
- Remove legacy txt binding
- Fix reg example format
- Add trailing newline
- Run checkpatch validation with --no-tree

Signed-off-by: Rohan Mithari <rohanmithari09@gmail.com>
---
 .../devicetree/bindings/misc/pvpanic-mmio.txt | 29 ----------------
 .../bindings/misc/qemu,pvpanic-mmio.yaml      | 34 +++++++++++++++++++
 2 files changed, 34 insertions(+), 29 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/misc/pvpanic-mmio.txt
 create mode 100644 Documentation/devicetree/bindings/misc/qemu,pvpanic-mmio.yaml

diff --git a/Documentation/devicetree/bindings/misc/pvpanic-mmio.txt b/Documentation/devicetree/bindings/misc/pvpanic-mmio.txt
deleted file mode 100644
index 985e90736780..000000000000
--- a/Documentation/devicetree/bindings/misc/pvpanic-mmio.txt
+++ /dev/null
@@ -1,29 +0,0 @@
-* QEMU PVPANIC MMIO Configuration bindings
-
-QEMU's emulation / virtualization targets provide the following PVPANIC
-MMIO Configuration interface on the "virt" machine.
-type:
-
-- a read-write, 16-bit wide data register.
-
-QEMU exposes the data register to guests as memory mapped registers.
-
-Required properties:
-
-- compatible: "qemu,pvpanic-mmio".
-- reg: the MMIO region used by the device.
-  * Bytes 0x0  Write panic event to the reg when guest OS panics.
-  * Bytes 0x1  Reserved.
-
-Example:
-
-/ {
-        #size-cells = <0x2>;
-        #address-cells = <0x2>;
-
-        pvpanic-mmio@9060000 {
-                compatible = "qemu,pvpanic-mmio";
-                reg = <0x0 0x9060000 0x0 0x2>;
-        };
-};
-
diff --git a/Documentation/devicetree/bindings/misc/qemu,pvpanic-mmio.yaml b/Documentation/devicetree/bindings/misc/qemu,pvpanic-mmio.yaml
new file mode 100644
index 000000000000..fe24bdcacc9c
--- /dev/null
+++ b/Documentation/devicetree/bindings/misc/qemu,pvpanic-mmio.yaml
@@ -0,0 +1,34 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/misc/qemu,pvpanic-mmio.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: QEMU PVPANIC MMIO device
+
+description:
+  QEMU provides a pvpanic MMIO interface for guest panic notification.
+
+maintainers:
+  - Peng Hao <peng.hao2@zte.com.cn>
+
+properties:
+  compatible:
+    const: qemu,pvpanic-mmio
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    pvpanic@9060000 {
+      compatible = "qemu,pvpanic-mmio";
+      reg = <0x9060000 0x2>;
+    };
+
-- 
2.34.1


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

end of thread, other threads:[~2026-05-29  7:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-29  6:04 [PATCH v2] dt-bindings: misc: convert pvpanic-mmio binding to YAML Rohan Mithari
2026-05-29  7:56 ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®