Skip to content

Commit

Permalink
dt-bindings: reset: berlin: Convert to yaml
Browse files Browse the repository at this point in the history
Convert the device tree bindings for the Marvell Berlin reset controller
to YAML schema to allow participating in DT validation.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Antoine Tenart <atenart@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220407154338.4190674-3-p.zabel@pengutronix.de
  • Loading branch information
Philipp Zabel committed May 3, 2022
1 parent 1b4efb2 commit 1b6dc00
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 23 deletions.
23 changes: 0 additions & 23 deletions Documentation/devicetree/bindings/reset/berlin,reset.txt

This file was deleted.

38 changes: 38 additions & 0 deletions Documentation/devicetree/bindings/reset/marvell,berlin2-reset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
# Copyright 2015 Antoine Tenart <atenart@kernel.org>
%YAML 1.2
---
$id: "http://devicetree.org/schemas/reset/marvell,berlin2-reset.yaml#"
$schema: "http://devicetree.org/meta-schemas/core.yaml#"

title: Marvell Berlin reset controller

maintainers:
- Antoine Tenart <atenart@kernel.org>

description: The reset controller node must be a sub-node of the chip
controller node on Berlin SoCs.

properties:
compatible:
const: marvell,berlin2-reset

"#reset-cells":
const: 2

required:
- compatible
- "#reset-cells"

additionalProperties: false

examples:
- |
chip: chip-control@ea0000 {
reg = <0xea0000 0x400>;
chip_rst: reset {
compatible = "marvell,berlin2-reset";
#reset-cells = <2>;
};
};

0 comments on commit 1b6dc00

Please sign in to comment.