From patchwork Tue Jan 16 00:34:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emiliano Ingrassia X-Patchwork-Id: 10165557 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 F3D21601D3 for ; Tue, 16 Jan 2018 00:34:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1F9927F81 for ; Tue, 16 Jan 2018 00:34:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D374327F7F; Tue, 16 Jan 2018 00:34:47 +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 646DF27F7F for ; Tue, 16 Jan 2018 00:34:47 +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:MIME-Version: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:In-Reply-To:References: List-Owner; bh=9YZjZ+TJeVwGcvU6jmqgT2DGUi+B1lYvL/BwsFoDwUg=; b=Jsl4blWJqkmt8u wLJcfdJua/33dG6AzIhIlRm+50xKKmRN/GIm9estKqe2CeDx5k6wyJ5KdrM/DS/LZHFIDAh57Zwiy AraWhQ5tFszQ6t5K5AQH3E3IJJKh6LtdthYfXEQS5FwBM8QF58d1VaT6aei1vsk0FlaJaem4gAR4K NIYi8QcYdmLLv7NROILQB19rEMm9M8r1bON//s517I9CM/pWW9hWDueIaoP+5e6lV058Yy4h7kj3c zq/YPGZ7KSlQdKbVuvE+4rE92wEU9X6Ez9lrjIQcaFXoTOHsdh1QOsgCwxEtDZUOIZOHEBn3syUaJ 52aw/B0vzLKPn1W6Z0/Q==; 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 1ebFD6-0007Av-6o; Tue, 16 Jan 2018 00:34:40 +0000 Received: from mail-wr0-f193.google.com ([209.85.128.193]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ebFD3-00079l-D6 for linux-amlogic@lists.infradead.org; Tue, 16 Jan 2018 00:34:38 +0000 Received: by mail-wr0-f193.google.com with SMTP id p6so13532787wrd.0 for ; Mon, 15 Jan 2018 16:34:27 -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:mime-version :content-disposition:user-agent; bh=v7tcMYpR/2ven/jE6v44K4PuDouRIeZArEhHHiFXCe4=; b=dWxfIoYODkXd9Lzvo0mETgUudNhWO7QP+XIfFhenJ69ogDjRhijuxTxv7vwcZXl9jv Gg8I608j5MXjv1C1bxd2nMRn3h8uftmEA81iS1YGFSpUfb+AKpyf5cugIBCz/aQSO5G7 i6wPOQk6k0D9i3WHfiYunxwt/lLmKFuKt/FMGu1XMint+x+jjttq8PFlB4pMj1nvGhNQ CoCZUh4A68dlXyUhWIdofjIswpkAb283RcuCquTF/YF8m0VKzlmB1plLrrf4A5nNOYcs /QNCOkD9a+JhIIjPSh0SNgzZxTjoU0kdDbsKXtboCedAdhF5ft/vn1NNWOJBZjpa5p6l 6clg== X-Gm-Message-State: AKwxytf4CzgbHQfccWxnSq6I4eGw/8Cb3Id1vbtzR3YB9DJLbREduw1x zXqYbTEqtuLFyQH0JjrZEj8= X-Google-Smtp-Source: ACJfBovAnF6fQ7T2LY5qe156y7Qy+u0tD6cezcu4doXtveO4vrWlvcW4nVM7qmYtWMUTCrpRXsCAbg== X-Received: by 10.223.168.6 with SMTP id l6mr19655335wrc.29.1516062865625; Mon, 15 Jan 2018 16:34:25 -0800 (PST) Received: from ingrassia.epigenesys.com ([151.27.244.4]) by smtp.gmail.com with ESMTPSA id e127sm1349157wmg.10.2018.01.15.16.34.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jan 2018 16:34:25 -0800 (PST) Date: Tue, 16 Jan 2018 01:34:43 +0100 From: Emiliano Ingrassia To: Carlo Caione , Kevin Hilman Subject: [PATCH 2/2] ARM: dts: meson8b-odroidc1: ethernet support Message-ID: <20180116003443.GA10587@ingrassia.epigenesys.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.2 (2017-12-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180115_163437_448950_D8555E19 X-CRM114-Status: UNSURE ( 8.11 ) 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: , Cc: Martin Blumenstingl , linux-amlogic@lists.infradead.org, linus.luessing@c0d3.blue 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. This patch adds the PHY description to the board DT, setting the maximum speed to 1 Gbps, and enables the ethernet controller. Signed-off-by: Emiliano Ingrassia Reviewed-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8b-odroidc1.dts | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts index 9ff6ca4e20d0..3766f6fd1882 100644 --- a/arch/arm/boot/dts/meson8b-odroidc1.dts +++ b/arch/arm/boot/dts/meson8b-odroidc1.dts @@ -99,3 +99,35 @@ &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>; + + eth_phy: ethernet-phy@0 { + /* ethernet PHY RTL8211F */ + compatible = "ethernet-phy-id001c.c916", + "ethernet-phy-ieee802.3-c22"; + reg = <0>; + max-speed = <1000>; + eee-broken-1000t; + interrupt-parent = <&gpio_intc>; + interrupts = <17 IRQ_TYPE_LEVEL_LOW>; + }; + }; +};