From patchwork Sun Feb 19 21:41:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9581849 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 52ACA6045A for ; Sun, 19 Feb 2017 21:43:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 431AD287BB for ; Sun, 19 Feb 2017 21:43:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3746D287C8; Sun, 19 Feb 2017 21:43: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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM 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 BF5EB287BB for ; Sun, 19 Feb 2017 21:43:54 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=SN0enaeYurfE+Wiux9JAXPz5pDBn8bmemZIwG+RDWYA=; b=XMmILQrNxtUk48otP5C2PGDIpw CNdK97wcxQCES3ooPZLwOoJLOGf8bqaNeT/wMmtuxuC6bZHJI7SHxYl9mspQh3rj8dUsLvC975dNF uYi0o+RRSPY5W1W6m/D2adAaVkb5YSNVlc8jnUsy2ACOIqwN3mL5yN9ny9UyXAg+U0+yIBVQJCaaY 9ADT/sX9qev+AVSWToCsJFT5UR5aS0/c/ccdGRIZKqNlXjCxYmtbZHWAJkoN+SIFpA16JYw5TNICq RQgEwvAeevtaouzHjFrKCzS786QBlWuHeRgt0qSoZTlKwhdaUXE+oIecyKLzJo30aw2620qGuzQTM yjxhrdTg==; 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 1cfZGq-0005er-5e; Sun, 19 Feb 2017 21:43:52 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cfZFo-0004wS-UZ; Sun, 19 Feb 2017 21:42:52 +0000 Received: by mail-wm0-x242.google.com with SMTP id c85so11372636wmi.1; Sun, 19 Feb 2017 13:42:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wFctE9tfTmolg21nCYpAmbOzpG6IpUBO7WU7ZxuzFfg=; b=FYORW0IOLbfDrO1cNZHA8hOgNGtmhAfr5PHAxakiztBLETKl1BlrokSoDzsQrboGyw U79iAyLqPHTlgm6UEQ2erKAlt5Ub7Q49ZiNGq6bLJrdQJdNz75RUEA5RUx/UbtAPSwEI iatNg5z8JMsv1g+jObT93SB2u3+WjUjANsET/TRSgJbyVHUuv7/tfqnjCfBvICl1yS0c XkDALZre21HMj6ngZwZmkQPIgra/xCNNuyCEgohEzWQxPO9W4PBKusOsxP6T1Yp9gflK 2437NU59Vxiux2GZyTGNEkkzuJd2mkTUZhCun0ncx1sukvfplB3SCqXqGVulWq6Rw9Ba dPeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=wFctE9tfTmolg21nCYpAmbOzpG6IpUBO7WU7ZxuzFfg=; b=XUR9sXHpa4EKLZR3OA9IdaTGOGYgoLJU2LwelbvgcxuWAtvSip6u49TZd86fQYjrbt XgkIwlAbOvu/DPqH1menULmuzF8/U6TBDbc8Aj6qTCqef+kR7HoONNzA1HuDvSiuVfOK lqf8yxIcgmPAvUl9dAbJI3XCGi5hk2QHpXH1epMxW7Ya9xKBrBk3JukikIz7rfqzOZ4/ bZivPSVa2PzLxIFpfu67DCo+YZ/VVROVIh3Ync+6Z0D8SJXwoVyzFu+9whRfSsGvToqw hsrMrL3C+lsJJPmfkiHwM99IGRnCZc8ooVGJmtsjHH32qhYroSU7TfUyewnMSEsQwTp0 g4Mw== X-Gm-Message-State: AMke39ksxthuV1+FAdpWtCoF5dFRXbzFC3CZT1sKNe46Izw0FdaNvaQU/zxfdjtf+1Y8BA== X-Received: by 10.28.217.83 with SMTP id q80mr14810048wmg.58.1487540547110; Sun, 19 Feb 2017 13:42:27 -0800 (PST) Received: from blackbox.darklights.net (p200300DCD3D1DA04B05FF2CCBB42C4A7.dip0.t-ipconnect.de. [2003:dc:d3d1:da04:b05f:f2cc:bb42:c4a7]) by smtp.googlemail.com with ESMTPSA id c9sm10879700wmf.18.2017.02.19.13.42.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Feb 2017 13:42:26 -0800 (PST) From: Martin Blumenstingl To: khilman@baylibre.com, linux-amlogic@lists.infradead.org, carlo@caione.org Subject: [PATCH v5 6/9] ARM64: dts: meson-gxbb-wetek-play2: add the ethernet PHY's reset GPIO Date: Sun, 19 Feb 2017 22:41:46 +0100 Message-Id: <20170219214149.30418-7-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.11.1 In-Reply-To: <20170219214149.30418-1-martin.blumenstingl@googlemail.com> References: <20170122181028.5014-1-martin.blumenstingl@googlemail.com> <20170219214149.30418-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170219_134249_289181_FD6916B2 X-CRM114-Status: UNSURE ( 8.10 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, narmstrong@baylibre.com, Martin Blumenstingl , catalin.marinas@arm.com, will.deacon@arm.com, robh+dt@kernel.org, andrew@lunn.ch, linux-arm-kernel@lists.infradead.org, jbrunet@baylibre.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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. This will allow us to specify OF-properties for the PHY itself. Signed-off-by: Martin Blumenstingl Tested-by: Neil Armstrong --- .../boot/dts/amlogic/meson-gxbb-wetek-play2.dts | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-play2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-play2.dts index ea79fdd2c248..ee86af928722 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-play2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-play2.dts @@ -87,6 +87,30 @@ }; }; +ðmac { + status = "okay"; + pinctrl-0 = <ð_rgmii_pins>; + pinctrl-names = "default"; + + phy-handle = <ð_phy0>; + phy-mode = "rgmii"; + + snps,reset-gpio = <&gpio GPIOZ_14 0>; + snps,reset-delays-us = <0 10000 1000000>; + snps,reset-active-low; + + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + eth_phy0: ethernet-phy@0 { + /* Realtek RTL8211F (0x001cc916) */ + reg = <0>; + }; + }; +}; + &i2c_A { status = "okay"; pinctrl-0 = <&i2c_a_pins>;