From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Subject: Re: [PATCH v3 06/16] dt-bindings: net: sun4i-emac: Convert the binding to a schemas Date: Wed, 19 Jun 2019 14:44:13 -0600 Message-ID: References: <27aeb33cf5b896900d5d11bd6957eda268014f0c.1560937626.git-series.maxime.ripard@bootlin.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: Sender: netdev-owner@vger.kernel.org To: Maxime Ripard Cc: Mark Rutland , Frank Rowand , "David S . Miller" , Chen-Yu Tsai , Maxime Coquelin , Alexandre Torgue , netdev , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Maxime Chevallier , =?UTF-8?Q?Antoine_T=C3=A9nart?= , Andrew Lunn , Florian Fainelli , Heiner Kallweit List-Id: devicetree@vger.kernel.org On Wed, Jun 19, 2019 at 8:46 AM Rob Herring wrote: > > On Wed, Jun 19, 2019 at 3:48 AM Maxime Ripard wrote: > > > > Switch our Allwinner A10 EMAC controller binding to a YAML schema to enable > > the DT validation. > > > > Signed-off-by: Maxime Ripard > > > > --- > > > > Changes from v2: > > - Switch from the deprecated phy property to phy-handle > > --- > > Documentation/devicetree/bindings/net/allwinner,sun4i-a10-emac.yaml | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > Documentation/devicetree/bindings/net/allwinner,sun4i-emac.txt | 19 ------------------- > > 2 files changed, 55 insertions(+), 19 deletions(-) > > create mode 100644 Documentation/devicetree/bindings/net/allwinner,sun4i-a10-emac.yaml > > delete mode 100644 Documentation/devicetree/bindings/net/allwinner,sun4i-emac.txt > > > > diff --git a/Documentation/devicetree/bindings/net/allwinner,sun4i-a10-emac.yaml b/Documentation/devicetree/bindings/net/allwinner,sun4i-a10-emac.yaml > > new file mode 100644 > > index 000000000000..2ff9e605cd26 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/net/allwinner,sun4i-a10-emac.yaml > > @@ -0,0 +1,55 @@ > > +# SPDX-License-Identifier: GPL-2.0 > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/net/allwinner,sun4i-a10-emac.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Allwinner A10 EMAC Ethernet Controller Device Tree Bindings > > + > > +allOf: > > + - $ref: "ethernet-controller.yaml#" > > + > > +maintainers: > > + - Chen-Yu Tsai > > + - Maxime Ripard > > + > > +properties: > > + compatible: > > + const: allwinner,sun4i-a10-emac > > + > > + reg: > > + maxItems: 1 > > + > > + interrupts: > > + maxItems: 1 > > + > > + clocks: > > + maxItems: 1 > > + > > + allwinner,sram: > > + description: Phandle to the device SRAM > > + $ref: /schemas/types.yaml#/definitions/phandle-array > > + > > +required: > > + - compatible > > + - reg > > + - interrupts > > + - clocks > > + - phy-handle > > Doesn't this throw an error if not listed in properties? NM, it doesn't. Reviewed-by: Rob Herring Rob