Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1430246pxk; Thu, 10 Sep 2020 15:26:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJ7DuWTD1+tk30frOMU8EdDMOT12HP4u3Nok6zpNQeVikV3qoGzN1TxMaVZ18ioo5RG5HM X-Received: by 2002:a17:906:af42:: with SMTP id ly2mr10684582ejb.362.1599776814997; Thu, 10 Sep 2020 15:26:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599776814; cv=none; d=google.com; s=arc-20160816; b=0kU8dYmfoVTbrOpVmJ2V2jzu2FC/6k+okI2ZDrfKn/td/yz3U1NurbQpg3ECIrE/bl MkIj0NjuxztrcIn/owsaih0zV8oqzQGge63PjH1576F/A0ljCpGa8fu4lRL4c+n7iEyV v1B7zRGURIbbe83b+n3Ib2o4eY3JBHLAUiVTFSNb0NUanBkMzUzjIJiraI9jbiqfojVU jVQIsdVy1Sf3MumsF/2Z9mfiKa9X0cY0j7WD096j9LHaZ4Q8CndWYxz6MgQPxOeT53mx /yyaKU+DTOFSVxLkiWizgItQoGZ7LZnvE7lXbBYIjZ1AtvTK/OOP12JCY4tUMTT3MMKI rg+Q== 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=RU6iRBwYdm7JUjH8AtSM6SAyPPgcRbgfP628viV/sAs=; b=HD2bLywo2ih3/d45klHptSIH7CBHdjq1MCVuCciQnEcS5+g+I/h/nHGS70wlzlDjru GgfbrWz0zRu5CB3Qal+zcRdL0fIcO/bXaGEy6NzwUebwm0Hyw5Pqe6FVjqWeBV8Pmjv6 /cyf145jrQkmnEw0gSjO9RV6NKQin2TJZl1CX2XJzQQGXst5V8Q/GP3zQDODq/R2Uh/K JEbknuj68ec6t/arL/xHsB680rhethKKdvkFvfZVns30c2+vjciOY2elT4PoaJ65f8ck YksIQ5+g5vP8Fs5sOKTCvr0JuQpB4sU5OW9Cp4/vDw6UYuuDXbcfweyGBBNcg3N5Shyh aSkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ARaadTmH; 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 h17si4599990ejq.747.2020.09.10.15.26.32; Thu, 10 Sep 2020 15:26:54 -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=ARaadTmH; 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 S1725814AbgIJWZn (ORCPT + 99 others); Thu, 10 Sep 2020 18:25:43 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:44930 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725853AbgIJWZi (ORCPT ); Thu, 10 Sep 2020 18:25:38 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 08AMPTYa060954; Thu, 10 Sep 2020 17:25:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1599776729; bh=RU6iRBwYdm7JUjH8AtSM6SAyPPgcRbgfP628viV/sAs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ARaadTmHG4oSAOuFnNnGK5brNB7rTHZuZo0FeRe6TUnMR63ffW/cp0/Vf9Bks4Zrr ZtFS8J7opPs8Qb9QdUMMCAXE35SW4bMa7dHG7+eIHl7429u8DshV7pI+ZR+9Y6LPEO E3PCOLDwXPxrECdMTnzFRc6b7ecKAn5RgW8W8utU= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 08AMPTK3028070 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 10 Sep 2020 17:25:29 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 10 Sep 2020 17:25:29 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE104.ent.ti.com (157.170.170.34) 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; Thu, 10 Sep 2020 17:25:29 -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 08AMPS04017696; Thu, 10 Sep 2020 17:25:28 -0500 From: Grygorii Strashko To: Tony Lindgren CC: , , Sekhar Nori , Vignesh Raghavendra , Murali Karicheri , Grygorii Strashko Subject: [PATCH next 1/3] ARM: dts: am437x-l4: add dt node for new cpsw switchdev driver Date: Fri, 11 Sep 2020 01:25:16 +0300 Message-ID: <20200910222518.32486-2-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200910222518.32486-1-grygorii.strashko@ti.com> References: <20200910222518.32486-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 new cpsw switchdev based driver. Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/am437x-l4.dtsi | 54 ++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/arch/arm/boot/dts/am437x-l4.dtsi b/arch/arm/boot/dts/am437x-l4.dtsi index 3d393fe252c6..e702e9576115 100644 --- a/arch/arm/boot/dts/am437x-l4.dtsi +++ b/arch/arm/boot/dts/am437x-l4.dtsi @@ -571,6 +571,60 @@ phys = <&phy_gmii_sel 2 0>; }; }; + + mac_sw: switch@0 { + compatible = "ti,am4372-cpsw","ti,cpsw-switch"; + reg = <0x0 0x4000>; + ranges = <0 0 0x4000>; + clocks = <&cpsw_125mhz_gclk>, <&dpll_clksel_mac_clk>; + clock-names = "fck", "50mclk"; + assigned-clocks = <&dpll_clksel_mac_clk>; + assigned-clock-rates = <50000000>; + #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 0>; + }; + + cpsw_port2: port@2 { + reg = <2>; + label = "port2"; + mac-address = [ 00 00 00 00 00 00 ]; + phys = <&phy_gmii_sel 2 0>; + }; + }; + + davinci_mdio_sw: mdio@1000 { + compatible = "ti,am4372-mdio", "ti,cpsw-mdio","ti,davinci_mdio"; + clocks = <&cpsw_125mhz_gclk>; + clock-names = "fck"; + #address-cells = <1>; + #size-cells = <0>; + bus_freq = <1000000>; + reg = <0x1000 0x100>; + }; + + cpts { + clocks = <&cpsw_cpts_rft_clk>; + clock-names = "cpts"; + }; + }; }; target-module@200000 { /* 0x4a200000, ap 7 02.0 */ -- 2.17.1