From patchwork Sat Nov 9 15:15: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: 179033 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp4308691ilf; Sat, 9 Nov 2019 07:17:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxc9oI8zCdIASPZmiFgVDXAc4ZI2pGjJv1dr0eGrlDfLa7gGoIK8GiQT23kH+sVkF2Ot4LG X-Received: by 2002:aa7:c898:: with SMTP id p24mr8682589eds.19.1573312630880; Sat, 09 Nov 2019 07:17:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573312630; cv=none; d=google.com; s=arc-20160816; b=OFcretWUbKB7SkPDQ/8uprpdhLineUVsNdLpaQ2NUuHQsky6zomRcwEHiXvYCMddQI To2/CeKUYZtj4gWsjMlX2V/wbsQ/wGIlMGRP3gr624FtAiK0eLs8xu70nGGpswvvJarM xK7WYPxMPbPZzCtNHClfCquKh24tqGW8LXhIyMX6TI3rsOWx6yEXLQovyxlirGiNGehG umCrl5IZLWewCdcXc6XNkb6ywCP5wyPvHXojpI6brd2sUmeusWrjYfHVvbJm8rF7/VFO paxQDY45LZ57+xodH8s0iC5nMARug/Vkzjicy3mTijh/g5nHl2gH/QT2CM8Eo2F5gSsl 29rA== 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=ev8TwWPRRUGNWW0e0DSMY6L3jAmXyGZdE2LhdK+82XU=; b=N8hXsVoaueXOZ2EwLQgPxvFASiEfZJ77K6YdbWqHJC1VxbDrABHO6Z/PMZYJN6Ma4R 51xvbeWp2w6FoCwCawnQPXkgyW3FbpCTBKNDicL2Mylxlv76QLJoiU6Mw/BJPvyTytuS 7SBj49XZNODxh+KaLgmpUBD6zFYa1iPknj9IgfDm7gRA2sXe/1BFlnK7u7tXLz1usYfo vzMDYBh7HyxQLtwBrH72vy6KVX+8ayNz6P5x98kXe3Q2/FTEASCG390hTzGU1mPrxpqj FyVm0AUC0C49MHUxvefpwjHqTL8MPlKt/i5WOdqSL1R0Vk7w90X4ipB3Xdyll0C6naB+ 9jKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=yBQyA14K; 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 br3si6000946ejb.436.2019.11.09.07.17.10; Sat, 09 Nov 2019 07:17:10 -0800 (PST) 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=yBQyA14K; 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 S1727192AbfKIPRI (ORCPT + 26 others); Sat, 9 Nov 2019 10:17:08 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:43252 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726399AbfKIPQt (ORCPT ); Sat, 9 Nov 2019 10:16:49 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id xA9FGga9101322; Sat, 9 Nov 2019 09:16:42 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573312602; bh=ev8TwWPRRUGNWW0e0DSMY6L3jAmXyGZdE2LhdK+82XU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=yBQyA14KlBubFpveu+k8o9FhRMMYazMjL7O3oOuidJjqwKoZ4jGNp0r5iosV85z7b EezgTwu0BKJ2cPo/qnRR582yC9114yfp3AEg29tla/ztMaVVFHPzNo873bdKungUxu 8rF6wco1MNd2bZTISpyIn6VgK5p/7eTkgIfR5vxw= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xA9FGglJ089020 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 9 Nov 2019 09:16:42 -0600 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Sat, 9 Nov 2019 09:16:26 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE109.ent.ti.com (157.170.170.41) 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; Sat, 9 Nov 2019 09:16:26 -0600 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 xA9FGfJh048765; Sat, 9 Nov 2019 09:16:41 -0600 From: Grygorii Strashko To: Florian Fainelli , , Ilias Apalodimas , Andrew Lunn , "David S . Miller" , Ivan Khoronzhuk , Jiri Pirko CC: Sekhar Nori , , , Murali Karicheri , Ivan Vecera , Rob Herring , , Grygorii Strashko Subject: [PATCH v6 net-next 11/13] ARM: dts: dra7: add dt nodes for new cpsw switch dev driver Date: Sat, 9 Nov 2019 17:15:23 +0200 Message-ID: <20191109151525.18651-12-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191109151525.18651-1-grygorii.strashko@ti.com> References: <20191109151525.18651-1-grygorii.strashko@ti.com> MIME-Version: 1.0 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/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..2f3a19edc7af 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_clkctrl DRA7_GMAC_GMAC_CLKCTRL 0>; + 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"; + }; + }; }; }; };