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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: timer: brcm,kona-timer: convert to YAML

Convert Broadcom Kona family timer bindings to DT schema.

Changes during conversion:
- drop deprecated compatible (it's been deprecated for ~10 years)

Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230618144635.GA22166@standask-GA-A55M-S2HP

authored by

Stanislav Jakubek and committed by
Daniel Lezcano
038d454a 281bf6b9

+52 -25
-25
Documentation/devicetree/bindings/timer/brcm,kona-timer.txt
··· 1 - Broadcom Kona Family timer 2 - ----------------------------------------------------- 3 - This timer is used in the following Broadcom SoCs: 4 - BCM11130, BCM11140, BCM11351, BCM28145, BCM28155 5 - 6 - Required properties: 7 - - compatible : "brcm,kona-timer" 8 - - DEPRECATED: compatible : "bcm,kona-timer" 9 - - reg : Register range for the timer 10 - - interrupts : interrupt for the timer 11 - - clocks: phandle + clock specifier pair of the external clock 12 - - clock-frequency: frequency that the clock operates 13 - 14 - Only one of clocks or clock-frequency should be specified. 15 - 16 - Refer to clocks/clock-bindings.txt for generic clock consumer properties. 17 - 18 - Example: 19 - timer@35006000 { 20 - compatible = "brcm,kona-timer"; 21 - reg = <0x35006000 0x1000>; 22 - interrupts = <0x0 7 0x4>; 23 - clocks = <&hub_timer_clk>; 24 - }; 25 -
+52
Documentation/devicetree/bindings/timer/brcm,kona-timer.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/timer/brcm,kona-timer.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom Kona family timer 8 + 9 + maintainers: 10 + - Florian Fainelli <f.fainelli@gmail.com> 11 + 12 + properties: 13 + compatible: 14 + const: brcm,kona-timer 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + interrupts: 20 + maxItems: 1 21 + 22 + clocks: 23 + maxItems: 1 24 + 25 + clock-frequency: true 26 + 27 + oneOf: 28 + - required: 29 + - clocks 30 + - required: 31 + - clock-frequency 32 + 33 + required: 34 + - compatible 35 + - reg 36 + - interrupts 37 + 38 + additionalProperties: false 39 + 40 + examples: 41 + - | 42 + #include <dt-bindings/clock/bcm281xx.h> 43 + #include <dt-bindings/interrupt-controller/arm-gic.h> 44 + #include <dt-bindings/interrupt-controller/irq.h> 45 + 46 + timer@35006000 { 47 + compatible = "brcm,kona-timer"; 48 + reg = <0x35006000 0x1000>; 49 + interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; 50 + clocks = <&aon_ccu BCM281XX_AON_CCU_HUB_TIMER>; 51 + }; 52 + ...