Skip to content

Commit 5f3acf8

Browse files
Akhila-YSclaudiubeznea
authored andcommitted
dt-bindings: arm: atmel,at91sam9260-pit: convert to DT schema
Convert Atmel Periodic interval timer (PIT) binding to YAML format. Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Akhila YS <akhilayalmati@gmail.com> Link: https://lore.kernel.org/r/20260227-arm-microchip-v4-2-7e2ae1c5b5d6@gmail.com Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
1 parent 0b7b7d1 commit 5f3acf8

2 files changed

Lines changed: 49 additions & 6 deletions

File tree

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/arm/atmel,at91sam9260-pit.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Atmel AT91SAM9260 Periodic Interval Timer (PIT)
8+
9+
maintainers:
10+
- Nicolas Ferre <nicolas.ferre@microchip.com>
11+
- Claudiu Beznea <claudiu.beznea@tuxon.dev>
12+
13+
description:
14+
The Periodic Interval Timer (PIT) is part of the System Controller of
15+
various Microchip 32-bit ARM-based SoCs (formerly Atmel AT91 series).
16+
It is a simple down-counter timer used mainly as the kernel tick source.
17+
The PIT is clocked from the slow clock and shares a single IRQ line with
18+
other System Controller peripherals.
19+
20+
properties:
21+
compatible:
22+
const: atmel,at91sam9260-pit
23+
24+
reg:
25+
maxItems: 1
26+
27+
interrupts:
28+
maxItems: 1
29+
30+
clocks:
31+
maxItems: 1
32+
33+
required:
34+
- compatible
35+
- reg
36+
- interrupts
37+
38+
unevaluatedProperties: false
39+
40+
examples:
41+
- |
42+
#include <dt-bindings/interrupt-controller/irq.h>
43+
timer@fffffd30 {
44+
compatible = "atmel,at91sam9260-pit";
45+
reg = <0xfffffd30 0x10>;
46+
interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
47+
clocks = <&clk32k>;
48+
};
49+
...

Documentation/devicetree/bindings/arm/atmel-sysregs.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
Atmel system registers
22

3-
PIT Timer required properties:
4-
- compatible: Should be "atmel,at91sam9260-pit"
5-
- reg: Should contain registers location and length
6-
- interrupts: Should contain interrupt for the PIT which is the IRQ line
7-
shared across all System Controller members.
8-
93
PIT64B Timer required properties:
104
- compatible: Should be "microchip,sam9x60-pit64b" or
115
"microchip,sam9x7-pit64b", "microchip,sam9x60-pit64b"

0 commit comments

Comments
 (0)