# Re: \[PATCH v2 05/11\] dt-bindings: net: sun4i-emac: Convert the binding to a schemas

- From: Rob Herring \<robh+dt@kernel.org\>
- Date: 2019-06-10 18:59:29 
- List: netdev
- Page: https://ratatoskr.run/netdev/2019/06/8169265
- Thread: https://ratatoskr.run/netdev/2019/06/8169243/t.md

```text
On Mon, Jun 10, 2019 at 8:31 AM Andrew Lunn [ref] wrote:
>
> > +required:
> > +  - compatible
> > +  - reg
> > +  - interrupts
> > +  - clocks
> > +  - phy
> > +  - allwinner,sram
>
> Quoting ethernet.txt:
>
> - phy: the same as "phy-handle" property, not recommended for new bindings.
>
> - phy-handle: phandle, specifies a reference to a node representing a PHY
>   device; this property is described in the Devicetree Specification and so
>   preferred;
>
> Can this be expressed in Yaml? Accept phy, but give a warning. Accept
> phy-handle without a warning? Enforce that one or the other is
> present?

The common schema could have 'phy: false'. This works as long as we've
updated (or plan to) all the dts files to use phy-handle. The issue is
how far back do you need kernels to work with newer dtbs.

Rob
```
