Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp554716ybj; Tue, 5 May 2020 03:44:29 -0700 (PDT) X-Google-Smtp-Source: APiQypKMbuBhSA5ojxL5gryKP5mdQdbzZjI8skH6mI/Tcpa6EHzoO4WC7azEkduirc29BfKVbtIh X-Received: by 2002:a17:906:7204:: with SMTP id m4mr2112472ejk.48.1588675469624; Tue, 05 May 2020 03:44:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588675469; cv=none; d=google.com; s=arc-20160816; b=Bs+LXZIF7EPHY1bKhjiCWUL6gKIVJ589F14pKqB9lh3VdGeXC5F4lujs9FMv9ui7FC C+e3GGl0JFTxTTnLI1jPU7/Gh8IConQkBMc+RnLkWFKQ4KkFuJzhKgzR7/IHXGtO32W9 1JHCv2EEEJ0eCe+j4YIVmt4LFfolhAm12dXmLffGnRTNT/lRowIIUNy7f1XCyEXWAzET 0opm3UWnVoNh4dD7S/6FIrGzYx0J92984F8vgld8ma7I1jkZJUxeWt34UFRQ16InQs6b scLvW1TruyGOl1YbkCX+oscCShza/5GOn8elv0Nujpgl7/v2eVsDNUuLMGxoAQ02CmsV Lvgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=L7sCRN85fI4+BaGP1efHP0tbfD1f2LqHGwcdfFQVLmg=; b=uuvcKhYwhyl/fPPy2RlaXoIoh4jFni/7qe0bigA4z3AqHWlv5lttIALYHSnVAh4EIl aTc2RRdu3XzOoshPeEbYfBBYrzlTgDMgey4pkd2+6rB/fDvbLK5RsA0rDaGs879hEGVJ /nYWJiaIl7TTcqqUHxUnYL3lE6kty8g3J3Y1LlguCuyYSbB8Py6Xz5wdgqjO/8hQF1yR Lbig6H9lnjQhmi6SNZdt/ByddDFptKWXgGaTB3fCwFFhYXmzgIZ8xhAUPHg/44MZOl1y oHqM7VCjpT3ndtDVD6Sl1rtBVmxZzZXOQ0koIN6mTXN7IFdbhxtR7I/9+rMM/0XGf+9h bE9g== ARC-Authentication-Results: i=1; mx.google.com; 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 b6si1089013edt.60.2020.05.05.03.44.05; Tue, 05 May 2020 03:44:29 -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; 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 S1728497AbgEEKm1 (ORCPT + 99 others); Tue, 5 May 2020 06:42:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725766AbgEEKm1 (ORCPT ); Tue, 5 May 2020 06:42:27 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4488C061A0F for ; Tue, 5 May 2020 03:42:26 -0700 (PDT) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVv1n-0000cZ-GV; Tue, 05 May 2020 12:42:19 +0200 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1jVv1k-0002mo-MH; Tue, 05 May 2020 12:42:16 +0200 From: Oleksij Rempel To: Andrew Lunn , Florian Fainelli , Heiner Kallweit , Mark Rutland , Rob Herring Cc: Oleksij Rempel , Pengutronix Kernel Team , linux-kernel@vger.kernel.org, "David S. Miller" , netdev@vger.kernel.org, Marek Vasut , David Jander , devicetree@vger.kernel.org Subject: [PATCH v1] dt-bindings: net: nxp,tja11xx: rework validation support Date: Tue, 5 May 2020 12:42:15 +0200 Message-Id: <20200505104215.8975-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. + + '#address-cells': + description: number of address cells for the MDIO bus + const: 1 + + '#size-cells': + description: number of size cells on the MDIO bus + const: 0 patternProperties: - "^ethernet-phy@[0-9a-f]+$": + "^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. + description: + Integrated PHY node properties: reg: - minimum: 0 - maximum: 31 + minimum: 1 + maximum: 15 description: - The ID number for the child PHY. Should be +1 of parent PHY. + The PHY address of the slave PHY. Should be +1 of parent PHY. required: - reg -examples: - - | - mdio { - #address-cells = <1>; - #size-cells = <0>; +required: + - compatible + - reg + - '#address-cells' + - '#size-cells' - tja1101_phy0: ethernet-phy@4 { - reg = <0x4>; - }; - }; +examples: - | mdio { #address-cells = <1>; #size-cells = <0>; tja1102_phy0: ethernet-phy@4 { + compatible = "ethernet-phy-id0180.dc80"; reg = <0x4>; #address-cells = <1>; #size-cells = <0>; -- 2.26.2