[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250521090552.3173-7-markus.burri@mt.com>
Date: Wed, 21 May 2025 11:05:51 +0200
From: Markus Burri <markus.burri@...com>
To: linux-kernel@...r.kernel.org
Cc: Markus Burri <markus.burri@...com>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Manuel Traut <manuel.traut@...com>,
Marek Vasut <marex@...x.de>,
linux-rtc@...r.kernel.org,
devicetree@...r.kernel.org,
Markus Burri <markus.burri@....ch>
Subject: [PATCH v4 6/7] dt-bindings: rtc-rv8803: add tamper detection property node
The RV8901 RTC chip provides a function to store timestamp events.
There are three input pins (EVIN1-3) available for triggering.
The input pins can be configured and adapted according to the connected
hardware.
Add document of tamper detection properties for epson,rx8901 rtc chip.
Signed-off-by: Markus Burri <markus.burri@...com>
---
.../devicetree/bindings/rtc/epson,rx8900.yaml | 37 +++++++++++++++++--
1 file changed, 34 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/rtc/epson,rx8900.yaml b/Documentation/devicetree/bindings/rtc/epson,rx8900.yaml
index 03af81754482..2682cbb9097d 100644
--- a/Documentation/devicetree/bindings/rtc/epson,rx8900.yaml
+++ b/Documentation/devicetree/bindings/rtc/epson,rx8900.yaml
@@ -9,9 +9,6 @@ title: EPSON RX8900 / Microcrystal RV8803 Real-Time Clock
maintainers:
- Marek Vasut <marex@...x.de>
-allOf:
- - $ref: rtc.yaml#
-
properties:
compatible:
enum:
@@ -33,6 +30,40 @@ properties:
wakeup-source: true
+ tamper:
+ description: Subnode for tamper configuration.
+ This subnode is only available for epson,rx8901.
+ type: object
+ additionalProperties: false
+
+ properties:
+ buffer-overwrite:
+ type: boolean
+ description: Set the buffer mode to overwrite. Default is inhibit.
+
+ patternProperties:
+ "^evin-[0-3]$":
+ $ref: /schemas/types.yaml#/definitions/uint32-array
+ minItems: 3
+ maxItems: 3
+ description: External event input pin configuration.
+ The configuration is an array of tree values and contains
+ "pull-resistor", "trigger" and "filter".
+ For a detailed description, see epson-rx8901 datasheet.
+
+allOf:
+ - $ref: rtc.yaml#
+ - if:
+ properties:
+ compatible:
+ not:
+ contains:
+ enum:
+ - epson,rx8901
+ then:
+ properties:
+ tamper: false
+
required:
- compatible
- reg
--
2.39.5
Powered by blists - more mailing lists