Skip to content

Commit 89ab97d

Browse files
nxpfranklirobherring
authored andcommitted
dt-bindings: timer: Add fsl,vf610-pit.yaml
Add binding doc fsl,vf610-pit.yaml to fix below CHECK_DTB warnings: arch/arm/boot/dts/nxp/vf/vf610m4-colibri.dtb: /soc/bus@40000000/pit@40037000: failed to match any schema with compatible: ['fsl,vf610-pit'] Signed-off-by: Frank Li <Frank.Li@nxp.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20250522205710.502779-1-Frank.Li@nxp.com Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
1 parent b945781 commit 89ab97d

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/timer/fsl,vf610-pit.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Freescale Periodic Interrupt Timer (PIT)
8+
9+
maintainers:
10+
- Frank Li <Frank.Li@nxp.com>
11+
12+
description:
13+
The PIT module is an array of timers that can be used to raise interrupts
14+
and trigger DMA channels.
15+
16+
properties:
17+
compatible:
18+
enum:
19+
- fsl,vf610-pit
20+
21+
reg:
22+
maxItems: 1
23+
24+
interrupts:
25+
maxItems: 1
26+
27+
clocks:
28+
maxItems: 1
29+
30+
clock-names:
31+
items:
32+
- const: pit
33+
34+
required:
35+
- compatible
36+
- reg
37+
- interrupts
38+
- clocks
39+
- clock-names
40+
41+
additionalProperties: false
42+
43+
examples:
44+
- |
45+
#include <dt-bindings/clock/vf610-clock.h>
46+
#include <dt-bindings/interrupt-controller/irq.h>
47+
48+
timer@40037000 {
49+
compatible = "fsl,vf610-pit";
50+
reg = <0x40037000 0x1000>;
51+
interrupts = <39 IRQ_TYPE_LEVEL_HIGH>;
52+
clocks = <&clks VF610_CLK_PIT>;
53+
clock-names = "pit";
54+
};

0 commit comments

Comments
 (0)