Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3110003rwb; Tue, 8 Nov 2022 00:14:50 -0800 (PST) X-Google-Smtp-Source: AMsMyM4sKlxB1QFhboywoFdvk5YbVIAbNtZ80xrBn4Qj8SqQr6JksrXo3L+/GbLeAb/Gt56h9NSR X-Received: by 2002:a17:906:4f82:b0:7ad:c7d6:eee5 with SMTP id o2-20020a1709064f8200b007adc7d6eee5mr44889074eju.681.1667895290314; Tue, 08 Nov 2022 00:14:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667895290; cv=none; d=google.com; s=arc-20160816; b=gReXO6IGwf6kxgred7GCCihJCxf4lWBnLmyoDClNcsYRvLfEQIz4r/1pp6qxR80M9C Ht2waWr/xVBhs55+zC7+eGfJgq6MWVwgf8eihsf36CZQUM/ww5Jq1IitJYh1ANoFRvA7 tc+9fACZrJTWmv4cngXRdmUH0w+aLzTVQqJhVZBOF/d6JEz82gYNkZsxn9uQC8A1qgy2 lUPCKYnAGBhPnimBg2Ao1GwP0sVt53l9Mb2IOtJj1XFwCe89Fy8DgqHxUFRE2SWnXLxt 7oUwAabkrNhU+vzlLPaL5ut4C7N1nS/zTJJSbWfiQA1mgawHZy/GTwseoJz8AgAbOCoM COww== 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=cRg6wv4PkB7ONDPNsAk9tGPwOpFlvlT2uKlIEG6UVoDGo+yn11aOFmYC8ltOlgavv6 oXQrUY4PE4WpwqYOo4uoe3Co1SxZVCuxaTL3Gz7TO2UQdI66QNko16n2g78wOEQW5GAK OUqfHSiCczhAH+c/0hkKSCyTWj971SKsjfdevNsdwy80TioU1LA6v7VuJBL5tQf4eNf9 3hKpBX2oot4sch/dnEF+5hZ77/oKNbviR+ab11Sx/+XSr1CxeSvrGLHiEUXvVv42xonY ryL+waX/AcODFDFUSQE5UYoy/up+qfLCOZEmkZ7ggvHxZGrz/jW4zbt2gjBF2w31Zi5j OKeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=DUudGhbf; 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 hs7-20020a1709073e8700b0073d9ea386d4si9881773ejc.983.2022.11.08.00.14.23; Tue, 08 Nov 2022 00:14:50 -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=DUudGhbf; 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 S233591AbiKHIHC (ORCPT + 90 others); Tue, 8 Nov 2022 03:07:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232494AbiKHIGs (ORCPT ); Tue, 8 Nov 2022 03:06:48 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 758391DA7B; Tue, 8 Nov 2022 00:06:46 -0800 (PST) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2A886Gtl077122; Tue, 8 Nov 2022 02:06:16 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1667894776; bh=f+/hD2UAEmnR3+Go/lOUiJffhqgYnLACZh9HsbiXWfc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=DUudGhbfNMdQsmR2l4tlhreM3dXCo2bZfcD7O5YdLt6CccC0lCnYt7Tr0uW0EYXsd abocJIvD68PvzV9RMspKTqU2c1LpoiLhMk45IaGI4XC3ky3TxzUMXEqTPeTmLAENdA 5oCRirZhxZHREULwhlRDCSnVh0evv749jf1iaLls= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2A886GeO037191 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 8 Nov 2022 02:06:16 -0600 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE112.ent.ti.com (10.64.6.33) 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 02:06:16 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE115.ent.ti.com (10.64.6.36) 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 02:06:16 -0600 Received: from uda0492258.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2A8866mD033956; Tue, 8 Nov 2022 02:06:11 -0600 From: Siddharth Vadapalli To: , , , , , , , , , , CC: , , , , , Subject: [PATCH v4 1/3] dt-bindings: net: ti: k3-am654-cpsw-nuss: Add J721e CPSW9G support Date: Tue, 8 Nov 2022 13:36:04 +0530 Message-ID: <20221108080606.124596-2-s-vadapalli@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221108080606.124596-1-s-vadapalli@ti.com> References: <20221108080606.124596-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