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

dt-bindings: clock: convert bcm2835-aux-clock to yaml

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

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Link: https://lore.kernel.org/r/20250503080949.3945-1-wahrenst@gmx.net
Acked-by: Conor Dooley <conor.dooley@microchip.com>
[sboyd@kernel.org: Drop aux label]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Stefan Wahren and committed by
Stephen Boyd
619ddc69 66bd9808

+47 -31
-31
Documentation/devicetree/bindings/clock/brcm,bcm2835-aux-clock.txt
··· 1 - Broadcom BCM2835 auxiliary peripheral support 2 - 3 - This binding uses the common clock binding: 4 - Documentation/devicetree/bindings/clock/clock-bindings.txt 5 - 6 - The auxiliary peripherals (UART, SPI1, and SPI2) have a small register 7 - area controlling clock gating to the peripherals, and providing an IRQ 8 - status register. 9 - 10 - Required properties: 11 - - compatible: Should be "brcm,bcm2835-aux" 12 - - #clock-cells: Should be <1>. The permitted clock-specifier values can be 13 - found in include/dt-bindings/clock/bcm2835-aux.h 14 - - reg: Specifies base physical address and size of the registers 15 - - clocks: The parent clock phandle 16 - 17 - Example: 18 - 19 - clocks: cprman@7e101000 { 20 - compatible = "brcm,bcm2835-cprman"; 21 - #clock-cells = <1>; 22 - reg = <0x7e101000 0x2000>; 23 - clocks = <&clk_osc>; 24 - }; 25 - 26 - aux: aux@7e215004 { 27 - compatible = "brcm,bcm2835-aux"; 28 - #clock-cells = <1>; 29 - reg = <0x7e215000 0x8>; 30 - clocks = <&clocks BCM2835_CLOCK_VPU>; 31 - };
+47
Documentation/devicetree/bindings/clock/brcm,bcm2835-aux-clock.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/clock/brcm,bcm2835-aux-clock.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom BCM2835 auxiliary peripheral clock 8 + 9 + maintainers: 10 + - Stefan Wahren <wahrenst@gmx.net> 11 + - Raspberry Pi Kernel Maintenance <kernel-list@raspberrypi.com> 12 + 13 + description: 14 + The auxiliary peripherals (UART, SPI1, and SPI2) have a small register 15 + area controlling clock gating to the peripherals, and providing an IRQ 16 + status register. 17 + 18 + properties: 19 + compatible: 20 + const: brcm,bcm2835-aux 21 + 22 + reg: 23 + maxItems: 1 24 + 25 + "#clock-cells": 26 + const: 1 27 + 28 + clocks: 29 + maxItems: 1 30 + 31 + required: 32 + - compatible 33 + - reg 34 + - "#clock-cells" 35 + - clocks 36 + 37 + additionalProperties: false 38 + 39 + examples: 40 + - | 41 + #include <dt-bindings/clock/bcm2835.h> 42 + clock@7e215000 { 43 + compatible = "brcm,bcm2835-aux"; 44 + reg = <0x7e215000 0x8>; 45 + #clock-cells = <1>; 46 + clocks = <&clocks BCM2835_CLOCK_VPU>; 47 + };