Skip to content

Commit

Permalink
dt-bindings: rtc: pcf8523: Convert to YAML
Browse files Browse the repository at this point in the history
Convert the PCF8523 bindings from text format to YAML.

The YAML format is preferred as it allows validation.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230905220826.79901-1-festevam@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
  • Loading branch information
Fabio Estevam authored and Alexandre Belloni committed Oct 15, 2023
1 parent cf3cce4 commit 539cbe1
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Documentation/devicetree/bindings/rtc/nxp,pcf8523.txt

This file was deleted.

45 changes: 45 additions & 0 deletions Documentation/devicetree/bindings/rtc/nxp,pcf8523.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/rtc/nxp,pcf8523.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: NXP PCF8523 Real Time Clock

maintainers:
- Sam Ravnborg <sam@ravnborg.org>

allOf:
- $ref: rtc.yaml#

properties:
compatible:
const: nxp,pcf8523

reg:
maxItems: 1

quartz-load-femtofarads:
description:
The capacitive load of the crystal, expressed in femto Farad (fF).
enum: [ 7000, 12500 ]
default: 12500

required:
- compatible
- reg

unevaluatedProperties: false

examples:
- |
i2c {
#address-cells = <1>;
#size-cells = <0>;
rtc@68 {
compatible = "nxp,pcf8523";
reg = <0x68>;
quartz-load-femtofarads = <7000>;
};
};

0 comments on commit 539cbe1

Please sign in to comment.