public inbox for linux-rtc@vger.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Markus Burri <markus.burri@mt.com>
Cc: linux-kernel@vger.kernel.org,
	 Alexandre Belloni <alexandre.belloni@bootlin.com>,
	Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	 Manuel Traut <manuel.traut@mt.com>, Marek Vasut <marex@denx.de>,
	linux-rtc@vger.kernel.org,  devicetree@vger.kernel.org,
	Markus Burri <markus.burri@bbv.ch>
Subject: Re: [PATCH v4 6/7] dt-bindings: rtc-rv8803: add tamper detection property node
Date: Tue, 27 May 2025 08:42:42 +0200	[thread overview]
Message-ID: <20250527-loutish-powerful-tiger-45a296@kuoka> (raw)
In-Reply-To: <20250521090552.3173-7-markus.burri@mt.com>

On Wed, May 21, 2025 at 11:05:51AM GMT, Markus Burri wrote:
> 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@mt.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@denx.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.

Drop last sentence. Don't repeat constraints in free form text.

> +    type: object
> +    additionalProperties: false
> +
> +    properties:
> +      buffer-overwrite:

Missing vendor prefix or where is this property defined?

> +        type: boolean
> +        description: Set the buffer mode to overwrite. Default is inhibit.

Why woould this be a board configuration? You described the desired
Linux feature or behavior, not the actual hardware. The bindings are
about the latter, so instead you need to rephrase the property and its
description to match actual hardware capabilities/features/configuration
etc.

> +
> +    patternProperties:
> +      "^evin-[0-3]$":

Commit says three, schema says four.

Where is this property defined? Which common schema? Or is it vendor
property?

> +        $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".

What are the values here? Missing constraints, missing defaults.

Best regards,
Krzysztof


  reply	other threads:[~2025-05-27  6:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-21  9:05 [PATCH v4 0/7] rtc-rv8803: Implement timestamp trigger over event pins Markus Burri
2025-05-21  9:05 ` [PATCH v4 1/7] dt-bindings: rtc: add new type for epson,rx8901 Markus Burri
2025-05-27  6:43   ` Krzysztof Kozlowski
2025-05-21  9:05 ` [PATCH v4 2/7] rtc-rv8803: add new type for rv8901 Markus Burri
2025-05-21  9:05 ` [PATCH v4 3/7] rtc-rv8803: add tamper function to sysfs " Markus Burri
2025-05-21  9:05 ` [PATCH v4 4/7] rtc-rv8803: extend sysfs to trigger internal ts-event Markus Burri
2025-05-21  9:05 ` [PATCH v4 5/7] rtc-rv8803: extend sysfs to read status Markus Burri
2025-05-21  9:05 ` [PATCH v4 6/7] dt-bindings: rtc-rv8803: add tamper detection property node Markus Burri
2025-05-27  6:42   ` Krzysztof Kozlowski [this message]
2025-05-21  9:05 ` [PATCH v4 7/7] rtc-rv8803: make tamper function configurable via dt Markus Burri

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=20250527-loutish-powerful-tiger-45a296@kuoka \
    --to=krzk@kernel.org \
    --cc=alexandre.belloni@bootlin.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rtc@vger.kernel.org \
    --cc=manuel.traut@mt.com \
    --cc=marex@denx.de \
    --cc=markus.burri@bbv.ch \
    --cc=markus.burri@mt.com \
    --cc=robh@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