Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4632117rwb; Tue, 8 Nov 2022 21:13:07 -0800 (PST) X-Google-Smtp-Source: AMsMyM5SdTFxk5LqpkgK4zKwU2W06nPQWea5Spz+O5LfSmzZs4nuFsGfk9sb+abMu4ActSDEKRnR X-Received: by 2002:a17:907:3205:b0:770:8554:c4ee with SMTP id xg5-20020a170907320500b007708554c4eemr57130175ejb.39.1667970787108; Tue, 08 Nov 2022 21:13:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667970787; cv=none; d=google.com; s=arc-20160816; b=BYGjRhOoPmTAKPRCJP4l2o6iUaHwxwHQv4Vw/m9uhuA2+uWA6OWjeIptl3qvSRVSMP R3U4zg4GONkJZ4jfzDMK9nHLLIOXhH9qV8XAx3Z6NDOY8jadJAnzpSmQ5YiQedEefubC 7K6SYaTY1bBDroM3LQvDdzhG+5FgF0T6ncy3ZEJNv1WZo6VZGBZjfdaU4FOc+8Wkep/r 8HN6Y4IDZNaKdJUPRQEO1VfZ7cdVa+mSFQ8/zmqRlnhPtuvGM/71vUWpu6nZZ4Gf5Yqc 1LCeKQKCcoa/tUyw/73M7m3N+ROSSK6ZKfpjooRX4drTDkvp4dbxg+Md7TSXdvwwUbWE sBFA== 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=f+/hD2UAEmnR3+Go/lOUiJffhqgYnLACZh9HsbiXWfc=; b=RbQagzWTPmyBYthF7JNmRvXruS0/KMDkmm0Wyh5syJ3IXYnXMoXZsKfVefC7PomtAp qIhN8daAiyyakSbuCFHxng5qnFKLZU0CPf/muSx4VbOIFHpkvH6vojX0PpJ2hGhNqCc1 3dzv+B4Edk232ocDKqvDZBapc6bcRDIRAWP9csS6UJcV5thpbOw4j+XfZBk1zTt7m2YI D5QnAmzWpmICDm7NJQNys9ag39vnMMAQuSOzX2jZNbB2DMAglHOkmgK6TezvXoWG4Otk cDcbhErF7zswX6fOBRvwT77LC7TU7PKsPZGwzULekBa9pvXQDeUGWXHSyHglfeiYGnP9 mB4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fut7dnNl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn39-20020a1709070d2700b007aaf5a45f5asi14926720ejc.47.2022.11.08.21.12.45; Tue, 08 Nov 2022 21:13:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fut7dnNl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229578AbiKIEWk (ORCPT + 94 others); Tue, 8 Nov 2022 23:22:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiKIEWe (ORCPT ); Tue, 8 Nov 2022 23:22:34 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9862411A15; Tue, 8 Nov 2022 20:22:32 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2A94ME33003306; Tue, 8 Nov 2022 22:22:14 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1667967734; bh=f+/hD2UAEmnR3+Go/lOUiJffhqgYnLACZh9HsbiXWfc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=fut7dnNlYS/kORGuvbYLB1TZoJv6dpxdbJbbk6j/xpDLRy8LjgyRHoUbBjyf9D64/ E0c5VMlAgAyz9Sau0sfd5mDLSghbaWzM4GtoJQfbyu/q44kTfL4ss2XYYCqocofvZd mdJNLc5L3bXpX1Q7dPgNeql1zI+AggByIxC0y8P4= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2A94MESf033959 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 8 Nov 2022 22:22:14 -0600 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Tue, 8 Nov 2022 22:22:13 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Tue, 8 Nov 2022 22:22:14 -0600 Received: from uda0492258.dhcp.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2A94M4R8111905; Tue, 8 Nov 2022 22:22:09 -0600 From: Siddharth Vadapalli To: , , , , , , , , , , CC: , , , , , Subject: [PATCH net-next v5 1/3] dt-bindings: net: ti: k3-am654-cpsw-nuss: Add J721e CPSW9G support Date: Wed, 9 Nov 2022 09:52:01 +0530 Message-ID: <20221109042203.375042-2-s-vadapalli@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221109042203.375042-1-s-vadapalli@ti.com> References: <20221109042203.375042-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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 J721e SoC which contains 9 ports (8 external ports) CPSW9G module and add compatible for it. Changes made: - Add new compatible ti,j721e-cpswxg-nuss for CPSW9G. - Extend pattern properties for new compatible. - Change maximum number of CPSW ports to 8 for new compatible. Signed-off-by: Siddharth Vadapalli Reviewed-by: Rob Herring --- .../bindings/net/ti,k3-am654-cpsw-nuss.yaml | 33 ++++++++++++++++--- 1 file changed, 29 insertions(+), 4 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 821974815dec..900063411a20 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,j7200-cpswxg-nuss - ti,j721e-cpsw-nuss + - ti,j721e-cpswxg-nuss - ti,am642-cpsw-nuss reg: @@ -111,7 +112,7 @@ properties: const: 0 patternProperties: - "^port@[1-4]$": + "^port@[1-8]$": type: object description: CPSWxG NUSS external ports @@ -121,7 +122,7 @@ properties: properties: reg: minimum: 1 - maximum: 4 + maximum: 8 description: CPSW port number phys: @@ -186,12 +187,36 @@ allOf: properties: compatible: contains: - const: ti,j7200-cpswxg-nuss + const: ti,j721e-cpswxg-nuss then: properties: ethernet-ports: patternProperties: - "^port@[3-4]$": false + "^port@[5-8]$": false + "^port@[1-4]$": + properties: + reg: + minimum: 1 + maximum: 4 + + - if: + not: + properties: + compatible: + contains: + enum: + - ti,j721e-cpswxg-nuss + - ti,j7200-cpswxg-nuss + then: + properties: + ethernet-ports: + patternProperties: + "^port@[3-8]$": false + "^port@[1-2]$": + properties: + reg: + minimum: 1 + maximum: 2 additionalProperties: false -- 2.25.1