From: Sebastian Reichel <sre@kernel.org>
To: Lars Povlsen <lars.povlsen@microchip.com>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>,
Microchip Linux Driver Support <UNGLinuxDriver@microchip.com>,
linux-pm@vger.kernel.org
Subject: Re: [PATCH 3/5] dt-bindings: reset: ocelot: Add documentation for 'microchip,reset-switch-core' property
Date: Wed, 30 Sep 2020 00:04:39 +0200 [thread overview]
Message-ID: <20200929220439.ygpiv2tlvf7q7na4@earth.universe> (raw)
In-Reply-To: <875z8ei218.fsf@soft-dev15.microsemi.net>
[-- Attachment #1: Type: text/plain, Size: 3427 bytes --]
Hi,
On Wed, Sep 16, 2020 at 10:00:51AM +0200, Lars Povlsen wrote:
> Lars Povlsen writes:
> > Sebastian Reichel writes:
> >> On Tue, Jun 02, 2020 at 11:49:08AM +0200, Lars Povlsen wrote:
> >> > Rob Herring writes:
> >> > > On Wed, May 13, 2020 at 03:08:40PM +0200, Lars Povlsen wrote:
> >> > >> This documents the 'microchip,reset-switch-core' property in the
> >> > >> ocelot-reset driver.
> >> > >>
> >> > >> Signed-off-by: Lars Povlsen <lars.povlsen@microchip.com>
> >> > >> ---
> >> > >> .../devicetree/bindings/power/reset/ocelot-reset.txt | 6 ++++++
> >> > >> 1 file changed, 6 insertions(+)
> >> > >>
> >> > >> diff --git a/Documentation/devicetree/bindings/power/reset/ocelot-rese=
> >> t.txt b/Documentation/devicetree/bindings/power/reset/ocelot-reset.txt
> >> > >> index 4d530d8154848..20fff03753ad2 100644
> >> > >> --- a/Documentation/devicetree/bindings/power/reset/ocelot-reset.txt
> >> > >> +++ b/Documentation/devicetree/bindings/power/reset/ocelot-reset.txt
> >> > >> @@ -9,9 +9,15 @@ microchip Sparx5 armv8 SoC's.
> >> > >> Required Properties:
> >> > >> - compatible: "mscc,ocelot-chip-reset" or "microchip,sparx5-chip-res=
> >> et"
> >> > >>
> >> > >> +Optional properties:
> >> > >> +- microchip,reset-switch-core : Perform a switch core reset at the
> >> > >> + time of driver load. This is may be used to initialize the switch
> >> > >> + core to a known state (before other drivers are loaded).
> >> > >
> >> > > How do you know when other drivers are loaded? This could be a module
> >> > > perhaps. Doesn't seem like something that belongs in DT.
> >> > >
> >> >
> >> > The reset driver is loaded at postcore_initcall() time, which ensures it
> >> > is loaded before other drivers using the switch core. I noticed other
> >> > drivers do the same to do low-level system reset and initialization at
> >> > early boot time.
> >> >
> >> > > Can this behavior be implied with "microchip,sparx5-chip-reset"?
> >> >
> >> > Since we need to cater for both modus operandi, I would need two driver
> >> > compatible strings per platform, which scales worse than a single
> >> > property.
> >> >
> >> > The "microchip,reset-switch-core" is a device configuration property
> >> > which tells the system (driver) how the hw should be handled. Since you
> >> > do not *always* want to reset the switch core (f.ex. when implementing
> >> > systems with warm reboot), I think it makes perfect sense - but I may be
> >> > biased off course :-)
> >> >
> >> > Thank you for (all) of your comments, by the way!
> >> >
> >> > ---Lars
> >>
> >> Is this series still needed? Did I miss a follow-up?
> >
> > Hi Sebastian!
> >
> > Yes, the series is still needed, but the conversation died after my
> > last message.
> >
> > If the DT-controlled reset property is too controversial, I am willing
> > to drop that part. (Rob just reviewed the bindings).
> >
> > MCHP reference designs have GPIO resets, so we *could* get by without,
> > but new designs may this feature.
> >
> >> -- Sebastian
> >
>
> Sebastian,
>
> Any update on the patches? They're the last part of the original Sparx5
> series, so I would love to get them done.
>
> As previously stated, I could remove the "microchip,reset-switch-core"
> parts if that's whats what holding it stuck.
I am waiting for Rob's Acked-by for the binding.
-- Sebastian
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2020-09-29 22:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-13 13:08 [PATCH 0/5] power: Adding support for Microchip Sparx5 SoC Lars Povlsen
2020-05-13 13:08 ` [PATCH 1/5] dt-bindings: reset: ocelot: Add Sparx5 support Lars Povlsen
2020-05-13 13:08 ` [PATCH 2/5] power: reset: ocelot: Add support for Sparx5 Lars Povlsen
2020-05-13 13:08 ` [PATCH 3/5] dt-bindings: reset: ocelot: Add documentation for 'microchip,reset-switch-core' property Lars Povlsen
2020-05-28 2:25 ` Rob Herring
2020-06-02 9:49 ` Lars Povlsen
[not found] ` <20200828163916.g6vbk3anfyijl7sx@earth.universe>
2020-08-31 8:19 ` Lars Povlsen
2020-09-16 8:00 ` Lars Povlsen
2020-09-29 22:04 ` Sebastian Reichel [this message]
2020-05-13 13:08 ` [PATCH 4/5] power: reset: ocelot: Add support for reset switch on load time Lars Povlsen
2020-05-13 13:08 ` [PATCH 5/5] arm64: dts: sparx5: Add reset support Lars Povlsen
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=20200929220439.ygpiv2tlvf7q7na4@earth.universe \
--to=sre@kernel.org \
--cc=UNGLinuxDriver@microchip.com \
--cc=alexandre.belloni@bootlin.com \
--cc=lars.povlsen@microchip.com \
--cc=linux-pm@vger.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).