From patchwork Tue Nov 19 22:19:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 179799 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1257025ilf; Tue, 19 Nov 2019 14:20:21 -0800 (PST) X-Google-Smtp-Source: APXvYqy5cSBGGY+jCCus2TDLhML68de3oNrpId/roPG7oprcS4TaywQIxlgDnopdGraZuZC56tuc X-Received: by 2002:a05:600c:28c:: with SMTP id 12mr142366wmk.25.1574202021339; Tue, 19 Nov 2019 14:20:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574202021; cv=none; d=google.com; s=arc-20160816; b=XKpBm5Lz2vwZKANuS4aNzjxwX/IB9W5cjpAAL0eM2X6A+F0JaABoBiPt502MvbFm7V QiBrzeXyKZK4zXREldVcT191GaoKsmZxeJtqBB0h+93T4WdHFy+cGH72FjDiYbDD0CO+ 94taF/rvDme/sT8YQmQL7p9PiwGTfeYbH8kRlPvRCLWBxmUS5iqkEs1KOcIRP6FmQMAk 64ZIf2wA41gP3oZVgJk/MtOG6Zem16TK4J78FIcK3pJ8ZQdK2ocfzZaTRwQ72uqGzTVA cNa/ioWM5HJ1Kl1ilFKI0el+cZXz4wV9MLH7q412cKNm/i3/+WHJWKg0wlRyrB392OxN Hl0Q== 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=JLi+iT7eJleUQ+pHLQ1rac65S4qJZY1RvBpl0xdUlLA=; b=ApRSqZTFr6YXw4a2kVZ9+1hyn2ZA594hW/OfqgmUIFQgHtFnYYeYm+dmQKFCNv8St+ zbaRt7E7jakALyYK1yGh91mO6oDOeQE6A7Js1X3CGCfquxCt/Hk4FW5BXoUBCHPsEPcf Xv08YA+uqxe0YTyVrvvxBPfW0xhoFGuSjtFkobfbKBxghIDuxJ9p6eE4wl7WPqZ2TIRL f+MOPbDqx2Qvbv2hflEdRYavzauz6OXvlufc8atq17iWOEDsF7PhF8I9ExR1lzovwgTT 6PnxL1XvSJhFcHCbLyd0jhK6+bof+zO3yh6YHk6DzHOp15BrOr7u+Y3XxyH3W56eIn1S boJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=s0qP8NAO; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 g24si16225335edv.239.2019.11.19.14.20.21; Tue, 19 Nov 2019 14:20:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=s0qP8NAO; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1727805AbfKSWUT (ORCPT + 8 others); Tue, 19 Nov 2019 17:20:19 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:56474 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727784AbfKSWT7 (ORCPT ); Tue, 19 Nov 2019 17:19:59 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAJMJqLx059826; Tue, 19 Nov 2019 16:19:52 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1574201992; bh=JLi+iT7eJleUQ+pHLQ1rac65S4qJZY1RvBpl0xdUlLA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=s0qP8NAOxYiPfgliZWmCDJ8oLv/+0aVBiTEtg2BvCZ7/9xk04vZldiQRu3TAtQtOF XvhCqKeMDLMjX79z2l89orxqYTR36wjY9fI1BMzok9Z58xt9WibPVakNjIZCdnjiHO UPnCSZGOuDQS5oVGtKMqgWDjADAZ42mQCEMpY/cg= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAJMJqtm044050 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 19 Nov 2019 16:19:52 -0600 Received: from DFLE104.ent.ti.com (10.64.6.25) 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.1847.3; Tue, 19 Nov 2019 16:19:51 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Tue, 19 Nov 2019 16:19:51 -0600 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 xAJMJoFd007682; Tue, 19 Nov 2019 16:19:51 -0600 From: Grygorii Strashko To: , Ilias Apalodimas , Andrew Lunn , "David S . Miller" , Ivan Khoronzhuk , Jiri Pirko CC: Florian Fainelli , Sekhar Nori , , , Murali Karicheri , Ivan Vecera , Rob Herring , , Grygorii Strashko Subject: [PATCH v7 net-next 11/13] ARM: dts: dra7: add dt nodes for new cpsw switch dev driver Date: Wed, 20 Nov 2019 00:19:23 +0200 Message-ID: <20191119221925.28426-12-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191119221925.28426-1-grygorii.strashko@ti.com> References: <20191119221925.28426-1-grygorii.strashko@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add DT nodes for new cpsw switch dev driver. Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/dra7-l4.dtsi | 52 ++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) -- 2.17.1 diff --git a/arch/arm/boot/dts/dra7-l4.dtsi b/arch/arm/boot/dts/dra7-l4.dtsi index 5cac2dd58241..37e048771b0f 100644 --- a/arch/arm/boot/dts/dra7-l4.dtsi +++ b/arch/arm/boot/dts/dra7-l4.dtsi @@ -3079,6 +3079,58 @@ phys = <&phy_gmii_sel 2>; }; }; + + mac_sw: 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"; + + 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>; + }; + + cpsw_port2: port@2 { + reg = <2>; + label = "port2"; + 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"; + clocks = <&gmac_main_clk>; + clock-names = "fck"; + #address-cells = <1>; + #size-cells = <0>; + bus_freq = <1000000>; + reg = <0x1000 0x100>; + }; + + cpts { + clocks = <&gmac_clkctrl DRA7_GMAC_GMAC_CLKCTRL 25>; + clock-names = "cpts"; + }; + }; }; }; };