dt-bindings: power: reset: bcm21664-resetmgr: convert to YAML

Message ID 20230527141222.GA5048@standask-GA-A55M-S2HP
State New
Headers
Series dt-bindings: power: reset: bcm21664-resetmgr: convert to YAML |

Commit Message

Stanislav Jakubek May 27, 2023, 2:12 p.m. UTC
  Convert Broadcom Kona family reset manager bindings to DT schema.

Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
---
 .../power/reset/brcm,bcm21664-resetmgr.txt    | 14 ---------
 .../power/reset/brcm,bcm21664-resetmgr.yaml   | 31 +++++++++++++++++++
 2 files changed, 31 insertions(+), 14 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/power/reset/brcm,bcm21664-resetmgr.txt
 create mode 100644 Documentation/devicetree/bindings/power/reset/brcm,bcm21664-resetmgr.yaml
  

Comments

Conor Dooley May 27, 2023, 10:28 p.m. UTC | #1
On Sat, May 27, 2023 at 04:12:22PM +0200, Stanislav Jakubek wrote:
> Convert Broadcom Kona family reset manager bindings to DT schema.
> 
> Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>

Reviewed-by: Conor Dooley <conor.dooley@microchip.com>

Thanks,
Conor.
  
Krzysztof Kozlowski May 30, 2023, 3:03 p.m. UTC | #2
On 27/05/2023 16:12, Stanislav Jakubek wrote:
> Convert Broadcom Kona family reset manager bindings to DT schema.
> 
> Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
> ---
>  .../power/reset/brcm,bcm21664-resetmgr.txt    | 14 ---------

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof
  
Florian Fainelli June 5, 2023, 6:15 p.m. UTC | #3
On 5/27/23 07:12, Stanislav Jakubek wrote:
> Convert Broadcom Kona family reset manager bindings to DT schema.
> 
> Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>

Sebastian, do you want me to pick this up in the Broadcom ARM SoC tree?
  
Sebastian Reichel June 8, 2023, 9:56 p.m. UTC | #4
Hi,

On Mon, Jun 05, 2023 at 11:15:59AM -0700, Florian Fainelli wrote:
> On 5/27/23 07:12, Stanislav Jakubek wrote:
> > Convert Broadcom Kona family reset manager bindings to DT schema.
> > 
> > Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
> 
> Sebastian, do you want me to pick this up in the Broadcom ARM SoC tree?

Fine with me,

Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com>

-- Sebastian
  
Florian Fainelli June 8, 2023, 10:11 p.m. UTC | #5
From: Florian Fainelli <f.fainelli@gmail.com>

On Sat, 27 May 2023 16:12:22 +0200, Stanislav Jakubek <stano.jakubek@gmail.com> wrote:
> Convert Broadcom Kona family reset manager bindings to DT schema.
> 
> Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
> ---

Applied to https://github.com/Broadcom/stblinux/commits/devicetree/next, thanks!
--
Florian
  

Patch

diff --git a/Documentation/devicetree/bindings/power/reset/brcm,bcm21664-resetmgr.txt b/Documentation/devicetree/bindings/power/reset/brcm,bcm21664-resetmgr.txt
deleted file mode 100644
index 93f31ca1ef4b..000000000000
--- a/Documentation/devicetree/bindings/power/reset/brcm,bcm21664-resetmgr.txt
+++ /dev/null
@@ -1,14 +0,0 @@ 
-Broadcom Kona Family Reset Manager
-----------------------------------
-
-The reset manager is used on the Broadcom BCM21664 SoC.
-
-Required properties:
-  - compatible: brcm,bcm21664-resetmgr
-  - reg: memory address & range
-
-Example:
-	brcm,resetmgr@35001f00 {
-		compatible = "brcm,bcm21664-resetmgr";
-		reg = <0x35001f00 0x24>;
-	};
diff --git a/Documentation/devicetree/bindings/power/reset/brcm,bcm21664-resetmgr.yaml b/Documentation/devicetree/bindings/power/reset/brcm,bcm21664-resetmgr.yaml
new file mode 100644
index 000000000000..3e28a59d718f
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/reset/brcm,bcm21664-resetmgr.yaml
@@ -0,0 +1,31 @@ 
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/power/reset/brcm,bcm21664-resetmgr.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom Kona family reset manager
+
+maintainers:
+  - Florian Fainelli <f.fainelli@gmail.com>
+
+properties:
+  compatible:
+    const: brcm,bcm21664-resetmgr
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    reset-controller@35001f00 {
+        compatible = "brcm,bcm21664-resetmgr";
+        reg = <0x35001f00 0x24>;
+    };
+...