linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: clock: convert bcm2835-aux-clock to yaml
@ 2025-05-03  8:09 Stefan Wahren
  2025-05-06 16:29 ` Conor Dooley
  2025-05-06 21:14 ` Stephen Boyd
  0 siblings, 2 replies; 3+ messages in thread
From: Stefan Wahren @ 2025-05-03  8:09 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Florian Fainelli
  Cc: Ray Jui, Scott Branden, linux-clk, linux-arm-kernel,
	bcm-kernel-feedback-list, kernel-list, devicetree, Stefan Wahren

Convert the DT binding document for BCM2835 auxiliary peripheral clock
from .txt to YAML.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
---
 .../bindings/clock/brcm,bcm2835-aux-clock.txt | 31 ------------
 .../clock/brcm,bcm2835-aux-clock.yaml         | 47 +++++++++++++++++++
 2 files changed, 47 insertions(+), 31 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/clock/brcm,bcm2835-aux-clock.txt
 create mode 100644 Documentation/devicetree/bindings/clock/brcm,bcm2835-aux-clock.yaml

diff --git a/Documentation/devicetree/bindings/clock/brcm,bcm2835-aux-clock.txt b/Documentation/devicetree/bindings/clock/brcm,bcm2835-aux-clock.txt
deleted file mode 100644
index 4acfc8f641b6..000000000000
--- a/Documentation/devicetree/bindings/clock/brcm,bcm2835-aux-clock.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-Broadcom BCM2835 auxiliary peripheral support
-
-This binding uses the common clock binding:
-    Documentation/devicetree/bindings/clock/clock-bindings.txt
-
-The auxiliary peripherals (UART, SPI1, and SPI2) have a small register
-area controlling clock gating to the peripherals, and providing an IRQ
-status register.
-
-Required properties:
-- compatible:	Should be "brcm,bcm2835-aux"
-- #clock-cells:	Should be <1>. The permitted clock-specifier values can be
-		  found in include/dt-bindings/clock/bcm2835-aux.h
-- reg:		Specifies base physical address and size of the registers
-- clocks:	The parent clock phandle
-
-Example:
-
-	clocks: cprman@7e101000 {
-		compatible = "brcm,bcm2835-cprman";
-		#clock-cells = <1>;
-		reg = <0x7e101000 0x2000>;
-		clocks = <&clk_osc>;
-	};
-
-	aux: aux@7e215004 {
-		compatible = "brcm,bcm2835-aux";
-		#clock-cells = <1>;
-		reg = <0x7e215000 0x8>;
-		clocks = <&clocks BCM2835_CLOCK_VPU>;
-	};
diff --git a/Documentation/devicetree/bindings/clock/brcm,bcm2835-aux-clock.yaml b/Documentation/devicetree/bindings/clock/brcm,bcm2835-aux-clock.yaml
new file mode 100644
index 000000000000..e19c2f4be77d
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/brcm,bcm2835-aux-clock.yaml
@@ -0,0 +1,47 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/brcm,bcm2835-aux-clock.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom BCM2835 auxiliary peripheral clock
+
+maintainers:
+  - Stefan Wahren <wahrenst@gmx.net>
+  - Raspberry Pi Kernel Maintenance <kernel-list@raspberrypi.com>
+
+description:
+  The auxiliary peripherals (UART, SPI1, and SPI2) have a small register
+  area controlling clock gating to the peripherals, and providing an IRQ
+  status register.
+
+properties:
+  compatible:
+    const: brcm,bcm2835-aux
+
+  reg:
+    maxItems: 1
+
+  "#clock-cells":
+    const: 1
+
+  clocks:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - "#clock-cells"
+  - clocks
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/clock/bcm2835.h>
+    aux: clock@7e215000 {
+        compatible = "brcm,bcm2835-aux";
+        reg = <0x7e215000 0x8>;
+        #clock-cells = <1>;
+        clocks = <&clocks BCM2835_CLOCK_VPU>;
+    };
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: clock: convert bcm2835-aux-clock to yaml
  2025-05-03  8:09 [PATCH] dt-bindings: clock: convert bcm2835-aux-clock to yaml Stefan Wahren
@ 2025-05-06 16:29 ` Conor Dooley
  2025-05-06 21:14 ` Stephen Boyd
  1 sibling, 0 replies; 3+ messages in thread
From: Conor Dooley @ 2025-05-06 16:29 UTC (permalink / raw)
  To: Stefan Wahren
  Cc: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Florian Fainelli, Ray Jui, Scott Branden, linux-clk,
	linux-arm-kernel, bcm-kernel-feedback-list, kernel-list,
	devicetree

[-- Attachment #1: Type: text/plain, Size: 198 bytes --]

On Sat, May 03, 2025 at 10:09:49AM +0200, Stefan Wahren wrote:

> +    aux: clock@7e215000 {

Drop the "aux" label if you respin for some reason.
Acked-by: Conor Dooley <conor.dooley@microchip.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: clock: convert bcm2835-aux-clock to yaml
  2025-05-03  8:09 [PATCH] dt-bindings: clock: convert bcm2835-aux-clock to yaml Stefan Wahren
  2025-05-06 16:29 ` Conor Dooley
@ 2025-05-06 21:14 ` Stephen Boyd
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2025-05-06 21:14 UTC (permalink / raw)
  To: Conor Dooley, Florian Fainelli, Krzysztof Kozlowski,
	Michael Turquette, Rob Herring, Stefan Wahren
  Cc: Ray Jui, Scott Branden, linux-clk, linux-arm-kernel,
	bcm-kernel-feedback-list, kernel-list, devicetree, Stefan Wahren

Quoting Stefan Wahren (2025-05-03 01:09:49)
> Convert the DT binding document for BCM2835 auxiliary peripheral clock
> from .txt to YAML.
> 
> Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
> ---

Applied to clk-next (and dropped the label)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-05-06 21:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-03  8:09 [PATCH] dt-bindings: clock: convert bcm2835-aux-clock to yaml Stefan Wahren
2025-05-06 16:29 ` Conor Dooley
2025-05-06 21:14 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).