Skip to content

Commit 539cbe1

Browse files
Fabio Estevamalexandrebelloni
authored andcommitted
dt-bindings: rtc: pcf8523: Convert to YAML
Convert the PCF8523 bindings from text format to YAML. The YAML format is preferred as it allows validation. Signed-off-by: Fabio Estevam <[email protected]> Reviewed-by: Sam Ravnborg <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent cf3cce4 commit 539cbe1

File tree

2 files changed

+45
-18
lines changed

2 files changed

+45
-18
lines changed

Documentation/devicetree/bindings/rtc/nxp,pcf8523.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/rtc/nxp,pcf8523.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NXP PCF8523 Real Time Clock
8+
9+
maintainers:
10+
- Sam Ravnborg <[email protected]>
11+
12+
allOf:
13+
- $ref: rtc.yaml#
14+
15+
properties:
16+
compatible:
17+
const: nxp,pcf8523
18+
19+
reg:
20+
maxItems: 1
21+
22+
quartz-load-femtofarads:
23+
description:
24+
The capacitive load of the crystal, expressed in femto Farad (fF).
25+
enum: [ 7000, 12500 ]
26+
default: 12500
27+
28+
required:
29+
- compatible
30+
- reg
31+
32+
unevaluatedProperties: false
33+
34+
examples:
35+
- |
36+
i2c {
37+
#address-cells = <1>;
38+
#size-cells = <0>;
39+
40+
rtc@68 {
41+
compatible = "nxp,pcf8523";
42+
reg = <0x68>;
43+
quartz-load-femtofarads = <7000>;
44+
};
45+
};

0 commit comments

Comments
 (0)