From patchwork Fri Nov 25 13:01:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9447519 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 C18CE60778 for ; Fri, 25 Nov 2016 13:04:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B2BC928047 for ; Fri, 25 Nov 2016 13:04:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A778A280CF; Fri, 25 Nov 2016 13:04:55 +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.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 36ACE2808F for ; Fri, 25 Nov 2016 13:04:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cAGBG-0006UH-07; Fri, 25 Nov 2016 13:04:42 +0000 Received: from mail-wj0-x241.google.com ([2a00:1450:400c:c01::241]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cAG9U-0004TJ-Br; Fri, 25 Nov 2016 13:03:03 +0000 Received: by mail-wj0-x241.google.com with SMTP id jb2so5530395wjb.3; Fri, 25 Nov 2016 05:02:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=shtsKIqdjMwCsZbGQxpCA886Tmexbycselkvmle0boc=; b=L4APPBkdjBhCxHQ2Y8pV8s29gFhR9NeVHKd2kaIclVEFX8WI51gpJ5bkZEJb1p0XrJ ScI2gAvJ+aPN2YhM5Sod7WsyvZ7Wrcd7tZ4VRFO9GnS3FzkvFAD3WvaQp6e/EdQUtWuS 3ca04xBgmK0bRpCq4LxYImJfViKMU5YxCQvo8n62xNP12eDTtBLtL0UnX1NQoY22z91Z vuwg9n41zzULS5Zt3wGNjMV9gu8CcIJS7pUlcSyxdkw0M+TOdkXUKZdJLXc5Lmi2XfB8 3/NzbOSHcRth/WYFXVrwqyByU4RHTEjwy6M+eDuM5+Xp8hoQUqGZ4hdf2jFM8e/TtcYT 5IVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=shtsKIqdjMwCsZbGQxpCA886Tmexbycselkvmle0boc=; b=BUGoqM9T3hzpLm0oLXR/gqMjHd/s2cBRFA1BJJD210P/sZX1PpS/0Ev9GxJvKKRhGx yGBkMpICZMEi4/BsFaLLfRxuGjzVZa3NDcdzLYiutAUSr57WSm3YGJbEsgYAFITkPAgx HhFLvHgn5TYQwdBUoBqLrC1ds+6LXPkv0gKMDbbvbyTqaogNsk3CBgKpXfTVQF4TZkMv Dgt7cI3hhouyQKnzSJyylAv39SmRKiPJY5v8l0AHhW8Pf5LN0hwvCCd09mVf1tm0qynQ Owr7PPpUb8Zf9YL9Uafn8H69/WJY6jcihmPC6OdrdxS0T7YpYLJI6QZAxKsa5DeKl19s dT1g== X-Gm-Message-State: AKaTC019idnGw5G8Ki9e0YlW7WW6LLQSdVl+Ro7dMMaAbjJQgNAMJ2EmHDglcLzThJN9HA== X-Received: by 10.194.37.6 with SMTP id u6mr8258220wjj.20.1480078950450; Fri, 25 Nov 2016 05:02:30 -0800 (PST) Received: from blackbox.darklights.net ([2003:dc:d3d3:9204:9426:48db:352f:a6de]) by smtp.googlemail.com with ESMTPSA id ua15sm46937433wjb.1.2016.11.25.05.02.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Nov 2016 05:02:29 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, davem@davemloft.net, khilman@baylibre.com, mark.rutland@arm.com, robh+dt@kernel.org Subject: [PATCH v2 4/7] ARM64: dts: meson-gxbb-odroidc2: add reset for the ethernet PHY Date: Fri, 25 Nov 2016 14:01:53 +0100 Message-Id: <20161125130156.17879-5-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161125130156.17879-1-martin.blumenstingl@googlemail.com> References: <20161124143417.10178-1-martin.blumenstingl@googlemail.com> <20161125130156.17879-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161125_050252_799762_2749D049 X-CRM114-Status: UNSURE ( 8.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: f.fainelli@gmail.com, alexandre.torgue@st.com, Martin Blumenstingl , catalin.marinas@arm.com, will.deacon@arm.com, carlo@caione.org, peppe.cavallaro@st.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This resets the ethernet PHY during boot to get the PHY into a "clean" state. While here also specify the phy-handle of the ethmac node to make the PHY configuration similar to the one we have on GXL devices. Signed-off-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts index 238fbea..cbaf024 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts @@ -143,10 +143,25 @@ pinctrl-names = "default"; }; +&mdio0 { + ethernet_phy0: ethernet-phy@0 { + compatible = "ethernet-phy-id001c.c916", "ethernet-phy-ieee802.3-c22"; + reg = <0>; + }; +}; + ðmac { status = "okay"; pinctrl-0 = <ð_rgmii_pins>; pinctrl-names = "default"; + + phy-handle = <ðernet_phy0>; + + snps,reset-gpio = <&gpio GPIOZ_14 0>; + snps,reset-delays-us = <0 10000 1000000>; + snps,reset-active-low; + + phy-mode = "rgmii"; }; &ir {