All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/3] dt-bindings: imx-ocotp: Add i.MX8MQ compatible
@ 2019-02-28  7:01 ` Lucas Stach
  0 siblings, 0 replies; 9+ messages in thread
From: Lucas Stach @ 2019-02-28  7:01 UTC (permalink / raw)
  To: Srinivas Kandagatla
  Cc: devicetree, Abel Vesa, Carlo Caione, patchwork-lst,
	NXP Linux Team, kernel, linux-arm-kernel

Add compatible for i.MX8MQ and add i.MX7D/S, i.MX7ULP and i.M8MQ
to the description.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
---
v2:
- rebased on linux-next
- collected reviewed
---
 Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
index 7a999a135e56..68f7d6fdd140 100644
--- a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
+++ b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
@@ -1,7 +1,8 @@
 Freescale i.MX6 On-Chip OTP Controller (OCOTP) device tree bindings
 
 This binding represents the on-chip eFuse OTP controller found on
-i.MX6Q/D, i.MX6DL/S, i.MX6SL, i.MX6SX, i.MX6UL, i.MX6ULL/ULZ and i.MX6SLL SoCs.
+i.MX6Q/D, i.MX6DL/S, i.MX6SL, i.MX6SX, i.MX6UL, i.MX6ULL/ULZ, i.MX6SLL,
+i.MX7D/S, i.MX7ULP and i.MX8MQ SoCs.
 
 Required properties:
 - compatible: should be one of
@@ -13,6 +14,7 @@ Required properties:
 	"fsl,imx7d-ocotp" (i.MX7D/S),
 	"fsl,imx6sll-ocotp" (i.MX6SLL),
 	"fsl,imx7ulp-ocotp" (i.MX7ULP),
+	"fsl,imx8mq-ocotp" (i.MX8MQ),
 	followed by "syscon".
 - #address-cells : Should be 1
 - #size-cells : Should be 1
-- 
2.20.1

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

* [PATCH v2 1/3] dt-bindings: imx-ocotp: Add i.MX8MQ compatible
@ 2019-02-28  7:01 ` Lucas Stach
  0 siblings, 0 replies; 9+ messages in thread
From: Lucas Stach @ 2019-02-28  7:01 UTC (permalink / raw)
  To: Srinivas Kandagatla
  Cc: devicetree, Abel Vesa, Carlo Caione, patchwork-lst,
	NXP Linux Team, kernel, linux-arm-kernel

Add compatible for i.MX8MQ and add i.MX7D/S, i.MX7ULP and i.M8MQ
to the description.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
---
v2:
- rebased on linux-next
- collected reviewed
---
 Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
index 7a999a135e56..68f7d6fdd140 100644
--- a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
+++ b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
@@ -1,7 +1,8 @@
 Freescale i.MX6 On-Chip OTP Controller (OCOTP) device tree bindings
 
 This binding represents the on-chip eFuse OTP controller found on
-i.MX6Q/D, i.MX6DL/S, i.MX6SL, i.MX6SX, i.MX6UL, i.MX6ULL/ULZ and i.MX6SLL SoCs.
+i.MX6Q/D, i.MX6DL/S, i.MX6SL, i.MX6SX, i.MX6UL, i.MX6ULL/ULZ, i.MX6SLL,
+i.MX7D/S, i.MX7ULP and i.MX8MQ SoCs.
 
 Required properties:
 - compatible: should be one of
@@ -13,6 +14,7 @@ Required properties:
 	"fsl,imx7d-ocotp" (i.MX7D/S),
 	"fsl,imx6sll-ocotp" (i.MX6SLL),
 	"fsl,imx7ulp-ocotp" (i.MX7ULP),
+	"fsl,imx8mq-ocotp" (i.MX8MQ),
 	followed by "syscon".
 - #address-cells : Should be 1
 - #size-cells : Should be 1
-- 
2.20.1


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

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

* [PATCH v2 2/3] nvmem: imx-ocotp: add support for imx8mq
  2019-02-28  7:01 ` Lucas Stach
@ 2019-02-28  7:01   ` Lucas Stach
  -1 siblings, 0 replies; 9+ messages in thread
From: Lucas Stach @ 2019-02-28  7:01 UTC (permalink / raw)
  To: Srinivas Kandagatla
  Cc: devicetree, Abel Vesa, Carlo Caione, patchwork-lst,
	NXP Linux Team, kernel, linux-arm-kernel

The i.MX8MQ uses the same OCOTP block as the i.MX7D, but with
fourfold increase in fuse banks.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
---
v2:
- rebased on linux-next
- collected reviewed
---
 drivers/nvmem/imx-ocotp.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c
index 08a9b1ef8ae4..e0b22b6c045b 100644
--- a/drivers/nvmem/imx-ocotp.c
+++ b/drivers/nvmem/imx-ocotp.c
@@ -444,6 +444,12 @@ static const struct ocotp_params imx7ulp_params = {
 	.bank_address_words = 0,
 };
 
+static const struct ocotp_params imx8mq_params = {
+	.nregs = 256,
+	.bank_address_words = 4,
+	.set_timing = imx_ocotp_set_imx7_timing,
+};
+
 static const struct of_device_id imx_ocotp_dt_ids[] = {
 	{ .compatible = "fsl,imx6q-ocotp",  .data = &imx6q_params },
 	{ .compatible = "fsl,imx6sl-ocotp", .data = &imx6sl_params },
@@ -453,6 +459,7 @@ static const struct of_device_id imx_ocotp_dt_ids[] = {
 	{ .compatible = "fsl,imx7d-ocotp",  .data = &imx7d_params },
 	{ .compatible = "fsl,imx6sll-ocotp", .data = &imx6sll_params },
 	{ .compatible = "fsl,imx7ulp-ocotp", .data = &imx7ulp_params },
+	{ .compatible = "fsl,imx8mq-ocotp", .data = &imx8mq_params },
 	{ },
 };
 MODULE_DEVICE_TABLE(of, imx_ocotp_dt_ids);
-- 
2.20.1

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

* [PATCH v2 2/3] nvmem: imx-ocotp: add support for imx8mq
@ 2019-02-28  7:01   ` Lucas Stach
  0 siblings, 0 replies; 9+ messages in thread
From: Lucas Stach @ 2019-02-28  7:01 UTC (permalink / raw)
  To: Srinivas Kandagatla
  Cc: devicetree, Abel Vesa, Carlo Caione, patchwork-lst,
	NXP Linux Team, kernel, linux-arm-kernel

The i.MX8MQ uses the same OCOTP block as the i.MX7D, but with
fourfold increase in fuse banks.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
---
v2:
- rebased on linux-next
- collected reviewed
---
 drivers/nvmem/imx-ocotp.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c
index 08a9b1ef8ae4..e0b22b6c045b 100644
--- a/drivers/nvmem/imx-ocotp.c
+++ b/drivers/nvmem/imx-ocotp.c
@@ -444,6 +444,12 @@ static const struct ocotp_params imx7ulp_params = {
 	.bank_address_words = 0,
 };
 
+static const struct ocotp_params imx8mq_params = {
+	.nregs = 256,
+	.bank_address_words = 4,
+	.set_timing = imx_ocotp_set_imx7_timing,
+};
+
 static const struct of_device_id imx_ocotp_dt_ids[] = {
 	{ .compatible = "fsl,imx6q-ocotp",  .data = &imx6q_params },
 	{ .compatible = "fsl,imx6sl-ocotp", .data = &imx6sl_params },
@@ -453,6 +459,7 @@ static const struct of_device_id imx_ocotp_dt_ids[] = {
 	{ .compatible = "fsl,imx7d-ocotp",  .data = &imx7d_params },
 	{ .compatible = "fsl,imx6sll-ocotp", .data = &imx6sll_params },
 	{ .compatible = "fsl,imx7ulp-ocotp", .data = &imx7ulp_params },
+	{ .compatible = "fsl,imx8mq-ocotp", .data = &imx8mq_params },
 	{ },
 };
 MODULE_DEVICE_TABLE(of, imx_ocotp_dt_ids);
-- 
2.20.1


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

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

* [PATCH v2 3/3] nvmem: imx-ocotp: broaden Kconfig dependency
  2019-02-28  7:01 ` Lucas Stach
@ 2019-02-28  7:01   ` Lucas Stach
  -1 siblings, 0 replies; 9+ messages in thread
From: Lucas Stach @ 2019-02-28  7:01 UTC (permalink / raw)
  To: Srinivas Kandagatla
  Cc: devicetree, Abel Vesa, Carlo Caione, patchwork-lst,
	NXP Linux Team, kernel, linux-arm-kernel

The i.MX OCOTP controller is used in numerous Freescale/NXP
SoCs from the MXC family, so the strict dependency on the
i.MX6 SoC is too narrow. Broaden it to cover all the MXC
familiy members.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
---
v2:
- rebased on linux-next
- collected reviewed-by
---
 drivers/nvmem/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig
index 530d570724c9..9e1d83643e9c 100644
--- a/drivers/nvmem/Kconfig
+++ b/drivers/nvmem/Kconfig
@@ -25,8 +25,8 @@ config NVMEM_IMX_IIM
 	  will be called nvmem-imx-iim.
 
 config NVMEM_IMX_OCOTP
-	tristate "i.MX6 On-Chip OTP Controller support"
-	depends on SOC_IMX6 || SOC_IMX7D || COMPILE_TEST
+	tristate "i.MX 6/7/8 On-Chip OTP Controller support"
+	depends on ARCH_MXC || COMPILE_TEST
 	depends on HAS_IOMEM
 	help
 	  This is a driver for the On-Chip OTP Controller (OCOTP) available on
-- 
2.20.1

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

* [PATCH v2 3/3] nvmem: imx-ocotp: broaden Kconfig dependency
@ 2019-02-28  7:01   ` Lucas Stach
  0 siblings, 0 replies; 9+ messages in thread
From: Lucas Stach @ 2019-02-28  7:01 UTC (permalink / raw)
  To: Srinivas Kandagatla
  Cc: devicetree, Abel Vesa, Carlo Caione, patchwork-lst,
	NXP Linux Team, kernel, linux-arm-kernel

The i.MX OCOTP controller is used in numerous Freescale/NXP
SoCs from the MXC family, so the strict dependency on the
i.MX6 SoC is too narrow. Broaden it to cover all the MXC
familiy members.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
---
v2:
- rebased on linux-next
- collected reviewed-by
---
 drivers/nvmem/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig
index 530d570724c9..9e1d83643e9c 100644
--- a/drivers/nvmem/Kconfig
+++ b/drivers/nvmem/Kconfig
@@ -25,8 +25,8 @@ config NVMEM_IMX_IIM
 	  will be called nvmem-imx-iim.
 
 config NVMEM_IMX_OCOTP
-	tristate "i.MX6 On-Chip OTP Controller support"
-	depends on SOC_IMX6 || SOC_IMX7D || COMPILE_TEST
+	tristate "i.MX 6/7/8 On-Chip OTP Controller support"
+	depends on ARCH_MXC || COMPILE_TEST
 	depends on HAS_IOMEM
 	help
 	  This is a driver for the On-Chip OTP Controller (OCOTP) available on
-- 
2.20.1


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

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

* Re: [PATCH v2 1/3] dt-bindings: imx-ocotp: Add i.MX8MQ compatible
  2019-02-28  7:01 ` Lucas Stach
                   ` (2 preceding siblings ...)
  (?)
@ 2019-03-20 13:56 ` Lucas Stach
  -1 siblings, 0 replies; 9+ messages in thread
From: Lucas Stach @ 2019-03-20 13:56 UTC (permalink / raw)
  To: Srinivas Kandagatla
  Cc: devicetree, Abel Vesa, Carlo Caione, patchwork-lst,
	NXP Linux Team, kernel, linux-arm-kernel

Hi Srinivas,

friendly ping. This series has been reviewed and acked, so I think it
should be good to go in.

Regards,
Lucas

Am Donnerstag, den 28.02.2019, 08:01 +0100 schrieb Lucas Stach:
> Add compatible for i.MX8MQ and add i.MX7D/S, i.MX7ULP and i.M8MQ
> to the description.
> 
> > Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> > Reviewed-by: Rob Herring <robh@kernel.org>
> > Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
> ---
> v2:
> - rebased on linux-next
> - collected reviewed
> ---
>  Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
> index 7a999a135e56..68f7d6fdd140 100644
> --- a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
> +++ b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
> @@ -1,7 +1,8 @@
>  Freescale i.MX6 On-Chip OTP Controller (OCOTP) device tree bindings
>  
>  This binding represents the on-chip eFuse OTP controller found on
> -i.MX6Q/D, i.MX6DL/S, i.MX6SL, i.MX6SX, i.MX6UL, i.MX6ULL/ULZ and i.MX6SLL SoCs.
> +i.MX6Q/D, i.MX6DL/S, i.MX6SL, i.MX6SX, i.MX6UL, i.MX6ULL/ULZ, i.MX6SLL,
> +i.MX7D/S, i.MX7ULP and i.MX8MQ SoCs.
>  
>  Required properties:
>  - compatible: should be one of
> @@ -13,6 +14,7 @@ Required properties:
> >  	"fsl,imx7d-ocotp" (i.MX7D/S),
> >  	"fsl,imx6sll-ocotp" (i.MX6SLL),
> >  	"fsl,imx7ulp-ocotp" (i.MX7ULP),
> > +	"fsl,imx8mq-ocotp" (i.MX8MQ),
> >  	followed by "syscon".
>  - #address-cells : Should be 1
>  - #size-cells : Should be 1

_______________________________________________
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] 9+ messages in thread

* Re: [PATCH v2 1/3] dt-bindings: imx-ocotp: Add i.MX8MQ compatible
  2019-02-28  7:01 ` Lucas Stach
@ 2019-03-20 14:10   ` Srinivas Kandagatla
  -1 siblings, 0 replies; 9+ messages in thread
From: Srinivas Kandagatla @ 2019-03-20 14:10 UTC (permalink / raw)
  To: Lucas Stach
  Cc: devicetree, Abel Vesa, Carlo Caione, patchwork-lst,
	NXP Linux Team, kernel, linux-arm-kernel



On 28/02/2019 07:01, Lucas Stach wrote:
> Add compatible for i.MX8MQ and add i.MX7D/S, i.MX7ULP and i.M8MQ
> to the description.

Thanks, Applied series to nvmem next.

--srini

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

* Re: [PATCH v2 1/3] dt-bindings: imx-ocotp: Add i.MX8MQ compatible
@ 2019-03-20 14:10   ` Srinivas Kandagatla
  0 siblings, 0 replies; 9+ messages in thread
From: Srinivas Kandagatla @ 2019-03-20 14:10 UTC (permalink / raw)
  To: Lucas Stach
  Cc: devicetree, Abel Vesa, Carlo Caione, patchwork-lst,
	NXP Linux Team, kernel, linux-arm-kernel



On 28/02/2019 07:01, Lucas Stach wrote:
> Add compatible for i.MX8MQ and add i.MX7D/S, i.MX7ULP and i.M8MQ
> to the description.

Thanks, Applied series to nvmem next.

--srini

_______________________________________________
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] 9+ messages in thread

end of thread, other threads:[~2019-03-20 14:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-28  7:01 [PATCH v2 1/3] dt-bindings: imx-ocotp: Add i.MX8MQ compatible Lucas Stach
2019-02-28  7:01 ` Lucas Stach
2019-02-28  7:01 ` [PATCH v2 2/3] nvmem: imx-ocotp: add support for imx8mq Lucas Stach
2019-02-28  7:01   ` Lucas Stach
2019-02-28  7:01 ` [PATCH v2 3/3] nvmem: imx-ocotp: broaden Kconfig dependency Lucas Stach
2019-02-28  7:01   ` Lucas Stach
2019-03-20 13:56 ` [PATCH v2 1/3] dt-bindings: imx-ocotp: Add i.MX8MQ compatible Lucas Stach
2019-03-20 14:10 ` Srinivas Kandagatla
2019-03-20 14:10   ` Srinivas Kandagatla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.