devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jagath Jog J <jagathjog1996@gmail.com>
To: alexandre.belloni@bootlin.com, a.zummo@towertech.it,
	robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org
Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org, jagathjog1996@gmail.com
Subject: [PATCH v1 1/2] dt-bindings: rtc: add Maxim max31329 rtc device tree bindings
Date: Sun,  4 Sep 2022 10:17:07 +0530	[thread overview]
Message-ID: <20220904044708.7062-2-jagathjog1996@gmail.com> (raw)
In-Reply-To: <20220904044708.7062-1-jagathjog1996@gmail.com>

Document devicetree bindings for the Maxim max31329 Real Time Clock.

Signed-off-by: Jagath Jog J <jagathjog1996@gmail.com>
---
 .../bindings/rtc/maxim,max31329.yaml          | 59 +++++++++++++++++++
 1 file changed, 59 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rtc/maxim,max31329.yaml

diff --git a/Documentation/devicetree/bindings/rtc/maxim,max31329.yaml b/Documentation/devicetree/bindings/rtc/maxim,max31329.yaml
new file mode 100644
index 000000000000..757f1ac4fdc2
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/maxim,max31329.yaml
@@ -0,0 +1,59 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/maxim,max31329.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Maxim MAX31329 Real Time Clock
+
+allOf:
+  - $ref: rtc.yaml#
+
+maintainers:
+  - Jagath Jog J <jagathjog1996@gmail.com>
+
+properties:
+  compatible:
+    const: maxim,max31329
+
+  reg:
+    maxItems: 1
+
+  "#clock-cells":
+    const: 0
+
+  clock-output-names:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  trickle-resistor-ohms:
+    enum:
+      - 3000
+      - 6000
+      - 11000
+
+  start-year: true
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        rtc@68 {
+            compatible = "maxim,max31329";
+            reg = <0x68>;
+            trickle-resistor-ohms = <6000>;
+            #clock-cells = <0>;
+        };
+    };
+...
-- 
2.17.1


  reply	other threads:[~2022-09-04  4:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-04  4:47 [PATCH v1 0/2] rtc: add Maxim max31329 real time clock Jagath Jog J
2022-09-04  4:47 ` Jagath Jog J [this message]
2022-09-05 15:18   ` [PATCH v1 1/2] dt-bindings: rtc: add Maxim max31329 rtc device tree bindings Krzysztof Kozlowski
2022-09-04  4:47 ` [PATCH v1 2/2] rtc: maxim: Add Maxim max31329 real time clock Jagath Jog J
2022-09-05 15:20   ` Krzysztof Kozlowski
2022-09-07 19:37     ` Jagath Jog J
2022-09-06 14:54   ` kernel test robot
2022-09-13  9:09   ` Dan Carpenter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220904044708.7062-2-jagathjog1996@gmail.com \
    --to=jagathjog1996@gmail.com \
    --cc=a.zummo@towertech.it \
    --cc=alexandre.belloni@bootlin.com \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rtc@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).