From patchwork Wed Sep 27 10:41:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emiliano Ingrassia X-Patchwork-Id: 9973725 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 E69C760365 for ; Wed, 27 Sep 2017 10:46:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE5AC285E4 for ; Wed, 27 Sep 2017 10:46:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D2F992869D; Wed, 27 Sep 2017 10:46:44 +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=-3.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM 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 6E428285E4 for ; Wed, 27 Sep 2017 10:46:44 +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: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:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iW3OFVWwonmdHCGXLEKSt1jS96OZ9zhoHqqbHmRNNAE=; b=qx0lcCNY8TBi3w g9AJjXQevxNl9gv3B6jUhgbURC3KJHTYRl2Ivo8kjw1QW7fUUZFbtn/I2vVKUhRQx7SVIAsv+593K 3YMW1WV6OZBqEMdzu5d9mDehOr5glGeU6cnQgIdiCarXNBLyOShYojjm7lvNhXdseXRmWDH3Pl+BD bdO+iENK3nBJQXfSkJdZMUt4bWDlH9A1BoZAiw5Gc7GoJcVxlDh6Evf18HkfvIC095FyA8jy9avYu fjX2m7VdH8qNPVzynsIIaNSqduZVVzr5pBxSR359BEYGkyDzAsGW0efs3trE/r4/pd93MSiGJmPm9 8+WuZft6J92dROhpxcVA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dx9rP-0003Nh-Ug; Wed, 27 Sep 2017 10:46:35 +0000 Received: from mail-wm0-f67.google.com ([74.125.82.67]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dx9pw-0000FC-5L for linux-amlogic@lists.infradead.org; Wed, 27 Sep 2017 10:45:09 +0000 Received: by mail-wm0-f67.google.com with SMTP id m127so16629480wmm.3 for ; Wed, 27 Sep 2017 03:44:43 -0700 (PDT) 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:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=rR0agiARBPK51nz+xZho/xgh/1x08wR5BcGTMyo8OTI=; b=f4ZCdmX4B7izhELnoHZUSXdSN0kLeuZzeLk6NFyDjf8pUQKXfFRhvzgkZ3VhAjMm34 pyLnbDrPeFVXeyKErU3QUNnxfLuV8zMbHRUwoXkGD9W1KERsHR1T8grJc9MbEcpPf/2D oi566cymJVqQkzRjViiRdnuhDqJqInz27IoPtRs/67FW+GIMqiJhagnVgfIT2eL0uzbA IGYYRnCBryidXuJf7pt/AwmtqMksTieWD77KQ+cdsWa/1PmOu8zfV0GNCfakh5fITcKb pupifFysFIJcTjxcrjkcscjeKdz+ga36CZeav1Yp2NjMX3UfImPnNtOV+mwRLjVvEgaD +HKw== X-Gm-Message-State: AHPjjUjs44zw1lOcGttkFB4F4Lib3Dh/zGWWNvJGwlxtHcQ/seRGCZHy cvCPbVGfJdxmLJkc/EyPAw0= X-Google-Smtp-Source: AOwi7QBWHa/+RiSFm29cufL0z/kc3wFvu74i2t5GKX2mrelCyY5HldOHHW3UmFiVbjqAi3G5W6RKiA== X-Received: by 10.28.167.8 with SMTP id q8mr1128820wme.98.1506509082339; Wed, 27 Sep 2017 03:44:42 -0700 (PDT) Received: from ingrassia.epigenesys.com (host194-85-static.3-79-b.business.telecomitalia.it. [79.3.85.194]) by smtp.gmail.com with ESMTPSA id i50sm14832112wrf.84.2017.09.27.03.44.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Sep 2017 03:44:41 -0700 (PDT) Date: Wed, 27 Sep 2017 12:41:17 +0200 From: Emiliano Ingrassia To: Carlo Caione , Kevin Hilman , linux-amlogic@lists.infradead.org Subject: [PATCH 3/4] ARM: dts: meson8b-odroidc1: enabling ethernet support Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170927_034504_985553_70BD1BE5 X-CRM114-Status: UNSURE ( 8.83 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds ethernet PHY description and enables ethernet support on Odroid-C1/C1+ boards. Signed-off-by: Emiliano Ingrassia --- 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..6ac357ee3de6 100644 --- a/arch/arm/boot/dts/meson8b-odroidc1.dts +++ b/arch/arm/boot/dts/meson8b-odroidc1.dts @@ -54,6 +54,7 @@ aliases { serial0 = &uart_AO; + ethernet = ðmac; }; memory { @@ -77,6 +78,35 @@ pinctrl-names = "default"; }; +ð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 = <2>; + + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + eth_phy: ethernet-phy@0 { + /* ethernet PHY RTL8211F */ + compatible = "ethernet-phy-id001c.c916", + "ethernet-phy-ieee802.3-c22"; + reg = <0>; + max-speed = <1000>; + }; + }; +}; + &gpio_ao { /* * WARNING: The USB Hub on the Odroid-C1/C1+ needs a reset signal