Skip to content

Commit b265cb1

Browse files
panantoni01alexandrebelloni
authored andcommitted
dt-bindings: rtc: pcf85063: add binding for RV8063
Microcrystal RV8063 is a real-time clock module with SPI interface. Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Antoni Pokusinski <apokusinski01@gmail.com> Link: https://lore.kernel.org/r/20250413130755.159373-2-apokusinski01@gmail.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 8b52144 commit b265cb1

1 file changed

Lines changed: 32 additions & 1 deletion

File tree

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

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ maintainers:
1212
properties:
1313
compatible:
1414
enum:
15+
- microcrystal,rv8063
1516
- microcrystal,rv8263
1617
- nxp,pcf85063
1718
- nxp,pcf85063a
@@ -44,13 +45,19 @@ properties:
4445

4546
wakeup-source: true
4647

48+
spi-cs-high: true
49+
50+
spi-3wire: true
51+
4752
allOf:
53+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
4854
- $ref: rtc.yaml#
4955
- if:
5056
properties:
5157
compatible:
5258
contains:
5359
enum:
60+
- microcrystal,rv8063
5461
- microcrystal,rv8263
5562
then:
5663
properties:
@@ -65,12 +72,23 @@ allOf:
6572
properties:
6673
quartz-load-femtofarads:
6774
const: 7000
75+
- if:
76+
properties:
77+
compatible:
78+
not:
79+
contains:
80+
enum:
81+
- microcrystal,rv8063
82+
then:
83+
properties:
84+
spi-cs-high: false
85+
spi-3wire: false
6886

6987
required:
7088
- compatible
7189
- reg
7290

73-
additionalProperties: false
91+
unevaluatedProperties: false
7492

7593
examples:
7694
- |
@@ -90,3 +108,16 @@ examples:
90108
};
91109
};
92110
};
111+
112+
- |
113+
spi {
114+
#address-cells = <1>;
115+
#size-cells = <0>;
116+
117+
rtc@0 {
118+
compatible = "microcrystal,rv8063";
119+
reg = <0>;
120+
spi-cs-high;
121+
spi-3wire;
122+
};
123+
};

0 commit comments

Comments
 (0)