Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp831418pxt; Thu, 5 Aug 2021 12:46:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxC7E/RK/cx/GgbyFydHeyFXS6VeNv49Ul1mMMZaXygITVUxDsSM78GiCgPYtXGu2HEvGyS X-Received: by 2002:aa7:d691:: with SMTP id d17mr8649327edr.245.1628192809091; Thu, 05 Aug 2021 12:46:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628192809; cv=none; d=google.com; s=arc-20160816; b=qQ5udomSJTwdtUrqmugm3nViaIzhl6kKR0m5MSJXppFJHm/XP/0htlycO93I59YHhf pXBj1hbs9qCsS0zCelmCs+tr6f714kKXkWbtBQ2myh5u5fbBisoYSTnnCGzcRiiZx7A8 jgsIaMnNQjTcs2qcJI7ZlCsoZDZSZZxi+tLCdA5GCw1R2kWZSl1LYdfl1yFFEZPSH3mh ShiNeUt/RR9T6RzEFCJSiVdwS0oDWeexCERQUyl4A9mMtEidsjggdoivz/lBC4xN+npy D86uV6+5Wle38Bcd5fVcGzxgE7Fo0H9WjhR0shR3Hw+EfxfLjZojXGc/oAl9JMcleKkJ eYyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=5HM42TrhyJ+dgEI137mtVY8Bi0VP1NjSvoUG5V2ri7Y=; b=dbBAy3UdbZ1wQ57XUbJF9SOXPgtVlwXj3aa3jpgZPvTjE5Gpaz2glg+RxtnFcM1QAV qOYpTXOFX471TcRe8SYpDc5AFWw+qc1dCQDuCYxOuNA1Zc2tSKGViv+2XJceBEhEw2Sw 6ISxOVG/sH4qnUxsDJPV4wMl4NMR9dxeCqY7fvQqAQEEAYXM2lL32WtMOeS2PCEQeEB9 hllWouqSpmNqUbAOO0JCYjoxwx7Ignm2ESJZGTw8DcOcMjwdivTDOiZxZnIXBDeTTxPo YcM1pNOBIjwojuVMdHqHzibQaJTTTZbIxo6y1wCe8aOG+fvvxGIk9IUw9uuyTavWTmyl exZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=biO80seR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si6860863edw.433.2021.08.05.12.46.25; Thu, 05 Aug 2021 12:46:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=biO80seR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S238954AbhHERaT (ORCPT + 99 others); Thu, 5 Aug 2021 13:30:19 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:39474 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230385AbhHERaT (ORCPT ); Thu, 5 Aug 2021 13:30:19 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 175HU0FI098138; Thu, 5 Aug 2021 12:30:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1628184600; bh=5HM42TrhyJ+dgEI137mtVY8Bi0VP1NjSvoUG5V2ri7Y=; h=From:To:CC:Subject:Date; b=biO80seR2jRd+IM5MS6A/+gqawLY/l0vuPJ7+XQahafLhe9p6d/glLRtQT5H2Xhzo nVO5cuAL1oYqmIg9GoYJof9giMyyfebt2Ow7O9RT7YiFru/YEfH5Sfr/x9pjk+AfV4 i2KrJsw4DIuJ28hDiLtQTtqP3Is4yQMNnvOh7wro= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 175HU0K7054890 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 5 Aug 2021 12:30:00 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 5 Aug 2021 12:29:59 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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.2176.2 via Frontend Transport; Thu, 5 Aug 2021 12:29:59 -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 175HTwRc002706; Thu, 5 Aug 2021 12:29:58 -0500 From: Grygorii Strashko To: Tony Lindgren , CC: Lokesh Vutla , Paul Barker , , Vignesh Raghavendra , Grygorii Strashko Subject: [PATCH v2] ARM: dts: am335x-bone: switch to new cpsw switch drv Date: Thu, 5 Aug 2021 20:29:54 +0300 Message-ID: <20210805172954.5409-1-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 BeagleBone 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 --- v2: only rebase arch/arm/boot/dts/am335x-bone-common.dtsi | 13 +++++--- .../boot/dts/am335x-boneblack-wireless.dts | 2 +- .../boot/dts/am335x-bonegreen-wireless.dts | 2 +- .../boot/dts/am335x-sancloud-bbe-common.dtsi | 33 ++----------------- 4 files changed, 12 insertions(+), 38 deletions(-) diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi index 34a0045b5f65..0ccdc7cd463b 100644 --- a/arch/arm/boot/dts/am335x-bone-common.dtsi +++ b/arch/arm/boot/dts/am335x-bone-common.dtsi @@ -353,24 +353,27 @@ }; }; -&cpsw_emac0 { +&cpsw_port1 { phy-handle = <ðphy0>; phy-mode = "mii"; + ti,dual-emac-pvid = <1>; }; -&mac { - slaves = <1>; +&cpsw_port2 { + status = "disabled"; +}; + +&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>; diff --git a/arch/arm/boot/dts/am335x-boneblack-wireless.dts b/arch/arm/boot/dts/am335x-boneblack-wireless.dts index 8b2b24c80670..c72b09ab8da0 100644 --- a/arch/arm/boot/dts/am335x-boneblack-wireless.dts +++ b/arch/arm/boot/dts/am335x-boneblack-wireless.dts @@ -63,7 +63,7 @@ }; }; -&mac { +&mac_sw { status = "disabled"; }; diff --git a/arch/arm/boot/dts/am335x-bonegreen-wireless.dts b/arch/arm/boot/dts/am335x-bonegreen-wireless.dts index 74db0fc39397..215f279e476b 100644 --- a/arch/arm/boot/dts/am335x-bonegreen-wireless.dts +++ b/arch/arm/boot/dts/am335x-bonegreen-wireless.dts @@ -62,7 +62,7 @@ }; }; -&mac { +&mac_sw { status = "disabled"; }; diff --git a/arch/arm/boot/dts/am335x-sancloud-bbe-common.dtsi b/arch/arm/boot/dts/am335x-sancloud-bbe-common.dtsi index bd9c21813192..2513d7cde09c 100644 --- a/arch/arm/boot/dts/am335x-sancloud-bbe-common.dtsi +++ b/arch/arm/boot/dts/am335x-sancloud-bbe-common.dtsi @@ -40,22 +40,6 @@ >; }; - davinci_mdio_default: davinci_mdio_default { - pinctrl-single,pins = < - /* MDIO */ - AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT_PULLUP | SLEWCTRL_FAST, MUX_MODE0) - AM33XX_PADCONF(AM335X_PIN_MDC, PIN_OUTPUT_PULLUP, MUX_MODE0) - >; - }; - - davinci_mdio_sleep: davinci_mdio_sleep { - pinctrl-single,pins = < - /* MDIO reset value */ - AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT_PULLDOWN, MUX_MODE7) - AM33XX_PADCONF(AM335X_PIN_MDC, PIN_INPUT_PULLDOWN, MUX_MODE7) - >; - }; - usb_hub_ctrl: usb_hub_ctrl { pinctrl-single,pins = < AM33XX_PADCONF(AM335X_PIN_RMII1_REF_CLK, PIN_OUTPUT_PULLUP, MUX_MODE7) /* rmii1_refclk.gpio0_29 */ @@ -63,25 +47,12 @@ }; }; -&mac { - pinctrl-names = "default", "sleep"; +&mac_sw { pinctrl-0 = <&cpsw_default>; pinctrl-1 = <&cpsw_sleep>; - status = "okay"; -}; - -&davinci_mdio { - 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-id"; }; -- 2.17.1