linux-kernel.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
  2017-03-01  6:40 ` [PATCH 3/3] nvmem: octop: Add i.MX7D support Peng Fan
                   ` (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
  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-01  6:40 ` 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
  3 siblings, 0 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

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

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Shawn Guo <shawnguo@kernel.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

^ 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
  2017-03-01  6:40 ` [PATCH 3/3] nvmem: octop: Add i.MX7D support Peng Fan
@ 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: shawnguo, srinivas.kandagatla, maxime.ripard, devicetree,
	linux-kernel, linux-arm-kernel, van.freenix, Mark Rutland

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
  2017-03-13  3:14   ` Peng Fan
  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: devicetree, linux-kernel, linux-arm-kernel, van.freenix,
	Rob Herring, Mark Rutland



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
  2017-03-03 10:12 ` Srinivas Kandagatla
@ 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, maxime.ripard
  Cc: devicetree, linux-kernel, linux-arm-kernel, van.freenix,
	Rob Herring, Mark Rutland



> -----Original Message-----
> From: Srinivas Kandagatla [mailto:srinivas.kandagatla@linaro.org]
> Sent: Friday, March 03, 2017 6:12 PM
> To: Peng Fan <peng.fan@nxp.com>; shawnguo@kernel.org;
> maxime.ripard@free-electrons.com
> Cc: devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; linux-arm-
> kernel@lists.infradead.org; van.freenix@gmail.com; Rob Herring
> <robh+dt@kernel.org>; Mark Rutland <mark.rutland@arm.com>
> 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@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.

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

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