From patchwork Thu Dec 17 16:06:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1417763 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=dlohwNuJ; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CxcMB6BGQz9sWD for ; Fri, 18 Dec 2020 03:07:02 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 91E7B82736; Thu, 17 Dec 2020 17:06:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="dlohwNuJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 36FD782776; Thu, 17 Dec 2020 17:06:54 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 73ED982666 for ; Thu, 17 Dec 2020 17:06:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ej1-x632.google.com with SMTP id jx16so38640444ejb.10 for ; Thu, 17 Dec 2020 08:06:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xayTFQMYRx80yzh7OfkjVwSbzgWuiVmUXz8kzeeQK7A=; b=dlohwNuJ2LNINwn24K7MoVAhnjNEHcICj9FwKZkPnLw9uJUfebXPjtj84z6+FhETcZ Tl8Mg/M4pBUXyTiTz2hg4JeeXrFGgZckuiNRLvqG4uJwRLoo8NPOdYjaEydxBmiZysUh Q9xtcOJhHS9jhFGusB4VJVQrGfgkEHOzL1brVQlFGoAaN8T8U78Gl25qjAqdtOh4VhA9 OD2Wuhukjrzj6H5o4ZM2N+ggDOQyd+dt5Rue1sWr6l6SzVooqyAOYqUpD9IhcT7Riuex PQpgOddvG3G8ENdQdhhtki7bLPem5AXiWeVDd7c8QgJuZH99sB8tuIyX7PAiC6PY/lu/ 34GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=xayTFQMYRx80yzh7OfkjVwSbzgWuiVmUXz8kzeeQK7A=; b=ufZG8CzzP9NLyykN4zYt0v1O7MpYR+vDi4AtT8Gf/YOG5IztnGR2G9dz9RPY/o9jmR ee079dc/hhdx0VSRSerx2c4yHTUUStOhJlB4VbscNSn3LLfGiRmceOOVDhaBArgAnhXl 7C94t307OOcQx57c7fdrmWNrnlYXYlMq3BKyfsBbiIrE3Tv0BZ+1ILiX4HmGWyOrXOGc q2PkvusxeIMdElhfnPMTRtweKBsVbjUxGRnzpSQ+s42Foq1D9wld053VlugQo9rcEaxf qRQPqMhJ3z2HljxetdYT5vl25XZ7TwawLajMTU/CiioZWn7OT0uu6E3E7nJIFQtcTN/w Jw1w== X-Gm-Message-State: AOAM531/8SBxOWws/30oMVA5KbfgO3JjxDgX0FgzXVblWOKwpetxWSFV fspjaaNKgpYS0uvglOqjLa2jmEB3F2u9nHbo X-Google-Smtp-Source: ABdhPJwiePPTjjDb+oIKNWe7rluUvbOFIhHE5FMDOGssX2f/FZUUMSB/2E0UpRC1ey+H3oRuU3Z5wA== X-Received: by 2002:a17:906:acc:: with SMTP id z12mr12085770ejf.23.1608221210957; Thu, 17 Dec 2020 08:06:50 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id a20sm24328240edr.70.2020.12.17.08.06.50 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Dec 2020 08:06:50 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Harini Katakam Subject: [PATCH] arm64: zynqmp: Add Ethernet node for zcu1285 revA Date: Thu, 17 Dec 2020 17:06:49 +0100 Message-Id: X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean From: Harini Katakam This patch add ethernet node gem1 to zcu1285 RevB. GMII to RGMII converter sits between MAC and external phy connected over GMII to MAC and RGMMI to external phy Signed-off-by: Harini Katakam Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-zcu1285-revA.dts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/dts/zynqmp-zcu1285-revA.dts b/arch/arm/dts/zynqmp-zcu1285-revA.dts index f041df83dab4..21d62e993a33 100644 --- a/arch/arm/dts/zynqmp-zcu1285-revA.dts +++ b/arch/arm/dts/zynqmp-zcu1285-revA.dts @@ -23,6 +23,7 @@ serial1 = &dcc; spi0 = &qspi; mmc0 = &sdhci1; + ethernet0 = &gem1; /* EMIO */ i2c = &i2c0; /* EMIO */ }; @@ -222,6 +223,28 @@ }; }; +&gem1 { + mdio { + #address-cells = <1>; + #size-cells = <0>; + phy1: ethernet-phy@1 { + reg = <1>; /* KSZ9031RNXIC on AES-FMC-NETW1-G */ + rxc-skew-ps = <1800>; /* Skew control of RX_CLK pad output */ + txc-skew-ps = <1800>; /* Skew control of GTX_CLK pad input */ + txen-skew-ps = <900>; /* Skew control of TX_CTL pad input */ + rxdv-skew-ps = <0>; /* Skew control of RX_CTL pad output */ + rxd0-skew-ps = <0>; /* Skew control of RXD0 pad output */ + rxd1-skew-ps = <0>; /* Skew control of RXD1 pad output */ + rxd2-skew-ps = <0>; /* Skew control of RXD2 pad output */ + rxd3-skew-ps = <0>; /* Skew control of RXD3 pad output */ + txd0-skew-ps = <900>; /* Skew control of TXD0 pad input */ + txd1-skew-ps = <900>; /* Skew control of TXD1 pad input */ + txd2-skew-ps = <900>; /* Skew control of TXD2 pad input */ + txd3-skew-ps = <900>; /* Skew control of TXD3 pad input */ + }; + }; +}; + &qspi { status = "okay"; flash@0 {