From patchwork Fri Jan 15 19:28:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 363736 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp143534jap; Fri, 15 Jan 2021 11:30:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDmdBgXCxfg1nHhM3GPEkG6lcyn6na55rn0Y664arelDPxu3dx7EMEF6Nz39Q2jLxiQBAb X-Received: by 2002:a17:907:214d:: with SMTP id rk13mr10292737ejb.501.1610739018753; Fri, 15 Jan 2021 11:30:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610739018; cv=none; d=google.com; s=arc-20160816; b=hBnUgJ/x+sCyhW5mtVRcR6MvKIKlr6N2kCOSH5xi13/m7Sqv8cZ4zWFIa5kJDsvPhr /+0KgQZB4/C+FTJ4PPddqQHMCNkR/e5dbMYmXq1iYF+FurHP/zj1twPQv7axY3Prg5gb LI3y/Lged9EY9SjOcyEbIg7DcQ5C9GMmd3TGl3TTcDFALb+fGmG4DFJgnE/4Bt6I128r 1dRkyaEuLa43eDi43bWdVBk4SMSinmU1ej+U0Z0QaNMd0PCcuM8XnorP7SeUPHtGggPw vYmUVUCC4unGA9vARTucrmQpeZmOc/17TTE0d1IjSsgDu3/VAPvAiwV3Q6pa9vwTVxQw CcHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=RVk08ZYJ9d6t9cvlnZCVuB1ibN+rBkiw/DHXFibDelI=; b=MqNj6VZARLZe/r7sDzM0IzTL3ipJrybGz66gP56rz7Ij71OQzQ511ISYIo2b0iR41a 0n0ixGFMW26NFs/Gif37DbaGe26ROPIt3jxuXxCaD6+KfC/tyJTQa6KkZRcIEC5FH773 GpRnppsDWdrCYGvdrKLj7iwru13GTXH2+92z1y9fitqK5N+JY+1h24YYVhQmxf7oI2QW lhQaJz6Igl6Wb+/Rz6mtXoBKD5GgiWK6+P6mxOmNgDBBwSd3eU51Q/RX5VaSO4e6uHLN eGX334HR8KDTwJ9VH6z3WmRplzlWAjeqe0xuKeBYDRFn1/wGUhxqCUlbQAwy4BI7edbj I3QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=sZXyARS2; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f19si4175607ejw.701.2021.01.15.11.30.18; Fri, 15 Jan 2021 11:30:18 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=sZXyARS2; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 S2388430AbhAOTaM (ORCPT + 7 others); Fri, 15 Jan 2021 14:30:12 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:36986 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388344AbhAOTaL (ORCPT ); Fri, 15 Jan 2021 14:30:11 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 10FJTSTE008601; Fri, 15 Jan 2021 13:29:28 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1610738968; bh=RVk08ZYJ9d6t9cvlnZCVuB1ibN+rBkiw/DHXFibDelI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=sZXyARS2PpzrGY48UTHKlvA1ddKZwQ+F/mrQUvPfmZBbkpuu6PCsH/t5ucNbyUfcr 4HmTIIetjMsoYuLIdH4kF7JJC8+cxTSgy7OomnYoZS89mDn2l6Db6WPQwCYG0QQ49T mFRGHaQZR52srrLNtJO8gYciwCtH5iVkiceRBTKQ= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 10FJTSnO026422 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 15 Jan 2021 13:29:28 -0600 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 15 Jan 2021 13:29:28 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Fri, 15 Jan 2021 13:29:28 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 10FJTRVP007666; Fri, 15 Jan 2021 13:29:27 -0600 From: Grygorii Strashko To: "David S. Miller" , , Jakub Kicinski , Peter Ujfalusi , Vignesh Raghavendra , Rob Herring CC: , Sekhar Nori , , Grygorii Strashko Subject: [net-next 6/6] net: ethernet: ti: am65-cpsw: add support for am64x cpsw3g Date: Fri, 15 Jan 2021 21:28:53 +0200 Message-ID: <20210115192853.5469-7-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210115192853.5469-1-grygorii.strashko@ti.com> References: <20210115192853.5469-1-grygorii.strashko@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Vignesh Raghavendra The TI AM64x SoCs Gigabit Ethernet Switch subsystem (CPSW3g NUSS) has three ports (2 ext. ports) and provides Ethernet packet communication for the device and can be configured in multi port mode or as an Ethernet switch. This patch adds support for the corresponding CPSW3g version. Signed-off-by: Vignesh Raghavendra Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/am65-cpsw-nuss.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.17.1 diff --git a/drivers/net/ethernet/ti/am65-cpsw-nuss.c b/drivers/net/ethernet/ti/am65-cpsw-nuss.c index d060744dd0b2..1850743c04da 100644 --- a/drivers/net/ethernet/ti/am65-cpsw-nuss.c +++ b/drivers/net/ethernet/ti/am65-cpsw-nuss.c @@ -2115,9 +2115,16 @@ static const struct am65_cpsw_pdata j721e_pdata = { .fdqring_mode = K3_RINGACC_RING_MODE_MESSAGE, }; +static const struct am65_cpsw_pdata am64x_cpswxg_pdata = { + .quirks = 0, + .ale_dev_id = "am64-cpswxg", + .fdqring_mode = K3_RINGACC_RING_MODE_RING, +}; + static const struct of_device_id am65_cpsw_nuss_of_mtable[] = { { .compatible = "ti,am654-cpsw-nuss", .data = &am65x_sr1_0}, { .compatible = "ti,j721e-cpsw-nuss", .data = &j721e_pdata}, + { .compatible = "ti,am642-cpsw-nuss", .data = &am64x_cpswxg_pdata}, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, am65_cpsw_nuss_of_mtable);