linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V3 1/2] dt-bindings: reset: imx7: Add support for i.MX8MM
@ 2019-07-04  9:44 Anson.Huang
  2019-07-04  9:44 ` [PATCH V3 2/2] arm64: dts: imx8mm: Add "fsl,imx8mq-src" as src's fallback compatible Anson.Huang
  2019-07-04 10:16 ` [PATCH V3 1/2] dt-bindings: reset: imx7: Add support for i.MX8MM Philipp Zabel
  0 siblings, 2 replies; 6+ messages in thread
From: Anson.Huang @ 2019-07-04  9:44 UTC (permalink / raw)
  To: p.zabel, robh+dt, mark.rutland, shawnguo, s.hauer, kernel,
	festevam, leonard.crestez, ping.bai, daniel.baluta, devicetree,
	linux-arm-kernel, linux-kernel
  Cc: Linux-imx

From: Anson Huang <Anson.Huang@nxp.com>

i.MX8MM can reuse i.MX8MQ's reset driver, update the compatible
property and related info to support i.MX8MM.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
Changes since V2:
	- Add separate line for i.MX8MM in case anything different later for i.MX8MM.
---
 Documentation/devicetree/bindings/reset/fsl,imx7-src.txt | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt b/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt
index 13e0951..c2489e4 100644
--- a/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt
+++ b/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt
@@ -8,6 +8,7 @@ Required properties:
 - compatible:
 	- For i.MX7 SoCs should be "fsl,imx7d-src", "syscon"
 	- For i.MX8MQ SoCs should be "fsl,imx8mq-src", "syscon"
+	- For i.MX8MM SoCs should be "fsl,imx8mm-src", "fsl,imx8mq-src", "syscon"
 - reg: should be register base and length as documented in the
   datasheet
 - interrupts: Should contain SRC interrupt
@@ -46,5 +47,6 @@ Example:
 
 
 For list of all valid reset indices see
-<dt-bindings/reset/imx7-reset.h> for i.MX7 and
-<dt-bindings/reset/imx8mq-reset.h> for i.MX8MQ
+<dt-bindings/reset/imx7-reset.h> for i.MX7,
+<dt-bindings/reset/imx8mq-reset.h> for i.MX8MQ and
+<dt-bindings/reset/imx8mq-reset.h> for i.MX8MM
-- 
2.7.4


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

* [PATCH V3 2/2] arm64: dts: imx8mm: Add "fsl,imx8mq-src" as src's fallback compatible
  2019-07-04  9:44 [PATCH V3 1/2] dt-bindings: reset: imx7: Add support for i.MX8MM Anson.Huang
@ 2019-07-04  9:44 ` Anson.Huang
  2019-07-04 10:16 ` [PATCH V3 1/2] dt-bindings: reset: imx7: Add support for i.MX8MM Philipp Zabel
  1 sibling, 0 replies; 6+ messages in thread
From: Anson.Huang @ 2019-07-04  9:44 UTC (permalink / raw)
  To: p.zabel, robh+dt, mark.rutland, shawnguo, s.hauer, kernel,
	festevam, leonard.crestez, ping.bai, daniel.baluta, devicetree,
	linux-arm-kernel, linux-kernel
  Cc: Linux-imx

From: Anson Huang <Anson.Huang@nxp.com>

i.MX8MM can reuse i.MX8MQ's src driver, add "fsl,imx8mq-src" as
src's fallback compatible to enable it.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
---
No changes.
---
 arch/arm64/boot/dts/freescale/imx8mm.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
index 172bb6f..1870c89 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
@@ -520,7 +520,7 @@
 			};
 
 			src: reset-controller@30390000 {
-				compatible = "fsl,imx8mm-src", "syscon";
+				compatible = "fsl,imx8mm-src", "fsl,imx8mq-src", "syscon";
 				reg = <0x30390000 0x10000>;
 				interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
 				#reset-cells = <1>;
-- 
2.7.4


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

* Re: [PATCH V3 1/2] dt-bindings: reset: imx7: Add support for i.MX8MM
  2019-07-04  9:44 [PATCH V3 1/2] dt-bindings: reset: imx7: Add support for i.MX8MM Anson.Huang
  2019-07-04  9:44 ` [PATCH V3 2/2] arm64: dts: imx8mm: Add "fsl,imx8mq-src" as src's fallback compatible Anson.Huang
@ 2019-07-04 10:16 ` Philipp Zabel
  2019-07-05  0:26   ` Anson Huang
  1 sibling, 1 reply; 6+ messages in thread
From: Philipp Zabel @ 2019-07-04 10:16 UTC (permalink / raw)
  To: Anson.Huang, robh+dt, mark.rutland, shawnguo, s.hauer, kernel,
	festevam, leonard.crestez, ping.bai, daniel.baluta, devicetree,
	linux-arm-kernel, linux-kernel
  Cc: Linux-imx

Hi Anson,

On Thu, 2019-07-04 at 17:44 +0800, Anson.Huang@nxp.com wrote:
> From: Anson Huang <Anson.Huang@nxp.com>
> 
> i.MX8MM can reuse i.MX8MQ's reset driver, update the compatible
> property and related info to support i.MX8MM.
> 
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
> Changes since V2:
> 	- Add separate line for i.MX8MM in case anything different later for i.MX8MM.
> ---
>  Documentation/devicetree/bindings/reset/fsl,imx7-src.txt | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt b/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt
> index 13e0951..c2489e4 100644
> --- a/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt
> +++ b/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt
> @@ -8,6 +8,7 @@ Required properties:
>  - compatible:
>  	- For i.MX7 SoCs should be "fsl,imx7d-src", "syscon"
>  	- For i.MX8MQ SoCs should be "fsl,imx8mq-src", "syscon"
> +	- For i.MX8MM SoCs should be "fsl,imx8mm-src", "fsl,imx8mq-src", "syscon"
>  - reg: should be register base and length as documented in the
>    datasheet
>  - interrupts: Should contain SRC interrupt
> @@ -46,5 +47,6 @@ Example:
>  
>  
>  For list of all valid reset indices see
> -<dt-bindings/reset/imx7-reset.h> for i.MX7 and
> -<dt-bindings/reset/imx8mq-reset.h> for i.MX8MQ
> +<dt-bindings/reset/imx7-reset.h> for i.MX7,
> +<dt-bindings/reset/imx8mq-reset.h> for i.MX8MQ and
> +<dt-bindings/reset/imx8mq-reset.h> for i.MX8MM

The last line is misleading, as that file contains reset indices that
are invalid for i.MX8MM.

regards
Philipp

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

* RE: [PATCH V3 1/2] dt-bindings: reset: imx7: Add support for i.MX8MM
  2019-07-04 10:16 ` [PATCH V3 1/2] dt-bindings: reset: imx7: Add support for i.MX8MM Philipp Zabel
@ 2019-07-05  0:26   ` Anson Huang
  2019-07-05  8:02     ` Philipp Zabel
  0 siblings, 1 reply; 6+ messages in thread
From: Anson Huang @ 2019-07-05  0:26 UTC (permalink / raw)
  To: Philipp Zabel, robh+dt, mark.rutland, shawnguo, s.hauer, kernel,
	festevam, Leonard Crestez, Jacky Bai, Daniel Baluta, devicetree,
	linux-arm-kernel, linux-kernel
  Cc: dl-linux-imx

Hi, Philipp

> On Thu, 2019-07-04 at 17:44 +0800, Anson.Huang@nxp.com wrote:
> > From: Anson Huang <Anson.Huang@nxp.com>
> >
> > i.MX8MM can reuse i.MX8MQ's reset driver, update the compatible
> > property and related info to support i.MX8MM.
> >
> > Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> > ---
> > Changes since V2:
> > 	- Add separate line for i.MX8MM in case anything different later for
> i.MX8MM.
> > ---
> >  Documentation/devicetree/bindings/reset/fsl,imx7-src.txt | 6 ++++--
> >  1 file changed, 4 insertions(+), 2 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt
> > b/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt
> > index 13e0951..c2489e4 100644
> > --- a/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt
> > +++ b/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt
> > @@ -8,6 +8,7 @@ Required properties:
> >  - compatible:
> >  	- For i.MX7 SoCs should be "fsl,imx7d-src", "syscon"
> >  	- For i.MX8MQ SoCs should be "fsl,imx8mq-src", "syscon"
> > +	- For i.MX8MM SoCs should be "fsl,imx8mm-src", "fsl,imx8mq-src",
> "syscon"
> >  - reg: should be register base and length as documented in the
> >    datasheet
> >  - interrupts: Should contain SRC interrupt @@ -46,5 +47,6 @@ Example:
> >
> >
> >  For list of all valid reset indices see
> > -<dt-bindings/reset/imx7-reset.h> for i.MX7 and
> > -<dt-bindings/reset/imx8mq-reset.h> for i.MX8MQ
> > +<dt-bindings/reset/imx7-reset.h> for i.MX7,
> > +<dt-bindings/reset/imx8mq-reset.h> for i.MX8MQ and
> > +<dt-bindings/reset/imx8mq-reset.h> for i.MX8MM
> 
> The last line is misleading, as that file contains reset indices that are invalid
> for i.MX8MM.

What is your suggestion about this line? Just NOT change it? Or adding a new file
imx8mm-reset.h but still use the IMX8MQ_RESET_ as prefix ? Or keep what I changed, but
adding some comments in those macros that i.MX8MM does NOT support?

Thanks,
Anson.

> 
> regards
> Philipp

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

* Re: [PATCH V3 1/2] dt-bindings: reset: imx7: Add support for i.MX8MM
  2019-07-05  0:26   ` Anson Huang
@ 2019-07-05  8:02     ` Philipp Zabel
  2019-07-05  8:45       ` Anson Huang
  0 siblings, 1 reply; 6+ messages in thread
From: Philipp Zabel @ 2019-07-05  8:02 UTC (permalink / raw)
  To: Anson Huang, robh+dt, mark.rutland, shawnguo, s.hauer, kernel,
	festevam, Leonard Crestez, Jacky Bai, Daniel Baluta, devicetree,
	linux-arm-kernel, linux-kernel
  Cc: dl-linux-imx

Hi Anson,

On Fri, 2019-07-05 at 00:26 +0000, Anson Huang wrote:
> Hi, Philipp
> 
> > On Thu, 2019-07-04 at 17:44 +0800, Anson.Huang@nxp.com wrote:
> > > From: Anson Huang <Anson.Huang@nxp.com>
> > > 
> > > i.MX8MM can reuse i.MX8MQ's reset driver, update the compatible
> > > property and related info to support i.MX8MM.
> > > 
> > > Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> > > ---
> > > Changes since V2:
> > > 	- Add separate line for i.MX8MM in case anything different later for
> > 
> > i.MX8MM.
> > > ---
> > >  Documentation/devicetree/bindings/reset/fsl,imx7-src.txt | 6 ++++--
> > >  1 file changed, 4 insertions(+), 2 deletions(-)
> > > 
> > > diff --git a/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt
> > > b/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt
> > > index 13e0951..c2489e4 100644
> > > --- a/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt
> > > +++ b/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt
> > > @@ -8,6 +8,7 @@ Required properties:
> > >  - compatible:
> > >  	- For i.MX7 SoCs should be "fsl,imx7d-src", "syscon"
> > >  	- For i.MX8MQ SoCs should be "fsl,imx8mq-src", "syscon"
> > > +	- For i.MX8MM SoCs should be "fsl,imx8mm-src", "fsl,imx8mq-src",
> > 
> > "syscon"
> > >  - reg: should be register base and length as documented in the
> > >    datasheet
> > >  - interrupts: Should contain SRC interrupt @@ -46,5 +47,6 @@ Example:
> > > 
> > > 
> > >  For list of all valid reset indices see
> > > -<dt-bindings/reset/imx7-reset.h> for i.MX7 and
> > > -<dt-bindings/reset/imx8mq-reset.h> for i.MX8MQ
> > > +<dt-bindings/reset/imx7-reset.h> for i.MX7,
> > > +<dt-bindings/reset/imx8mq-reset.h> for i.MX8MQ and
> > > +<dt-bindings/reset/imx8mq-reset.h> for i.MX8MM
> > 
> > The last line is misleading, as that file contains reset indices that are invalid
> > for i.MX8MM.
> 
> What is your suggestion about this line?

I would prefer to add an imx8mm-reset.h with only the existing reset
bits, using the IMX8MM_RESET_ prefix. That would make it easy to spot
errors in the dtsi (anything starting with IMX8MQ_ is potentially
wrong).

> Just NOT change it?

The change is good in principle. It just should point to an imx8mm-
reset.h with only the existing resets on i.MX8MM, or imx8mq-reset.h
should be modified to actually make clear which resets are valid on
i.MX8MM.

> Or adding a new file imx8mm-reset.h but still use the IMX8MQ_RESET_ as
> prefix ?

I don't think you should redefine the same macros in imx8mm-reset.h. In
this case using IMX8MM_RESET_ would be better.

> Or keep what I changed, but adding some comments in those macros that
> i.MX8MM does NOT support?

That would be acceptable as well.

regards
Philipp

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

* RE: [PATCH V3 1/2] dt-bindings: reset: imx7: Add support for i.MX8MM
  2019-07-05  8:02     ` Philipp Zabel
@ 2019-07-05  8:45       ` Anson Huang
  0 siblings, 0 replies; 6+ messages in thread
From: Anson Huang @ 2019-07-05  8:45 UTC (permalink / raw)
  To: Philipp Zabel, robh+dt, mark.rutland, shawnguo, s.hauer, kernel,
	festevam, Leonard Crestez, Jacky Bai, Daniel Baluta, devicetree,
	linux-arm-kernel, linux-kernel
  Cc: dl-linux-imx

Hi, Philipp

> On Fri, 2019-07-05 at 00:26 +0000, Anson Huang wrote:
> > Hi, Philipp
> >
> > > On Thu, 2019-07-04 at 17:44 +0800, Anson.Huang@nxp.com wrote:
> > > > From: Anson Huang <Anson.Huang@nxp.com>
> > > >
> > > > i.MX8MM can reuse i.MX8MQ's reset driver, update the compatible
> > > > property and related info to support i.MX8MM.
> > > >
> > > > Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> > > > ---
> > > > Changes since V2:
> > > > 	- Add separate line for i.MX8MM in case anything different later
> > > > for
> > >
> > > i.MX8MM.
> > > > ---
> > > >  Documentation/devicetree/bindings/reset/fsl,imx7-src.txt | 6
> > > > ++++--
> > > >  1 file changed, 4 insertions(+), 2 deletions(-)
> > > >
> > > > diff --git
> > > > a/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt
> > > > b/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt
> > > > index 13e0951..c2489e4 100644
> > > > --- a/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt
> > > > +++ b/Documentation/devicetree/bindings/reset/fsl,imx7-src.txt
> > > > @@ -8,6 +8,7 @@ Required properties:
> > > >  - compatible:
> > > >  	- For i.MX7 SoCs should be "fsl,imx7d-src", "syscon"
> > > >  	- For i.MX8MQ SoCs should be "fsl,imx8mq-src", "syscon"
> > > > +	- For i.MX8MM SoCs should be "fsl,imx8mm-src", "fsl,imx8mq-src",
> > >
> > > "syscon"
> > > >  - reg: should be register base and length as documented in the
> > > >    datasheet
> > > >  - interrupts: Should contain SRC interrupt @@ -46,5 +47,6 @@ Example:
> > > >
> > > >
> > > >  For list of all valid reset indices see
> > > > -<dt-bindings/reset/imx7-reset.h> for i.MX7 and
> > > > -<dt-bindings/reset/imx8mq-reset.h> for i.MX8MQ
> > > > +<dt-bindings/reset/imx7-reset.h> for i.MX7,
> > > > +<dt-bindings/reset/imx8mq-reset.h> for i.MX8MQ and
> > > > +<dt-bindings/reset/imx8mq-reset.h> for i.MX8MM
> > >
> > > The last line is misleading, as that file contains reset indices
> > > that are invalid for i.MX8MM.
> >
> > What is your suggestion about this line?
> 
> I would prefer to add an imx8mm-reset.h with only the existing reset bits,
> using the IMX8MM_RESET_ prefix. That would make it easy to spot errors in
> the dtsi (anything starting with IMX8MQ_ is potentially wrong).
> 
> > Just NOT change it?
> 
> The change is good in principle. It just should point to an imx8mm- reset.h with
> only the existing resets on i.MX8MM, or imx8mq-reset.h should be modified to
> actually make clear which resets are valid on i.MX8MM.
> 
> > Or adding a new file imx8mm-reset.h but still use the IMX8MQ_RESET_ as
> > prefix ?
> 
> I don't think you should redefine the same macros in imx8mm-reset.h. In this
> case using IMX8MM_RESET_ would be better.
> 
> > Or keep what I changed, but adding some comments in those macros that
> > i.MX8MM does NOT support?
> 
> That would be acceptable as well.

I will go this way, thanks for suggestion.

Anson.

> 
> regards
> Philipp

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

end of thread, other threads:[~2019-07-05  8:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-04  9:44 [PATCH V3 1/2] dt-bindings: reset: imx7: Add support for i.MX8MM Anson.Huang
2019-07-04  9:44 ` [PATCH V3 2/2] arm64: dts: imx8mm: Add "fsl,imx8mq-src" as src's fallback compatible Anson.Huang
2019-07-04 10:16 ` [PATCH V3 1/2] dt-bindings: reset: imx7: Add support for i.MX8MM Philipp Zabel
2019-07-05  0:26   ` Anson Huang
2019-07-05  8:02     ` Philipp Zabel
2019-07-05  8:45       ` Anson Huang

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