diff mbox series

[resend,2/2] dt-bindings: rtc: add pcf2131

Message ID 20221030232020.465322-2-angelo.dureghello@timesys.com
State Superseded
Headers show
Series [resend,1/2] rtc: add NXP PCF2131 support (i2c) | expand

Commit Message

Angelo Dureghello Oct. 30, 2022, 11:20 p.m. UTC
Add NXP pcf2131 fdt bindings..

Signed-off-by: Angelo Dureghello <angelo.dureghello@timesys.com>
---
 .../devicetree/bindings/rtc/nxp,pcf2131.yaml  | 49 +++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rtc/nxp,pcf2131.yaml
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/rtc/nxp,pcf2131.yaml b/Documentation/devicetree/bindings/rtc/nxp,pcf2131.yaml
new file mode 100644
index 000000000000..5e0e040a2631
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/nxp,pcf2131.yaml
@@ -0,0 +1,49 @@ 
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/nxp,pcf2131.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP PCF2131 Real Time Clock
+
+allOf:
+  - $ref: "rtc.yaml#"
+
+maintainers:
+  - Alexandre Belloni <alexandre.belloni@bootlin.com>
+
+properties:
+  compatible:
+    const: nxp,pcf2131
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  start-year: true
+
+  reset-source: true
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        rtc@53 {
+            compatible = "nxp,pcf2131";
+            reg = <0x53>;
+            pinctrl-0 = <&rtc_nint_pins>;
+        };
+    };
+
+...