From: Russell King - ARM Linux admin <linux@armlinux.org.uk>
To: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Rob Herring <robh@kernel.org>, Baruch Siach <baruch@tkos.co.il>,
Sascha Hauer <kernel@pengutronix.de>,
a.zummo@towertech.it, Fabio Estevam <festevam@gmail.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Jon Nettleton <jon@solid-run.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
devicetree <devicetree@vger.kernel.org>,
NXP Linux Team <linux-imx@nxp.com>,
Miguel Borges de Freitas <miguelborgesdefreitas@gmail.com>,
Shawn Guo <shawnguo@kernel.org>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v2 1/3] dt-bindings: rtc: pcf8523: add DSM pm option for battery switch-over
Date: Mon, 27 Jul 2020 18:30:51 +0100 [thread overview]
Message-ID: <20200727173051.GM1551@shell.armlinux.org.uk> (raw)
In-Reply-To: <20200727161632.GF239143@piout.net>
On Mon, Jul 27, 2020 at 06:16:32PM +0200, Alexandre Belloni wrote:
> On 27/07/2020 17:55:50+0200, Jon Nettleton wrote:
> > > So, can we please have that discussion, it is pertinent to this patch.
> > >
> >
> > Thinking about this some more, I believe whether or not an IOCTL
> > interface is in the works or needed is irrelevant. This patch
> > describes the hardware and how it is designed and the topic of
> > discussion is if we need a simple boolean state, or if we need
> > something that could be used to support dynamic configuration in the
> > future. I would rather make this decision now rather than keep
> > tacking on boolean config options, or revisit a bunch of device-tree
> > changes.
>
> Something that would describe the hardware is a property telling whether
> the filter is present on VDD, not a property selecting DSM. The driver
> can then chose to avoid standard mode when needed.
Whether DSM needs to be enabled or not is _not_ just a function of
whether there is a filter present or not.
The requirement in the data sheet is that when the VDD supply drops
below 2.5V, it does not fall more than 0.7V/ms. That can be
achieved many different ways, not only by adding a resistive filter
to the VDD supply to the RTC. It could also be achieved via the design
of the power supply - for example, having a large enough reservoir
capacitor to ensure under all loads that the VDD supply will not fall
faster than 0.7V/ms.
There are many ways to meet this requirement.
Adding a DT property to indicate whether the filter is present or not
is definitely not the right approach. Should we also add properties
for every possible solution to this problem.
vdd-has-filter;
psu-has-large-capacitors;
... etc ...
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Russell King - ARM Linux admin <linux@armlinux.org.uk>
To: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Jon Nettleton <jon@solid-run.com>, Rob Herring <robh@kernel.org>,
Miguel Borges de Freitas <miguelborgesdefreitas@gmail.com>,
a.zummo@towertech.it, Baruch Siach <baruch@tkos.co.il>,
Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Sascha Hauer <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
NXP Linux Team <linux-imx@nxp.com>,
devicetree <devicetree@vger.kernel.org>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 1/3] dt-bindings: rtc: pcf8523: add DSM pm option for battery switch-over
Date: Mon, 27 Jul 2020 18:30:51 +0100 [thread overview]
Message-ID: <20200727173051.GM1551@shell.armlinux.org.uk> (raw)
In-Reply-To: <20200727161632.GF239143@piout.net>
On Mon, Jul 27, 2020 at 06:16:32PM +0200, Alexandre Belloni wrote:
> On 27/07/2020 17:55:50+0200, Jon Nettleton wrote:
> > > So, can we please have that discussion, it is pertinent to this patch.
> > >
> >
> > Thinking about this some more, I believe whether or not an IOCTL
> > interface is in the works or needed is irrelevant. This patch
> > describes the hardware and how it is designed and the topic of
> > discussion is if we need a simple boolean state, or if we need
> > something that could be used to support dynamic configuration in the
> > future. I would rather make this decision now rather than keep
> > tacking on boolean config options, or revisit a bunch of device-tree
> > changes.
>
> Something that would describe the hardware is a property telling whether
> the filter is present on VDD, not a property selecting DSM. The driver
> can then chose to avoid standard mode when needed.
Whether DSM needs to be enabled or not is _not_ just a function of
whether there is a filter present or not.
The requirement in the data sheet is that when the VDD supply drops
below 2.5V, it does not fall more than 0.7V/ms. That can be
achieved many different ways, not only by adding a resistive filter
to the VDD supply to the RTC. It could also be achieved via the design
of the power supply - for example, having a large enough reservoir
capacitor to ensure under all loads that the VDD supply will not fall
faster than 0.7V/ms.
There are many ways to meet this requirement.
Adding a DT property to indicate whether the filter is present or not
is definitely not the right approach. Should we also add properties
for every possible solution to this problem.
vdd-has-filter;
psu-has-large-capacitors;
... etc ...
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
next prev parent reply other threads:[~2020-07-27 17:32 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-19 14:50 [PATCH 0/2] rtc: pcf8523: Make DSM for battery switch-over configurable from DT and enable it for the cubox-i miguelborgesdefreitas
2020-07-19 14:50 ` miguelborgesdefreitas
2020-07-19 14:50 ` [PATCH 1/2] rtc: pcf8523: Make DSM for battery switch-over configurable from DT miguelborgesdefreitas
2020-07-19 14:50 ` miguelborgesdefreitas
2020-07-19 14:50 ` [PATCH 2/2] ARM: dts: imx6qdl-cubox-i: enable DSM for the RTC miguelborgesdefreitas
2020-07-19 14:50 ` miguelborgesdefreitas
2020-07-19 15:00 ` Baruch Siach
2020-07-19 15:00 ` Baruch Siach
2020-07-20 11:23 ` [PATCH v2 0/3] rtc: pcf8523: imx6qdl-cubox-i: Make DSM for battery switch-over configurable from DT and enable it for the cubox-i miguelborgesdefreitas
2020-07-20 11:23 ` miguelborgesdefreitas
2020-07-20 11:23 ` [PATCH v2 1/3] dt-bindings: rtc: pcf8523: add DSM pm option for battery switch-over miguelborgesdefreitas
2020-07-20 11:23 ` miguelborgesdefreitas
2020-07-23 17:49 ` Rob Herring
2020-07-23 17:49 ` Rob Herring
2020-07-23 19:57 ` Alexandre Belloni
2020-07-23 19:57 ` Alexandre Belloni
2020-07-23 20:41 ` Miguel Borges de Freitas
2020-07-23 20:41 ` Miguel Borges de Freitas
2020-07-27 9:19 ` Jon Nettleton
2020-07-27 9:19 ` Jon Nettleton
2020-07-27 9:45 ` Russell King - ARM Linux admin
2020-07-27 9:45 ` Russell King - ARM Linux admin
2020-07-27 13:33 ` Jon Nettleton
2020-07-27 13:33 ` Jon Nettleton
2020-07-27 14:17 ` Russell King - ARM Linux admin
2020-07-27 14:17 ` Russell King - ARM Linux admin
2020-07-27 14:52 ` Jon Nettleton
2020-07-27 14:52 ` Jon Nettleton
2020-07-27 14:49 ` Alexandre Belloni
2020-07-27 14:49 ` Alexandre Belloni
2020-07-27 15:24 ` Russell King - ARM Linux admin
2020-07-27 15:24 ` Russell King - ARM Linux admin
2020-07-27 15:41 ` Alexandre Belloni
2020-07-27 15:41 ` Alexandre Belloni
2020-07-27 15:43 ` Russell King - ARM Linux admin
2020-07-27 15:43 ` Russell King - ARM Linux admin
2020-07-27 15:55 ` Jon Nettleton
2020-07-27 15:55 ` Jon Nettleton
2020-07-27 16:16 ` Alexandre Belloni
2020-07-27 16:16 ` Alexandre Belloni
2020-07-27 17:04 ` Jon Nettleton
2020-07-27 17:04 ` Jon Nettleton
2020-07-27 17:30 ` Russell King - ARM Linux admin [this message]
2020-07-27 17:30 ` Russell King - ARM Linux admin
2020-07-27 21:13 ` Miguel Borges de Freitas
2020-07-27 21:13 ` Miguel Borges de Freitas
2020-08-25 20:08 ` Alexandre Belloni
2020-08-25 20:08 ` Alexandre Belloni
2020-07-20 11:24 ` [PATCH v2 2/3] rtc: pcf8523: Make DSM for battery switch-over configurable from DT miguelborgesdefreitas
2020-07-20 11:24 ` miguelborgesdefreitas
2020-07-20 11:24 ` [PATCH v2 3/3] ARM: dts: imx6qdl-cubox-i: enable DSM for the RTC miguelborgesdefreitas
2020-07-20 11:24 ` miguelborgesdefreitas
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=20200727173051.GM1551@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@bootlin.com \
--cc=baruch@tkos.co.il \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=jon@solid-run.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=miguelborgesdefreitas@gmail.com \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@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 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.