Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp832504ybg; Thu, 19 Mar 2020 09:31:11 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsQLcVviW0yvTTLdnPCNyu89i3IRb55L5CVC25wnOp+uRy72JhcDJdiXkQNYuff9DBPPmyn X-Received: by 2002:aca:4cd8:: with SMTP id z207mr2889167oia.155.1584635471627; Thu, 19 Mar 2020 09:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584635471; cv=none; d=google.com; s=arc-20160816; b=WdGwM19I96jJIYHfOqSnAOwlqYVLmgzEKHPMybp9//LvbzsIBnfJMFA1Ir4NZBa0gT ufoB586b8TmGNucF0YDc7n18DmorOCvb23eMvDxpeWgwL6C92n6W4v/itNFxl612OR67 UTxNkdOoObH/qWK8b3OHbutcNsg6Xvi1WZ1ZMGxfP6Gb5e3QQoac2uNVLs54Bj1b865I DMyH2tZjMBVAOdLBeke1dFU7kps6v7YE3Y4P6Eyo1NzYJ5jhc18fKgXJZPaLn/GyufjE JK2u6UeYe7N7O0FEhqmYX+0mqQV4FOEFQF0dFNjTP35c/3W45C3GBfXnpE5KGaZWaDcI I8Kg== 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=fbU2VeKzCVkSGi4mPYs5aS60Vlnrh8l8Q/P3Y9pn7qI=; b=GqkLKJqwpT9hrSVlRRA0159usCehrtTc6TuczO7e1RhA8P2l0Cjl+lzrg/hgL2moTk y66aVATYQufPGYC+KZ2BK5CyaGFhs7fAM9sjRla8n3mLYvTYQ3Tf+nHWZqlZQiUAtzMB La1pi7fAa1sxqMiBCxewrMEHpTTJDcoE7oIMmfNHRHMxPgliJhpxsFAW2HPesbawtNGc EWhU4q0988O31QyvL0/Za4fnzqVCvEUb96wltomJM2y/T8cKCXIcLXu3g2kTgt5Lu7Pe l3ab1CdEc+y/rcd4q5dOVURR9eP6mR+gsQ7dxapl1w4YoXVK1smmUdt9h+Y7mAC081Q+ /Z2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ONfRujte; 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 p126si1293358oib.73.2020.03.19.09.30.58; Thu, 19 Mar 2020 09:31:11 -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=ONfRujte; 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 S1728523AbgCSQ24 (ORCPT + 99 others); Thu, 19 Mar 2020 12:28:56 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:39620 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728474AbgCSQ2x (ORCPT ); Thu, 19 Mar 2020 12:28:53 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 02JGSdxt088650; Thu, 19 Mar 2020 11:28:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1584635319; bh=fbU2VeKzCVkSGi4mPYs5aS60Vlnrh8l8Q/P3Y9pn7qI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ONfRujteK5YYEUyuhp+s7ip+/flCRqmQGLwCXJLGd/bNaTRBit9MBSNSakHoqEZiY zIz5FQh5vWLFEZFgmougjzEtlZy9gzlcdp3oqDD8B34dw3xiflej5P1H0RfbXEf/qv oDWTM1j/38sIqpftsGAe/Zzmg04P9U6DOo1eSPGE= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 02JGSd99110977 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 19 Mar 2020 11:28:39 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 19 Mar 2020 11:28:38 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE112.ent.ti.com (10.64.6.33) 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; Thu, 19 Mar 2020 11:28:39 -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 02JGSb2M047871; Thu, 19 Mar 2020 11:28:38 -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 v5 10/11] arm64: dts: ti: k3-j721e-common-proc-board: add mcu cpsw nuss pinmux and phy defs Date: Thu, 19 Mar 2020 18:28:05 +0200 Message-ID: <20200319162806.25705-11-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200319162806.25705-1-grygorii.strashko@ti.com> References: <20200319162806.25705-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 The TI J721E 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 j721e SoC MCU Gigabit Ethernet two ports Switch subsystem (CPSW NUSS). Signed-off-by: Grygorii Strashko Tested-by: Murali Karicheri --- .../dts/ti/k3-j721e-common-proc-board.dts | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts index 7a5c3d4adadd..98e5e17e3ff7 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts @@ -8,6 +8,7 @@ #include "k3-j721e-som-p0.dtsi" #include #include +#include / { chosen { @@ -128,6 +129,30 @@ J721E_WKUP_IOPAD(0x38, PIN_INPUT, 0) /* (A23) MCU_OSPI1_LBCLKO */ >; }; + + mcu_cpsw_pins_default: mcu_cpsw_pins_default { + pinctrl-single,pins = < + J721E_WKUP_IOPAD(0x0058, PIN_OUTPUT, 0) /* MCU_RGMII1_TX_CTL */ + J721E_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* MCU_RGMII1_RX_CTL */ + J721E_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* MCU_RGMII1_TD3 */ + J721E_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* MCU_RGMII1_TD2 */ + J721E_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* MCU_RGMII1_TD1 */ + J721E_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* MCU_RGMII1_TD0 */ + J721E_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* MCU_RGMII1_RD3 */ + J721E_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* MCU_RGMII1_RD2 */ + J721E_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* MCU_RGMII1_RD1 */ + J721E_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* MCU_RGMII1_RD0 */ + J721E_WKUP_IOPAD(0x0070, PIN_INPUT, 0) /* MCU_RGMII1_TXC */ + J721E_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* MCU_RGMII1_RXC */ + >; + }; + + mcu_mdio_pins_default: mcu_mdio1_pins_default { + pinctrl-single,pins = < + J721E_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* MCU_MDIO0_MDC */ + J721E_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* MCU_MDIO0_MDIO */ + >; + }; }; &wkup_uart0 { @@ -429,3 +454,21 @@ #gpio-cells = <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