linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / 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: robh, mark.rutland, s.hauer, shawnguo, fugang.duan, kernel,
	gregkh, festevam, devicetree, linux-kernel, 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


^ 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: robh, mark.rutland, s.hauer, shawnguo, fugang.duan, kernel,
	gregkh, festevam, devicetree, linux-kernel, 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


^ permalink raw reply related	[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: robh, mark.rutland, s.hauer, shawnguo, fugang.duan, kernel,
	gregkh, festevam, devicetree, linux-kernel, 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


^ permalink raw reply related	[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: robh, mark.rutland, s.hauer, shawnguo, kernel, gregkh, festevam,
	devicetree, linux-kernel, 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(-)
> 

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

end of thread, other threads:[~2019-08-18  9:34 UTC | newest]

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).