[PATCH v2 2/2] dt-bindings: rtc: add pcf85053a

From: Carlos Menin
Date: Fri Nov 03 2023 - 09:02:38 EST


Add YAML bindings for NXP's PCF85053A RTC chip.

Signed-off-by: Carlos Menin <menin@xxxxxxxxxxxxxxxxx>
Reviewed-by: Sergio Prado <sergio.prado@xxxxxxxxxxxxxx>
---
.../bindings/rtc/nxp,pcf85053a.yaml | 71 +++++++++++++++++++
1 file changed, 71 insertions(+)
create mode 100644 Documentation/devicetree/bindings/rtc/nxp,pcf85053a.yaml

diff --git a/Documentation/devicetree/bindings/rtc/nxp,pcf85053a.yaml b/Documentation/devicetree/bindings/rtc/nxp,pcf85053a.yaml
new file mode 100644
index 000000000000..a1fc29dd30f8
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/nxp,pcf85053a.yaml
@@ -0,0 +1,71 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/nxp,pcf85053a.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP PCF85053A Real Time Clock
+
+maintainers:
+ - Carlos Menin <menin@xxxxxxxxxxxxxxxxx>
+
+properties:
+ compatible:
+ enum:
+ - nxp,pcf85053a
+
+ reg:
+ maxItems: 1
+
+ quartz-load-femtofarads:
+ description:
+ The capacitive load of the crystal, expressed in femto Farad (fF).
+ enum: [6000, 7000, 12500]
+ default: 12500
+
+ nxp,quartz-drive-control:
+ description:
+ The oscillator is designed to be used with quartz with a series resistance
+ up to 100 kOhms. This covers the typical range of 32.768 kHz quartz
+ crystals. A low drive mode is available for low series resistance quartz
+ (up to 60 kOhms). This reduces the current consumption. For very high
+ series resistance quartz (up to 500 kOhms), there is a high drive mode.
+ Current consumption increases substantially in this mode.
+ enum: [low, normal, high]
+ default: normal
+
+ nxp,low-jitter-mode:
+ description:
+ If set to true, will decrease the CLK output jitter, at the cost of
+ increasing the current consumption.
+ type: boolean
+ default: false
+
+ nxp,clk-inverted:
+ description:
+ Invert clock output. Normally, the low jitter mode reduces jitter on the
+ rising edge of the output clock. If this property is set to true, then the
+ low jitter mode will affect the falling edge of the output clock.
+ type: boolean
+ default: false
+
+required:
+ - compatible
+ - reg
+
+allOf:
+ - $ref: rtc.yaml#
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ rtc@6f {
+ compatible = "nxp,pcf85053a";
+ reg = <0x6f>;
+ };
+ };
--
2.34.1