2019-08-07 04:14:16

by Andy Duan

[permalink] [raw]
Subject: [PATCH nvmem v2 0/2] nvmem: imx: add i.MX8QM platform support

From: Fugang Duan <[email protected]>

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


2019-08-07 04:15:52

by Andy Duan

[permalink] [raw]
Subject: [PATCH nvmem v2 1/2] nvmem: imx: add i.MX8QM platform support

From: Fugang Duan <[email protected]>

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

Signed-off-by: Fugang Duan <[email protected]>
---
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

2019-08-07 04:15:51

by Andy Duan

[permalink] [raw]
Subject: [PATCH nvmem v2 2/2] dt-bindings: fsl: scu: add new compatible string for ocotp

From: Fugang Duan <[email protected]>

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

Signed-off-by: Fugang Duan <[email protected]>
---
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

2019-08-18 09:37:05

by Srinivas Kandagatla

[permalink] [raw]
Subject: Re: [PATCH nvmem v2 0/2] nvmem: imx: add i.MX8QM platform support



On 07/08/2019 05:03, [email protected] wrote:
> From: Fugang Duan <[email protected]>
>
> 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(-)
>