Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3370785ybz; Mon, 4 May 2020 01:30:55 -0700 (PDT) X-Google-Smtp-Source: APiQypJXa6plbQ+lWhm5vFz6E6nL0bABkVzI7fjSTsGSfVCWadzU9nez0AXJk2/Oh4m+vz7PhKJy X-Received: by 2002:a17:907:2098:: with SMTP id pv24mr14311546ejb.22.1588581054936; Mon, 04 May 2020 01:30:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588581054; cv=none; d=google.com; s=arc-20160816; b=WgVbb0NYZ6vdC/FibOBybWVx6IZTqPF24hCEwZDbtDuvuwu7hvIiOQkBnl6ddsUkNQ ut4GLhTXIOLO4eyFvsxRw6RvnrvW3f37zLCfhK9l/D4SgAX9yl8c1L77oIHwM3x4q1tk JZviJJsX2FHXFNhrnZ5gR82Qtkh5H7gaTlXSdvAkc5xsDQQJVno6M203eXWSeb6CfQdt Gip1a1QJUNt4p5ZZUsKHZognARn/pK6Au9e7Rq17E2Xpyo9P95rO+Jjfpl1YuM7VSFS8 +hV7uhOORck+QX2K8fBi015EsNEjHTWnZ9dN1Bg1vdRrTncikoIfmIGQdOnU7F+QBTld K+5A== 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=KEniIRQzggEGipF4qji3agdyEswCgWPRpGYZ0zeBlPA=; b=yGL5W0fsKsBtQWV3iUqshSF04yIFhe8Lyu5SkCwIj8gdS3UFmdvdxOJZMPHBSgtW+3 DSNbWOmfmATsq1wTcydyH04UmCcQ5xBSSOq3Fbgun7FLQk7eLQKg/q0BT8CKEpd+wpZT VXNZlhqqnQPyfcgIIMFdRRGKhyL872so657yiVPEyEUQSi4Fr63678v0bR+x0wDJauA2 /96K13e3hFfoG3hV/m8mLUbwMDxBHoz4aU+0BLBmQ8jIaS4NKaXTGzRQTO13mZWDNial 2TWVDzawGiHh0+YaP8GdEYFU/QoaHD70SDOr95MssKvbJ4MK7eo27Z7jeyLA7G493ow9 UIYw== 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 p23si6460930eju.299.2020.05.04.01.30.32; Mon, 04 May 2020 01:30:54 -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 S1728154AbgEDI01 (ORCPT + 99 others); Mon, 4 May 2020 04:26:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725941AbgEDI00 (ORCPT ); Mon, 4 May 2020 04:26:26 -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 C627EC061A0E for ; Mon, 4 May 2020 01:26:25 -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 1jVWQe-0001ZE-Mr; Mon, 04 May 2020 10:26:20 +0200 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1jVWQc-0002zd-Ub; Mon, 04 May 2020 10:26:18 +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: [RFC PATCH] dt-bindings: net: nxp,tja11xx: add compatible support Date: Mon, 4 May 2020 10:26:17 +0200 Message-Id: <20200504082617.11326-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 ... and correct SPDX-License-Identifier. Signed-off-by: Oleksij Rempel --- .../devicetree/bindings/net/nxp,tja11xx.yaml | 51 ++++++++++++------- 1 file changed, 32 insertions(+), 19 deletions(-) diff --git a/Documentation/devicetree/bindings/net/nxp,tja11xx.yaml b/Documentation/devicetree/bindings/net/nxp,tja11xx.yaml index 42be0255512b3..e4ae8257f3258 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# @@ -14,25 +14,36 @@ maintainers: description: Bindings for NXP TJA11xx automotive PHYs -allOf: - - $ref: ethernet-phy.yaml# +properties: + compatible: + oneOf: + - items: + - enum: + - nxp,tja1102 + - const: ethernet-phy-ieee802.3-c22 -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. + $nodename: + pattern: "^ethernet-phy(@[a-f0-9]+)?$" - properties: - reg: - minimum: 0 - maximum: 31 - description: - The ID number for the child PHY. Should be +1 of parent PHY. + reg: + minimum: 0 + maximum: 31 + description: + The ID number for the child PHY. Should be +1 of parent PHY. - required: - - reg + '#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 + +required: + - compatible + - reg + - '#address-cells' + - '#size-cells' examples: - | @@ -40,8 +51,9 @@ examples: #address-cells = <1>; #size-cells = <0>; - tja1101_phy0: ethernet-phy@4 { - reg = <0x4>; + tja1101_phy0: ethernet-phy@1 { + compatible = "nxp,tja1101", "ethernet-phy-ieee802.3-c22"; + reg = <0x1>; }; }; - | @@ -50,6 +62,7 @@ examples: #size-cells = <0>; tja1102_phy0: ethernet-phy@4 { + compatible = "nxp,tja1102", "ethernet-phy-ieee802.3-c22"; reg = <0x4>; #address-cells = <1>; #size-cells = <0>; -- 2.26.2