Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4205672ybb; Mon, 23 Mar 2020 15:55:28 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvnc2OyKuHcinsmNXomWO1nxXcrOB5yp4agFP/t7NSOogRaq1m1x63CdfMip2qK3aRk6lCz X-Received: by 2002:a9d:7402:: with SMTP id n2mr3023622otk.262.1585004128429; Mon, 23 Mar 2020 15:55:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585004128; cv=none; d=google.com; s=arc-20160816; b=RxohuNEICuynI8871m+CRXB0zziR9BFusexj+jvgwasJeP7SpI3jOIbUezZKX8FcdJ 4jzQO8FtgPonLoutWNo3S/zFzwxVmErEyBEiFWf7sp2Ymm03qIiFBGef6IVBnETCBjb0 iFIrTqvZ88ZTyoOCeBQxEXrJjERFN9YRxJiYBpI4uuxrysScMPhYWJGrOD1S8uX2EjNo 5LcHD2n7FVGFXpt6nV0GqLVPXDACHPptg7e+uXV6O6geX3oJa64m4PWKiMvVBtPXG5rX CrCzKu1/nbfpzdoGq9elj8oFvtMn+j895iRhdP+xzKrPhr85lTWnP3GUzq6Act/1+W6U Dk/g== 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=rG2eAWzyk9qSlJA25m5JntQI0TChpArGIykV4IHhmNU=; b=AIDNbkrYzjbXMp8kfMx22GTYTX7gxFLosftv++OctCs2LIo+jDDBP3vy4DgAcd3Kid iU//OGLICYlI5FNnQuoMxxvOyBCP7p/VWSKFJYEKMOBTFgtCWj+W7jv2gvggJlQlWoYb gDbhuoFKPn6usY4REipYMueZ+vstcR7aip6zxbvFXpR3vSF9Wze1D1VvoYQZrRZXx0ad Dt6toSk2sCWN6PyEdQr98AikZDl4G8xbryLbCHlT790outRjf0lhB5ZYfquMFz1m7LR0 s28MlIGI/Qc1lib9B0yUTWuH+Z2JpW0dfYuIqTl4v4PSnD6kWtLrHcaNvpeIC5hNU4cg xiwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=BBm1sj+a; 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 n125si1642712oib.97.2020.03.23.15.55.15; Mon, 23 Mar 2020 15:55:28 -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=BBm1sj+a; 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 S1727283AbgCWWxW (ORCPT + 99 others); Mon, 23 Mar 2020 18:53:22 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:53038 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726986AbgCWWxT (ORCPT ); Mon, 23 Mar 2020 18:53:19 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 02NMrCdL046362; Mon, 23 Mar 2020 17:53:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1585003992; bh=rG2eAWzyk9qSlJA25m5JntQI0TChpArGIykV4IHhmNU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=BBm1sj+a25LnlJtWnp6mWZCEQO4BWWN+V6rec6gLM02Zgy7Yn9fe7ObKAk+MyZ8iU yKJSgETUG7JtLt7cPoDDRu0XzkD4lN7fIeUJMpMl+HNcv+IpzHJpC+8bI90UcJkJHW BJsAOsNXtFM/RgfFMqbsM1mRhNhFE66pk+x+xzxE= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 02NMrCES032807; Mon, 23 Mar 2020 17:53:12 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) 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; Mon, 23 Mar 2020 17:53:12 -0500 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; Mon, 23 Mar 2020 17:53:12 -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 02NMrBar105717; Mon, 23 Mar 2020 17:53:12 -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 08/11] arm64: dts: k3-am654-base-board: add mcu cpsw nuss pinmux and phy defs Date: Tue, 24 Mar 2020 00:52:51 +0200 Message-ID: <20200323225254.12759-9-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 AM654 EVM base board has TI DP83867 PHY connected to external CPSW NUSS Port 1 in rgmii-rxid mode. Hence, add pinmux and Ethernet PHY configuration for TI am654 SoC Gigabit Ethernet two ports Switch subsystem (CPSW NUSS). Signed-off-by: Grygorii Strashko Tested-by: Murali Karicheri Tested-by: Peter Ujfalusi --- .../arm64/boot/dts/ti/k3-am654-base-board.dts | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts index 1700996800eb..2f3d3316a1cf 100644 --- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts +++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts @@ -7,6 +7,7 @@ #include "k3-am654.dtsi" #include +#include / { compatible = "ti,am654-evm", "ti,am654"; @@ -95,7 +96,30 @@ wkup_pca554_default: wkup_pca554_default { pinctrl-single,pins = < AM65X_WKUP_IOPAD(0x0034, PIN_INPUT, 7) /* (T1) MCU_OSPI1_CLK.WKUP_GPIO0_25 */ + >; + }; + + mcu_cpsw_pins_default: mcu_cpsw_pins_default { + pinctrl-single,pins = < + AM65X_WKUP_IOPAD(0x0058, PIN_OUTPUT, 0) /* (N4) MCU_RGMII1_TX_CTL */ + AM65X_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* (N5) MCU_RGMII1_RX_CTL */ + AM65X_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* (M2) MCU_RGMII1_TD3 */ + AM65X_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* (M3) MCU_RGMII1_TD2 */ + AM65X_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* (M4) MCU_RGMII1_TD1 */ + AM65X_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* (M5) MCU_RGMII1_TD0 */ + AM65X_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* (L2) MCU_RGMII1_RD3 */ + AM65X_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* (L5) MCU_RGMII1_RD2 */ + AM65X_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* (M6) MCU_RGMII1_RD1 */ + AM65X_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* (L6) MCU_RGMII1_RD0 */ + AM65X_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* (N1) MCU_RGMII1_TXC */ + AM65X_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* (M1) MCU_RGMII1_RXC */ + >; + }; + mcu_mdio_pins_default: mcu_mdio1_pins_default { + pinctrl-single,pins = < + AM65X_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* (L1) MCU_MDIO0_MDC */ + AM65X_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* (L4) MCU_MDIO0_MDIO */ >; }; }; @@ -419,3 +443,21 @@ data-lanes = <1 2>; }; }; + +&mcu_cpsw { + pinctrl-names = "default"; + pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>; +}; + +&davinci_mdio { + phy0: ethernet-phy@0 { + reg = <0>; + ti,rx-internal-delay = ; + ti,fifo-depth = ; + }; +}; + +&cpsw_port1 { + phy-mode = "rgmii-rxid"; + phy-handle = <&phy0>; +}; -- 2.17.1