From patchwork Fri Jan 19 01:49:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Emiliano Ingrassia X-Patchwork-Id: 10174419 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B2D61601E7 for ; Fri, 19 Jan 2018 01:49:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A113A2810E for ; Fri, 19 Jan 2018 01:49:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 955A82858E; Fri, 19 Jan 2018 01:49:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 24D2E2810E for ; Fri, 19 Jan 2018 01:49:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BKdSAj/bnN6BvqpCGspWxjTyfOID73aulPBiy6bbWzQ=; b=cnWDiRuTT3NQho 8H5SrKXpsE30zd8Gk/AZPl98x5KZmqlZ7psa5zKp5Of3O+YtPQa+5WFAIoczhIGUlc4w+CPASrP17 TxbfQNN3xlsJzhWpGoaWr/Bseb/hmPHDcr0wzB8bq2O/RFdqSI0bqDcv0k/nIc1/8oI6Nkm91qeo/ iwjVv76h5aIxMkFKsALR/xMnrhfnFe80vrBu/xyAl/sXg9FTS/lEHtRALQBUes5ic9NgOY5e1fjzz oqrtsVD+qAxEEinJ+zws5ZJ6LhrqtXJHz1Uge3YRfKXDINM72y4bqKrai0CmMU5CbkGXchRpmHNG7 mmgnJ38IBIitAHMcbbaw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ecLnt-0003K1-SZ; Fri, 19 Jan 2018 01:49:13 +0000 Received: from mail-wr0-f196.google.com ([209.85.128.196]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ecLnr-0003JI-37 for linux-amlogic@lists.infradead.org; Fri, 19 Jan 2018 01:49:12 +0000 Received: by mail-wr0-f196.google.com with SMTP id 100so141728wrb.7 for ; Thu, 18 Jan 2018 17:49:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wmOGDfX66smwHAwc8YcQvuGH+uR6OwWiBfbW4GluUqA=; b=C8PDVwxrgVyNvIMqckRBpKqHn9htw6Rw5uHinZHqHWE09sNaCvkZggxCyM0XF4hd7j gQxBqXh37k0rJTtjQqqpwHHcFDkqOzKIKLJAEt9jCBCGJzMsp15XFlpSOBUc1n0kqsM2 66nHoYuo+3e/NfqLXuklj60NuvPx+jx4Wqeo75qyAF6ZgkOQmEsLAIPlv8CeuAQTbLpS KjjieSphBsTqPevBZkrTuiZ9ddwTL734vrCsBYct5te+3bEAMXLIssDLlnA8JE0hgYYj QV17j0liN6BhIhVR5Asa3gw33paPIArk84fNsaYJeolHXdAHE0sCbV3D2Al9eixQiFum vo5w== X-Gm-Message-State: AKwxytdz5kPM5l4czP4hQiNAO0RkRNhh9M15wsNZxbkNcmx7hCHLy+/l 67bJNS674HQ3zKO+KsFtHtI= X-Google-Smtp-Source: ACJfBouXUj+oUqAhdRLS6isA1YLHGvPbVHoeZxNEhvtyY5h55f+HzOxK6cYgmfkLH3ig3jgnrkx+yQ== X-Received: by 10.223.196.147 with SMTP id m19mr7894555wrf.56.1516326539632; Thu, 18 Jan 2018 17:48:59 -0800 (PST) Received: from ingrassia.epigenesys.com ([151.28.248.38]) by smtp.gmail.com with ESMTPSA id j144sm119763wmj.45.2018.01.18.17.48.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jan 2018 17:48:58 -0800 (PST) Date: Fri, 19 Jan 2018 02:49:17 +0100 From: Emiliano Ingrassia To: Carlo Caione , Kevin Hilman Subject: [PATCH v2 2/2] ARM: dts: meson8b-odroidc1: ethernet support Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , linux-amlogic@lists.infradead.org, linus.luessing@c0d3.blue, Jerome Brunet Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Odroid-C1+ board is equipped with an RTL8211F ethernet PHY which supports 10/100/1000 Mbps ethernet. The PHY reset and interrupt lines are controlled by the SoC via two GPIO lines (GPIOH_4 and GPIOH_3 respectively). The PHY energy efficient ethernet (eee) mode is marked as broken using "eee-broken-1000t" because, during tests, high packet losses were experienced without it. Signed-off-by: Emiliano Ingrassia Tested-by: Linus Lüssing Reviewed-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8b-odroidc1.dts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts index 9ff6ca4e20d0..d5e83051bb54 100644 --- a/arch/arm/boot/dts/meson8b-odroidc1.dts +++ b/arch/arm/boot/dts/meson8b-odroidc1.dts @@ -99,3 +99,33 @@ &usb1 { status = "okay"; }; + +ðmac { + status = "okay"; + + snps,reset-gpio = <&gpio GPIOH_4 GPIO_ACTIVE_HIGH>; + snps,reset-active-low; + snps,reset-delays-us = <0 10000 30000>; + + pinctrl-0 = <ð_rgmii_pins>; + pinctrl-names = "default"; + + phy-mode = "rgmii"; + phy-handle = <ð_phy>; + amlogic,tx-delay-ns = <4>; + + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + /* Realtek RTL8211F (0x001cc916) */ + eth_phy: ethernet-phy@0 { + reg = <0>; + eee-broken-1000t; + interrupt-parent = <&gpio_intc>; + /* GPIOH_3 */ + interrupts = <17 IRQ_TYPE_LEVEL_LOW>; + }; + }; +};