Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp750678ybj; Tue, 5 May 2020 07:04:14 -0700 (PDT) X-Google-Smtp-Source: APiQypJeShgGaO05XYLI4izmAGkahayldG+PhiY62dyYtALjmwyHtDI0PizDrhTpKC9HD3fi0eZx X-Received: by 2002:a17:906:a39a:: with SMTP id k26mr2702494ejz.172.1588687454149; Tue, 05 May 2020 07:04:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588687454; cv=none; d=google.com; s=arc-20160816; b=KsFJTy5g/9YK/pnjTjXLC3H8xJzWAe3uxlhJX/eLr0RAqMpYoBavlNs3PFfrXyu/CS VMq6mxogRc1s0uZSF37joEU6L/VSUf/UFGP9IMsKcgMXBdoBPGf7E0b+BB8N7C9zARTA V41Ei4V6M7MTgdiOblVZs3is8BaO4FcysaSoa16KlMBpUUtIfWZ6K7ozZ+MBKllJt5gx lKmF+i0JmKvj78kjjVLCgwL3UiF5kA1UESmYMDiUutHrbscbs74/jvfKnr/+f+2lmbu7 E5CJOr3hBkxGbTij02dIH/nUgmyp+MfyO+iS/7/AMLbmhaxvwkhTh5PO0oxZni48cdKA dh2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=MQhJQSV5DPC+RnQ18Gv5OjUfrbMB0JR8XzYM9Fu0Cns=; b=BOTNybktZ3cQbHHPBekBwYkKN2+FUkf34oMCOKBGtenuSYgCBEkN+6ZKQTz2Lg/c1a mSu7wC/94An1Cm8fVPpWKAgyW6jmUbY8in4uTlsFBjeX1rcjSRD89YjuBJ/9w83TAj/j 7RPfhbw+PtpPNYm5UCs0iyfFY/BQXoeINblOen2ccWF7BYVJbU9LgAb2i7Avan2Ovinm oteLGAtS1dERAQ/lJNiDXOE7lEshGKzN8ktJVHfdqyBc/1hx5TncD8DisVM7g24ch0p/ CLvKK2M1IncmEAs2OFhZw/SxZmZilz6L/Z3CaSS/lXzZS+xtRSFniLRYz1aLg5v6I9Qu ceGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=BPLdwwcd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ci25si1062710ejb.476.2020.05.05.07.03.43; Tue, 05 May 2020 07:04:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=BPLdwwcd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729239AbgEEOBj (ORCPT + 99 others); Tue, 5 May 2020 10:01:39 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:42596 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728076AbgEEOBj (ORCPT ); Tue, 5 May 2020 10:01:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=MQhJQSV5DPC+RnQ18Gv5OjUfrbMB0JR8XzYM9Fu0Cns=; b=BPLdwwcd4KtC0HTYqHjtwDw1X2 mJVWPB/049rFgZ8S7LEq4nNbSLR/3zKrk7qLN6vTYnlH2BC+ePiuxyYNm3mjV6WYL4QFpFgEvAcTD mOXu9KbDkhWxhkg1NSMok1gnLzHA8wkShofmqZvzcJausKRgNN1V7JZcqosLpe3YxvJU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.93) (envelope-from ) id 1jVy8V-000wMg-KV; Tue, 05 May 2020 16:01:27 +0200 Date: Tue, 5 May 2020 16:01:27 +0200 From: Andrew Lunn To: Oleksij Rempel Cc: Florian Fainelli , Heiner Kallweit , Mark Rutland , Rob Herring , Pengutronix Kernel Team , linux-kernel@vger.kernel.org, "David S. Miller" , netdev@vger.kernel.org, Marek Vasut , David Jander , devicetree@vger.kernel.org Subject: Re: [PATCH v1] dt-bindings: net: nxp,tja11xx: rework validation support Message-ID: <20200505140127.GJ208718@lunn.ch> References: <20200505104215.8975-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200505104215.8975-1-o.rempel@pengutronix.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 05, 2020 at 12:42:15PM +0200, Oleksij Rempel wrote: > To properly identify this node, we need to use ethernet-phy-id0180.dc80. > And add missing required properties. > > Signed-off-by: Oleksij Rempel > --- > .../devicetree/bindings/net/nxp,tja11xx.yaml | 55 ++++++++++++------- > 1 file changed, 35 insertions(+), 20 deletions(-) > > diff --git a/Documentation/devicetree/bindings/net/nxp,tja11xx.yaml b/Documentation/devicetree/bindings/net/nxp,tja11xx.yaml > index 42be0255512b3..cc322107a24a2 100644 > --- a/Documentation/devicetree/bindings/net/nxp,tja11xx.yaml > +++ b/Documentation/devicetree/bindings/net/nxp,tja11xx.yaml > @@ -1,4 +1,4 @@ > -# SPDX-License-Identifier: GPL-2.0+ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > %YAML 1.2 > --- > $id: http://devicetree.org/schemas/net/nxp,tja11xx.yaml# > @@ -12,44 +12,59 @@ maintainers: > - Heiner Kallweit > > description: > - Bindings for NXP TJA11xx automotive PHYs > + Bindings for the NXP TJA1102 automotive PHY. This is a dual PHY package where > + only the first PHY has global configuration register and HW health > + monitoring. > > -allOf: > - - $ref: ethernet-phy.yaml# > +properties: > + compatible: > + const: ethernet-phy-id0180.dc80 > + description: ethernet-phy-id0180.dc80 used for TJA1102 PHY > + > + reg: > + minimum: 0 > + maximum: 14 > + description: > + The PHY address of the parent PHY. Hi Oleksij reg is normally 0 to 31, since that is the address range for MDIO. Did you use 14 here because of what strapping allows? > +required: > + - compatible > + - reg > + - '#address-cells' > + - '#size-cells' So we have two different meanings of 'required' here. One meaning is the code requires it. compatible is not required, the driver will correctly be bind to the device based on its ID registers. Is reg also required by the code? The second meaning is about keeping the yaml verifier happy. It seems like compatible is needed for the verifier. Is reg also required? We do recommend having reg, but the generic code does not require it. Andrew