linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: serial: fsl-lpuart: Add imx93 compatible string
@ 2022-02-15  8:13 Peng Fan (OSS)
  2022-02-25 16:02 ` Rob Herring
  0 siblings, 1 reply; 4+ messages in thread
From: Peng Fan (OSS) @ 2022-02-15  8:13 UTC (permalink / raw)
  To: gregkh, robh+dt; +Cc: linux-serial, devicetree, linux-kernel, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

The lpuart on i.MX93 is derived from i.MX8ULP with some industrial
enhancements, it uses three compatible strings, so update the
compatible string for i.MX93. But for a few instants,
DTR_B, DSR_B, DCD_B and RIN_B pins are supported, so use one compatible
string fsl,imx93-lpuart-v2

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 Documentation/devicetree/bindings/serial/fsl-lpuart.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/serial/fsl-lpuart.yaml b/Documentation/devicetree/bindings/serial/fsl-lpuart.yaml
index 6e04e3848261..d7805f31ccc2 100644
--- a/Documentation/devicetree/bindings/serial/fsl-lpuart.yaml
+++ b/Documentation/devicetree/bindings/serial/fsl-lpuart.yaml
@@ -24,6 +24,8 @@ properties:
           - fsl,imxrt1050-lpuart
       - items:
           - enum:
+              - fsl,imx93-lpuart
+              - fsl,imx93-lpuart-v2
               - fsl,imx8qxp-lpuart
               - fsl,imx8ulp-lpuart
           - const: fsl,imx7ulp-lpuart
-- 
2.25.1


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

* Re: [PATCH] dt-bindings: serial: fsl-lpuart: Add imx93 compatible string
  2022-02-15  8:13 [PATCH] dt-bindings: serial: fsl-lpuart: Add imx93 compatible string Peng Fan (OSS)
@ 2022-02-25 16:02 ` Rob Herring
  2022-02-28  0:44   ` Peng Fan
  0 siblings, 1 reply; 4+ messages in thread
From: Rob Herring @ 2022-02-25 16:02 UTC (permalink / raw)
  To: Peng Fan (OSS); +Cc: gregkh, linux-serial, devicetree, linux-kernel, Peng Fan

On Tue, Feb 15, 2022 at 04:13:34PM +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@nxp.com>
> 
> The lpuart on i.MX93 is derived from i.MX8ULP with some industrial
> enhancements, it uses three compatible strings, so update the

Looks like it's 2 compatible strings...

> compatible string for i.MX93. But for a few instants,

s/instants/instances/

> DTR_B, DSR_B, DCD_B and RIN_B pins are supported, so use one compatible
> string fsl,imx93-lpuart-v2

If the differences are just what gets pinned out, then I think the 
differences should be handled with separate properties. We probably 
already have some.

Plus, while you may have all the above signals, a board design may still 
only use a subset.

> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
>  Documentation/devicetree/bindings/serial/fsl-lpuart.yaml | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/serial/fsl-lpuart.yaml b/Documentation/devicetree/bindings/serial/fsl-lpuart.yaml
> index 6e04e3848261..d7805f31ccc2 100644
> --- a/Documentation/devicetree/bindings/serial/fsl-lpuart.yaml
> +++ b/Documentation/devicetree/bindings/serial/fsl-lpuart.yaml
> @@ -24,6 +24,8 @@ properties:
>            - fsl,imxrt1050-lpuart
>        - items:
>            - enum:
> +              - fsl,imx93-lpuart
> +              - fsl,imx93-lpuart-v2
>                - fsl,imx8qxp-lpuart
>                - fsl,imx8ulp-lpuart
>            - const: fsl,imx7ulp-lpuart
> -- 
> 2.25.1
> 
> 

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

* RE: [PATCH] dt-bindings: serial: fsl-lpuart: Add imx93 compatible string
  2022-02-25 16:02 ` Rob Herring
@ 2022-02-28  0:44   ` Peng Fan
  2022-03-03 19:06     ` Rob Herring
  0 siblings, 1 reply; 4+ messages in thread
From: Peng Fan @ 2022-02-28  0:44 UTC (permalink / raw)
  To: Rob Herring, Peng Fan (OSS)
  Cc: gregkh, linux-serial, devicetree, linux-kernel

Hi Rob,

> Subject: Re: [PATCH] dt-bindings: serial: fsl-lpuart: Add imx93 compatible
> string
> 
> On Tue, Feb 15, 2022 at 04:13:34PM +0800, Peng Fan (OSS) wrote:
> > From: Peng Fan <peng.fan@nxp.com>
> >
> > The lpuart on i.MX93 is derived from i.MX8ULP with some industrial
> > enhancements, it uses three compatible strings, so update the
> 
> Looks like it's 2 compatible strings...

Oh, yes. i.MX8ULP/7ULP is same uart IP.

> 
> > compatible string for i.MX93. But for a few instants,
> 
> s/instants/instances/
> 
> > DTR_B, DSR_B, DCD_B and RIN_B pins are supported, so use one
> > compatible string fsl,imx93-lpuart-v2
> 
> If the differences are just what gets pinned out, then I think the differences
> should be handled with separate properties. We probably already have some.
> 
> Plus, while you may have all the above signals, a board design may still only
> use a subset.

It is SoC integration level with above features not support in some instances,
so no such signals connected to SoC pin.

Saying LPUART IP itself support DTR/DSR/DCD/RIN, but instance A has the
feature disabled when doing SoC integration, instance B has the feature enabled
when doing SoC integration. What's your suggestion with such case?

Thanks,
Peng.

> 
> >
> > Signed-off-by: Peng Fan <peng.fan@nxp.com>
> > ---
> >  Documentation/devicetree/bindings/serial/fsl-lpuart.yaml | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/serial/fsl-lpuart.yaml
> > b/Documentation/devicetree/bindings/serial/fsl-lpuart.yaml
> > index 6e04e3848261..d7805f31ccc2 100644
> > --- a/Documentation/devicetree/bindings/serial/fsl-lpuart.yaml
> > +++ b/Documentation/devicetree/bindings/serial/fsl-lpuart.yaml
> > @@ -24,6 +24,8 @@ properties:
> >            - fsl,imxrt1050-lpuart
> >        - items:
> >            - enum:
> > +              - fsl,imx93-lpuart
> > +              - fsl,imx93-lpuart-v2
> >                - fsl,imx8qxp-lpuart
> >                - fsl,imx8ulp-lpuart
> >            - const: fsl,imx7ulp-lpuart
> > --
> > 2.25.1
> >
> >

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

* Re: [PATCH] dt-bindings: serial: fsl-lpuart: Add imx93 compatible string
  2022-02-28  0:44   ` Peng Fan
@ 2022-03-03 19:06     ` Rob Herring
  0 siblings, 0 replies; 4+ messages in thread
From: Rob Herring @ 2022-03-03 19:06 UTC (permalink / raw)
  To: Peng Fan; +Cc: Peng Fan (OSS), gregkh, linux-serial, devicetree, linux-kernel

On Sun, Feb 27, 2022 at 6:44 PM Peng Fan <peng.fan@nxp.com> wrote:
>
> Hi Rob,
>
> > Subject: Re: [PATCH] dt-bindings: serial: fsl-lpuart: Add imx93 compatible
> > string
> >
> > On Tue, Feb 15, 2022 at 04:13:34PM +0800, Peng Fan (OSS) wrote:
> > > From: Peng Fan <peng.fan@nxp.com>
> > >
> > > The lpuart on i.MX93 is derived from i.MX8ULP with some industrial
> > > enhancements, it uses three compatible strings, so update the
> >
> > Looks like it's 2 compatible strings...
>
> Oh, yes. i.MX8ULP/7ULP is same uart IP.
>
> >
> > > compatible string for i.MX93. But for a few instants,
> >
> > s/instants/instances/
> >
> > > DTR_B, DSR_B, DCD_B and RIN_B pins are supported, so use one
> > > compatible string fsl,imx93-lpuart-v2
> >
> > If the differences are just what gets pinned out, then I think the differences
> > should be handled with separate properties. We probably already have some.
> >
> > Plus, while you may have all the above signals, a board design may still only
> > use a subset.
>
> It is SoC integration level with above features not support in some instances,
> so no such signals connected to SoC pin.
>
> Saying LPUART IP itself support DTR/DSR/DCD/RIN, but instance A has the
> feature disabled when doing SoC integration, instance B has the feature enabled
> when doing SoC integration. What's your suggestion with such case?

Unless it changes the register interface in a non-compatible way that
the driver needs to know about, I would not do a different compatible.
For example, register offsets change.

Rob

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

end of thread, other threads:[~2022-03-03 19:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-15  8:13 [PATCH] dt-bindings: serial: fsl-lpuart: Add imx93 compatible string Peng Fan (OSS)
2022-02-25 16:02 ` Rob Herring
2022-02-28  0:44   ` Peng Fan
2022-03-03 19:06     ` Rob Herring

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