This series add imx support for interconnect via devfreq: the ICC framework is used to aggregate requests from devices and then those are converted to "min_freq" requests to devfreq. The dev_pm_qos API is used to request min frequencies from devfreq, it relies on this patch: https://patchwork.kernel.org/patch/11078475/ This is greatly reduced compared to previous submissions: * Relying on devfreq and dev_pm_qos instead of CLK allows a wider range of implementations for scaling individual nodes. In particular it's no longer required to force DDR scaling into CLK. * No more "platform opp" stuff: forcing everything to scale together loses many of the benefits of ICC. The devfreq "passive" governor can still be used to tie some pieces of the fabric together. * No more suspend/resume handling: devfreq uses OPP framework which already supports "suspend-opp". * Replace all mentions of "busfreq" with "interconnect" Link to v2: https://patchwork.kernel.org/patch/11056789/ The per-soc platform drivers still need to defined the interconnect graph and links to devfreq (by name) as well as bus widths. For example some of the 128-bit buses on imx8m mini are 64-bit on imx8m nano. There was another recent series tying icc and devfreq, for exynos: * https://lkml.org/lkml/2019/7/23/394 That series defines the interconnect graph/tree entirely inside devicetree but that seems limiting. I'd rather keep the graph in a SOC driver and #define ids for all bus masters/slaves. This way if USB1 and USB2 are on the same bus they can still be treated differently. One interesting idea from there is to turn devfreq nodes into interconnect providers, this can avoid the need for a "virtual" ICC node in devicetree. I expect devicetree folks will object to that? Leonard Crestez (3): dt-bindings: interconnect: Add bindings for imx interconnect: Add imx core driver interconnect: imx: Add platform driver for imx8mm .../devicetree/bindings/interconnect/imx.yaml | 38 +++ drivers/interconnect/Kconfig | 1 + drivers/interconnect/Makefile | 1 + drivers/interconnect/imx/Kconfig | 9 + drivers/interconnect/imx/Makefile | 2 + drivers/interconnect/imx/imx.c | 258 ++++++++++++++++++ drivers/interconnect/imx/imx.h | 62 +++++ drivers/interconnect/imx/imx8mm.c | 114 ++++++++ include/dt-bindings/interconnect/imx8mm.h | 49 ++++ 9 files changed, 534 insertions(+) create mode 100644 Documentation/devicetree/bindings/interconnect/imx.yaml create mode 100644 drivers/interconnect/imx/Kconfig create mode 100644 drivers/interconnect/imx/Makefile create mode 100644 drivers/interconnect/imx/imx.c create mode 100644 drivers/interconnect/imx/imx.h create mode 100644 drivers/interconnect/imx/imx8mm.c create mode 100644 include/dt-bindings/interconnect/imx8mm.h -- 2.17.1