Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1193712imm; Fri, 11 May 2018 12:29:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZplyapw1dcDT8um4EjVYNV5CvBDvIM+kxvunYha2rIk2+OZPKHuz2OHLA3o32xI4RdwbLvh X-Received: by 2002:a17:902:ab8d:: with SMTP id f13-v6mr6754568plr.81.1526066957263; Fri, 11 May 2018 12:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526066957; cv=none; d=google.com; s=arc-20160816; b=RLLEY7aN6bwZNd0UHiMyBhHpK9dkQBM9Vd5lVkl/JySWJ855pvWWDVc+milt4KzXr2 OvO9z1Pkod79wG364yv2f7CvR5/SlrgwOng7YIAS7jY+Rx8Nq0lHSlaxZP4vF2MkgF3X aEZ4sXxKxVwAzt6l+70gHcg/Tp7n37RrSh9U9Lbpu3qDZmTcVCUOcvNYkbhLVmiuA/9r A9CYiSukV7RrfQZptquNxiTjfCKYT9yBJ+3/7OZvGt22h7wMjFU1u6QZq2Pgc9PxHRrL l81V5U0FrPrk0aS9PMj8wJj24L86vcD2uHvvGHCOisrC3zd1O5BT7qdRrXbnmUN7tm8I +fXQ== 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:to:from:dkim-signature :arc-authentication-results; bh=EMD5wYdF4sDFLKZ8iqFpCNbvb1OXtTBJNtepKaf+d9g=; b=JWCcbn/lzehkYjeJAtZSXxDt0gccyr/q4TF5Xx+oNTTknyQKOqT/iENY5jWizuyVZP 8DgI2dqQRVlx2QwXGS5TIP35Yb/4c9ITb8ukgAdrmn/woC65D/LWab1bmWshTFf6fz2R OCKOaKqVnBGLvZhdYW0bi52LVw938jM6COfWYppnZcUlK3W4wc98RA4pw9Gz9l5nYcaL 1jiqAe8uLd5AIXcdCuUBNHgJHlN9P1z/ipgRz5FT/TKlUAAfAiEnP6X9ZPWaG+QOj4Jy DUrMS2Ci+0RcJDkdahfD0se8r1TGvEqOhrfwCQR3hArXgqHmoKYJNdadOc5i3pMJTc9e 2pYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nZv/HKP0; 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 g15-v6si3124708pgu.112.2018.05.11.12.29.01; Fri, 11 May 2018 12:29:17 -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=nZv/HKP0; 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 S1751917AbeEKT1E (ORCPT + 99 others); Fri, 11 May 2018 15:27:04 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:48447 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750711AbeEKT07 (ORCPT ); Fri, 11 May 2018 15:26:59 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w4BJQH8s024875; Fri, 11 May 2018 14:26:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1526066777; bh=EMD5wYdF4sDFLKZ8iqFpCNbvb1OXtTBJNtepKaf+d9g=; h=From:To:Subject:Date:In-Reply-To:References; b=nZv/HKP0Ks5Kn2LRpzTu2kJ3Z9kx+G5hEOJEyvvu85ie+bTWKPN4x6ffmbDWtFkB/ Ain5jACbkkI0IC+3UFm8TDWTZrH8cNQijcLxtwbN82GFKryTv5d7gMrnabKf3kAX7d 3in5y/Cbk71pVyuZtsIWtFxvjZYRMT4WU206bPjM= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4BJQHMb029023; Fri, 11 May 2018 14:26:17 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 11 May 2018 14:26:17 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Fri, 11 May 2018 14:26:17 -0500 Received: from ula0868495.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4BJQEk3025281; Fri, 11 May 2018 14:26:16 -0500 From: Murali Karicheri To: , , , , , , Subject: [linux-next PATCH 3/4] ARM: dts: keystone-k2g-ice: Enable netcp network driver Date: Fri, 11 May 2018 15:29:11 -0400 Message-ID: <1526066952-5230-4-git-send-email-m-karicheri2@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1526066952-5230-1-git-send-email-m-karicheri2@ti.com> References: <1526066952-5230-1-git-send-email-m-karicheri2@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 This patch adds dt bindings to enable netcp network driver on K2G ICE boards. This consists of enabling bindings for NSS qmss, pktdma, 2u ethss, mdio, pinmux and netcp devices as well as DP83867 phy. EVM hardware spec recommends to add 0.25 nsec delay in the tx direction and 2.25 nsec delay in the rx direction for internal delay in the clock path to be on the safer side. The board straps RX_DV/RX_CTRL pin of on board DP83867 phy in mode 1. The phy data manual disallows this. Add ti,dp83867-rxctrl-strap-quirk in the phy node to allow software to enable the workaround suggested for this incorrect strap setting. This ensures proper operation of this PHY. Signed-off-by: Murali Karicheri --- arch/arm/boot/dts/keystone-k2g-ice.dts | 59 ++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/arch/arm/boot/dts/keystone-k2g-ice.dts b/arch/arm/boot/dts/keystone-k2g-ice.dts index d820ed2..2a2d38c 100644 --- a/arch/arm/boot/dts/keystone-k2g-ice.dts +++ b/arch/arm/boot/dts/keystone-k2g-ice.dts @@ -7,6 +7,7 @@ /dts-v1/; #include "keystone-k2g.dtsi" +#include / { compatible = "ti,k2g-ice", "ti,k2g", "ti,keystone"; @@ -281,6 +282,30 @@ K2G_CORE_IOPAD(0x11bc) (BUFFER_CLASS_B | PIN_PULLUP | MUX_MODE3) /* spi2_scsn1.gpio0_102 */ >; }; + + emac_pins: pinmux_emac_pins { + pinctrl-single,pins = < + K2G_CORE_IOPAD(0x113C) (BUFFER_CLASS_D | PULL_DISABLE | MUX_MODE1) /* MII_RXD1.RGMII_RXD1 */ + K2G_CORE_IOPAD(0x1138) (BUFFER_CLASS_D | PULL_DISABLE | MUX_MODE1) /* MII_RXD2.RGMII_RXD2 */ + K2G_CORE_IOPAD(0x1134) (BUFFER_CLASS_D | PULL_DISABLE | MUX_MODE1) /* MII_RXD3.RGMII_RXD3 */ + K2G_CORE_IOPAD(0x1140) (BUFFER_CLASS_D | PULL_DISABLE | MUX_MODE1) /* MII_RXD0.RGMII_RXD0 */ + K2G_CORE_IOPAD(0x1178) (BUFFER_CLASS_D | PULL_DISABLE | MUX_MODE1) /* MII_TXD0.RGMII_TXD0 */ + K2G_CORE_IOPAD(0x1174) (BUFFER_CLASS_D | PULL_DISABLE | MUX_MODE1) /* MII_TXD1.RGMII_TXD1 */ + K2G_CORE_IOPAD(0x1170) (BUFFER_CLASS_D | PULL_DISABLE | MUX_MODE1) /* MII_TXD2.RGMII_TXD2 */ + K2G_CORE_IOPAD(0x116C) (BUFFER_CLASS_D | PULL_DISABLE | MUX_MODE1) /* MII_TXD3.RGMII_TXD3 */ + K2G_CORE_IOPAD(0x1154) (BUFFER_CLASS_D | PULL_DISABLE | MUX_MODE1) /* MII_TXCLK.RGMII_TXC */ + K2G_CORE_IOPAD(0x117C) (BUFFER_CLASS_D | PULL_DISABLE | MUX_MODE1) /* MII_TXEN.RGMII_TXCTL */ + K2G_CORE_IOPAD(0x1120) (BUFFER_CLASS_D | PULL_DISABLE | MUX_MODE1) /* MII_RXCLK.RGMII_RXC */ + K2G_CORE_IOPAD(0x1144) (BUFFER_CLASS_D | PULL_DISABLE | MUX_MODE1) /* MII_RXDV.RGMII_RXCTL */ + >; + }; + + mdio_pins: pinmux_mdio_pins { + pinctrl-single,pins = < + K2G_CORE_IOPAD(0x118C) (BUFFER_CLASS_B | PULL_DISABLE | MUX_MODE0) /* MDIO_CLK.MDIO_CLK */ + K2G_CORE_IOPAD(0x1188) (BUFFER_CLASS_B | PULL_DISABLE | MUX_MODE0) /* MDIO_DATA.MDIO_DATA */ + >; + }; }; &uart0 { @@ -386,3 +411,37 @@ vcc-supply = <&vdd_3v3>; }; }; + +&qmss { + status = "okay"; +}; + +&knav_dmas { + status = "okay"; +}; + +&netcp { + pinctrl-names = "default"; + pinctrl-0 = <&emac_pins>; + status = "okay"; +}; + +&mdio { + pinctrl-names = "default"; + pinctrl-0 = <&mdio_pins>; + status = "okay"; + ethphy0: ethernet-phy@0 { + reg = <0>; + ti,rx-internal-delay = ; + ti,tx-internal-delay = ; + ti,fifo-depth = ; + ti,min-output-impedance; + ti,dp83867-rxctrl-strap-quirk; + }; +}; + +&gbe0 { + phy-handle = <ðphy0>; + phy-mode = "rgmii-id"; + status = "okay"; +}; -- 1.9.1