Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp326876iof; Mon, 6 Jun 2022 04:21:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKfZANAFJMuWJV4BIkiXBvR6SZ8IqPO+Eo94bsfFgulfMNUGoSRDgdtkBrIetzo5/I/LyP X-Received: by 2002:a63:d507:0:b0:3fb:22d1:8a51 with SMTP id c7-20020a63d507000000b003fb22d18a51mr20066149pgg.377.1654514471284; Mon, 06 Jun 2022 04:21:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654514471; cv=none; d=google.com; s=arc-20160816; b=JOAcIC8PgBTOsboJo1mBbe3EGWGXLL2ehQRnG5NDwa9vI9gPPZh0kjdNTMKYVH5R/H 9+YlDeACi1IvTfpi8aA76Get+O54IQfxQIYlopl4AfqjOl03Aq81zHz80KfmKUvvLPgF cW5s9fSG2S9jf8YFkV7drKZhbm1YygvgwAtwoOs5esetSc90qwTNxA+eGL9R0n4yKPQY of8TCh4UdI7Yse6NYAklHj8THabw9UQCQNZOj1UhIkJgGXJ65Twb6Z83hANvl2LelMqh w9eXY1fbWBrQhtjXffXjLRw8LusNjGyKXof7A5kzY10LCKC/94PeXTPUJ2fciDLohY1Q Jtcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=o/NbVWeD7+vJKSMmPKEOtJ1ogeQqv2aRPGTrxTqU9x0=; b=JTVcyl9ggg9+IvkCV0JAnq6gHAzE/spQkEdtaf/AnhobL5+7GVBVpeCTYEpj7j9nVv 2TidF/ntFzgAeXZB3nNAAr1kvwVpPG8ZTc1jfGZ3hyXY/G3MHXp6NV0/PNgrXBXAs9f+ U85G1iL6HO3A6q12bSxLmcPyTLz+9DZT5pWS+PbleAlz3R6jSDofJnxCidt8xsh0rOlX NwgAEvBWapgl90/mJCs+jyNUKPoUXcKuwRbeBf/CyMjsY/2y6Bf7yazcS197tImlHJ0U 3xKx3YjCOJl9u8iXYtMW58HdGtQG79FKT+omRB0tgFmZddTJKs7kaZCZFkHReRBWIOO+ l5zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=LjRyUOCB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t17-20020a17090ad15100b001df458aec1bsi22756476pjw.93.2022.06.06.04.21.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 04:21:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=LjRyUOCB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 10D4F1AEC7C; Mon, 6 Jun 2022 04:06:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234555AbiFFLFv (ORCPT + 99 others); Mon, 6 Jun 2022 07:05:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234542AbiFFLFt (ORCPT ); Mon, 6 Jun 2022 07:05:49 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B5111AD591; Mon, 6 Jun 2022 04:05:47 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 256B5TM3102695; Mon, 6 Jun 2022 06:05:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1654513529; bh=o/NbVWeD7+vJKSMmPKEOtJ1ogeQqv2aRPGTrxTqU9x0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=LjRyUOCBCOEwIOa35bBuWq4WeK390GcCbAIJH7DK1jCfRHndYw36/F2xODkMQJ3S5 ZgvbtBZYFOJ6ndhJGYy9Gh+b9dw4H3gmBGeSLgz8wvZBu4VMUo+inGtZygfrnnLRuG kPFATHVbAjVVC1f5Y/7X4INmqyi7bXo5WdqmrKPo= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 256B5TMG031538 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 6 Jun 2022 06:05:29 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Mon, 6 Jun 2022 06:05:29 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Mon, 6 Jun 2022 06:05:29 -0500 Received: from ula0492258.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 256B57G3072083; Mon, 6 Jun 2022 06:05:23 -0500 From: Siddharth Vadapalli To: , , , , , , , , , , CC: , , , , Siddharth Vadapalli Subject: [PATCH v3 1/3] dt-bindings: net: ti: k3-am654-cpsw-nuss: Update bindings for J7200 CPSW5G Date: Mon, 6 Jun 2022 16:34:41 +0530 Message-ID: <20220606110443.30362-2-s-vadapalli@ti.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220606110443.30362-1-s-vadapalli@ti.com> References: <20220606110443.30362-1-s-vadapalli@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update bindings for TI K3 J7200 SoC which contains 5 ports (4 external ports) CPSW5G module and add compatible for it. Changes made: - Add new compatible ti,j7200-cpswxg-nuss for CPSW5G. - Extend pattern properties for new compatible. - Change maximum number of CPSW ports to 4 for new compatible. Signed-off-by: Siddharth Vadapalli --- .../bindings/net/ti,k3-am654-cpsw-nuss.yaml | 135 ++++++++++++------ 1 file changed, 93 insertions(+), 42 deletions(-) diff --git a/Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml b/Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml index b8281d8be940..49f63aaf5a08 100644 --- a/Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml +++ b/Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml @@ -57,6 +57,7 @@ properties: - ti,am654-cpsw-nuss - ti,j721e-cpsw-nuss - ti,am642-cpsw-nuss + - ti,j7200-cpswxg-nuss reg: maxItems: 1 @@ -108,48 +109,98 @@ properties: const: 1 '#size-cells': const: 0 - - patternProperties: - port@[1-2]: - type: object - description: CPSWxG NUSS external ports - - $ref: ethernet-controller.yaml# - - properties: - reg: - minimum: 1 - maximum: 2 - description: CPSW port number - - phys: - maxItems: 1 - description: phandle on phy-gmii-sel PHY - - label: - description: label associated with this port - - ti,mac-only: - $ref: /schemas/types.yaml#/definitions/flag - description: - Specifies the port works in mac-only mode. - - ti,syscon-efuse: - $ref: /schemas/types.yaml#/definitions/phandle-array - items: - - items: - - description: Phandle to the system control device node which - provides access to efuse - - description: offset to efuse registers??? - description: - Phandle to the system control device node which provides access - to efuse IO range with MAC addresses - - required: - - reg - - phys - - additionalProperties: false + allOf: + - if: + properties: + compatible: + contains: + enum: + - ti,am654-cpsw-nuss + - ti,j721e-cpsw-nuss + - ti,am642-cpsw-nuss + then: + patternProperties: + port@[1-2]: + type: object + description: CPSWxG NUSS external ports + + $ref: ethernet-controller.yaml# + + properties: + reg: + minimum: 1 + maximum: 2 + description: CPSW port number + + required: + - reg + - if: + properties: + compatible: + contains: + enum: + - ti,j7200-cpswxg-nuss + then: + patternProperties: + port@[1-4]: + type: object + description: CPSWxG NUSS external ports + + $ref: ethernet-controller.yaml# + + properties: + reg: + minimum: 1 + maximum: 4 + description: CPSW port number + + required: + - reg + - if: + properties: + compatible: + contains: + enum: + - ti,am654-cpsw-nuss + - ti,j721e-cpsw-nuss + - ti,am642-cpsw-nuss + - ti,j7200-cpswxg-nuss + then: + patternProperties: + port@[*]: + type: object + description: CPSWxG NUSS external ports + + $ref: ethernet-controller.yaml# + + properties: + phys: + maxItems: 1 + description: phandle on phy-gmii-sel PHY + + label: + description: label associated with this port + + ti,mac-only: + $ref: /schemas/types.yaml#/definitions/flag + description: + Specifies the port works in mac-only mode. + + ti,syscon-efuse: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: Phandle to the system control device node which + provides access to efuse + - description: offset to efuse registers??? + description: + Phandle to the system control device node which provides access + to efuse IO range with MAC addresses + + required: + - phys + + additionalProperties: false patternProperties: "^mdio@[0-9a-f]+$": -- 2.36.1