Skip to content

Commit

Permalink
dt-bindings: reset: bitmain,bm1880-reset: Convert to yaml
Browse files Browse the repository at this point in the history
Convert the device tree bindings for the Bitmain BM1880 reset controller
to YAML schema to allow participating in DT validation.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220407154338.4190674-4-p.zabel@pengutronix.de
  • Loading branch information
pH5 committed May 3, 2022
1 parent 1b6dc00 commit e2ac01c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Documentation/devicetree/bindings/reset/bitmain,bm1880-reset.txt

This file was deleted.

36 changes: 36 additions & 0 deletions Documentation/devicetree/bindings/reset/bitmain,bm1880-reset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
# Copyright 2019 Manivannan Sadhasivam <mani@kernel.org>
%YAML 1.2
---
$id: "http://devicetree.org/schemas/reset/bitmain,bm1880-reset.yaml#"
$schema: "http://devicetree.org/meta-schemas/core.yaml#"

title: Bitmain BM1880 SoC Reset Controller

maintainers:
- Manivannan Sadhasivam <mani@kernel.org>

properties:
compatible:
const: bitmain,bm1880-reset

reg:
maxItems: 1

"#reset-cells":
const: 1

required:
- compatible
- reg
- "#reset-cells"

additionalProperties: false

examples:
- |
rst: reset-controller@c00 {
compatible = "bitmain,bm1880-reset";
reg = <0xc00 0x8>;
#reset-cells = <1>;
};

0 comments on commit e2ac01c

Please sign in to comment.