[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240611035329.33648-2-kanakshilledar@gmail.com>
Date: Tue, 11 Jun 2024 09:23:23 +0530
From: Kanak Shilledar <kanakshilledar@...il.com>
To:
Cc: Kanak Shilledar <kanakshilledar@...il.com>,
Philipp Zabel <p.zabel@...gutronix.de>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
William Zhang <william.zhang@...adcom.com>,
Anand Gore <anand.gore@...adcom.com>,
Kursad Oney <kursad.oney@...adcom.com>,
Florian Fainelli <florian.fainelli@...adcom.com>,
Rafał Miłecki <rafal@...ecki.pl>,
Broadcom internal kernel review list <bcm-kernel-feedback-list@...adcom.com>,
Kanak Shilledar <kanakshilledar111@...tonmail.com>,
devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] dt-bindings: reset: brcm,bcm63138-pmb: convert to yaml
Convert the Broadcom BCM63138 Processor Monitor Bus to newer DT
schema. Created DT schema based on the .txt file which had `compatible`,
`reg` and `"#reset-cells" as required properties.
Added one line description which was missing in the original .txt file.
Added Philipp Zabel as the maintainer (took from MAINTAINERS file).
Signed-off-by: Kanak Shilledar <kanakshilledar@...il.com>
---
.../bindings/reset/brcm,bcm63138-pmb.txt | 19 --------
.../bindings/reset/brcm,bcm63138-pmb.yaml | 43 +++++++++++++++++++
2 files changed, 43 insertions(+), 19 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/reset/brcm,bcm63138-pmb.txt
create mode 100644 Documentation/devicetree/bindings/reset/brcm,bcm63138-pmb.yaml
diff --git a/Documentation/devicetree/bindings/reset/brcm,bcm63138-pmb.txt b/Documentation/devicetree/bindings/reset/brcm,bcm63138-pmb.txt
deleted file mode 100644
index a98872d27872..000000000000
--- a/Documentation/devicetree/bindings/reset/brcm,bcm63138-pmb.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-Broadcom BCM63138 Processor Monitor Bus binding
-===============================================
-
-Please also refer to reset.txt in this directory for common reset
-controller binding usage.
-
-Require properties:
-
-- compatible: must be "brcm,bcm63138-pmb"
-- reg: base register address and size for this bus controller
-- #reset-cells: must be 2 first cell is the address within the bus instance designated
- by the phandle, and the second is the number of zones for this peripheral
-
-Example:
- pmb0: reset-controller@...0c0 {
- compatible = "brcm,bcm63138-pmb";
- reg = <0x4800c0 0x10>;
- #reset-cells = <2>;
- };
diff --git a/Documentation/devicetree/bindings/reset/brcm,bcm63138-pmb.yaml b/Documentation/devicetree/bindings/reset/brcm,bcm63138-pmb.yaml
new file mode 100644
index 000000000000..162b4c472c18
--- /dev/null
+++ b/Documentation/devicetree/bindings/reset/brcm,bcm63138-pmb.yaml
@@ -0,0 +1,43 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/reset/brcm,bcm63138-pmb.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom BCM63138 Processor Monitor Bus
+
+description: This document describes the BCM63138 processor monitor bus.
+
+maintainers:
+ - Philipp Zabel <p.zabel@...gutronix.de>
+ - Kanak Shilledar <kanakshilledar111@...tonmail.com>
+
+properties:
+ compatible:
+ const: brcm,bcm63138-pmb
+
+ reg:
+ description: base register address and size for this bus controller
+ maxItems: 1
+
+ "#reset-cells":
+ description: |
+ must be 2 first cell is the address within the bus instance
+ designated by the phandle, and the second is the number of zones
+ for this peripheral.
+ const: 2
+
+required:
+ - compatible
+ - reg
+ - "#reset-cells"
+
+additionalProperties: false
+
+examples:
+ - |
+ pmb0: reset-controller@...0c0 {
+ compatible = "brcm,bcm63138-pmb";
+ reg = <0x4800c0 0x10>;
+ #reset-cells = <2>;
+ };
--
2.45.2
Powered by blists - more mailing lists