Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH nvmem v2 0/2] nvmem: imx: add i.MX8QM platform support
@ 2019-08-07  4:03 fugang.duan
  2019-08-07  4:03 ` [PATCH nvmem v2 1/2] " fugang.duan
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: fugang.duan @ 2019-08-07  4:03 UTC (permalink / raw)
  To: srinivas.kandagatla
  Cc: mark.rutland, robh, festevam, fugang.duan, devicetree, gregkh,
	s.hauer, linux-kernel, kernel, shawnguo, linux-arm-kernel

From: Fugang Duan <fugang.duan@nxp.com>

The patch set is to add i.MX8QM platform support for i.MX8 SCU
OCOTP driver due to i.MX8QM efuse table has some difference with
i.MX8QXP platform.

V2:
- Add dt-bindings for the new compatible string support.

Fugang Duan (2):
  nvmem: imx: add i.MX8QM platform support
  dt-bindings: fsl: scu: add new compatible string for ocotp

 Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt | 4 +++-
 drivers/nvmem/imx-ocotp-scu.c                               | 7 +++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

-- 
2.7.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 nvmem v2 1/2] nvmem: imx: add i.MX8QM platform support
  2019-08-07  4:03 [PATCH nvmem v2 0/2] nvmem: imx: add i.MX8QM platform support fugang.duan
@ 2019-08-07  4:03 ` " fugang.duan
  2019-08-07  4:03 ` [PATCH nvmem v2 2/2] dt-bindings: fsl: scu: add new compatible string for ocotp fugang.duan
  2019-08-18  9:34 ` [PATCH nvmem v2 0/2] nvmem: imx: add i.MX8QM platform support Srinivas Kandagatla
  2 siblings, 0 replies; 4+ messages in thread
From: fugang.duan @ 2019-08-07  4:03 UTC (permalink / raw)
  To: srinivas.kandagatla
  Cc: mark.rutland, robh, festevam, fugang.duan, devicetree, gregkh,
	s.hauer, linux-kernel, kernel, shawnguo, linux-arm-kernel

From: Fugang Duan <fugang.duan@nxp.com>

i.MX8QM efuse table has some difference with i.MX8QXP platform,
so add i.MX8QM platform support.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
---
 drivers/nvmem/imx-ocotp-scu.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/nvmem/imx-ocotp-scu.c b/drivers/nvmem/imx-ocotp-scu.c
index be2f5f0..0d78ab4 100644
--- a/drivers/nvmem/imx-ocotp-scu.c
+++ b/drivers/nvmem/imx-ocotp-scu.c
@@ -16,6 +16,7 @@
 
 enum ocotp_devtype {
 	IMX8QXP,
+	IMX8QM,
 };
 
 struct ocotp_devtype_data {
@@ -39,6 +40,11 @@ static struct ocotp_devtype_data imx8qxp_data = {
 	.nregs = 800,
 };
 
+static struct ocotp_devtype_data imx8qm_data = {
+	.devtype = IMX8QM,
+	.nregs = 800,
+};
+
 static int imx_sc_misc_otp_fuse_read(struct imx_sc_ipc *ipc, u32 word,
 				     u32 *val)
 {
@@ -118,6 +124,7 @@ static struct nvmem_config imx_scu_ocotp_nvmem_config = {
 
 static const struct of_device_id imx_scu_ocotp_dt_ids[] = {
 	{ .compatible = "fsl,imx8qxp-scu-ocotp", (void *)&imx8qxp_data },
+	{ .compatible = "fsl,imx8qm-scu-ocotp", (void *)&imx8qm_data },
 	{ },
 };
 MODULE_DEVICE_TABLE(of, imx_scu_ocotp_dt_ids);
-- 
2.7.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 nvmem v2 2/2] dt-bindings: fsl: scu: add new compatible string for ocotp
  2019-08-07  4:03 [PATCH nvmem v2 0/2] nvmem: imx: add i.MX8QM platform support fugang.duan
  2019-08-07  4:03 ` [PATCH nvmem v2 1/2] " fugang.duan
@ 2019-08-07  4:03 ` fugang.duan
  2019-08-18  9:34 ` [PATCH nvmem v2 0/2] nvmem: imx: add i.MX8QM platform support Srinivas Kandagatla
  2 siblings, 0 replies; 4+ messages in thread
From: fugang.duan @ 2019-08-07  4:03 UTC (permalink / raw)
  To: srinivas.kandagatla
  Cc: mark.rutland, robh, festevam, fugang.duan, devicetree, gregkh,
	s.hauer, linux-kernel, kernel, shawnguo, linux-arm-kernel

From: Fugang Duan <fugang.duan@nxp.com>

Add new compatible string "fsl,imx8qm-scu-ocotp" into binding
doc  for i.MX8 SCU OCOTP driver.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
---
 Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt
index a575e42..c149fad 100644
--- a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt
+++ b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt
@@ -136,7 +136,9 @@ Required properties:
 OCOTP bindings based on SCU Message Protocol
 ------------------------------------------------------------
 Required properties:
-- compatible:		Should be "fsl,imx8qxp-scu-ocotp"
+- compatible:		Should be one of:
+			"fsl,imx8qm-scu-ocotp",
+			"fsl,imx8qxp-scu-ocotp".
 - #address-cells:	Must be 1. Contains byte index
 - #size-cells:		Must be 1. Contains byte length
 
-- 
2.7.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 nvmem v2 0/2] nvmem: imx: add i.MX8QM platform support
  2019-08-07  4:03 [PATCH nvmem v2 0/2] nvmem: imx: add i.MX8QM platform support fugang.duan
  2019-08-07  4:03 ` [PATCH nvmem v2 1/2] " fugang.duan
  2019-08-07  4:03 ` [PATCH nvmem v2 2/2] dt-bindings: fsl: scu: add new compatible string for ocotp fugang.duan
@ 2019-08-18  9:34 ` Srinivas Kandagatla
  2 siblings, 0 replies; 4+ messages in thread
From: Srinivas Kandagatla @ 2019-08-18  9:34 UTC (permalink / raw)
  To: fugang.duan
  Cc: mark.rutland, robh, festevam, devicetree, gregkh, s.hauer,
	linux-kernel, kernel, shawnguo, linux-arm-kernel



On 07/08/2019 05:03, fugang.duan@nxp.com wrote:
> From: Fugang Duan <fugang.duan@nxp.com>
> 
> The patch set is to add i.MX8QM platform support for i.MX8 SCU
> OCOTP driver due to i.MX8QM efuse table has some difference with
> i.MX8QXP platform.
> 
> V2:
> - Add dt-bindings for the new compatible string support.
> 
> Fugang Duan (2):
>    nvmem: imx: add i.MX8QM platform support
>    dt-bindings: fsl: scu: add new compatible string for ocotp
> 

Applied thanks.

--srini
>   Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt | 4 +++-
>   drivers/nvmem/imx-ocotp-scu.c                               | 7 +++++++
>   2 files changed, 10 insertions(+), 1 deletion(-)
> 

_______________________________________________
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 --
2019-08-07  4:03 [PATCH nvmem v2 0/2] nvmem: imx: add i.MX8QM platform support fugang.duan
2019-08-07  4:03 ` [PATCH nvmem v2 1/2] " fugang.duan
2019-08-07  4:03 ` [PATCH nvmem v2 2/2] dt-bindings: fsl: scu: add new compatible string for ocotp fugang.duan
2019-08-18  9:34 ` [PATCH nvmem v2 0/2] nvmem: imx: add i.MX8QM platform support Srinivas Kandagatla

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 infradead-linux-arm-kernel@archiver.kernel.org
	public-inbox-index linux-arm-kernel


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