linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] ARM: dts: vfxxx: Add syscon compatible with ocotp
@ 2020-08-20  4:10 Chris Healy
  2020-08-20 11:01 ` Fabio Estevam
  2020-08-21 13:20 ` Stefan Agner
  0 siblings, 2 replies; 5+ messages in thread
From: Chris Healy @ 2020-08-20  4:10 UTC (permalink / raw)
  To: shawnguo, s.hauer, kernel, stefan, robh+dt, andrew.smirnov,
	linux-arm-kernel, devicetree, linux-kernel, festevam, stable
  Cc: Chris Healy

From: Chris Healy <cphealy@gmail.com>

Add syscon compatibility with Vybrid ocotp node. This is required to
access the UID.

Fixes: fa8d20c8dbb77 ("ARM: dts: vfxxx: Add node corresponding to OCOTP")
Cc: stable@vger.kernel.org
Signed-off-by: Chris Healy <cphealy@gmail.com>
---
Changes in v2:
 - Add Fixes line to commit message

 arch/arm/boot/dts/vfxxx.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi
index 0fe03aa0367f..2259d11af721 100644
--- a/arch/arm/boot/dts/vfxxx.dtsi
+++ b/arch/arm/boot/dts/vfxxx.dtsi
@@ -495,7 +495,7 @@ edma1: dma-controller@40098000 {
 			};
 
 			ocotp: ocotp@400a5000 {
-				compatible = "fsl,vf610-ocotp";
+				compatible = "fsl,vf610-ocotp", "syscon";
 				reg = <0x400a5000 0x1000>;
 				clocks = <&clks VF610_CLK_OCOTP>;
 			};
-- 
2.26.2


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

* Re: [PATCH v2] ARM: dts: vfxxx: Add syscon compatible with ocotp
  2020-08-20  4:10 [PATCH v2] ARM: dts: vfxxx: Add syscon compatible with ocotp Chris Healy
@ 2020-08-20 11:01 ` Fabio Estevam
  2020-08-21 13:20 ` Stefan Agner
  1 sibling, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2020-08-20 11:01 UTC (permalink / raw)
  To: Chris Healy
  Cc: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Andrey Smirnov, Sascha Hauer, linux-kernel, Stefan Agner,
	Rob Herring, stable, Sascha Hauer, Shawn Guo,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE

Hi Chris,

On Thu, Aug 20, 2020 at 1:11 AM Chris Healy <cphealy@gmail.com> wrote:
>
> From: Chris Healy <cphealy@gmail.com>
>
> Add syscon compatibility with Vybrid ocotp node. This is required to
> access the UID.
>
> Fixes: fa8d20c8dbb77 ("ARM: dts: vfxxx: Add node corresponding to OCOTP")
> Cc: stable@vger.kernel.org
> Signed-off-by: Chris Healy <cphealy@gmail.com>

Reviewed-by: Fabio Estevam <festevam@gmail.com>

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

* Re: [PATCH v2] ARM: dts: vfxxx: Add syscon compatible with ocotp
  2020-08-20  4:10 [PATCH v2] ARM: dts: vfxxx: Add syscon compatible with ocotp Chris Healy
  2020-08-20 11:01 ` Fabio Estevam
@ 2020-08-21 13:20 ` Stefan Agner
  2020-08-21 14:13   ` Chris Healy
  1 sibling, 1 reply; 5+ messages in thread
From: Stefan Agner @ 2020-08-21 13:20 UTC (permalink / raw)
  To: Chris Healy
  Cc: devicetree, andrew.smirnov, festevam, s.hauer, linux-kernel,
	stable, robh+dt, kernel, shawnguo, linux-arm-kernel

On 2020-08-20 06:10, Chris Healy wrote:
> From: Chris Healy <cphealy@gmail.com>
> 
> Add syscon compatibility with Vybrid ocotp node. This is required to
> access the UID.

Hm, it seems today the SoC driver uses the specific compatible. It also
should expose the UID as soc_id, see drivers/soc/imx/soc-imx.c.

Maybe it does make sense exposing it as syscon, but then we should
probably also adjust
Documentation/devicetree/bindings/nvmem/vf610-ocotp.txt.

--
Stefan

> 
> Fixes: fa8d20c8dbb77 ("ARM: dts: vfxxx: Add node corresponding to OCOTP")
> Cc: stable@vger.kernel.org
> Signed-off-by: Chris Healy <cphealy@gmail.com>
> ---
> Changes in v2:
>  - Add Fixes line to commit message
> 
>  arch/arm/boot/dts/vfxxx.dtsi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi
> index 0fe03aa0367f..2259d11af721 100644
> --- a/arch/arm/boot/dts/vfxxx.dtsi
> +++ b/arch/arm/boot/dts/vfxxx.dtsi
> @@ -495,7 +495,7 @@ edma1: dma-controller@40098000 {
>  			};
>  
>  			ocotp: ocotp@400a5000 {
> -				compatible = "fsl,vf610-ocotp";
> +				compatible = "fsl,vf610-ocotp", "syscon";
>  				reg = <0x400a5000 0x1000>;
>  				clocks = <&clks VF610_CLK_OCOTP>;
>  			};

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

* Re: [PATCH v2] ARM: dts: vfxxx: Add syscon compatible with ocotp
  2020-08-21 13:20 ` Stefan Agner
@ 2020-08-21 14:13   ` Chris Healy
  2020-08-21 14:24     ` Stefan Agner
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Healy @ 2020-08-21 14:13 UTC (permalink / raw)
  To: Stefan Agner
  Cc: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Andrey Smirnov, Fabio Estevam, Sascha Hauer, linux-kernel,
	stable, Rob Herring, Pengutronix Kernel Team, Shawn Guo,
	linux ARM

On Fri, Aug 21, 2020 at 6:21 AM Stefan Agner <stefan@agner.ch> wrote:
>
> On 2020-08-20 06:10, Chris Healy wrote:
> > From: Chris Healy <cphealy@gmail.com>
> >
> > Add syscon compatibility with Vybrid ocotp node. This is required to
> > access the UID.
>
> Hm, it seems today the SoC driver uses the specific compatible. It also
> should expose the UID as soc_id, see drivers/soc/imx/soc-imx.c.
>
Yes, until I added syscon, the soc_id was empty and I would get the
following line in dmesg:  "failed to find vf610-ocotp regmap!

> Maybe it does make sense exposing it as syscon, but then we should
> probably also adjust
> Documentation/devicetree/bindings/nvmem/vf610-ocotp.txt.
>
Makes sense.  I will update vf610-ocotp.txt in v3.  Tnx

> --
> Stefan
>
> >
> > Fixes: fa8d20c8dbb77 ("ARM: dts: vfxxx: Add node corresponding to OCOTP")
> > Cc: stable@vger.kernel.org
> > Signed-off-by: Chris Healy <cphealy@gmail.com>
> > ---
> > Changes in v2:
> >  - Add Fixes line to commit message
> >
> >  arch/arm/boot/dts/vfxxx.dtsi | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi
> > index 0fe03aa0367f..2259d11af721 100644
> > --- a/arch/arm/boot/dts/vfxxx.dtsi
> > +++ b/arch/arm/boot/dts/vfxxx.dtsi
> > @@ -495,7 +495,7 @@ edma1: dma-controller@40098000 {
> >                       };
> >
> >                       ocotp: ocotp@400a5000 {
> > -                             compatible = "fsl,vf610-ocotp";
> > +                             compatible = "fsl,vf610-ocotp", "syscon";
> >                               reg = <0x400a5000 0x1000>;
> >                               clocks = <&clks VF610_CLK_OCOTP>;
> >                       };

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

* Re: [PATCH v2] ARM: dts: vfxxx: Add syscon compatible with ocotp
  2020-08-21 14:13   ` Chris Healy
@ 2020-08-21 14:24     ` Stefan Agner
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Agner @ 2020-08-21 14:24 UTC (permalink / raw)
  To: Chris Healy
  Cc: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Andrey Smirnov, Fabio Estevam, Sascha Hauer, linux-kernel,
	stable, Rob Herring, Pengutronix Kernel Team, Shawn Guo,
	linux ARM

On 2020-08-21 16:13, Chris Healy wrote:
> On Fri, Aug 21, 2020 at 6:21 AM Stefan Agner <stefan@agner.ch> wrote:
>>
>> On 2020-08-20 06:10, Chris Healy wrote:
>> > From: Chris Healy <cphealy@gmail.com>
>> >
>> > Add syscon compatibility with Vybrid ocotp node. This is required to
>> > access the UID.
>>
>> Hm, it seems today the SoC driver uses the specific compatible. It also
>> should expose the UID as soc_id, see drivers/soc/imx/soc-imx.c.
>>
> Yes, until I added syscon, the soc_id was empty and I would get the
> following line in dmesg:  "failed to find vf610-ocotp regmap!
> 

Ah I see, it looks up syscon, so that requires syscon to be in
compatible.

>> Maybe it does make sense exposing it as syscon, but then we should
>> probably also adjust
>> Documentation/devicetree/bindings/nvmem/vf610-ocotp.txt.
>>
> Makes sense.  I will update vf610-ocotp.txt in v3.  Tnx
> 

Ok, thx. With that you can add Reviewed-by: Stefan Agner
<stefan@agner.ch> as well.

--
Stefan

>> --
>> Stefan
>>
>> >
>> > Fixes: fa8d20c8dbb77 ("ARM: dts: vfxxx: Add node corresponding to OCOTP")
>> > Cc: stable@vger.kernel.org
>> > Signed-off-by: Chris Healy <cphealy@gmail.com>
>> > ---
>> > Changes in v2:
>> >  - Add Fixes line to commit message
>> >
>> >  arch/arm/boot/dts/vfxxx.dtsi | 2 +-
>> >  1 file changed, 1 insertion(+), 1 deletion(-)
>> >
>> > diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi
>> > index 0fe03aa0367f..2259d11af721 100644
>> > --- a/arch/arm/boot/dts/vfxxx.dtsi
>> > +++ b/arch/arm/boot/dts/vfxxx.dtsi
>> > @@ -495,7 +495,7 @@ edma1: dma-controller@40098000 {
>> >                       };
>> >
>> >                       ocotp: ocotp@400a5000 {
>> > -                             compatible = "fsl,vf610-ocotp";
>> > +                             compatible = "fsl,vf610-ocotp", "syscon";
>> >                               reg = <0x400a5000 0x1000>;
>> >                               clocks = <&clks VF610_CLK_OCOTP>;
>> >                       };

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

end of thread, other threads:[~2020-08-21 14:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-20  4:10 [PATCH v2] ARM: dts: vfxxx: Add syscon compatible with ocotp Chris Healy
2020-08-20 11:01 ` Fabio Estevam
2020-08-21 13:20 ` Stefan Agner
2020-08-21 14:13   ` Chris Healy
2020-08-21 14:24     ` Stefan Agner

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