Small updates for using interconnect on the imx8mq. In case you
add icc_sync_state yourself, just let me know Georgi, and I can drop
it here. Thanks again for your help.
The last patch of course is optional and just cycles the defconfig.
thanks,
martin
Leonard Crestez (1):
arm64: dts: imx8m: Add NOC nodes
Martin Kepplinger (5):
arm64: dts: imx8mq: Add interconnect provider property
arm64: dts: imx8mq: Add interconnect for lcdif
interconnect: imx8mq: Use icc_sync_state
arm64: defconfig: Enable interconnect for imx8mq
arm64: defconfig: updates for 5.10
arch/arm64/boot/dts/freescale/imx8mm.dtsi | 22 ++++++
arch/arm64/boot/dts/freescale/imx8mn.dtsi | 22 ++++++
arch/arm64/boot/dts/freescale/imx8mq.dtsi | 26 +++++++
arch/arm64/configs/defconfig | 85 +++++++----------------
drivers/interconnect/imx/imx8mq.c | 2 +
5 files changed, 98 insertions(+), 59 deletions(-)
--
2.20.1
Enable INTERCONNECT_IMX8MQ in order to make interconnect more widely
available for testing.
Signed-off-by: Martin Kepplinger <[email protected]>
---
arch/arm64/configs/defconfig | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 867cc4a5f00f..57cf2f50b5f7 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -1051,10 +1051,11 @@ CONFIG_OF_FPGA_REGION=m
CONFIG_TEE=y
CONFIG_OPTEE=y
CONFIG_SLIMBUS=m
+CONFIG_MUX_MMIO=y
CONFIG_SLIM_QCOM_CTRL=m
CONFIG_SLIM_QCOM_NGD_CTRL=m
-CONFIG_MUX_MMIO=y
-CONFIG_INTERCONNECT=y
+CONFIG_INTERCONNECT_IMX=m
+CONFIG_INTERCONNECT_IMX8MQ=m
CONFIG_INTERCONNECT_QCOM=y
CONFIG_INTERCONNECT_QCOM_MSM8916=m
CONFIG_INTERCONNECT_QCOM_OSM_L3=m
--
2.20.1
Add the icc_sync_state callback to notify the framework when consumers
are probed and the bandwidth doesn't have to be kept at maximum anymore.
Signed-off-by: Martin Kepplinger <[email protected]>
Suggested-by: Georgi Djakov <[email protected]>
---
drivers/interconnect/imx/imx8mq.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/interconnect/imx/imx8mq.c b/drivers/interconnect/imx/imx8mq.c
index ba43a15aefec..d7768d3c6d8a 100644
--- a/drivers/interconnect/imx/imx8mq.c
+++ b/drivers/interconnect/imx/imx8mq.c
@@ -7,6 +7,7 @@
#include <linux/module.h>
#include <linux/platform_device.h>
+#include <linux/interconnect-provider.h>
#include <dt-bindings/interconnect/imx8mq.h>
#include "imx.h"
@@ -94,6 +95,7 @@ static struct platform_driver imx8mq_icc_driver = {
.remove = imx8mq_icc_remove,
.driver = {
.name = "imx8mq-interconnect",
+ .sync_state = icc_sync_state,
},
};
--
2.20.1
Am Dienstag, den 01.12.2020, 11:01 +0100 schrieb Martin Kepplinger:
> Enable INTERCONNECT_IMX8MQ in order to make interconnect more widely
> available for testing.
>
> Signed-off-by: Martin Kepplinger <[email protected]>
> ---
> arch/arm64/configs/defconfig | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index 867cc4a5f00f..57cf2f50b5f7 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -1051,10 +1051,11 @@ CONFIG_OF_FPGA_REGION=m
> CONFIG_TEE=y
> CONFIG_OPTEE=y
> CONFIG_SLIMBUS=m
> +CONFIG_MUX_MMIO=y
This change should be part of the other patch to regenerate the config
without functional changes. Also order of the patches should be the
other way around: first regenerate without changes, then stack the
INTERCONNECT_IMX8MQ enable on top.
Regards,
Lucas
> CONFIG_SLIM_QCOM_CTRL=m
> CONFIG_SLIM_QCOM_NGD_CTRL=m
> -CONFIG_MUX_MMIO=y
> -CONFIG_INTERCONNECT=y
> +CONFIG_INTERCONNECT_IMX=m
> +CONFIG_INTERCONNECT_IMX8MQ=m
> CONFIG_INTERCONNECT_QCOM=y
> CONFIG_INTERCONNECT_QCOM_MSM8916=m
> CONFIG_INTERCONNECT_QCOM_OSM_L3=m