From patchwork Sun Feb 19 21:41:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9581867 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 9FD3C6045A for ; Sun, 19 Feb 2017 21:48:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90715287CA for ; Sun, 19 Feb 2017 21:48:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84CA3287CC; Sun, 19 Feb 2017 21:48:22 +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 4473E287CA for ; Sun, 19 Feb 2017 21:48:22 +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=4GJJKe8iPMP1CvIcZ6smvuPYOzoZtuGz0Q/1Mogu5I8=; b=lphqE4XQsgDIDH+0vCb+m4y2Q1 VjKMzQYW+nPCD6PAIXGpykQ/uExZlkqDQKqm43+ahxmNJdXnCBVPnI3T789ZgsLR9wELdxsnqbUwL BI3nDXLC3FZ+90DHHQ1oVDwwy+L04e86N8hujid3Mu73qwlugiPKs+tgnws/XOrpKOUZf6Evb6UJ6 CVi/0kjY0ODVNcxP37XaYNKcUMNzUcIEZ4d/pdRrcX6tBY3PFGAvZ7Mv0CGqCr8SMAiUypdezoANw WafFSn0AKwAQJCRGwD7NOiW7nhgAUyBXkgcn8N7IkH31ovC37PZYOQ0myHeihB7TuhA4R4C1Z2/6Z rwWzA/fQ==; 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 1cfZLB-0000ej-7X; Sun, 19 Feb 2017 21:48:21 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cfZFk-0004vr-38; Sun, 19 Feb 2017 21:42:47 +0000 Received: by mail-wr0-x244.google.com with SMTP id s27so1061294wrb.0; Sun, 19 Feb 2017 13:42:23 -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=Vx0W6s/o25Zyx2MTMgaoGxG+M1otVIyaBH7IgVJBiSU=; b=b1jOLUyt8R/OqhqtLFFD08qkFyI9V4nilQxcrlRbdtkv3nnyWodBUDJ5GWsavULJTy 4VdgD5VMfRhk5iXQ5BFknCOhqzVFtrO8xnPgaLFnsaAsqLjn1aqXbmj2z89l1Dk5QBn4 mvsf+mIW/soBGkcigfO3p01l/6gL07C7w8zzVDCSy0Q4mpyWWtCUKx+rxOYa/KXsfvGZ Z4r7oc198tnVJFjtRtpn2g0Mzkyu/g5sy+hzxsuuskW1XqIUd3+XSwgYJgpd2MUzXwRK YYC7HxRfUnFOEK38T2Wzykd6epwx8DnBdNP5/+G3K1OGSOIEbX/7gHoZy5Sp8/3WmtDg HhMg== 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=Vx0W6s/o25Zyx2MTMgaoGxG+M1otVIyaBH7IgVJBiSU=; b=O1K7LWcoqZR1ChjhndYXI1RtRA+QP6ayPWfxLXTMllzwXranpaUEKWRMWpGpumN9p0 bi2H3F52Akfno679AWDRYmcPAXOfdLgaGW9noBkwEQCGAY7gJJ70ftSeEDB63q5dTaYb nhecAU161eJZ0ZIqjlhXLXqKtZZsaNOCrBjiaTsz59pgUYJpagqjav69mP5qIzy3eTkx iTEYdJEAJj1K4Oi90jJwmrWBJ8RqczuviZNSEbqYQuIQYB1f/js8BlNERlvZ+3UkNW1W 7REPacaWKV3VSqsXMr6RA70Y391zAy4zNBTmGMXTBncLmqCUql8vx13MehzhxH62KpUR oFrQ== X-Gm-Message-State: AMke39ml1Ni63/ajOxtODjH29/ykC/IvdXyHb2kQ0DXeF/iFGFtEdFzLTry1vSXvJdDoyg== X-Received: by 10.223.152.14 with SMTP id v14mr6209042wrb.109.1487540542249; Sun, 19 Feb 2017 13:42:22 -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.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Feb 2017 13:42:21 -0800 (PST) From: Martin Blumenstingl To: khilman@baylibre.com, linux-amlogic@lists.infradead.org, carlo@caione.org Subject: [PATCH v5 3/9] ARM64: dts: meson-gxbb-vega-s95: add the ethernet PHY's reset GPIO Date: Sun, 19 Feb 2017 22:41:43 +0100 Message-Id: <20170219214149.30418-4-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_134244_295138_7D957F09 X-CRM114-Status: UNSURE ( 9.06 ) 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 --- arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi index 86709929fd20..aa571970c5e9 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi @@ -115,7 +115,6 @@ status = "okay"; pinctrl-0 = <&uart_ao_a_pins>; pinctrl-names = "default"; - }; &ir { @@ -128,6 +127,24 @@ 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>; + }; + }; }; &usb0_phy {