[PATCH] dt-bindings: misc: add YAML binding for qemu,pvpanic-mmio

Rohan Mithari posted 1 patch 4 days, 4 hours ago
.../bindings/misc/qemu,pvpanic-mmio.yaml      | 33 +++++++++++++++++++
1 file changed, 33 insertions(+)
create mode 100644 Documentation/devicetree/bindings/misc/qemu,pvpanic-mmio.yaml
[PATCH] dt-bindings: misc: add YAML binding for qemu,pvpanic-mmio
Posted by Rohan Mithari 4 days, 4 hours ago
Signed-off-by: Rohan Mithari <rohanmithari09@gmail.com>
---
 .../bindings/misc/qemu,pvpanic-mmio.yaml      | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/misc/qemu,pvpanic-mmio.yaml

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..22d1333f9c2d
--- /dev/null
+++ b/Documentation/devicetree/bindings/misc/qemu,pvpanic-mmio.yaml
@@ -0,0 +1,33 @@
+# 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 = <0x0 0x9060000 0x0 0x2>;
+    };
\ No newline at end of file
-- 
2.34.1
Re: [PATCH] dt-bindings: misc: add YAML binding for qemu,pvpanic-mmio
Posted by Krzysztof Kozlowski 3 days, 11 hours ago
On Wed, May 20, 2026 at 10:18:45PM +0530, Rohan Mithari wrote:
> Signed-off-by: Rohan Mithari <rohanmithari09@gmail.com>
> ---

Every guide for kernel development will tell you to run checkpatch.
There are other steps necessary, but some guides are skipping these.
They never skip checkpatch, though.

Best regards,
Krzysztof
Re: [PATCH] dt-bindings: misc: add YAML binding for qemu,pvpanic-mmio
Posted by Rob Herring (Arm) 4 days, 2 hours ago
On Wed, 20 May 2026 22:18:45 +0530, Rohan Mithari wrote:
> Signed-off-by: Rohan Mithari <rohanmithari09@gmail.com>
> ---
>  .../bindings/misc/qemu,pvpanic-mmio.yaml      | 33 +++++++++++++++++++
>  1 file changed, 33 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/misc/qemu,pvpanic-mmio.yaml
> 

My bot found errors running 'make dt_binding_check' on your patch:

yamllint warnings/errors:
./Documentation/devicetree/bindings/misc/qemu,pvpanic-mmio.yaml:33:7: [error] no new line character at the end of file (new-line-at-end-of-file)

dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/misc/qemu,pvpanic-mmio.example.dtb: pvpanic@9060000 (qemu,pvpanic-mmio): reg: [[0, 151388160], [0, 2]] is too long
	from schema $id: http://devicetree.org/schemas/misc/qemu,pvpanic-mmio.yaml

doc reference errors (make refcheckdocs):

See https://patchwork.kernel.org/project/devicetree/patch/20260520164846.637522-1-rohanmithari09@gmail.com

The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.

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 after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.