Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: reset: berlin: Convert to yaml

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

+38 -23
-23
Documentation/devicetree/bindings/reset/berlin,reset.txt
··· 1 - Marvell Berlin reset controller 2 - =============================== 3 - 4 - Please also refer to reset.txt in this directory for common reset 5 - controller binding usage. 6 - 7 - The reset controller node must be a sub-node of the chip controller 8 - node on Berlin SoCs. 9 - 10 - Required properties: 11 - - compatible: should be "marvell,berlin2-reset" 12 - - #reset-cells: must be set to 2 13 - 14 - Example: 15 - 16 - chip_rst: reset { 17 - compatible = "marvell,berlin2-reset"; 18 - #reset-cells = <2>; 19 - }; 20 - 21 - &usb_phy0 { 22 - resets = <&chip_rst 0x104 12>; 23 - };
+38
Documentation/devicetree/bindings/reset/marvell,berlin2-reset.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + # Copyright 2015 Antoine Tenart <atenart@kernel.org> 3 + %YAML 1.2 4 + --- 5 + $id: "http://devicetree.org/schemas/reset/marvell,berlin2-reset.yaml#" 6 + $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 + 8 + title: Marvell Berlin reset controller 9 + 10 + maintainers: 11 + - Antoine Tenart <atenart@kernel.org> 12 + 13 + description: The reset controller node must be a sub-node of the chip 14 + controller node on Berlin SoCs. 15 + 16 + properties: 17 + compatible: 18 + const: marvell,berlin2-reset 19 + 20 + "#reset-cells": 21 + const: 2 22 + 23 + required: 24 + - compatible 25 + - "#reset-cells" 26 + 27 + additionalProperties: false 28 + 29 + examples: 30 + - | 31 + chip: chip-control@ea0000 { 32 + reg = <0xea0000 0x400>; 33 + 34 + chip_rst: reset { 35 + compatible = "marvell,berlin2-reset"; 36 + #reset-cells = <2>; 37 + }; 38 + };