linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Philippe Schenker <dev@pschenker.ch>
To: Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>,
	linux-kernel@vger.kernel.org
Cc: Philippe Schenker <philippe.schenker@toradex.com>
Subject: [RFC PATCH 0/2] Hello
Date: Tue, 30 Jul 2019 19:30:03 +0200	[thread overview]
Message-ID: <20190730173006.15823-1-dev@pschenker.ch> (raw)

From: Philippe Schenker <philippe.schenker@toradex.com>


On our Colibri iMX6ULL board there is a circuit for switching the
power supply of the ethernet PHY with the 50MHz RMII clock.

This works quite fine but has one big problem. It is quite slow when
switching the supply, so Linux has to wait there. I think this switch
is at best represented as a fixed-regulator. In that way I can use
"startup-delay-us" to represent slow switching regulator.

But there's no current possibility to enable fixed-regulator with a
clock. In this RFC I send a patch after we would be able to add a clock
to a fixed-regulator in devicetree and then add the "startup-delay-us"
which would solve all my problems relatively elegant.
This works also the other way, if the PHY now needs power the
clock is not powered off because regulator depends on it.

Because this would need to change code in regulator core I like to
ask for your oppinion first, or if anyone has another idea how
I could solve that problem.

Thanks in advance for your feedback!

Philippe


Philippe Schenker (2):
  Regulator: Core: Add clock-enable to fixed-regulator
  ARM: dts: imx6ull: Add phy-supply to fec

 arch/arm/boot/dts/imx6ull-colibri.dtsi | 12 ++++++++++++
 drivers/regulator/core.c               | 15 +++++++++++++++
 drivers/regulator/fixed.c              |  6 ++++++
 include/linux/regulator/driver.h       |  3 +++
 include/linux/regulator/fixed.h        |  1 +
 5 files changed, 37 insertions(+)

-- 
2.22.0


             reply	other threads:[~2019-07-30 17:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-30 17:30 Philippe Schenker [this message]
2019-07-30 17:30 ` [RFC PATCH 1/2] Regulator: Core: Add clock-enable to fixed-regulator Philippe Schenker
2019-07-30 18:10   ` Mark Brown
2019-07-30 21:00     ` Philippe Schenker
2019-07-31 21:23       ` Mark Brown
2019-08-05 11:07         ` Philippe Schenker
2019-08-05 16:37           ` Mark Brown
2019-08-06 12:57             ` Philippe Schenker
2019-08-06 18:26               ` Mark Brown
2019-08-07  6:46                 ` Philippe Schenker
2019-07-30 17:30 ` [RFC PATCH 2/2] ARM: dts: imx6ull: Add phy-supply to fec Philippe Schenker

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=20190730173006.15823-1-dev@pschenker.ch \
    --to=dev@pschenker.ch \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=philippe.schenker@toradex.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 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).