Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH 1/2] dt-bindings: reset: imx8mq: add m4 reset
@ 2020-07-30  6:46 peng.fan
  2020-07-30  6:46 ` [PATCH 2/2] reset: imx7: add the cm4 reset for i.MX8MQ peng.fan
  2020-07-31 22:27 ` [PATCH 1/2] dt-bindings: reset: imx8mq: add m4 reset Rob Herring
  0 siblings, 2 replies; 4+ messages in thread
From: peng.fan @ 2020-07-30  6:46 UTC (permalink / raw)
  To: p.zabel, shawnguo, s.hauer, robh+dt
  Cc: devicetree, Peng Fan, linux-kernel, linux-imx, kernel, festevam,
	linux-arm-kernel

From: Peng Fan <peng.fan@nxp.com>

Add the m4 reset used by the remoteproc driver

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 include/dt-bindings/reset/imx8mq-reset.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/dt-bindings/reset/imx8mq-reset.h b/include/dt-bindings/reset/imx8mq-reset.h
index a5b570737582..705870693ec2 100644
--- a/include/dt-bindings/reset/imx8mq-reset.h
+++ b/include/dt-bindings/reset/imx8mq-reset.h
@@ -58,7 +58,10 @@
 #define IMX8MQ_RESET_DDRC2_PRST			47	/* i.MX8MM/i.MX8MN does NOT support */
 #define IMX8MQ_RESET_DDRC2_CORE_RESET		48	/* i.MX8MM/i.MX8MN does NOT support */
 #define IMX8MQ_RESET_DDRC2_PHY_RESET		49	/* i.MX8MM/i.MX8MN does NOT support */
+#define IMX8MQ_RESET_SW_M4C_RST			50
+#define IMX8MQ_RESET_SW_M4P_RST			51
+#define IMX8MQ_RESET_M4_ENABLE			52
 
-#define IMX8MQ_RESET_NUM			50
+#define IMX8MQ_RESET_NUM			53
 
 #endif
-- 
2.16.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/2] reset: imx7: add the cm4 reset for i.MX8MQ
  2020-07-30  6:46 [PATCH 1/2] dt-bindings: reset: imx8mq: add m4 reset peng.fan
@ 2020-07-30  6:46 ` peng.fan
  2020-08-03  9:40   ` Philipp Zabel
  2020-07-31 22:27 ` [PATCH 1/2] dt-bindings: reset: imx8mq: add m4 reset Rob Herring
  1 sibling, 1 reply; 4+ messages in thread
From: peng.fan @ 2020-07-30  6:46 UTC (permalink / raw)
  To: p.zabel, shawnguo, s.hauer, robh+dt
  Cc: devicetree, Peng Fan, linux-kernel, linux-imx, kernel, festevam,
	linux-arm-kernel

From: Peng Fan <peng.fan@nxp.com>

Add the cm4 reset used by the remoteproc driver

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 drivers/reset/reset-imx7.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/reset/reset-imx7.c b/drivers/reset/reset-imx7.c
index d170fe663210..87b6e2d46fb6 100644
--- a/drivers/reset/reset-imx7.c
+++ b/drivers/reset/reset-imx7.c
@@ -178,6 +178,9 @@ static const struct imx7_src_signal imx8mq_src_signals[IMX8MQ_RESET_NUM] = {
 	[IMX8MQ_RESET_A53_SOC_DBG_RESET]	= { SRC_A53RCR0, BIT(20) },
 	[IMX8MQ_RESET_A53_L2RESET]		= { SRC_A53RCR0, BIT(21) },
 	[IMX8MQ_RESET_SW_NON_SCLR_M4C_RST]	= { SRC_M4RCR, BIT(0) },
+	[IMX8MQ_RESET_SW_M4C_RST]		= { SRC_M4RCR, BIT(1) },
+	[IMX8MQ_RESET_SW_M4P_RST]		= { SRC_M4RCR, BIT(2) },
+	[IMX8MQ_RESET_M4_ENABLE]		= { SRC_M4RCR, BIT(3) },
 	[IMX8MQ_RESET_OTG1_PHY_RESET]		= { SRC_USBOPHY1_RCR, BIT(0) },
 	[IMX8MQ_RESET_OTG2_PHY_RESET]		= { SRC_USBOPHY2_RCR, BIT(0) },
 	[IMX8MQ_RESET_MIPI_DSI_RESET_BYTE_N]	= { SRC_MIPIPHY_RCR, BIT(1) },
@@ -238,6 +241,7 @@ static int imx8mq_reset_set(struct reset_controller_dev *rcdev,
 	case IMX8MQ_RESET_MIPI_DSI_DPI_RESET_N:	/* fallthrough */
 	case IMX8MQ_RESET_MIPI_DSI_RESET_N:	/* fallthrough */
 	case IMX8MQ_RESET_MIPI_DSI_RESET_BYTE_N:	/* fallthrough */
+	case IMX8MQ_RESET_M4_ENABLE:
 		value = assert ? 0 : bit;
 		break;
 	}
-- 
2.16.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] dt-bindings: reset: imx8mq: add m4 reset
  2020-07-30  6:46 [PATCH 1/2] dt-bindings: reset: imx8mq: add m4 reset peng.fan
  2020-07-30  6:46 ` [PATCH 2/2] reset: imx7: add the cm4 reset for i.MX8MQ peng.fan
@ 2020-07-31 22:27 ` Rob Herring
  1 sibling, 0 replies; 4+ messages in thread
From: Rob Herring @ 2020-07-31 22:27 UTC (permalink / raw)
  To: peng.fan
  Cc: devicetree, p.zabel, festevam, s.hauer, linux-kernel, robh+dt,
	linux-imx, kernel, shawnguo, linux-arm-kernel

On Thu, 30 Jul 2020 14:46:08 +0800, peng.fan@nxp.com wrote:
> From: Peng Fan <peng.fan@nxp.com>
> 
> Add the m4 reset used by the remoteproc driver
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
>  include/dt-bindings/reset/imx8mq-reset.h | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 

Acked-by: Rob Herring <robh@kernel.org>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] reset: imx7: add the cm4 reset for i.MX8MQ
  2020-07-30  6:46 ` [PATCH 2/2] reset: imx7: add the cm4 reset for i.MX8MQ peng.fan
@ 2020-08-03  9:40   ` Philipp Zabel
  0 siblings, 0 replies; 4+ messages in thread
From: Philipp Zabel @ 2020-08-03  9:40 UTC (permalink / raw)
  To: peng.fan, shawnguo, s.hauer, robh+dt
  Cc: devicetree, linux-kernel, linux-imx, kernel, festevam, linux-arm-kernel

On Thu, 2020-07-30 at 14:46 +0800, peng.fan@nxp.com wrote:
> From: Peng Fan <peng.fan@nxp.com>
> 
> Add the cm4 reset used by the remoteproc driver
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>

Thank you, both applied to reset/next.

regards
Philipp

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, back to index

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-30  6:46 [PATCH 1/2] dt-bindings: reset: imx8mq: add m4 reset peng.fan
2020-07-30  6:46 ` [PATCH 2/2] reset: imx7: add the cm4 reset for i.MX8MQ peng.fan
2020-08-03  9:40   ` Philipp Zabel
2020-07-31 22:27 ` [PATCH 1/2] dt-bindings: reset: imx8mq: add m4 reset Rob Herring

Linux-ARM-Kernel Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-arm-kernel/0 linux-arm-kernel/git/0.git
	git clone --mirror https://lore.kernel.org/linux-arm-kernel/1 linux-arm-kernel/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-arm-kernel linux-arm-kernel/ https://lore.kernel.org/linux-arm-kernel \
		linux-arm-kernel@lists.infradead.org
	public-inbox-index linux-arm-kernel

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.infradead.lists.linux-arm-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git