All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: "André Draszik" <andre.draszik@linaro.org>
Cc: Sebastian Reichel <sre@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Peter Griffin <peter.griffin@linaro.org>,
	Tudor Ambarus <tudor.ambarus@linaro.org>,
	Will McVicker <willmcvicker@google.com>,
	kernel-team@android.com, linux-pm@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 1/2] dt-bindings: reset: syscon-reboot: support reset modes
Date: Thu, 27 Feb 2025 07:26:44 -0600	[thread overview]
Message-ID: <20250227132644.GA1924628-robh@kernel.org> (raw)
In-Reply-To: <20250227-syscon-reboot-reset-mode-v3-1-959ac53c338a@linaro.org>

On Thu, Feb 27, 2025 at 10:46:13AM +0000, André Draszik wrote:
> Add support for specifying different register/mask/value combinations
> for different types of reset.
> 
> In particular, update the binding to allow platforms to specify the
> following reset modes: soft, warm, cold, hard.
> 
> Linux can perform different types of reset using its reboot= kernel
> command line argument, and some platforms also wish to reset
> differently based on whether or not e.g. contents of RAM should be
> retained across the reboot.
> 
> The new properties match the existing properties, just prefixed with
> one of the reset modes mentioned above.

This would be why we don't do "simple" or "generic" bindings. There's 
always one more variation needing yet more properties to handle it. We 
also draw the line at encoding register accesses into DT. If we wanted 
that, we would have created a language for doing that (or started using 
Forth in FDT).

You need a specific binding for your h/w. If you can make it work with a 
"generic" driver, then that's great, but that's an OS decision which can 
change if needed. The binding can't change.

Rob

  reply	other threads:[~2025-02-27 13:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-27 10:46 [PATCH v3 0/2] support Linux reboot modes in syscon-reboot André Draszik
2025-02-27 10:46 ` [PATCH v3 1/2] dt-bindings: reset: syscon-reboot: support reset modes André Draszik
2025-02-27 13:26   ` Rob Herring [this message]
2025-02-27 10:46 ` [PATCH v3 2/2] power: reset: syscon-reboot: support different " André Draszik

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=20250227132644.GA1924628-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=andre.draszik@linaro.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kernel-team@android.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=peter.griffin@linaro.org \
    --cc=sre@kernel.org \
    --cc=tudor.ambarus@linaro.org \
    --cc=willmcvicker@google.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.