diff mbox series

[v4,6/6] phy: dt-bindings: cdns,dphy: add Rx DPHY compatible

Message ID 20210820190346.18550-7-p.yadav@ti.com
State New
Headers show
Series Rx mode support for Cadence DPHY | expand

Commit Message

Pratyush Yadav Aug. 20, 2021, 7:03 p.m. UTC
The DPHY is treated to be in Tx mode by default. Add a new compatible
for Rx mode DPHYs.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>

---

Changes in v4:
- New in v4.

 Documentation/devicetree/bindings/phy/cdns,dphy.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Laurent Pinchart Aug. 23, 2021, 1:44 a.m. UTC | #1
Hi Pratyush,

Thank you for the patch.

On Sat, Aug 21, 2021 at 12:33:46AM +0530, Pratyush Yadav wrote:
> The DPHY is treated to be in Tx mode by default. Add a new compatible

> for Rx mode DPHYs.

> 

> Signed-off-by: Pratyush Yadav <p.yadav@ti.com>

> 

> ---

> 

> Changes in v4:

> - New in v4.

> 

>  Documentation/devicetree/bindings/phy/cdns,dphy.yaml | 3 ++-

>  1 file changed, 2 insertions(+), 1 deletion(-)

> 

> diff --git a/Documentation/devicetree/bindings/phy/cdns,dphy.yaml b/Documentation/devicetree/bindings/phy/cdns,dphy.yaml

> index d5a5e1f0b671..48b6a841152e 100644

> --- a/Documentation/devicetree/bindings/phy/cdns,dphy.yaml

> +++ b/Documentation/devicetree/bindings/phy/cdns,dphy.yaml

> @@ -11,8 +11,9 @@ maintainers:

>  

>  properties:

>    compatible:

> -    items:

> +    oneOf:

>        - const: cdns,dphy

> +      - const: cdns,dphy-rx


It's customary to use an enum instead:

  compatibles:
    enum:
      - cdns,dphy
      - cdns,dphy-tx

I don't know if Rob has a preference for consistency (or for any other
reason). In either case,

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>


>  

>    reg:

>      maxItems: 1


-- 
Regards,

Laurent Pinchart
Rob Herring (Arm) Aug. 23, 2021, 10:43 p.m. UTC | #2
On Mon, Aug 23, 2021 at 04:44:54AM +0300, Laurent Pinchart wrote:
> Hi Pratyush,

> 

> Thank you for the patch.

> 

> On Sat, Aug 21, 2021 at 12:33:46AM +0530, Pratyush Yadav wrote:

> > The DPHY is treated to be in Tx mode by default. Add a new compatible

> > for Rx mode DPHYs.

> > 

> > Signed-off-by: Pratyush Yadav <p.yadav@ti.com>

> > 

> > ---

> > 

> > Changes in v4:

> > - New in v4.

> > 

> >  Documentation/devicetree/bindings/phy/cdns,dphy.yaml | 3 ++-

> >  1 file changed, 2 insertions(+), 1 deletion(-)

> > 

> > diff --git a/Documentation/devicetree/bindings/phy/cdns,dphy.yaml b/Documentation/devicetree/bindings/phy/cdns,dphy.yaml

> > index d5a5e1f0b671..48b6a841152e 100644

> > --- a/Documentation/devicetree/bindings/phy/cdns,dphy.yaml

> > +++ b/Documentation/devicetree/bindings/phy/cdns,dphy.yaml

> > @@ -11,8 +11,9 @@ maintainers:

> >  

> >  properties:

> >    compatible:

> > -    items:

> > +    oneOf:

> >        - const: cdns,dphy

> > +      - const: cdns,dphy-rx

> 

> It's customary to use an enum instead:

> 

>   compatibles:

>     enum:

>       - cdns,dphy

>       - cdns,dphy-tx

> 

> I don't know if Rob has a preference for consistency (or for any other

> reason). In either case,


Yes, use enum.

Rob
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/phy/cdns,dphy.yaml b/Documentation/devicetree/bindings/phy/cdns,dphy.yaml
index d5a5e1f0b671..48b6a841152e 100644
--- a/Documentation/devicetree/bindings/phy/cdns,dphy.yaml
+++ b/Documentation/devicetree/bindings/phy/cdns,dphy.yaml
@@ -11,8 +11,9 @@  maintainers:
 
 properties:
   compatible:
-    items:
+    oneOf:
       - const: cdns,dphy
+      - const: cdns,dphy-rx
 
   reg:
     maxItems: 1