Re: [RFC PATCH 0/3] Add support of busfreq
From: Krzysztof Kozlowski
Date: Fri May 03 2019 - 07:19:50 EST
On Wed, 13 Mar 2019 at 20:35, Alexandre Bailon <abailon@xxxxxxxxxxxx> wrote:
> This series implements busfreq, a framework used in MXP's
> tree to scale the interconnect and dram frequencies.
> In the vendor tree, device's driver request for a
> performance level, which is used to scale the frequencies.
> This series implements it using the interconnect framework.
> Devices' driver request for bandwidth which is use by busfreq
> to determine a performance level, and then scale the frequency.
> Busfreq is quite generic. It could be used for any i.MX SoC.
> A busfreq platform driver just have to define a list of
> interconnect nodes, and some OPPs.
> This series is sent as RFC mostly because the current support
> of i.MX SoC won't benefit of busfreq framework, because the
> clocks' driver don't support interconnect / dram frequency
> As exemple, this series implements busfreq for i.MX8MM whose
> upstreaming is in progress. Because this relies on ATF to
> do the frequency scaling, it won't be hard make it work.
> As exemple, this series implements busfreq for
> Alexandre Bailon (3):
> drivers: interconnect: Add a driver for i.MX SoC
> drivers: interconnect: imx: Add support of i.MX8MM
> dt-bindings: interconnect: Document fsl,busfreq-imx8mm bindings
I am quite late but I just found your email.
This looks very similar to existing framework - devfreq, which purpose
is to scale the system busses based on performance counters/events. It
would be nice if we could avoid duplication of existing subsystems.