From patchwork Mon Sep 7 20:21:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 249262 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp3972916ilg; Mon, 7 Sep 2020 13:21:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAEr1eCX2aN5MZ58NN+J7nR04NiEKWDDDMHKcGaST79LxhFfljo3qpMBW77bFJgvaW49LZ X-Received: by 2002:a50:9fa5:: with SMTP id c34mr15968567edf.2.1599510112211; Mon, 07 Sep 2020 13:21:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599510112; cv=none; d=google.com; s=arc-20160816; b=oMc1jr+BjBbMifBrHboCqUtQQzPvPOGqMzY6IClB0XZNceWp3z4Ji6yvDFQdAsRfKr Vk2nlbtA4bFYphd8WHDcWA0P+F0MvxKDcxRTHPWsq7b7xP+OKMsMlmSfUmuxgWZSH/Fw 3beFxdC/tYqT4VPNWqYuXX1uSEQgU78Mpqp6xlEVOkMEeG3/3uv+Grx5YoCfgwqgJ22N urGl2tRixil10vPiMyaMg07/TIS4rcaeg8Su9nixHaqbA2VuVaf18cAU1vpUL1ToQQuN HB0MQDhWd4fuLTwFItdfgqAh3P25Cd+osgbS2vE79LL6PdXN5xGmENCs6NpvRwLw7bx9 8JYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=DndXHxrHBEGJZ0P3K7dz8g+iOjJ6ahMtkEMkEAT5I00=; b=AAOYegPeQy+XAJY5/yHaAJAZJmQPSGDni6xEtHTxxChTjcXNBlvnjj1qx57KYllUPz H7rJWHDaz//WyET6KQ2tgy2WFfvUkEEZvTDT5f6uS6GTuFfyy9poLngX5m9dT6Qp78is oNHFVBCPAJBiOFXLsBSOiQbXaglpXNm+mQOXbkq91yGwaJDl0FCbdx3c3pVqSyVZfhYP 1djQwZNCS+nZw+YHX8otZMIKxrMf/56EWpxLqyStLUKs5TBO+q7C/fa+Nwej+/cxe2yk 7pbDl6o89+MUXXLJ6aJryXYiUSX+p5ncye+KEGEmheMPu/Vteo6nGUlw01e8UsbXGBSP 9xaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=t8NWtSsB; spf=pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-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 c13si10383207edv.328.2020.09.07.13.21.52; Mon, 07 Sep 2020 13:21:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-omap-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=t8NWtSsB; spf=pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-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 S1729726AbgIGUVt (ORCPT + 4 others); Mon, 7 Sep 2020 16:21:49 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:38518 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729862AbgIGUVs (ORCPT ); Mon, 7 Sep 2020 16:21:48 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 087KLfUZ070178; Mon, 7 Sep 2020 15:21:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1599510101; bh=DndXHxrHBEGJZ0P3K7dz8g+iOjJ6ahMtkEMkEAT5I00=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=t8NWtSsBZSLR+EiU4TjlwI+uDryR9/0ALqMkKOsVyjSdJKXdtiAHt8ppZdQK4g4tw /APuROXjdRZCTtkuo35jBvCxrMNpRzs7FseE6bc4Ej8EX59fwl15iSTBXEJq4aAaU7 ARlWJAVvswtk872srbB63bUhmthf8Tr4W9SDeK2s= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 087KLfZg115715; Mon, 7 Sep 2020 15:21:41 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 7 Sep 2020 15:21:41 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE101.ent.ti.com (157.170.170.31) 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; Mon, 7 Sep 2020 15:21:40 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 087KLebs127278; Mon, 7 Sep 2020 15:21:40 -0500 From: Grygorii Strashko To: Tony Lindgren CC: , , Sekhar Nori , Vignesh Raghavendra , Murali Karicheri , Grygorii Strashko Subject: [PATCH next 1/6] ARM: dts: am5729: beagleboneai: switch to new cpsw switch drv Date: Mon, 7 Sep 2020 23:21:20 +0300 Message-ID: <20200907202125.22943-2-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907202125.22943-1-grygorii.strashko@ti.com> References: <20200907202125.22943-1-grygorii.strashko@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Switch BeagleBone AI to use new cpsw switch driver. It has one Ext. port only and fits dual_mac mode with no issues. Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/am5729-beagleboneai.dts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) -- 2.17.1 diff --git a/arch/arm/boot/dts/am5729-beagleboneai.dts b/arch/arm/boot/dts/am5729-beagleboneai.dts index e9c7f44126e7..149cfafb90bf 100644 --- a/arch/arm/boot/dts/am5729-beagleboneai.dts +++ b/arch/arm/boot/dts/am5729-beagleboneai.dts @@ -488,25 +488,29 @@ status = "okay"; }; -&davinci_mdio { +&davinci_mdio_sw { reset-gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; reset-delay-us = <2>; - phy0: ethernet-phy@1 { + phy0: ethernet-phy@4 { reg = <4>; eee-broken-100tx; eee-broken-1000t; }; }; -&mac { - slaves = <1>; +&mac_sw { status = "okay"; }; -&cpsw_emac0 { +&cpsw_port1 { phy-handle = <&phy0>; phy-mode = "rgmii-rxid"; + ti,dual-emac-pvid = <1>; +}; + +&cpsw_port2 { + status = "disabled"; }; &ocp { From patchwork Mon Sep 7 20:21:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 249263 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp3972924ilg; Mon, 7 Sep 2020 13:21:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyT97vFuSNkVrOy1bKKbBXjJcVDZ0hDshInt0HzkRcFjGaeN8W/Gv0ZiCFQCUi/nz2yAEG7 X-Received: by 2002:a50:aaca:: with SMTP id r10mr24314176edc.307.1599510113034; Mon, 07 Sep 2020 13:21:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599510113; cv=none; d=google.com; s=arc-20160816; b=GbOSq8hBL0MYYKt81yWpVXb7zOM1dQp+vFTBratcKudJkGxZObMOO0Xhbj7FUssAfJ 1PeaLEzk/Ir1qrWUuaX+i+Jylr0Gm05/D9bnNx2eF3vM3T7I3LXsXZmkPAXeyDYOcZI8 8Bp3ykRrj5m5lp8uwe+ArWLiZHFQPkHkKAECt+k5u+SzLGmn3amyg45i9dGEhKjxPMDR Up29ARnFn5H6u5ipxSht3w9bcOz6sOrHG1UkQkK6PxK3VxFW/0/xsdGkBccWjNADAYca XYR3fFsektr8+vIbE7X4b1A2dQt0H/rx4pMHdlcjl/qRhM53axe9tvMSy2H73wi0LB4B 6Z8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=G6A2Bv+f5xCG76OjLI2bdOjq+hu9sly1gK8TEdL8zeA=; b=P2RzULhq4p7FUQ150KC4trVBmSb+bvE4PegxeGEITzTiFti9SUV36LDuqDyq/djXP4 WlbXrO11nP9eHCe+F2rutEhuvgdMjHmvMkHjJw9cwOLB5ewhwNvAq4lCuiKfHajn/kbH 1gKKiH7ebe6x5RxH67bj7i0+nJlptoonQ35T9VLDz3vtTDf9ac73FApa9GfzncIVsB77 RU5CiL4J4UWnfezJyil7EKoegDCC4B3v4O07AARzlsd2zkf6E50fZ8Joz18x2E1e/1cZ Q6l7zfkXvgJugQ3hyFTcOyrUx2F0dSAhauj3POoFwBZVp6c2rdjgAaPoctu6bAHQZE19 qmJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=iaGkfK8L; spf=pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-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 c13si10383207edv.328.2020.09.07.13.21.52; Mon, 07 Sep 2020 13:21:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-omap-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=iaGkfK8L; spf=pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-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 S1729923AbgIGUVt (ORCPT + 4 others); Mon, 7 Sep 2020 16:21:49 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:37364 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729917AbgIGUVs (ORCPT ); Mon, 7 Sep 2020 16:21:48 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 087KLhP7103751; Mon, 7 Sep 2020 15:21:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1599510103; bh=G6A2Bv+f5xCG76OjLI2bdOjq+hu9sly1gK8TEdL8zeA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=iaGkfK8LLrh/gCpiXyOZefj5IeZpJo8g914JOYCrqZWGSRHQ2lIOxOZErfJH2+wwz L3rPtL95bDyE0is29zJdEHoRDwk/3manzYtFdIoJ0QS8nJmpptv1THa6UBssOtDlfK RnXL1XsLWYI0DbvEJih4dMnCw8y4Gifd4BoZO3aA= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 087KLh4T049401 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 7 Sep 2020 15:21:43 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 7 Sep 2020 15:21:43 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) 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; Mon, 7 Sep 2020 15:21:42 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 087KLfdY018195; Mon, 7 Sep 2020 15:21:42 -0500 From: Grygorii Strashko To: Tony Lindgren CC: , , Sekhar Nori , Vignesh Raghavendra , Murali Karicheri , Grygorii Strashko Subject: [PATCH next 2/6] ARM: dts: am57xx-idk: switch to new cpsw switch drv Date: Mon, 7 Sep 2020 23:21:21 +0300 Message-ID: <20200907202125.22943-3-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907202125.22943-1-grygorii.strashko@ti.com> References: <20200907202125.22943-1-grygorii.strashko@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Switch all am571/2/4-idk boards to use new cpsw switch driver. Those boards have 2 Ext. port wired and configured in dual_mac mode by default. Hence, dual_mac mode has been preserved the same way between legacy and new driver it's safe to switch drivers. Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/am571x-idk.dts | 27 ------------------------ arch/arm/boot/dts/am572x-idk.dts | 5 ----- arch/arm/boot/dts/am574x-idk.dts | 5 ----- arch/arm/boot/dts/am57xx-idk-common.dtsi | 14 +++++++----- 4 files changed, 9 insertions(+), 42 deletions(-) -- 2.17.1 diff --git a/arch/arm/boot/dts/am571x-idk.dts b/arch/arm/boot/dts/am571x-idk.dts index 391a92e24472..e81078c2d00d 100644 --- a/arch/arm/boot/dts/am571x-idk.dts +++ b/arch/arm/boot/dts/am571x-idk.dts @@ -208,30 +208,3 @@ pinctrl-1 = <&mmc2_pins_hs>; pinctrl-2 = <&mmc2_pins_ddr_rev20 &mmc2_iodelay_ddr_conf>; }; - -&mac_sw { - pinctrl-names = "default", "sleep"; - status = "okay"; -}; - -&cpsw_port1 { - phy-handle = <ðphy0_sw>; - phy-mode = "rgmii-rxid"; - ti,dual-emac-pvid = <1>; -}; - -&cpsw_port2 { - phy-handle = <ðphy1_sw>; - phy-mode = "rgmii-rxid"; - ti,dual-emac-pvid = <2>; -}; - -&davinci_mdio_sw { - ethphy0_sw: ethernet-phy@0 { - reg = <0>; - }; - - ethphy1_sw: ethernet-phy@1 { - reg = <1>; - }; -}; diff --git a/arch/arm/boot/dts/am572x-idk.dts b/arch/arm/boot/dts/am572x-idk.dts index 1a3af4b54308..6504265f3f7e 100644 --- a/arch/arm/boot/dts/am572x-idk.dts +++ b/arch/arm/boot/dts/am572x-idk.dts @@ -27,8 +27,3 @@ pinctrl-1 = <&mmc2_pins_hs>; pinctrl-2 = <&mmc2_pins_ddr_rev20>; }; - -&mac { - status = "okay"; - dual_emac; -}; diff --git a/arch/arm/boot/dts/am574x-idk.dts b/arch/arm/boot/dts/am574x-idk.dts index c9275d0c62cf..37758761cd88 100644 --- a/arch/arm/boot/dts/am574x-idk.dts +++ b/arch/arm/boot/dts/am574x-idk.dts @@ -36,11 +36,6 @@ pinctrl-2 = <&mmc2_pins_default>; }; -&mac { - status = "okay"; - dual_emac; -}; - &m_can0 { status = "disabled"; }; diff --git a/arch/arm/boot/dts/am57xx-idk-common.dtsi b/arch/arm/boot/dts/am57xx-idk-common.dtsi index 1c77006cccd1..9fcb8944aa3e 100644 --- a/arch/arm/boot/dts/am57xx-idk-common.dtsi +++ b/arch/arm/boot/dts/am57xx-idk-common.dtsi @@ -448,19 +448,23 @@ ext-clk-src; }; -&cpsw_emac0 { +&mac_sw { + status = "okay"; +}; + +&cpsw_port1 { phy-handle = <ðphy0>; phy-mode = "rgmii-rxid"; - dual_emac_res_vlan = <1>; + ti,dual-emac-pvid = <1>; }; -&cpsw_emac1 { +&cpsw_port2 { phy-handle = <ðphy1>; phy-mode = "rgmii-rxid"; - dual_emac_res_vlan = <2>; + ti,dual-emac-pvid = <2>; }; -&davinci_mdio { +&davinci_mdio_sw { ethphy0: ethernet-phy@0 { reg = <0>; }; From patchwork Mon Sep 7 20:21:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 249264 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp3972946ilg; Mon, 7 Sep 2020 13:21:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjxm5158HLUkT2CJLFu2XXuo6yrpeRFh/ILkqx7mN4LLU6UjKDtF6/TqAeu11dKReudNeU X-Received: by 2002:a50:99d6:: with SMTP id n22mr23946096edb.265.1599510115604; Mon, 07 Sep 2020 13:21:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599510115; cv=none; d=google.com; s=arc-20160816; b=DhiQdrPlbbWyht4sISHsJiGpa70GCib+neQ0cGA1IGGSWrH7YFBzn8t7Uvw6la2rHh 2OTQURDcVrHZOOCad52VCWnXLQ9YUENu2D4gMYjgQcG72Var+mclKFNtBihqj7LGNI5d GEKMZZ/3zsBpmZN0nPHpx0+SMPuAIQdDoIz81Fqns9zl9s0DfuxBQTZQCOzjIVJqvwb/ v82U3J71Y7gsunFbSOE8ncqkd/3do4ktDOZypZK0qhVGC/mNlu24vMG0E4GGl8/rcCdE Qs7jf+0xohSu1Oj3nCOW+NFvYStjUSw/A2P2mX+HGKpqu3dNwjOaNcjQoFP7P7MRnHYN Lriw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=HaLMfItALcXWMj0Ouc1ztcuJ8ixf6dGwNMR6GUBD5hA=; b=WLv3rSzk5bIJdCYbsDfFbtuHk6Hspsj1kvNZIhLkrlrT486Jupo2w851UzAfntSKzG k9YYdBNvM5TAUKeDoJNFGxIo76px3b6ZNTN8cUIR2mEHQgIyhzZALWEXcGkyQqipsQRV hd/RUxzv/yK7DYgEDrEJX39V0+fELKrVNErXIp64V79+KLXVr16/zZIPgufnsOYaDO2d QWkKpHsX66gMcV5A89n41t+rLZYvMpUdhRmJdpRUbjSeA/n+PioJjffIH7Yv8pimWvoE NZ83HE4e+BXqCDJA+uuhF6hLuAxS/yUwIR/+frdhu5AXvkh5Np3NgP/pwDaamfxLC4GU zXLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=T0OoCdl8; spf=pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-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 c13si10383207edv.328.2020.09.07.13.21.55; Mon, 07 Sep 2020 13:21:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-omap-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=T0OoCdl8; spf=pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-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 S1729993AbgIGUVx (ORCPT + 4 others); Mon, 7 Sep 2020 16:21:53 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:37374 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729938AbgIGUVw (ORCPT ); Mon, 7 Sep 2020 16:21:52 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 087KLorm103768; Mon, 7 Sep 2020 15:21:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1599510110; bh=HaLMfItALcXWMj0Ouc1ztcuJ8ixf6dGwNMR6GUBD5hA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=T0OoCdl8tXcvGXoQGpSF5aotA6R0PF71kcG/+o4nctguCWMd1IcyrhShgSeJfLzs9 1rGt5FH3pCE0sX1aYlTbjn4YkReoqhMQBAkbPKIAT4tAtwF8CBQ7Sz+IdRMIqAjwnm +Hb+/znrguiK/t7UrwVBjugeBlWUN4DAVYLGGpC4= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 087KLo5i049473 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 7 Sep 2020 15:21:50 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 7 Sep 2020 15:21:49 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE100.ent.ti.com (157.170.170.30) 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; Mon, 7 Sep 2020 15:21:50 -0500 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 087KLmoZ053185; Mon, 7 Sep 2020 15:21:49 -0500 From: Grygorii Strashko To: Tony Lindgren CC: , , Sekhar Nori , Vignesh Raghavendra , Murali Karicheri , Grygorii Strashko Subject: [PATCH next 3/6] ARM: dts: beagle-x15: switch to new cpsw switch drv Date: Mon, 7 Sep 2020 23:21:22 +0300 Message-ID: <20200907202125.22943-4-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907202125.22943-1-grygorii.strashko@ti.com> References: <20200907202125.22943-1-grygorii.strashko@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Switch all TI AM5728 BeagleBoard-X15 boards to use new cpsw switch driver. Those boards have 2 Ext. port wired and configured in dual_mac mode by default. Hence, dual_mac mode has been preserved the same way between legacy and new driver it's safe to switch drivers. Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) -- 2.17.1 diff --git a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi index b3a0206ebd6c..79338fb7dbee 100644 --- a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi +++ b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi @@ -451,7 +451,7 @@ <&dra7_pmx_core 0x3f8>; }; -&davinci_mdio { +&davinci_mdio_sw { phy0: ethernet-phy@1 { reg = <1>; }; @@ -461,21 +461,20 @@ }; }; -&mac { +&mac_sw { status = "okay"; - dual_emac; }; -&cpsw_emac0 { +&cpsw_port1 { phy-handle = <&phy0>; phy-mode = "rgmii-rxid"; - dual_emac_res_vlan = <1>; + ti,dual-emac-pvid = <1>; }; -&cpsw_emac1 { +&cpsw_port2 { phy-handle = <&phy1>; phy-mode = "rgmii-rxid"; - dual_emac_res_vlan = <2>; + ti,dual-emac-pvid = <2>; }; &mmc1 { From patchwork Mon Sep 7 20:21:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 249265 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp3973024ilg; Mon, 7 Sep 2020 13:22:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMSL1K18CJaJ/VTAH+7UYtax83pFUsnHHauGaxtyaCneXRD+FwLbK4U+5//y41yQuzpR4a X-Received: by 2002:a17:906:3957:: with SMTP id g23mr24044389eje.24.1599510125877; Mon, 07 Sep 2020 13:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599510125; cv=none; d=google.com; s=arc-20160816; b=Rdttg3NG8Ob8SGZN+RyKMx/Ge3w1GQu1XjmtcJ6/7cobrhB7NeXQE6Dz7CZ8hRTFkC hiVChvzJT9mDzZpHYshvcuSC9fEn2+razBjTZ34Bj0vU3Zv75+Td2HOYGMaWShDDuUr4 Q4vLeT2D4gDwlshj5wl7HErimx9ecCnEJUtYLWXv4GGnzjhvkn7OUl39tgbZCmrMExrC wsnYqlOIYDCDhVHGvp+wNQz3MvRLvPTJceZq0PWG0SPX84KeRdrWOWjhw8hKGEKwN6o4 UtMowx37QvqEbzXJITBnChunrlqI4TSdeIlwAkThfULAGMbBB2VC5sTY753Ck0eXnX5o VOeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Wcn5F6ZFfH+qQl5imFM6aOi17YdmT6HR6wxZrLWBhdQ=; b=iCqK/wYfcfl5dCh71h07eWGqAJmIUfLvL3FbgOs6F1aRnmYgbDMfN60zwCq9gEjNhi VcVp/j4mh78VEsIDzGX3iySjgqVgWZAGTNyvwUWd4N4ijq5K1VXbpYmzjBUxVQhp+Z3Z sJX6RGCwnwjAIvyt0lh495BfEQOzyK310tHnAWC0xioHDDUlCIfAoLUl3YjDWSesYmS0 EeFgBHf5Fp69+0WmyHoK84C9uho+jjiMn+75a1a0qd3/GbLF3iW/qOOQK9hTK9vsM+vo fmgZJ/Sqag+Fgtue2egpcpClHm3BSjB78qC3dFWPDJl8Dao9aG9xIJVTliYn4OwgXPNI 05Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=LR+7ANqs; spf=pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-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 c13si10383207edv.328.2020.09.07.13.22.05; Mon, 07 Sep 2020 13:22:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-omap-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=LR+7ANqs; spf=pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-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 S1729186AbgIGUWC (ORCPT + 4 others); Mon, 7 Sep 2020 16:22:02 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:50898 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730173AbgIGUWB (ORCPT ); Mon, 7 Sep 2020 16:22:01 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 087KLwGR036304; Mon, 7 Sep 2020 15:21:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1599510118; bh=Wcn5F6ZFfH+qQl5imFM6aOi17YdmT6HR6wxZrLWBhdQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=LR+7ANqsIzcm1LcaKKYRXkkEafdevzsJK3qIb8CYr4Ekhy3HOYdhf50yZ8Ud4fq/U JUunQCZvjd8uXYKjZfuIohjlxKWX7F/deDOvgeYu4ZM3x1Pnen6I1DuUGWXD7vRv7o cwSGx/cS/kurN0WEO6huLgHnDBLIbRjiQuwb987A= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 087KLwL9085036 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 7 Sep 2020 15:21:58 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) 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.1979.3; Mon, 7 Sep 2020 15:21:57 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE101.ent.ti.com (10.64.6.22) 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; Mon, 7 Sep 2020 15:21:57 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 087KLuZQ053209; Mon, 7 Sep 2020 15:21:57 -0500 From: Grygorii Strashko To: Tony Lindgren CC: , , Sekhar Nori , Vignesh Raghavendra , Murali Karicheri , Grygorii Strashko Subject: [PATCH next 4/6] ARM: dts: dra7x-evm: switch to new cpsw switch drv Date: Mon, 7 Sep 2020 23:21:23 +0300 Message-ID: <20200907202125.22943-5-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907202125.22943-1-grygorii.strashko@ti.com> References: <20200907202125.22943-1-grygorii.strashko@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Switch all TI DRA7x boards to use new cpsw switch driver. Those boards configured in dual_mac mode by default. Hence, dual_mac mode has been preserved the same way between legacy and new driver it's safe to switch drivers. Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/dra7-evm.dts | 13 ++++++------- arch/arm/boot/dts/dra71-evm.dts | 14 +++++++------- arch/arm/boot/dts/dra72-evm-common.dtsi | 4 ---- arch/arm/boot/dts/dra72-evm-revc.dts | 14 +++++++------- arch/arm/boot/dts/dra72-evm.dts | 13 +++++++++---- arch/arm/boot/dts/dra76-evm.dts | 14 ++++++-------- 6 files changed, 35 insertions(+), 37 deletions(-) -- 2.17.1 diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts index a952d934fcf2..051aac4e95b7 100644 --- a/arch/arm/boot/dts/dra7-evm.dts +++ b/arch/arm/boot/dts/dra7-evm.dts @@ -537,24 +537,23 @@ ti,no-idle-on-init; }; -&mac { +&mac_sw { status = "okay"; - dual_emac; }; -&cpsw_emac0 { +&cpsw_port1 { phy-handle = <ðphy0>; phy-mode = "rgmii"; - dual_emac_res_vlan = <1>; + ti,dual-emac-pvid = <1>; }; -&cpsw_emac1 { +&cpsw_port2 { phy-handle = <ðphy1>; phy-mode = "rgmii"; - dual_emac_res_vlan = <2>; + ti,dual-emac-pvid = <2>; }; -&davinci_mdio { +&davinci_mdio_sw { ethphy0: ethernet-phy@2 { reg = <2>; }; diff --git a/arch/arm/boot/dts/dra71-evm.dts b/arch/arm/boot/dts/dra71-evm.dts index 10da51bee42f..cad58f733bd6 100644 --- a/arch/arm/boot/dts/dra71-evm.dts +++ b/arch/arm/boot/dts/dra71-evm.dts @@ -219,26 +219,26 @@ vqmmc-supply = <&evm_1v8_sw>; }; -&mac { +&mac_sw { mode-gpios = <&pcf_gpio_21 4 GPIO_ACTIVE_LOW>, <&pcf_hdmi 9 GPIO_ACTIVE_LOW>, /* P11 */ <&pcf_hdmi 10 GPIO_ACTIVE_LOW>; /* P12 */ - dual_emac; + status = "okay"; }; -&cpsw_emac0 { +&cpsw_port1 { phy-handle = <&dp83867_0>; phy-mode = "rgmii-id"; - dual_emac_res_vlan = <1>; + ti,dual-emac-pvid = <1>; }; -&cpsw_emac1 { +&cpsw_port2 { phy-handle = <&dp83867_1>; phy-mode = "rgmii-id"; - dual_emac_res_vlan = <2>; + ti,dual-emac-pvid = <2>; }; -&davinci_mdio { +&davinci_mdio_sw { dp83867_0: ethernet-phy@2 { reg = <2>; ti,rx-internal-delay = ; diff --git a/arch/arm/boot/dts/dra72-evm-common.dtsi b/arch/arm/boot/dts/dra72-evm-common.dtsi index 9273a7d6fa29..8d0d960107fb 100644 --- a/arch/arm/boot/dts/dra72-evm-common.dtsi +++ b/arch/arm/boot/dts/dra72-evm-common.dtsi @@ -462,10 +462,6 @@ }; }; -&mac { - status = "okay"; -}; - &dcan1 { status = "ok"; pinctrl-names = "default", "sleep", "active"; diff --git a/arch/arm/boot/dts/dra72-evm-revc.dts b/arch/arm/boot/dts/dra72-evm-revc.dts index 54dab0f212d1..f242b937f88c 100644 --- a/arch/arm/boot/dts/dra72-evm-revc.dts +++ b/arch/arm/boot/dts/dra72-evm-revc.dts @@ -77,26 +77,26 @@ interrupts = <30 IRQ_TYPE_EDGE_FALLING>; }; -&mac { +&mac_sw { mode-gpios = <&pcf_gpio_21 4 GPIO_ACTIVE_LOW>, <&pcf_hdmi 9 GPIO_ACTIVE_LOW>, /* P11 */ <&pcf_hdmi 10 GPIO_ACTIVE_LOW>; /* P12 */ - dual_emac; + status = "okay"; }; -&cpsw_emac0 { +&cpsw_port1 { phy-handle = <&dp83867_0>; phy-mode = "rgmii-id"; - dual_emac_res_vlan = <1>; + ti,dual-emac-pvid = <1>; }; -&cpsw_emac1 { +&cpsw_port2 { phy-handle = <&dp83867_1>; phy-mode = "rgmii-id"; - dual_emac_res_vlan = <2>; + ti,dual-emac-pvid = <2>; }; -&davinci_mdio { +&davinci_mdio_sw { dp83867_0: ethernet-phy@2 { reg = <2>; ti,rx-internal-delay = ; diff --git a/arch/arm/boot/dts/dra72-evm.dts b/arch/arm/boot/dts/dra72-evm.dts index 6ea9936f7d9c..5f62f92eb96c 100644 --- a/arch/arm/boot/dts/dra72-evm.dts +++ b/arch/arm/boot/dts/dra72-evm.dts @@ -69,17 +69,22 @@ interrupts = <11 IRQ_TYPE_EDGE_FALLING>; }; -&mac { - slaves = <1>; +&mac_sw { mode-gpios = <&pcf_gpio_21 4 GPIO_ACTIVE_HIGH>; + status = "okay"; }; -&cpsw_emac0 { +&cpsw_port1 { phy-handle = <ðphy0>; phy-mode = "rgmii"; + ti,dual-emac-pvid = <1>; +}; + +&cpsw_port2 { + status = "disabled"; }; -&davinci_mdio { +&davinci_mdio_sw { ethphy0: ethernet-phy@3 { reg = <3>; }; diff --git a/arch/arm/boot/dts/dra76-evm.dts b/arch/arm/boot/dts/dra76-evm.dts index 803981cc762e..34f655be4fb4 100644 --- a/arch/arm/boot/dts/dra76-evm.dts +++ b/arch/arm/boot/dts/dra76-evm.dts @@ -475,25 +475,23 @@ status = "disabled"; }; -&mac { +&mac_sw { status = "okay"; - - dual_emac; }; -&cpsw_emac0 { +&cpsw_port1 { phy-handle = <&dp83867_0>; phy-mode = "rgmii-id"; - dual_emac_res_vlan = <1>; + ti,dual-emac-pvid = <1>; }; -&cpsw_emac1 { +&cpsw_port2 { phy-handle = <&dp83867_1>; phy-mode = "rgmii-id"; - dual_emac_res_vlan = <2>; + ti,dual-emac-pvid = <2>; }; -&davinci_mdio { +&davinci_mdio_sw { dp83867_0: ethernet-phy@2 { reg = <2>; ti,rx-internal-delay = ; From patchwork Mon Sep 7 20:21:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 249267 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp3973199ilg; Mon, 7 Sep 2020 13:22:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwV6BRce6MhZbt19yrqBk2vETdtOE7HSuR0uI07WIZrSn6ye2mEMDlC0DddTVqg4N1Yn0qG X-Received: by 2002:a17:906:95cd:: with SMTP id n13mr21990449ejy.297.1599510146077; Mon, 07 Sep 2020 13:22:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599510146; cv=none; d=google.com; s=arc-20160816; b=kLKzfUtauAgm7dTxpO6E0OErBbAslOHFjstN2LSjecNML27GFJTsL/IFR8RdsB8bFw fUEhSqjArgEb8i5ruRz2QWlU5H1JcXDthvlYAXABTYbxwOWa6ty6RsZ64bU2vce4bE6w I6nUxdoN8HIvurm4K1Szg5rQrsSdouRDWAPPEXkwrTijnYBznp9nL5807ODXaRUvMqqK xrK17hw+mDomAiqtr8tyfvM9wMzrTszciUy3TLc1+WLG2QyXU964ngZkMBdO5qKIuJUv Fy7z3QC9uBRMlnw7KtusrIFGvAGqrBf3NbaHpR89lkAIROtEg8G8qV/mgLuP6gNVkom5 rEpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=A9sNX+xsTb+BdyPioA1mPvqCAGKjC7PtJvx+F5+f4CE=; b=VEFlpZAZWXDU7CCWx18rk24cYcPbq5fLeXL/EVKftdfMzJyzo5VruJt9x1tQxzXPwa yKPotvZX+hDcvfClRNdOiDzvMQS9YaPV0w+e4qrq6r0eFIX1433crrQmz23xEzYFI5YB J3vBEXZrSqxrMzNOPC1N3Uwqpm8cMrYjWkSn/CdG8DNiXzoNLwEA9zB9je4hbYOSWAn/ o1xHmz4tKGqGqCpKjfR/jOzFE5Y8M2trfDaSlXb70HraavYpBY17CTRCAFVUeNDmpj70 o5jCS8+qf9ZyW3R9UnRqau8xMl2lJ09SgZ8sZQO2YNy26DZ8erY3L+vcsy2+d9tPb6d7 f83A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=TYXT0tms; spf=pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-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 c13si10383207edv.328.2020.09.07.13.22.25; Mon, 07 Sep 2020 13:22:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-omap-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=TYXT0tms; spf=pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-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 S1730173AbgIGUWL (ORCPT + 4 others); Mon, 7 Sep 2020 16:22:11 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:38542 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730224AbgIGUWH (ORCPT ); Mon, 7 Sep 2020 16:22:07 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 087KM5sx070222; Mon, 7 Sep 2020 15:22:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1599510125; bh=A9sNX+xsTb+BdyPioA1mPvqCAGKjC7PtJvx+F5+f4CE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=TYXT0tmstT3sL0Ngqfk7CTjuczfJePdEPv7afJEU/UJrJWbpNt1y6lq6GHBytBYSq gOz3Vraj5WeoejrO6gU5BLBsWK3LK1eZoAcS1Mdx4QI+pvOxYXgbkZQahJUIdTV7sr T9qKQngIFT3XmWtVPHakp3o00vDPMDOlfOr/2It4= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 087KM4gF085619 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 7 Sep 2020 15:22:05 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 7 Sep 2020 15:22:04 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE108.ent.ti.com (157.170.170.38) 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; Mon, 7 Sep 2020 15:22:04 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 087KM3IE128334; Mon, 7 Sep 2020 15:22:04 -0500 From: Grygorii Strashko To: Tony Lindgren CC: , , Sekhar Nori , Vignesh Raghavendra , Murali Karicheri , Grygorii Strashko Subject: [PATCH next 5/6] ARM: dts: am57xx-cl-som-am57x: switch to new cpsw switch drv Date: Mon, 7 Sep 2020 23:21:24 +0300 Message-ID: <20200907202125.22943-6-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907202125.22943-1-grygorii.strashko@ti.com> References: <20200907202125.22943-1-grygorii.strashko@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Switch CompuLab CL-SOM-AM57x board to use new cpsw switch driver. Those board configured in dual_mac mode by default. Hence, dual_mac mode has been preserved the same way between legacy and new driver it's safe to switch drivers. Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/am57xx-cl-som-am57x.dts | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) -- 2.17.1 diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts index 34ca761aeded..0d5fe2bfb683 100644 --- a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts +++ b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts @@ -546,27 +546,26 @@ }; }; -&mac { +&mac_sw { status = "okay"; pinctrl-names = "default", "sleep"; pinctrl-0 = <&cpsw_pins_default>; pinctrl-1 = <&cpsw_pins_sleep>; - dual_emac; }; -&cpsw_emac0 { +&cpsw_port1 { phy-handle = <ðphy0>; phy-mode = "rgmii-txid"; - dual_emac_res_vlan = <0>; + ti,dual-emac-pvid = <1>; }; -&cpsw_emac1 { +&cpsw_port2 { phy-handle = <ðphy1>; phy-mode = "rgmii-txid"; - dual_emac_res_vlan = <1>; + ti,dual-emac-pvid = <2>; }; -&davinci_mdio { +&davinci_mdio_sw { pinctrl-names = "default", "sleep"; pinctrl-0 = <&davinci_mdio_pins_default>; pinctrl-1 = <&davinci_mdio_pins_sleep>; From patchwork Mon Sep 7 20:21:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 249266 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp3973142ilg; Mon, 7 Sep 2020 13:22:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxV8nf+rJMqU+8QrALwUQHgIggThbHsgpBARo+FkkGrnZSXQD8lF/O5vBX4A1kRdyvm6VLb X-Received: by 2002:aa7:da10:: with SMTP id r16mr23997154eds.333.1599510137328; Mon, 07 Sep 2020 13:22:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599510137; cv=none; d=google.com; s=arc-20160816; b=RXWUZQijHkIL+Vb/NllPrfoBWwaqBk/26pH5tggVKg3ZYh5V750hHxqQCIJCEQAjNL 83bBmlMzwnfXG9T6QN6UsqBavnpcbBq256PkpaO4bNcoPg88FyyR6llQdqvx3bHylLCD OaworommuGP/aQzxE85imvsOO0VKfMurkFw2wqBbNQ1eBwX7NBdAHJRVM2e//cABiw5b VKuEluyg/Vo0m4l17pTh9pFE60ucHbx5UNiFvp56y3hs5BX66Jcpkl1oqJc7qyGKAZzT HP8HGVcVlueav1QPTm/kIOH8AzE2DX6Fwn3F1NFWBm+UEGT1/C32QJS7nGAwWmwOx1sa 8OrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=QU39mscjtPHjuuKEj11p2GA7hSHd5TgWJ0hXRoHNo28=; b=BUtCz4Npjbb0QsCp3kgH/umBW3u7VzWtJ2TZParBNYnMV2pDfJXClcM4cLdGD3H+k4 TBJCgpWXmb1/Akp40T6Jv54tKTCd0XERrZUaPitRPiy+mgAxj/fkLnNPa+E0OGJ2mdVl +Ak+kK1af4RkMCG/OlD364Hanb3VbeQpDu6iO9boJXo65XW/WLe1hqeE5TN99YUlZaKX e5fJjdxmPorHVN+02neCnDR2I/w5zUDVeotxdZC1Ohd+CqXg/SnefWrKBIHk4dP664nV Bu6ixz+S+IIizPFo94TK970WzZUN49wAXo71eVJ3NSpPKKLHU9iuFZu6KOb0UZjiOpIE fd+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mG0m9VDA; spf=pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-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 c13si10383207edv.328.2020.09.07.13.22.17; Mon, 07 Sep 2020 13:22:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-omap-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=mG0m9VDA; spf=pass (google.com: domain of linux-omap-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-omap-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 S1730274AbgIGUWP (ORCPT + 4 others); Mon, 7 Sep 2020 16:22:15 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:50918 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730261AbgIGUWP (ORCPT ); Mon, 7 Sep 2020 16:22:15 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 087KMCMT036338; Mon, 7 Sep 2020 15:22:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1599510132; bh=QU39mscjtPHjuuKEj11p2GA7hSHd5TgWJ0hXRoHNo28=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=mG0m9VDAz31i0ZbCKd2NNbv7d3UcotdLLNcoZPW4kGRLkoVtK3apMhkvHi0sH/+7w xrucWHIBh7lTBNnbvNcMc/cQf0rwl1b2Ch1Se8aIpbF4MAGwECWxx9HLevIz81Aujp 1LrM5zcLdkC8Dv5x8bYmjWqFsA4OT6DIEE1ZUa/8= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 087KMCwJ085929 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 7 Sep 2020 15:22:12 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) 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.1979.3; Mon, 7 Sep 2020 15:22:11 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE100.ent.ti.com (10.64.6.21) 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; Mon, 7 Sep 2020 15:22:11 -0500 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 087KMAcb054519; Mon, 7 Sep 2020 15:22:11 -0500 From: Grygorii Strashko To: Tony Lindgren CC: , , Sekhar Nori , Vignesh Raghavendra , Murali Karicheri , Grygorii Strashko Subject: [PATCH next 6/6] ARM: dts: dra7: drop legacy cpsw dt node Date: Mon, 7 Sep 2020 23:21:25 +0300 Message-ID: <20200907202125.22943-7-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200907202125.22943-1-grygorii.strashko@ti.com> References: <20200907202125.22943-1-grygorii.strashko@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org All dra7/am57 boards converted to use new driver, so drop legacy cpsw dt node. Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/dra7-l4.dtsi | 54 ---------------------------------- arch/arm/boot/dts/dra7.dtsi | 4 +-- 2 files changed, 2 insertions(+), 56 deletions(-) -- 2.17.1 diff --git a/arch/arm/boot/dts/dra7-l4.dtsi b/arch/arm/boot/dts/dra7-l4.dtsi index 27a6a83cc60c..703ba6a26272 100644 --- a/arch/arm/boot/dts/dra7-l4.dtsi +++ b/arch/arm/boot/dts/dra7-l4.dtsi @@ -3038,60 +3038,6 @@ */ ti,no-idle; - mac: ethernet@0 { - compatible = "ti,dra7-cpsw","ti,cpsw"; - clocks = <&gmac_main_clk>, <&gmac_clkctrl DRA7_GMAC_GMAC_CLKCTRL 25>; - clock-names = "fck", "cpts"; - cpdma_channels = <8>; - ale_entries = <1024>; - bd_ram_size = <0x2000>; - mac_control = <0x20>; - slaves = <2>; - active_slave = <0>; - cpts_clock_mult = <0x784CFE14>; - cpts_clock_shift = <29>; - reg = <0x0 0x1000 - 0x1200 0x2e00>; - #address-cells = <1>; - #size-cells = <1>; - - /* - * rx_thresh_pend - * rx_pend - * tx_pend - * misc_pend - */ - interrupts = , - , - , - ; - ranges = <0 0 0x4000>; - syscon = <&scm_conf>; - status = "disabled"; - - davinci_mdio: mdio@1000 { - compatible = "ti,cpsw-mdio","ti,davinci_mdio"; - clocks = <&gmac_main_clk>; - clock-names = "fck"; - #address-cells = <1>; - #size-cells = <0>; - bus_freq = <1000000>; - reg = <0x1000 0x100>; - }; - - cpsw_emac0: slave@200 { - /* Filled in by U-Boot */ - mac-address = [ 00 00 00 00 00 00 ]; - phys = <&phy_gmii_sel 1>; - }; - - cpsw_emac1: slave@300 { - /* Filled in by U-Boot */ - mac-address = [ 00 00 00 00 00 00 ]; - phys = <&phy_gmii_sel 2>; - }; - }; - mac_sw: switch@0 { compatible = "ti,dra7-cpsw-switch","ti,cpsw-switch"; reg = <0x0 0x4000>; diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index cca6b123856f..4e1bbc0198eb 100644 --- a/arch/arm/boot/dts/dra7.dtsi +++ b/arch/arm/boot/dts/dra7.dtsi @@ -37,8 +37,8 @@ serial7 = &uart8; serial8 = &uart9; serial9 = &uart10; - ethernet0 = &cpsw_emac0; - ethernet1 = &cpsw_emac1; + ethernet0 = &cpsw_port1; + ethernet1 = &cpsw_port2; d_can0 = &dcan1; d_can1 = &dcan2; spi0 = &qspi;