Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4074580pxk; Tue, 8 Sep 2020 10:01:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxb82JQ5JBelGCe62/o8F25UqwoAz71AzSpqQ5aHZ2VW1+ibatMLfw8iaa6PKSaMqpJ7pN3 X-Received: by 2002:a05:6402:b68:: with SMTP id cb8mr10445792edb.350.1599584513301; Tue, 08 Sep 2020 10:01:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599584513; cv=none; d=google.com; s=arc-20160816; b=ZAstdooUbwjZ0y2alB+wRUshQNOvmNbOs6Iw8TGiNUEi3L3mo9OkRG/jgPYTnZQVXF 5THn4MrmNTR1L+wN3jUWsVr2ffibRWrekVbnud5Lw+2n67JRTtDVmArX6fsdIlmdWXdR k0kGOLxQqC/qFBYTsIf3L5eJ4Ie3+iA/vuz4y1flXclkxC4b/9Hj+nWmayAumOn5se8m C20ViZEW+JmLus/sr02IwfROvj3xiIJ05LorB/bBV1AeZhRAUUpBdPPU83r8k2FRXmsD aVSQvNLZy4ttlyJ26ZknhM7cVblOwNUzsoabiusVMLZIrxmAlsZl9H93AUK6Yk2Eo7BT 4wFA== 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=PKOejH6vx5nLOnIDQFUSZ/d82lIDZbEh+49+G1IcozA=; b=u/IptxtHsd1+6Oe6rWlRPpOxH/Eaxw6lZdZObys2epd+wXxAESQ+lwQGLZjhHzmEvM wphzmMxrOLULoOmUZ3j7vMDILMkznzeFekMIHurM2kRpwXAVvKSzNCU7ctKkf3OekBaz s5g/PJIz9+JLIJF+Xz22Dn7YcZumoxfJO6SBtoC8dVtIUkuzQF1Xmyz7dR5QngwOgMVD biY7f9f9WRwd1ZH9cZ9nfO/oEhqK4pJkGL7JG5HDL6ZNmZbxuK8rodzlvzHAC0VP1Ynt NXlsGQN5oblOFaRzKNOOj3oxOb4yegV+jReYbZf/20saBhH3MbmFXatImlO9/AZ8/YVB pq+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=E8nFWq2A; 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 a16si12714200ejk.665.2020.09.08.10.01.30; Tue, 08 Sep 2020 10:01:53 -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=E8nFWq2A; 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 S1731948AbgIHRBD (ORCPT + 99 others); Tue, 8 Sep 2020 13:01:03 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:59642 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731940AbgIHRAV (ORCPT ); Tue, 8 Sep 2020 13:00:21 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 088H0GXr087891; Tue, 8 Sep 2020 12:00:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1599584416; bh=PKOejH6vx5nLOnIDQFUSZ/d82lIDZbEh+49+G1IcozA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=E8nFWq2ARuL5/ZxMwPYAmIqWQhHJLkG4peHqXH8a513Angk1wFBDNGk87bwebP6AT BLjuHF5LI98oL83Xa/yBW2IjvHrcs8z9ESwGhvRXW5Q2XmOWk0oNQeK171owMpFZto EalEoG6E7lDiH3UhNMDTKTGPp0hbJCGmn1wE/E1k= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 088H0GvK049746 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 8 Sep 2020 12:00:16 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 8 Sep 2020 12:00:16 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Tue, 8 Sep 2020 12:00:16 -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 088H0FS4113858; Tue, 8 Sep 2020 12:00:15 -0500 From: Grygorii Strashko To: Peter Ujfalusi , Tero Kristo , Rob Herring , Nishanth Menon , Kishon Vijay Abraham I CC: Sekhar Nori , , , , Vignesh Raghavendra , Suman Anna , Grygorii Strashko Subject: [PATCH v2 3/4] arm64: dts: ti: k3-j7200-mcu: add mcu cpsw nuss node Date: Tue, 8 Sep 2020 19:59:41 +0300 Message-ID: <20200908165942.32368-4-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200908165942.32368-1-grygorii.strashko@ti.com> References: <20200908165942.32368-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 j7200 MCU SoC Gigabit Ethernet two ports Switch subsystem (MCU CPSW NUSS). Signed-off-by: Grygorii Strashko --- .../boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi index 9ecb7e0c9cf7..06cd6a80a499 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi @@ -34,6 +34,20 @@ }; }; + mcu_conf: syscon@40f00000 { + compatible = "syscon", "simple-mfd"; + reg = <0x0 0x40f00000 0x0 0x20000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x40f00000 0x20000>; + + phy_gmii_sel: phy@4040 { + compatible = "ti,am654-phy-gmii-sel"; + reg = <0x4040 0x4>; + #phy-cells = <1>; + }; + }; + chipid@43000014 { compatible = "ti,am654-chipid"; reg = <0x0 0x43000014 0x0 0x4>; @@ -125,4 +139,64 @@ ti,sci-rm-range-rflow = <0x00>; /* GP RFLOW */ }; }; + + mcu_cpsw: ethernet@46000000 { + compatible = "ti,j721e-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 18 21>; + clock-names = "fck"; + power-domains = <&k3_pds 18 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 18 21>; + clock-names = "fck"; + bus_freq = <1000000>; + }; + + cpts@3d000 { + compatible = "ti,am65-cpts"; + reg = <0x0 0x3d000 0x0 0x400>; + clocks = <&k3_clks 18 2>; + clock-names = "cpts"; + interrupts-extended = <&gic500 GIC_SPI 858 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "cpts"; + ti,cpts-ext-ts-inputs = <4>; + ti,cpts-periodic-outputs = <2>; + }; + }; }; -- 2.17.1