From patchwork Thu Sep 10 22:25:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 249701 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp1140493ilk; Thu, 10 Sep 2020 15:25:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+TZmhTXCRzeKCIFcRVna92zm38AIpSoCs9ca1+9ixDblX9LU/econ0EVSPbsqSokb+OzZ X-Received: by 2002:a17:906:c411:: with SMTP id u17mr10818184ejz.319.1599776746886; Thu, 10 Sep 2020 15:25:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599776746; cv=none; d=google.com; s=arc-20160816; b=hEb21jM6mUesgwIzc46v4MzES4HW3BaCr7ninifF1CET3IjZckSESUD8Fk1EpRmW5W wkTebJK6nZneqMel3Hga8KPDkExWNhhl/GvCfENRYi1PPJTxr2UYWrsvPEq4mMUltFMv 77XsdUC60LB3U3tgZfChWvkyEEbAKFLrj0YrBbiDxNN+CYzZklmsZ1LIotFs+K0jCnwH NltuVQZLM91apj7Q6cRzlR6Qs7RLBwyr8iubQ5YDIXkKiKYMWDDX7svpWdCv4PXjjjy4 bmgaS0CnReZoLQy0tgDDkutTCwGbM602vVAK2OBJqrV2xp04Q3AtLv9alIXpEGk4RcMu Fu0g== 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=RU6iRBwYdm7JUjH8AtSM6SAyPPgcRbgfP628viV/sAs=; b=mClDJ/UAMPgdTSk+EgWdjW5GahCQUy1Q9k6wkE4tJnMZ8o7U8UbkAgeaCYn7/OxUMJ 4zzIDBid+fq7LVGDFmDAcOADr52ySnsq9xDUIxTAoFrWrVjWP7aBH/a3DYPhOQA2WQ23 YHd+vuV3+Wcn0uIyxWhnBQkjTApAgQt6srCpggO+oAdR1U7v1H7BkE4KweKArZGjsIsh hlTBWN3kTvWWV6aySlMguHHvuD5uJOFqFCvD5M04obj6b+asCiWLUP0z7J+Qfr36ICVd rOisD+L69x5NQo07aNWozLnYErePo9VJysGjVqGqwwR/pFr6Ta9nXCQUoinclSrtOKGY xbJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ARaadTmH; 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 r7si21342edb.20.2020.09.10.15.25.46; Thu, 10 Sep 2020 15:25:46 -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=ARaadTmH; 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 S1725861AbgIJWZn (ORCPT + 3 others); Thu, 10 Sep 2020 18:25:43 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:44930 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725853AbgIJWZi (ORCPT ); Thu, 10 Sep 2020 18:25:38 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 08AMPTYa060954; Thu, 10 Sep 2020 17:25:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1599776729; bh=RU6iRBwYdm7JUjH8AtSM6SAyPPgcRbgfP628viV/sAs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ARaadTmHG4oSAOuFnNnGK5brNB7rTHZuZo0FeRe6TUnMR63ffW/cp0/Vf9Bks4Zrr ZtFS8J7opPs8Qb9QdUMMCAXE35SW4bMa7dHG7+eIHl7429u8DshV7pI+ZR+9Y6LPEO E3PCOLDwXPxrECdMTnzFRc6b7ecKAn5RgW8W8utU= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 08AMPTK3028070 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 10 Sep 2020 17:25:29 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) 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; Thu, 10 Sep 2020 17:25:29 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE104.ent.ti.com (157.170.170.34) 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; Thu, 10 Sep 2020 17:25:29 -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 08AMPS04017696; Thu, 10 Sep 2020 17:25:28 -0500 From: Grygorii Strashko To: Tony Lindgren CC: , , Sekhar Nori , Vignesh Raghavendra , Murali Karicheri , Grygorii Strashko Subject: [PATCH next 1/3] ARM: dts: am437x-l4: add dt node for new cpsw switchdev driver Date: Fri, 11 Sep 2020 01:25:16 +0300 Message-ID: <20200910222518.32486-2-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200910222518.32486-1-grygorii.strashko@ti.com> References: <20200910222518.32486-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 Add DT node for the new cpsw switchdev based driver. Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/am437x-l4.dtsi | 54 ++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) -- 2.17.1 diff --git a/arch/arm/boot/dts/am437x-l4.dtsi b/arch/arm/boot/dts/am437x-l4.dtsi index 3d393fe252c6..e702e9576115 100644 --- a/arch/arm/boot/dts/am437x-l4.dtsi +++ b/arch/arm/boot/dts/am437x-l4.dtsi @@ -571,6 +571,60 @@ phys = <&phy_gmii_sel 2 0>; }; }; + + mac_sw: switch@0 { + compatible = "ti,am4372-cpsw","ti,cpsw-switch"; + reg = <0x0 0x4000>; + ranges = <0 0 0x4000>; + clocks = <&cpsw_125mhz_gclk>, <&dpll_clksel_mac_clk>; + clock-names = "fck", "50mclk"; + assigned-clocks = <&dpll_clksel_mac_clk>; + assigned-clock-rates = <50000000>; + #address-cells = <1>; + #size-cells = <1>; + syscon = <&scm_conf>; + status = "disabled"; + + interrupts = ; + interrupt-names = "rx_thresh", "rx", "tx", "misc"; + + ethernet-ports { + #address-cells = <1>; + #size-cells = <0>; + + cpsw_port1: port@1 { + reg = <1>; + label = "port1"; + mac-address = [ 00 00 00 00 00 00 ]; + phys = <&phy_gmii_sel 1 0>; + }; + + cpsw_port2: port@2 { + reg = <2>; + label = "port2"; + mac-address = [ 00 00 00 00 00 00 ]; + phys = <&phy_gmii_sel 2 0>; + }; + }; + + davinci_mdio_sw: mdio@1000 { + compatible = "ti,am4372-mdio", "ti,cpsw-mdio","ti,davinci_mdio"; + clocks = <&cpsw_125mhz_gclk>; + clock-names = "fck"; + #address-cells = <1>; + #size-cells = <0>; + bus_freq = <1000000>; + reg = <0x1000 0x100>; + }; + + cpts { + clocks = <&cpsw_cpts_rft_clk>; + clock-names = "cpts"; + }; + }; }; target-module@200000 { /* 0x4a200000, ap 7 02.0 */ From patchwork Thu Sep 10 22:25:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 249700 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp1140473ilk; Thu, 10 Sep 2020 15:25:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJnlHZ6vXyfTmcP+oMoDgEpWUxeUVPFRo7gkLV87vLzx7GBJc03ols5taG7A4mtivHjUsK X-Received: by 2002:a50:ee14:: with SMTP id g20mr12300525eds.32.1599776745610; Thu, 10 Sep 2020 15:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599776745; cv=none; d=google.com; s=arc-20160816; b=vToitdiAzZzghu6iL7GzV1+OQXnp5r+DaKbhMFQ89oYZ6nhC0SsHywMh4lVHV1Zu3n tE0GWEZngcdNXr5Q/vyRZx5pmNAQ3AKxFHO2B7inhgRwYwvna7Emt9qTJqW+oN4C4G3O HNnobV+/ZWF13IvJfX5unaCuMDCmvZfIMbfVSvLdTIlMxcDO16aZGOGQL+ve8zMRnkzx m5pHEZw+6TsBiNtfRa5d44Doo2V/NASfBabTKCsYXtdlBWd2NEKaNe0rvbXANaMW9vju tDAjiRipHhsIqyW6ZfAPeXSgN23A0gaR/wXaxUnYUB9cHzf+ARA5VbEqvgHo0tlvjHpx zCRQ== 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=4alZupngZtjEUrT9XN1DwDPMFjZDs8ugUIbCASVfdu4=; b=K4Uvdc7nmnzORgemMo3fJmK/eJdy9pr/OG+lAmeBKDABOSnB/bb2r17j143Q39El83 Azs2bxfK3/Y2DlEkWQ/xT7AbAQnWVHlQ3TEmhspWC65B+VN52pEF4eIDawpgKWldlGql fd2tMVYtJZoitMdqvG0G8p+qvvG9O+z9YzfBcZ7qD6E0Ji1oRRi/Pe0expk1IFNhuxx9 /BCQiJLMJ6+YiCX4hScKRoqXbiHfv7YklmmfwewTilv3QnT6Pa2VpC4qM62FhGx8FgCh ljKzMmCsCmoqD38YcSJmFWSfqVPkky8egLbm581LuWZ3sdL54/y10dRG2lph2JQoTdwx tnnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dAl1Tu2o; 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 r7si21342edb.20.2020.09.10.15.25.45; Thu, 10 Sep 2020 15:25:45 -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=dAl1Tu2o; 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 S1725865AbgIJWZn (ORCPT + 3 others); Thu, 10 Sep 2020 18:25:43 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:36056 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725859AbgIJWZk (ORCPT ); Thu, 10 Sep 2020 18:25:40 -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 08AMPaxB018698; Thu, 10 Sep 2020 17:25:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1599776736; bh=4alZupngZtjEUrT9XN1DwDPMFjZDs8ugUIbCASVfdu4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=dAl1Tu2oaWQ9RZ4GK0tXl8Xb2Eclm+Ru6p6c/t14GUc0GGzzIeyp4bQSBz53P2XQ5 Qso92MLZUkJZdW3Q9gvnhcYwwgMGsB7Y4WlwgMkCr6yiFaB9TnOeowCCHR++CN6oQy WJZfLFpipm1Krh0VBgyL9cKt9GpfDJBJmwgSp9/E= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 08AMPaIm088222 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 10 Sep 2020 17:25:36 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 10 Sep 2020 17:25:36 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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.1979.3 via Frontend Transport; Thu, 10 Sep 2020 17:25:36 -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 08AMPZR1106095; Thu, 10 Sep 2020 17:25:36 -0500 From: Grygorii Strashko To: Tony Lindgren CC: , , Sekhar Nori , Vignesh Raghavendra , Murali Karicheri , Grygorii Strashko Subject: [PATCH next 2/3] ARM: dts: am437x: switch to new cpsw switch drv Date: Fri, 11 Sep 2020 01:25:17 +0300 Message-ID: <20200910222518.32486-3-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200910222518.32486-1-grygorii.strashko@ti.com> References: <20200910222518.32486-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 The dual_mac mode has been preserved the same way between legacy and new driver, and one port devices works the same as 1 dual_mac port - it's safe to switch drivers. So, Switch all am437x boards to use new cpsw switch driver. Those boards have or 2 Ext. port wired and configured in dual_mac mode by default, or only 1 Ext. port. Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/am4372.dtsi | 4 ++-- arch/arm/boot/dts/am437x-cm-t43.dts | 14 ++++++-------- arch/arm/boot/dts/am437x-gp-evm.dts | 13 ++++++++----- arch/arm/boot/dts/am437x-idk-evm.dts | 13 ++++++++----- arch/arm/boot/dts/am437x-sk-evm.dts | 14 ++++++-------- arch/arm/boot/dts/am43x-epos-evm.dts | 13 ++++++++----- 6 files changed, 38 insertions(+), 33 deletions(-) -- 2.17.1 diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi index 14314046256c..38a7dd64f8df 100644 --- a/arch/arm/boot/dts/am4372.dtsi +++ b/arch/arm/boot/dts/am4372.dtsi @@ -35,8 +35,8 @@ serial3 = &uart3; serial4 = &uart4; serial5 = &uart5; - ethernet0 = &cpsw_emac0; - ethernet1 = &cpsw_emac1; + ethernet0 = &cpsw_port1; + ethernet1 = &cpsw_port2; spi0 = &qspi; }; diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index a6b4fca8626a..a83f46ed0c9a 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -325,17 +325,15 @@ }; }; -&mac { +&mac_sw { pinctrl-names = "default"; pinctrl-0 = <&cpsw_default>; - dual_emac = <1>; status = "okay"; }; -&davinci_mdio { +&davinci_mdio_sw { pinctrl-names = "default"; pinctrl-0 = <&davinci_mdio_default>; - status = "okay"; ethphy0: ethernet-phy@0 { reg = <0>; @@ -346,16 +344,16 @@ }; }; -&cpsw_emac0 { +&cpsw_port1 { phy-handle = <ðphy0>; phy-mode = "rgmii-txid"; - dual_emac_res_vlan = <1>; + ti,dual-emac-pvid = <1>; }; -&cpsw_emac1 { +&cpsw_port2 { phy-handle = <ðphy1>; phy-mode = "rgmii-txid"; - dual_emac_res_vlan = <2>; + ti,dual-emac-pvid = <2>; }; &dwc3_1 { diff --git a/arch/arm/boot/dts/am437x-gp-evm.dts b/arch/arm/boot/dts/am437x-gp-evm.dts index b28e5c8cd02a..e4a1d7d87b1e 100644 --- a/arch/arm/boot/dts/am437x-gp-evm.dts +++ b/arch/arm/boot/dts/am437x-gp-evm.dts @@ -906,28 +906,31 @@ status = "okay"; }; -&mac { - slaves = <1>; +&mac_sw { pinctrl-names = "default", "sleep"; pinctrl-0 = <&cpsw_default>; pinctrl-1 = <&cpsw_sleep>; status = "okay"; }; -&davinci_mdio { +&davinci_mdio_sw { pinctrl-names = "default", "sleep"; pinctrl-0 = <&davinci_mdio_default>; pinctrl-1 = <&davinci_mdio_sleep>; - status = "okay"; ethphy0: ethernet-phy@0 { reg = <0>; }; }; -&cpsw_emac0 { +&cpsw_port1 { phy-handle = <ðphy0>; phy-mode = "rgmii-rxid"; + ti,dual-emac-pvid = <1>; +}; + +&cpsw_port2 { + status = "disabled"; }; &elm { diff --git a/arch/arm/boot/dts/am437x-idk-evm.dts b/arch/arm/boot/dts/am437x-idk-evm.dts index 8b986c45f09d..2dc525512266 100644 --- a/arch/arm/boot/dts/am437x-idk-evm.dts +++ b/arch/arm/boot/dts/am437x-idk-evm.dts @@ -483,28 +483,31 @@ }; }; -&mac { - slaves = <1>; +&mac_sw { pinctrl-names = "default", "sleep"; pinctrl-0 = <&cpsw_default>; pinctrl-1 = <&cpsw_sleep>; status = "okay"; }; -&davinci_mdio { +&davinci_mdio_sw { pinctrl-names = "default", "sleep"; pinctrl-0 = <&davinci_mdio_default>; pinctrl-1 = <&davinci_mdio_sleep>; - status = "okay"; ethphy0: ethernet-phy@0 { reg = <0>; }; }; -&cpsw_emac0 { +&cpsw_port1 { phy-handle = <ðphy0>; phy-mode = "rgmii-rxid"; + ti,dual-emac-pvid = <1>; +}; + +&cpsw_port2 { + status = "disabled"; }; &rtc { diff --git a/arch/arm/boot/dts/am437x-sk-evm.dts b/arch/arm/boot/dts/am437x-sk-evm.dts index 5fffdce853b1..496ed34f7755 100644 --- a/arch/arm/boot/dts/am437x-sk-evm.dts +++ b/arch/arm/boot/dts/am437x-sk-evm.dts @@ -792,19 +792,17 @@ }; }; -&mac { +&mac_sw { pinctrl-names = "default", "sleep"; pinctrl-0 = <&cpsw_default>; pinctrl-1 = <&cpsw_sleep>; - dual_emac = <1>; status = "okay"; }; -&davinci_mdio { +&davinci_mdio_sw { pinctrl-names = "default", "sleep"; pinctrl-0 = <&davinci_mdio_default>; pinctrl-1 = <&davinci_mdio_sleep>; - status = "okay"; ethphy0: ethernet-phy@4 { reg = <4>; @@ -815,16 +813,16 @@ }; }; -&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>; }; &elm { diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts b/arch/arm/boot/dts/am43x-epos-evm.dts index de4fc78498a0..a242282466e5 100644 --- a/arch/arm/boot/dts/am43x-epos-evm.dts +++ b/arch/arm/boot/dts/am43x-epos-evm.dts @@ -550,29 +550,32 @@ cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; }; -&mac { +&mac_sw { pinctrl-names = "default", "sleep"; pinctrl-0 = <&cpsw_default>; pinctrl-1 = <&cpsw_sleep>; status = "okay"; - slaves = <1>; }; -&davinci_mdio { +&davinci_mdio_sw { pinctrl-names = "default", "sleep"; pinctrl-0 = <&davinci_mdio_default>; pinctrl-1 = <&davinci_mdio_sleep>; - status = "okay"; ethphy0: ethernet-phy@16 { reg = <16>; }; }; -&cpsw_emac0 { +&cpsw_port1 { phy-handle = <ðphy0>; phy-mode = "rmii"; phys = <&phy_gmii_sel 1 1>; + ti,dual-emac-pvid = <1>; +}; + +&cpsw_port2 { + status = "disabled"; }; &i2c0 { From patchwork Thu Sep 10 22:25:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 249702 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp1140608ilk; Thu, 10 Sep 2020 15:25:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyo2wYhfZU/Mifp5d7zebAX4zasfwOTGeZY0RrVEqgg/xdQ5Te0LQII1Tu6kPI6VJAnHms8 X-Received: by 2002:a17:906:d182:: with SMTP id c2mr10941860ejz.378.1599776759654; Thu, 10 Sep 2020 15:25:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599776759; cv=none; d=google.com; s=arc-20160816; b=bS1Bf8Uu6IUPQZTeLuiP+JaQzMZJxmmivjarcipOn6JGVDGBwvLL25Q4HdY/tRGuPu YZiHmBtxnxOATHFZATrytl0rBzYdkPpQYYyGjMRDeFxj8kTWWNljq2wA7sjor889QYZj dXbYlm9a5aHe5ABGh2Xzkj20rkLvkgdcLz2UIA+ZkeYzk9nfeujY/YZTmlz1uJQA2hyT kbgNjI0TdwoOhZMSgIFMKD42cb9nJqR430mxesjgGEMjeBn5iztuHmkoucVsP9NMVPoM oEXnJ3tK1GWJtgjuEEvemzbuFajs0PqSjKWY/ovZVLCltmd5TjAQlGVlEdQdVmMaGfzU pmIw== 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=gD11JyVdwWaHLo3Ml11eQLz7gFzw5VXQ8yRD/2vidE4=; b=TY7s+RBpcmBt9+w/EOBj23Hpt2O/OH84obLZt4ckZM9JzusFCdOMeR2eviqCWuuAP2 Y/q/aO7PUwV9ZrlEWcrprHiKwT6+7qSFFKdyJ4qv3rsn95HjaJ+ZgzMP/vUKsLoiDrdr IdZDM5tQ0dSWqJPyzznP55W3EVyVkUdCjt0IW1Pv7bVqXqBSopg9dJCPt63ZJrHzCcgO 70KmXm4FPj+o/2lXir4pt6qRJrZnh6bSyglSvCCNEvq4qkwwpPgaSaLQ8PDv9itgWBB8 dahGqTPM7Ub1khuR7kszjMXu7fqmp4vmpj8NYuwWhTWaFRpA1GeglRZfEBXCZd+ksk/r PrDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Ejgtl18y; 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 r24si12801edc.149.2020.09.10.15.25.59; Thu, 10 Sep 2020 15:25:59 -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=Ejgtl18y; 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 S1725769AbgIJWZx (ORCPT + 3 others); Thu, 10 Sep 2020 18:25:53 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:41464 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725868AbgIJWZq (ORCPT ); Thu, 10 Sep 2020 18:25:46 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 08AMPiAM090190; Thu, 10 Sep 2020 17:25:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1599776744; bh=gD11JyVdwWaHLo3Ml11eQLz7gFzw5VXQ8yRD/2vidE4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Ejgtl18ysksbw3s01cEeE+pITUeihYnS4w5v4uTkaxP+6cCK+jFBpBRyd+qF/RdxO jdG9NvxIxeoZqSHUGHyU3ISW4ZOeIYdoDtHw9QNLyf3KOG3dGRJi3YohJQ2xWNH/VQ PsdCJGmddYoWiGzFv5qTkFm0WI6lW2mNFrdURVc4= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 08AMPiGL088296 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 10 Sep 2020 17:25:44 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 10 Sep 2020 17:25:43 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE107.ent.ti.com (10.64.6.28) 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; Thu, 10 Sep 2020 17:25:43 -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 08AMPgiP121612; Thu, 10 Sep 2020 17:25:43 -0500 From: Grygorii Strashko To: Tony Lindgren CC: , , Sekhar Nori , Vignesh Raghavendra , Murali Karicheri , Grygorii Strashko Subject: [PATCH next 3/3] ARM: dts: am437x-l4: drop legacy cpsw dt node Date: Fri, 11 Sep 2020 01:25:18 +0300 Message-ID: <20200910222518.32486-4-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200910222518.32486-1-grygorii.strashko@ti.com> References: <20200910222518.32486-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 am437x boards have been converted to use new driver, so drop legacy cpsw dt node. Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/am437x-l4.dtsi | 51 -------------------------------- 1 file changed, 51 deletions(-) -- 2.17.1 diff --git a/arch/arm/boot/dts/am437x-l4.dtsi b/arch/arm/boot/dts/am437x-l4.dtsi index e702e9576115..d82a6eeaf1b3 100644 --- a/arch/arm/boot/dts/am437x-l4.dtsi +++ b/arch/arm/boot/dts/am437x-l4.dtsi @@ -521,57 +521,6 @@ #size-cells = <1>; ranges = <0x0 0x100000 0x8000>; - mac: ethernet@0 { - compatible = "ti,am4372-cpsw","ti,cpsw"; - reg = <0x0 0x800 - 0x1200 0x100>; - interrupts = ; - #address-cells = <1>; - #size-cells = <1>; - clocks = <&cpsw_125mhz_gclk>, <&cpsw_cpts_rft_clk>, - <&dpll_clksel_mac_clk>; - clock-names = "fck", "cpts", "50mclk"; - assigned-clocks = <&dpll_clksel_mac_clk>; - assigned-clock-rates = <50000000>; - status = "disabled"; - cpdma_channels = <8>; - ale_entries = <1024>; - bd_ram_size = <0x2000>; - mac_control = <0x20>; - slaves = <2>; - active_slave = <0>; - cpts_clock_mult = <0x80000000>; - cpts_clock_shift = <29>; - ranges = <0 0 0x8000>; - syscon = <&scm_conf>; - - davinci_mdio: mdio@1000 { - compatible = "ti,am4372-mdio","ti,cpsw-mdio","ti,davinci_mdio"; - reg = <0x1000 0x100>; - clocks = <&cpsw_125mhz_clkctrl AM4_CPSW_125MHZ_CPGMAC0_CLKCTRL 0>; - clock-names = "fck"; - #address-cells = <1>; - #size-cells = <0>; - bus_freq = <1000000>; - status = "disabled"; - }; - - cpsw_emac0: slave@200 { - /* Filled in by U-Boot */ - mac-address = [ 00 00 00 00 00 00 ]; - phys = <&phy_gmii_sel 1 0>; - }; - - cpsw_emac1: slave@300 { - /* Filled in by U-Boot */ - mac-address = [ 00 00 00 00 00 00 ]; - phys = <&phy_gmii_sel 2 0>; - }; - }; - mac_sw: switch@0 { compatible = "ti,am4372-cpsw","ti,cpsw-switch"; reg = <0x0 0x4000>;