summaryrefslogtreecommitdiffstats
path: root/dts/Bindings/rtc/nxp,pcf2123.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'dts/Bindings/rtc/nxp,pcf2123.yaml')
-rw-r--r--dts/Bindings/rtc/nxp,pcf2123.yaml47
1 files changed, 47 insertions, 0 deletions
diff --git a/dts/Bindings/rtc/nxp,pcf2123.yaml b/dts/Bindings/rtc/nxp,pcf2123.yaml
new file mode 100644
index 0000000000..96e377a4d1
--- /dev/null
+++ b/dts/Bindings/rtc/nxp,pcf2123.yaml
@@ -0,0 +1,47 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/nxp,pcf2123.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP PCF2123 SPI Real Time Clock
+
+maintainers:
+ - Javier Carrasco <javier.carrasco.cruz@gmail.com>
+
+allOf:
+ - $ref: /schemas/spi/spi-peripheral-props.yaml#
+ - $ref: rtc.yaml#
+
+properties:
+ compatible:
+ enum:
+ - nxp,pcf2123
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ spi {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ rtc@3 {
+ compatible = "nxp,pcf2123";
+ reg = <3>;
+ interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_LOW>;
+ spi-cs-high;
+ };
+ };
+...