Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4397600ybz; Tue, 28 Apr 2020 10:34:40 -0700 (PDT) X-Google-Smtp-Source: APiQypJF8bEMa4/RpUNCm/eAaqV1ZBAWqd61PLiL6rEnzdPNEoi2Ovpo8h/8tBrn2a+GO5/jyh38 X-Received: by 2002:a05:6402:698:: with SMTP id f24mr23051732edy.260.1588095280319; Tue, 28 Apr 2020 10:34:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588095280; cv=none; d=google.com; s=arc-20160816; b=EQNgwayy2Akfj38Tnp2fSON6IClMANc+ukSBxLvrPM5ejzltlR+hkJRebvJvvkq6RT u7e1qV1rGpTd9EKK5+AHtn4p5F0l88nTLm1yCEUUmr0eOxxecsGbgiRsBs4pLFxJSpAg ixILH/MzKLz7S0VANTXa/nvQ8M0MdVQCBHBJOl4o8Qd0QXo4uPUT9j8cKtTeQMgTMlzw D904UubuYV5TXAm/hZfgZSS83ecy9TySDkagWwpuHmtpBkxFdc4um1lppzMsBqSc6HHq nhMZhxfVlE+7xyBrFf3Pf+0jo68rLfgG3tFXW/wDuIjYMLhNXMNb5ee++9O6grFBouB1 ZBlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=zEpKqgD6CxCp/4neLnt12lP0XG+W9BQa8LAkqa8/Ciw=; b=rE9sm6ZVIo/kb9PI7N19NVhDn2KoVF7w5YVA6QUB6xd0zEj5G8lHOa6/N2Bb0uR/Mx H8yK0nv4xE7JGF+H2Y4khFhLFml/zNY85QC6Kc7LC1a9EFAlhuLjPrufT6LIb5F1CSTN 7crA30OHD9WW/OcQ2JN5JWdFYN6xF3h2GVPSPtkD6gRUpj7zzFXycFO/Xf8nUYIhN+Y0 ocPZ1xAGYSl8mmTMpC/+yLAFATWbMOmqNjMdzGJR1h7cW4/AwQXev5v87EmBkhT/Dfh0 t4j4tciQUrhU/SvcTwYZktRdEq1jBl/hCqU7dgxvOs78AbOFPmtO4G25ULQMSvls0la/ yL9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="bTFHh/WI"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk14si2224902ejb.124.2020.04.28.10.34.16; Tue, 28 Apr 2020 10:34:40 -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=pass header.i=@kernel.org header.s=default header.b="bTFHh/WI"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728679AbgD1RaV (ORCPT + 99 others); Tue, 28 Apr 2020 13:30:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:44626 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727957AbgD1RaT (ORCPT ); Tue, 28 Apr 2020 13:30:19 -0400 Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1116A21973; Tue, 28 Apr 2020 17:30:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588095018; bh=UEPvdsFLZuxyXGyDFPNcLESa54VFBSMo+Mr0GQ+Emqo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=bTFHh/WIuvmbk/bSvwY0RZBHITiBmfMDCNwRZr/A2ND5VmZKjSjqAEtdky2yZP42w JKPiC7uW7weGpoSSIFlMSSD4ZneQloxCwEthChbGal5DO/aZwYtKaLZ4FZYp0ABBLK Fk4jMLxqWqMXQJdae5AMmJ39KU59h/y15LP5vc18= Received: by mail-ot1-f54.google.com with SMTP id z17so34111172oto.4; Tue, 28 Apr 2020 10:30:18 -0700 (PDT) X-Gm-Message-State: AGi0Pua6UWBc2NuiN1vvtApJk07dCxjto0vTc+gEiAH41JlEuC9eocMi gsCWHe9l4ZG5AeXZd3enA3vOhimRVdevJ1dnSw== X-Received: by 2002:a9d:1441:: with SMTP id h59mr23779737oth.192.1588095017244; Tue, 28 Apr 2020 10:30:17 -0700 (PDT) MIME-Version: 1.0 References: <20200313052252.25389-1-o.rempel@pengutronix.de> <20200313052252.25389-2-o.rempel@pengutronix.de> In-Reply-To: <20200313052252.25389-2-o.rempel@pengutronix.de> From: Rob Herring Date: Tue, 28 Apr 2020 12:30:06 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 1/4] dt-bindings: net: phy: Add support for NXP TJA11xx To: Oleksij Rempel Cc: Andrew Lunn , Florian Fainelli , Heiner Kallweit , Mark Rutland , Pengutronix Kernel Team , "linux-kernel@vger.kernel.org" , "David S. Miller" , netdev , Marek Vasut , David Jander , devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 13, 2020 at 12:23 AM Oleksij Rempel wrote: > > Document the NXP TJA11xx PHY bindings. Given the discussion, I'd marked this one as "changes requested" expecting a new version to review the schema. And gmail decided to make a new thread due to the extra 'RE:'. So it fell off my radar. This schema is fundamentally broken as there's no way to match for when to apply this schema. How do we find a NXP TJA11xx PHY? I suppose we can look for 'ethernet-phy' with a child node 'ethernet-phy', but then that would apply to any phy like this one. This needs a compatible string IMO given it is non-standard. > > Signed-off-by: Oleksij Rempel > --- > .../devicetree/bindings/net/nxp,tja11xx.yaml | 61 +++++++++++++++++++ > 1 file changed, 61 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/nxp,tja11xx.yaml > > diff --git a/Documentation/devicetree/bindings/net/nxp,tja11xx.yaml b/Documentation/devicetree/bindings/net/nxp,tja11xx.yaml > new file mode 100644 > index 000000000000..42be0255512b > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/nxp,tja11xx.yaml > @@ -0,0 +1,61 @@ > +# SPDX-License-Identifier: GPL-2.0+ Dual license new bindings: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/nxp,tja11xx.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: NXP TJA11xx PHY > + > +maintainers: > + - Andrew Lunn > + - Florian Fainelli > + - Heiner Kallweit > + > +description: > + Bindings for NXP TJA11xx automotive PHYs Perhaps some information about how this phy is special. > + > +allOf: > + - $ref: ethernet-phy.yaml# Not needed here as ethernet-phy.yaml already has a 'select' condition to apply. > + > +patternProperties: > + "^ethernet-phy@[0-9a-f]+$": > + type: object > + description: | > + Some packages have multiple PHYs. Secondary PHY should be defines as > + subnode of the first (parent) PHY. > + > + properties: > + reg: > + minimum: 0 > + maximum: 31 > + description: > + The ID number for the child PHY. Should be +1 of parent PHY. > + > + required: > + - reg > + > +examples: > + - | > + mdio { > + #address-cells = <1>; > + #size-cells = <0>; > + > + tja1101_phy0: ethernet-phy@4 { > + reg = <0x4>; > + }; > + }; > + - | > + mdio { > + #address-cells = <1>; > + #size-cells = <0>; > + > + tja1102_phy0: ethernet-phy@4 { > + reg = <0x4>; > + #address-cells = <1>; > + #size-cells = <0>; These aren't documented. > + > + tja1102_phy1: ethernet-phy@5 { > + reg = <0x5>; > + }; > + }; > + }; > -- > 2.25.1 >