Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1630897yba; Thu, 25 Apr 2019 03:08:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwj81h2iR8ylD/EAsIcc4Usz3JuUw1oR6Jj/WNPpltOa4GVLZT5/PCMmMgHj3OQviulBuxx X-Received: by 2002:a17:902:42:: with SMTP id 60mr38362792pla.79.1556186894032; Thu, 25 Apr 2019 03:08:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556186894; cv=none; d=google.com; s=arc-20160816; b=pjb3O1ze51CAycAS+oxWragZ0+Yr199wo2Hv6rMc2SmLjAHbT2q6dgl02e7WldJvc8 TJUJq26UTlcbvOPnmtIWm8Ve6aaT9iWoXntfkIswbP+1eeg8T8PQQ6UiV1s3+vKQ9WSM 7kUtqLw8QwCRfLinB/TQCsMDpkUQBExjxfaG+AitsV/9XNZJmtHDlawc+aOH2fcGuSL2 GzMHrKBYvxmCvNIiaTF+E6qii2pug7kovtm5r2A/qzt4GYTMjsUZNplJyl8GZM/dw6ic BJJfx9haZANsRk9qLvqSYyhG0peY9l8sG6I77+gtIQHdQgT1lnMN9HR86yXH308o6woE JlKA== 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=XC9DUfP/ZASD82wmKHrnFgq/h5W+J7IDXLFpWqgB6W8=; b=GCLTjjsjrrReeYe3FHWPq7p6VXsJiTFf2cTfDabt6Zh01v0sts5wo79mhBmO4IimQ9 nBYuPNVUwKwTawBNolGyYdvS+rosDaC4DxTo/jERHSaqy8kI7eU11dTKnTrUFhuTJeSd Fj02tndvDl/TX67qjH4eqzM6WLp1CNHNM5aXkPrAP2lp60Aer2hZreyp62jC5F+OMjKA IiDTAH96jn6Tap3j49s4su/ifi/qOfNK8AtTMlAc1/k+ExNCZJ9GLpTs248WvF3Tyn+x 36uiJ3QXTLOb9wx4iXVIfTjC11kkoQ/9TMSJHHBnFzhWLvkEnhTZ17bIjCauLCwyqZl0 /vow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=OLpRKtIS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id gn14si21455191plb.7.2019.04.25.03.07.58; Thu, 25 Apr 2019 03:08:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=OLpRKtIS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2387579AbfDXWZH (ORCPT + 99 others); Wed, 24 Apr 2019 18:25:07 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:50696 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388212AbfDXWZC (ORCPT ); Wed, 24 Apr 2019 18:25:02 -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 x3OMOu9h107954; Wed, 24 Apr 2019 17:24:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1556144696; bh=XC9DUfP/ZASD82wmKHrnFgq/h5W+J7IDXLFpWqgB6W8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=OLpRKtISByWP5nv6f17dmxKkxmnq4RAomm+9N2iAiZAEf/SJtf2JBNWq1OtZW5cy4 nCwAqvgNad7iVR9ahZ1XlRyYsHwNZrn7UDCtDK3yOkGww5Aaf1CdJjGjuGAfccseDI TryHqz0+GZXX1Nw0vS0m+NqSJFPv8cIXKmTzCZ0s= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x3OMOuMp038532 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 24 Apr 2019 17:24:56 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) 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.1713.5; Wed, 24 Apr 2019 17:24:55 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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.1713.5 via Frontend Transport; Wed, 24 Apr 2019 17:24:55 -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 x3OMOsBX035553; Wed, 24 Apr 2019 17:24:55 -0500 From: Grygorii Strashko To: , Ilias Apalodimas , Andrew Lunn , "David S . Miller" , Ivan Khoronzhuk , Jiri Pirko CC: Florian Fainelli , Sekhar Nori , , , Murali Karicheri , Ivan Vecera , Grygorii Strashko Subject: [RFC PATCH v3 net-next 11/11] ARM: dts: am57xx-idk: add dt nodes for new cpsw switch dev driver Date: Thu, 25 Apr 2019 01:24:27 +0300 Message-ID: <1556144667-27997-12-git-send-email-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556144667-27997-1-git-send-email-grygorii.strashko@ti.com> References: <1556144667-27997-1-git-send-email-grygorii.strashko@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DT nodes for new cpsw switch dev driver. Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/am571x-idk.dts | 28 +++++++++++++ arch/arm/boot/dts/am57xx-idk-common.dtsi | 2 +- arch/arm/boot/dts/dra7-l4.dtsi | 53 ++++++++++++++++++++++++ 3 files changed, 82 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/am571x-idk.dts b/arch/arm/boot/dts/am571x-idk.dts index 6432309b39e3..6ec02be9d80b 100644 --- a/arch/arm/boot/dts/am571x-idk.dts +++ b/arch/arm/boot/dts/am571x-idk.dts @@ -194,3 +194,31 @@ 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"; + dual_emac_res_vlan = <1>; +}; + +&cpsw_port2 { + phy-handle = <ðphy1_sw>; + phy-mode = "rgmii"; + dual_emac_res_vlan = <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/am57xx-idk-common.dtsi b/arch/arm/boot/dts/am57xx-idk-common.dtsi index f7bd26458915..5c7663699efa 100644 --- a/arch/arm/boot/dts/am57xx-idk-common.dtsi +++ b/arch/arm/boot/dts/am57xx-idk-common.dtsi @@ -367,7 +367,7 @@ }; &mac { - status = "okay"; +// status = "okay"; dual_emac; }; diff --git a/arch/arm/boot/dts/dra7-l4.dtsi b/arch/arm/boot/dts/dra7-l4.dtsi index 414f1cd68733..c17c506b51e6 100644 --- a/arch/arm/boot/dts/dra7-l4.dtsi +++ b/arch/arm/boot/dts/dra7-l4.dtsi @@ -3122,6 +3122,59 @@ phys = <&phy_gmii_sel 2>; }; }; + + mac_sw: ethernet_switch@0 { + compatible = "ti,dra7-cpsw-switch","ti,cpsw-switch"; + reg = <0x0 0x4000>; + ranges = <0 0 0x4000>; + clocks = <&gmac_main_clk>; + clock-names = "fck"; + #address-cells = <1>; + #size-cells = <1>; + syscon = <&scm_conf>; + status = "disabled"; + + interrupts = , + , + , + ; + interrupt-names = "rx_thresh", "rx", "tx", "misc"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + cpsw_port1: port@1 { + reg = <1>; + ti,label = "port1"; + /* Filled in by U-Boot */ + mac-address = [ 00 00 00 00 00 00 ]; + phys = <&phy_gmii_sel 1>; + }; + + cpsw_port2: port@2 { + reg = <2>; + ti,label = "port2"; + /* Filled in by U-Boot */ + mac-address = [ 00 00 00 00 00 00 ]; + phys = <&phy_gmii_sel 2>; + }; + }; + + davinci_mdio_sw: mdio@1000 { + compatible = "ti,cpsw-mdio","ti,davinci_mdio"; + #address-cells = <1>; + #size-cells = <0>; + ti,hwmods = "davinci_mdio"; + bus_freq = <1000000>; + reg = <0x1000 0x100>; + }; + + cpts { + clocks = <&gmac_clkctrl DRA7_GMAC_GMAC_CLKCTRL 25>; + clock-names = "cpts"; + }; + }; }; }; }; -- 2.17.1