Skip to content

Commit 10e1fb8

Browse files
tq-steinaalexandrebelloni
authored andcommitted
dt-bindings: rtc: nxp,pcf85063: Convert to DT schema
Convert the NXP PCF85063 RTC binding to DT schema format. Add 'interrupts' and 'wakeup-source' as this device has an interrupt which was not documented, but is in use. 'clock-output-names' and '#clock-cells' are added as well, those were probably missed when adding clkout support in commit 8c229ab ("rtc: pcf85063: Add pcf85063 clkout control to common clock framework") Signed-off-by: Alexander Stein <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 2830320 commit 10e1fb8

File tree

2 files changed

+92
-32
lines changed

2 files changed

+92
-32
lines changed

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

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
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,pcf85063.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NXP PCF85063 Real Time Clock
8+
9+
maintainers:
10+
- Alexander Stein <[email protected]>
11+
12+
properties:
13+
compatible:
14+
enum:
15+
- microcrystal,rv8263
16+
- nxp,pcf85063
17+
- nxp,pcf85063a
18+
- nxp,pcf85063tp
19+
- nxp,pca85073a
20+
21+
reg:
22+
maxItems: 1
23+
24+
"#clock-cells":
25+
const: 0
26+
27+
clock-output-names:
28+
maxItems: 1
29+
30+
interrupts:
31+
maxItems: 1
32+
33+
quartz-load-femtofarads:
34+
description:
35+
The capacitive load of the quartz(x-tal).
36+
enum: [7000, 12500]
37+
default: 7000
38+
39+
clock:
40+
$ref: /schemas/clock/fixed-clock.yaml
41+
description:
42+
Provide this if the square wave pin is used as boot-enabled
43+
fixed clock.
44+
45+
wakeup-source: true
46+
47+
allOf:
48+
- $ref: rtc.yaml#
49+
- if:
50+
properties:
51+
compatible:
52+
contains:
53+
enum:
54+
- microcrystal,rv8263
55+
then:
56+
properties:
57+
quartz-load-femtofarads: false
58+
- if:
59+
properties:
60+
compatible:
61+
contains:
62+
enum:
63+
- nxp,pcf85063
64+
then:
65+
properties:
66+
quartz-load-femtofarads:
67+
const: 7000
68+
69+
required:
70+
- compatible
71+
- reg
72+
73+
additionalProperties: false
74+
75+
examples:
76+
- |
77+
i2c {
78+
#address-cells = <1>;
79+
#size-cells = <0>;
80+
81+
rtc@51 {
82+
compatible = "nxp,pcf85063a";
83+
reg = <0x51>;
84+
quartz-load-femtofarads = <12500>;
85+
86+
clock {
87+
compatible = "fixed-clock";
88+
#clock-cells = <0>;
89+
clock-frequency = <32768>;
90+
};
91+
};
92+
};

0 commit comments

Comments
 (0)