devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] dt-bindings: imx-ocotp: add compatible string for i.MX7D/S
@ 2017-03-01  6:40 Peng Fan
  2017-03-01  6:40 ` [PATCH 2/3] arm: dts: imx7s: enable ocotp Peng Fan
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Peng Fan @ 2017-03-01  6:40 UTC (permalink / raw)
  To: shawnguo, srinivas.kandagatla, maxime.ripard
  Cc: devicetree, linux-kernel, linux-arm-kernel, van.freenix, Peng Fan,
	Rob Herring, Mark Rutland

Add compatible string for i.MX7D/S

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
---
 Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
index 966a72e..bbde2e4 100644
--- a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
+++ b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
@@ -9,6 +9,7 @@ Required properties:
 	"fsl,imx6sl-ocotp" (i.MX6SL), or
 	"fsl,imx6sx-ocotp" (i.MX6SX),
 	"fsl,imx6ul-ocotp" (i.MX6UL),
+	"fsl,imx7d-ocotp" (i.MX7D/S),
 	followed by "syscon".
 - reg: Should contain the register base and length.
 - clocks: Should contain a phandle pointing to the gated peripheral clock.
-- 
2.6.6

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

* [PATCH 2/3] arm: dts: imx7s: enable ocotp
  2017-03-01  6:40 [PATCH 1/3] dt-bindings: imx-ocotp: add compatible string for i.MX7D/S Peng Fan
@ 2017-03-01  6:40 ` Peng Fan
  2017-03-13 12:47   ` Shawn Guo
       [not found] ` <1488350454-23860-1-git-send-email-peng.fan-3arQi8VN3Tc@public.gmane.org>
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 7+ messages in thread
From: Peng Fan @ 2017-03-01  6:40 UTC (permalink / raw)
  To: shawnguo, srinivas.kandagatla, maxime.ripard
  Cc: devicetree, linux-kernel, linux-arm-kernel, van.freenix, Peng Fan,
	Sascha Hauer, Fabio Estevam, Rob Herring, Mark Rutland

Enable ocotp for i.mx7D/S.
Correct the clock entry and compatible string.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
---
 arch/arm/boot/dts/imx7s.dtsi | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi
index 5d3a43b..a7d48e7 100644
--- a/arch/arm/boot/dts/imx7s.dtsi
+++ b/arch/arm/boot/dts/imx7s.dtsi
@@ -493,10 +493,9 @@
 			};
 
 			ocotp: ocotp-ctrl@30350000 {
-				compatible = "syscon";
+				compatible = "fsl,imx7d-ocotp", "syscon";
 				reg = <0x30350000 0x10000>;
-				clocks = <&clks IMX7D_CLK_DUMMY>;
-				status = "disabled";
+				clocks = <&clks IMX7D_OCOTP_CLK>;
 			};
 
 			anatop: anatop@30360000 {
-- 
2.6.6

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

* [PATCH 3/3] nvmem: octop: Add i.MX7D support
       [not found] ` <1488350454-23860-1-git-send-email-peng.fan-3arQi8VN3Tc@public.gmane.org>
@ 2017-03-01  6:40   ` Peng Fan
  0 siblings, 0 replies; 7+ messages in thread
From: Peng Fan @ 2017-03-01  6:40 UTC (permalink / raw)
  To: shawnguo-DgEjT+Ai2ygdnm+yROfE0A,
	srinivas.kandagatla-QSEj5FYQhm4dnm+yROfE0A,
	maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	van.freenix-Re5JQEeQqe8AvxtiuMwx3w, Peng Fan

Add i.MX7D support.
There is 16 banks, each bank 4 words.

Signed-off-by: Peng Fan <peng.fan-3arQi8VN3Tc@public.gmane.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
Cc: Shawn Guo <shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
---
 drivers/nvmem/imx-ocotp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c
index b8ca1e6..41550ba 100644
--- a/drivers/nvmem/imx-ocotp.c
+++ b/drivers/nvmem/imx-ocotp.c
@@ -74,6 +74,7 @@ static const struct of_device_id imx_ocotp_dt_ids[] = {
 	{ .compatible = "fsl,imx6sl-ocotp", (void *)64 },
 	{ .compatible = "fsl,imx6sx-ocotp", (void *)128 },
 	{ .compatible = "fsl,imx6ul-ocotp", (void *)128 },
+	{ .compatible = "fsl,imx7d-ocotp", (void *)64 },
 	{ },
 };
 MODULE_DEVICE_TABLE(of, imx_ocotp_dt_ids);
-- 
2.6.6

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH 1/3] dt-bindings: imx-ocotp: add compatible string for i.MX7D/S
  2017-03-01  6:40 [PATCH 1/3] dt-bindings: imx-ocotp: add compatible string for i.MX7D/S Peng Fan
  2017-03-01  6:40 ` [PATCH 2/3] arm: dts: imx7s: enable ocotp Peng Fan
       [not found] ` <1488350454-23860-1-git-send-email-peng.fan-3arQi8VN3Tc@public.gmane.org>
@ 2017-03-03  6:21 ` Rob Herring
  2017-03-03 10:12 ` Srinivas Kandagatla
  3 siblings, 0 replies; 7+ messages in thread
From: Rob Herring @ 2017-03-03  6:21 UTC (permalink / raw)
  To: Peng Fan
  Cc: Mark Rutland, devicetree, linux-kernel, srinivas.kandagatla,
	van.freenix, maxime.ripard, shawnguo, linux-arm-kernel

On Wed, Mar 01, 2017 at 02:40:52PM +0800, Peng Fan wrote:
> Add compatible string for i.MX7D/S
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> Cc: Shawn Guo <shawnguo@kernel.org>
> Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Mark Rutland <mark.rutland@arm.com>
> ---
>  Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 1 +
>  1 file changed, 1 insertion(+)

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

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

* Re: [PATCH 1/3] dt-bindings: imx-ocotp: add compatible string for i.MX7D/S
  2017-03-01  6:40 [PATCH 1/3] dt-bindings: imx-ocotp: add compatible string for i.MX7D/S Peng Fan
                   ` (2 preceding siblings ...)
  2017-03-03  6:21 ` [PATCH 1/3] dt-bindings: imx-ocotp: add compatible string for i.MX7D/S Rob Herring
@ 2017-03-03 10:12 ` Srinivas Kandagatla
       [not found]   ` <a3f9ebba-6dfe-c7a3-fabf-1f5ac69ecafc-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
  3 siblings, 1 reply; 7+ messages in thread
From: Srinivas Kandagatla @ 2017-03-03 10:12 UTC (permalink / raw)
  To: Peng Fan, shawnguo, maxime.ripard
  Cc: Mark Rutland, devicetree, linux-kernel, Rob Herring, van.freenix,
	linux-arm-kernel



On 01/03/17 06:40, Peng Fan wrote:
> Add compatible string for i.MX7D/S
>
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> Cc: Shawn Guo <shawnguo@kernel.org>
> Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Mark Rutland <mark.rutland@arm.com>
> ---
>  Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 1 +
>  1 file changed, 1 insertion(+)
>
Thanks for the patch, I will queue both nvmem driver changes and 
bindings changes, via Greg's chars-misc tree.
But the DT changes have to go via arm-soc tree.

Thanks,
srini
> diff --git a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
> index 966a72e..bbde2e4 100644
> --- a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
> +++ b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
> @@ -9,6 +9,7 @@ Required properties:
>  	"fsl,imx6sl-ocotp" (i.MX6SL), or
>  	"fsl,imx6sx-ocotp" (i.MX6SX),
>  	"fsl,imx6ul-ocotp" (i.MX6UL),
> +	"fsl,imx7d-ocotp" (i.MX7D/S),
>  	followed by "syscon".
>  - reg: Should contain the register base and length.
>  - clocks: Should contain a phandle pointing to the gated peripheral clock.
>

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

* RE: [PATCH 1/3] dt-bindings: imx-ocotp: add compatible string for i.MX7D/S
       [not found]   ` <a3f9ebba-6dfe-c7a3-fabf-1f5ac69ecafc-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
@ 2017-03-13  3:14     ` Peng Fan
  0 siblings, 0 replies; 7+ messages in thread
From: Peng Fan @ 2017-03-13  3:14 UTC (permalink / raw)
  To: Srinivas Kandagatla,
	shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	van.freenix-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, Rob Herring,
	Mark Rutland



> -----Original Message-----
> From: Srinivas Kandagatla [mailto:srinivas.kandagatla-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org]
> Sent: Friday, March 03, 2017 6:12 PM
> To: Peng Fan <peng.fan-3arQi8VN3Tc@public.gmane.org>; shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org;
> maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org
> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; linux-arm-
> kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org; van.freenix-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; Rob Herring
> <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>; Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
> Subject: Re: [PATCH 1/3] dt-bindings: imx-ocotp: add compatible string for
> i.MX7D/S
> 
> 
> 
> On 01/03/17 06:40, Peng Fan wrote:
> > Add compatible string for i.MX7D/S
> >
> > Signed-off-by: Peng Fan <peng.fan-3arQi8VN3Tc@public.gmane.org>
> > Cc: Shawn Guo <shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> > Cc: Srinivas Kandagatla <srinivas.kandagatla-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> > Cc: Maxime Ripard <maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
> > Cc: Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> > Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
> > ---
> >  Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 1 +
> >  1 file changed, 1 insertion(+)
> >
> Thanks for the patch, I will queue both nvmem driver changes and bindings
> changes, via Greg's chars-misc tree.
> But the DT changes have to go via arm-soc tree.

Thanks, Srini.

Shawn may take the DT changes, if it is ok.

Thanks,
Peng.
> 
> Thanks,
> srini
> > diff --git a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
> > b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
> > index 966a72e..bbde2e4 100644
> > --- a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
> > +++ b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt
> > @@ -9,6 +9,7 @@ Required properties:
> >  	"fsl,imx6sl-ocotp" (i.MX6SL), or
> >  	"fsl,imx6sx-ocotp" (i.MX6SX),
> >  	"fsl,imx6ul-ocotp" (i.MX6UL),
> > +	"fsl,imx7d-ocotp" (i.MX7D/S),
> >  	followed by "syscon".
> >  - reg: Should contain the register base and length.
> >  - clocks: Should contain a phandle pointing to the gated peripheral clock.
> >
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH 2/3] arm: dts: imx7s: enable ocotp
  2017-03-01  6:40 ` [PATCH 2/3] arm: dts: imx7s: enable ocotp Peng Fan
@ 2017-03-13 12:47   ` Shawn Guo
  0 siblings, 0 replies; 7+ messages in thread
From: Shawn Guo @ 2017-03-13 12:47 UTC (permalink / raw)
  To: Peng Fan
  Cc: srinivas.kandagatla, maxime.ripard, Mark Rutland, devicetree,
	linux-kernel, Fabio Estevam, Rob Herring, Sascha Hauer,
	van.freenix, linux-arm-kernel

On Wed, Mar 01, 2017 at 02:40:53PM +0800, Peng Fan wrote:
> Enable ocotp for i.mx7D/S.
> Correct the clock entry and compatible string.
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> Cc: Shawn Guo <shawnguo@kernel.org>
> Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> Cc: Sascha Hauer <kernel@pengutronix.de>
> Cc: Fabio Estevam <fabio.estevam@nxp.com>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Mark Rutland <mark.rutland@arm.com>

Applied, thanks.

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

end of thread, other threads:[~2017-03-13 12:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-01  6:40 [PATCH 1/3] dt-bindings: imx-ocotp: add compatible string for i.MX7D/S Peng Fan
2017-03-01  6:40 ` [PATCH 2/3] arm: dts: imx7s: enable ocotp Peng Fan
2017-03-13 12:47   ` Shawn Guo
     [not found] ` <1488350454-23860-1-git-send-email-peng.fan-3arQi8VN3Tc@public.gmane.org>
2017-03-01  6:40   ` [PATCH 3/3] nvmem: octop: Add i.MX7D support Peng Fan
2017-03-03  6:21 ` [PATCH 1/3] dt-bindings: imx-ocotp: add compatible string for i.MX7D/S Rob Herring
2017-03-03 10:12 ` Srinivas Kandagatla
     [not found]   ` <a3f9ebba-6dfe-c7a3-fabf-1f5ac69ecafc-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2017-03-13  3:14     ` Peng Fan

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).