Skip to content

Commit 038d454

Browse files
Stanislav Jakubekdlezcano
authored andcommitted
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
1 parent 281bf6b commit 038d454

File tree

2 files changed

+52
-25
lines changed

2 files changed

+52
-25
lines changed

Documentation/devicetree/bindings/timer/brcm,kona-timer.txt

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
...

0 commit comments

Comments
 (0)