[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250513161922.4064-7-markus.burri@mt.com>
Date: Tue, 13 May 2025 18:19:21 +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 v3 6/7] dt-bindings: rtc-rv8803: add tamper detection property node
Document tamper detection property for epson,rx8901 rtc chip.
Signed-off-by: Markus Burri <markus.burri@...com>
---
.../devicetree/bindings/rtc/epson,rx8900.yaml | 40 +++++++++++++++++--
1 file changed, 37 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/rtc/epson,rx8900.yaml b/Documentation/devicetree/bindings/rtc/epson,rx8900.yaml
index 03af81754482..c2e542c9bdc6 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,43 @@ properties:
wakeup-source: true
+ tamper:
+ description: Subnode for tamper configuration. This
+ subnode is only available for epson,rx8901.
+ type: object
+ additionalProperties: false
+ properties:
+ buffer-mode:
+ description: Set the buffer mode to inhibit (0) or overwrite (1).
+ minimum: 0
+ maximum: 1
+ patternProperties:
+ "^evin-[0-3]$":
+ $ref: /schemas/types.yaml#/definitions/uint32-array
+ minItems: 3
+ maxItems: 3
+ description: |
+ Event input pin configuration.
+ The configuration is an array of tree values and contains
+ "pull-resistore", "trigger" and "filter".
+ For a detaild description, see epson-rx8901 datasheet.
+
+allOf:
+ - $ref: rtc.yaml#
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - epson,rx8901
+ then:
+ properties:
+ tamper: true
+ else:
+ # property is not allowed:
+ properties:
+ tamper: false
+
required:
- compatible
- reg
--
2.39.5
Powered by blists - more mailing lists