Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4205804ybb; Mon, 23 Mar 2020 15:55:41 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsix87BCXItuS9h1x6DudZUyxfH1VAs3LtH4D+s34NbXF7AZgw2wf6eMDSCcmI0VFQQh7XL X-Received: by 2002:a9d:414:: with SMTP id 20mr20378264otc.300.1585004141324; Mon, 23 Mar 2020 15:55:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585004141; cv=none; d=google.com; s=arc-20160816; b=WaWOtzaVI7JhNJEuVcpgLQ8p3MaW8X5qqMTlfVlpCmdMUjx6bsBIJs01CfACm1B59Q MId5rG5YN9tuzCyT2nLei413UZraeXCagCh9BROFrfPb/VOKbdOQzY3nOd3p0geuHAoz MB7YcVQbUJcBbpSpPLxWUPjEqmx3o1eCyqV/SzlO/9N0I7WqmulfLc1AnTu2xK8Lm8ix tFyBWsVJmDyyh3hiCgL2FQUQ1/70IGSlTFBU2ljhh/px59KYjohrB5udQnWv4xFYBtiF zlaisV8JejAQfXgPQNtykJmIPUfvXGEwsV9b+yZsViEieT4ztVsD2eeGYcAqJj/f7Mkr uq4Q== 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=u2il1dYZvnUczLdvNaNJp1Btc8qojHiTUS01VP9HqXE=; b=vu2hKQ/vn8+BjS7j1YAnbdY5FHK9DYRqnClOW8yd8nw+EG9pa+QAQaIcSLTeElIs4H ktFjU2DyaSVJabEc0gbnN7J4h7E88/JxYtsPF1ZTeVNFS5y97DY50vsABvMf/c+/v708 UnWOcZUfZG9dyBsVmESf876AfNTtnELP8isx4KL36Oj7fTkST/VsR1OqDbtdwGjbSVFt sAp1SPAcBaMifm+2Cye3jgUKajPNYSzK1DzdTiVbkJw1EWP2ytMYg7Jj+MdVKhLcCWtO XZDok977889yULCUFwIStZyUKpOM1TO7BHpsRzQ5BgVA9DsnS6FDDN6eIHQUrD7x4qEO T1yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=eSyNHGw2; 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 c24si8398154otf.33.2020.03.23.15.55.28; Mon, 23 Mar 2020 15:55:41 -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=eSyNHGw2; 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 S1727259AbgCWWxT (ORCPT + 99 others); Mon, 23 Mar 2020 18:53:19 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:37460 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727025AbgCWWxQ (ORCPT ); Mon, 23 Mar 2020 18:53:16 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 02NMrB3a078487; Mon, 23 Mar 2020 17:53:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1585003991; bh=u2il1dYZvnUczLdvNaNJp1Btc8qojHiTUS01VP9HqXE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=eSyNHGw2S+6H/xUq8bcAxVlfzgqdzL7OCJfKCtvIVrTaIy9MMk2AhRZwLEAfECXnL gcmCInSm9ilYCb5KSjZLckui9yiO4s/YZrN9eVAElRnmckMeMF95oP4QAOWo7zpGgu nGl5Wy/gJKbQf0zFbu04kvqYTTjpW1YfO3BqVKOg= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 02NMrBtn050639 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 23 Mar 2020 17:53:11 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) 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.1847.3; Mon, 23 Mar 2020 17:53:10 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE100.ent.ti.com (10.64.6.21) 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; Mon, 23 Mar 2020 17:53:10 -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 02NMr9P6052219; Mon, 23 Mar 2020 17:53:10 -0500 From: Grygorii Strashko To: Peter Ujfalusi , Rob Herring , Tero Kristo , "David S . Miller" , netdev , Roger Quadros , , Jakub Kicinski CC: Murali Karicheri , Sekhar Nori , Kishon Vijay Abraham I , , , Grygorii Strashko Subject: [PATCH net-next v6 07/11] arm64: dts: ti: k3-am65-mcu: add cpsw nuss node Date: Tue, 24 Mar 2020 00:52:50 +0200 Message-ID: <20200323225254.12759-8-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200323225254.12759-1-grygorii.strashko@ti.com> References: <20200323225254.12759-1-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 node for the TI AM65x SoC Gigabit Ethernet two ports Switch subsystem (CPSW NUSS). Signed-off-by: Grygorii Strashko Tested-by: Murali Karicheri Tested-by: Peter Ujfalusi --- arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi | 49 +++++++++++++++++++++++++ arch/arm64/boot/dts/ti/k3-am65.dtsi | 1 + 2 files changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi index ad89f93f30e5..e645664f004e 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi @@ -193,4 +193,53 @@ #size-cells = <0>; }; }; + + mcu_cpsw: ethernet@46000000 { + compatible = "ti,am654-cpsw-nuss"; + #address-cells = <2>; + #size-cells = <2>; + reg = <0x0 0x46000000 0x0 0x200000>; + reg-names = "cpsw_nuss"; + ranges = <0x0 0x0 0x0 0x46000000 0x0 0x200000>; + dma-coherent; + clocks = <&k3_clks 5 10>; + clock-names = "fck"; + power-domains = <&k3_pds 5 TI_SCI_PD_EXCLUSIVE>; + + dmas = <&mcu_udmap 0xf000>, + <&mcu_udmap 0xf001>, + <&mcu_udmap 0xf002>, + <&mcu_udmap 0xf003>, + <&mcu_udmap 0xf004>, + <&mcu_udmap 0xf005>, + <&mcu_udmap 0xf006>, + <&mcu_udmap 0xf007>, + <&mcu_udmap 0x7000>; + dma-names = "tx0", "tx1", "tx2", "tx3", + "tx4", "tx5", "tx6", "tx7", + "rx"; + + ethernet-ports { + #address-cells = <1>; + #size-cells = <0>; + + cpsw_port1: port@1 { + reg = <1>; + ti,mac-only; + label = "port1"; + ti,syscon-efuse = <&mcu_conf 0x200>; + phys = <&phy_gmii_sel 1>; + }; + }; + + davinci_mdio: mdio@f00 { + compatible = "ti,cpsw-mdio","ti,davinci_mdio"; + reg = <0x0 0xf00 0x0 0x100>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&k3_clks 5 10>; + clock-names = "fck"; + bus_freq = <1000000>; + }; + }; }; diff --git a/arch/arm64/boot/dts/ti/k3-am65.dtsi b/arch/arm64/boot/dts/ti/k3-am65.dtsi index aea36e29dd32..5be75e430965 100644 --- a/arch/arm64/boot/dts/ti/k3-am65.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65.dtsi @@ -30,6 +30,7 @@ i2c3 = &main_i2c1; i2c4 = &main_i2c2; i2c5 = &main_i2c3; + ethernet0 = &cpsw_port1; }; chosen { }; -- 2.17.1