lkml.org 
[lkml]   [2019]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC PATCH 0/2] Hello
Date
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

\
 
 \ /
  Last update: 2019-07-30 19:30    [W:0.082 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site