From patchwork Fri Jan 20 15:22:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9528791 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 86280601AE for ; Fri, 20 Jan 2017 15:26:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 759EF286AD for ; Fri, 20 Jan 2017 15:26:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A3EB286AF; Fri, 20 Jan 2017 15:26:30 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no 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 17340286AD for ; Fri, 20 Jan 2017 15:26:30 +0000 (UTC) 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 1cUb56-0008P8-K6; Fri, 20 Jan 2017 15:26:24 +0000 Received: from mail-wj0-f196.google.com ([209.85.210.196]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cUb2z-0003uk-Di; Fri, 20 Jan 2017 15:24:18 +0000 Received: by mail-wj0-f196.google.com with SMTP id ip10so1115903wjb.1; Fri, 20 Jan 2017 07:23:53 -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=WiGoqdCYIG6cn+f9CBOeKx6Csfkk1gNj+x9ZCfdGfMg=; b=SGKLjgx0bJ1R7rJGhEY4bEGsFakPQ3qVRD2w9xGoqmETUK2fmOTKkO+KD3ohBgxlEm 6/wbMt4vthR/IFxcNzD8nwWxgn391XGubLnrrsIah1SS4hAjMyf9veww6UA75/WhKVSh 1cDTf3p4e8TDBzpJFnPgIbF17Mgvk2s/9JKgdIKriDbilVcb4XIM1zrE20DDq9pQWH0Z TBaL54F5pGgEgWCnXz541ZyXkvFGp5fCmnf0I1hSiwrtCDRH8kuzPMhRH0KQys8sRorn +iL4KO4Zh/eOOt5Jr2rBdHffrVAt9zcKSpLqHadVV8hEXzB6UzPkIpikWhnYap7MzEu/ wSbw== 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=WiGoqdCYIG6cn+f9CBOeKx6Csfkk1gNj+x9ZCfdGfMg=; b=GmSTOoiWWzgBNsKIZ4TrtTHoet7W0zr5+0RzaxTL/Zexuzjo7MtVphdwC8gq02vWzD UcCpFyUhU6XiO5uCXb0/FyHf2QW/j+y07Fr1G7tdW5wxkPUjd/gDGlU8hDpCt/d5WA1/ naaZQeJfNGpear7nzMlDtMD7C9pIoHoF0A1EmV0SPD9lzFQzcJt1ks4axwn0avf9i5Ag ycadSQ2G66IbL0Ql+Kx/T/MfUlpo7T1xxpTG44uak0lm+ZanFtv4QNlFxS0Qx1RL0x28 knUnOiOM89JQY+9SV1PjD4Zu0MJnnLN8jGZtHYoofJUNw9uR5A1nCiHQDvSm3JSPb7WO 9BBQ== X-Gm-Message-State: AIkVDXIaUyEciiMRmOm3wVT8fNmWliM4atAtkn8bxgMbx06nvJ19rqcI8TBmeHhX7qmP9A== X-Received: by 10.223.128.77 with SMTP id 71mr12214553wrk.48.1484925771633; Fri, 20 Jan 2017 07:22:51 -0800 (PST) Received: from blackbox.darklights.net (p200300DCD3D0840481308367D0B20714.dip0.t-ipconnect.de. [2003:dc:d3d0:8404:8130:8367:d0b2:714]) by smtp.googlemail.com with ESMTPSA id c81sm6587528wmf.22.2017.01.20.07.22.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jan 2017 07:22:51 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com, carlo@caione.org Subject: [PATCH v3 8/9] ARM64: dts: amlogic: add the ethernet TX delay configuration Date: Fri, 20 Jan 2017 16:22:31 +0100 Message-Id: <20170120152232.13943-9-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170120152232.13943-1-martin.blumenstingl@googlemail.com> References: <20170120132650.9784-1-martin.blumenstingl@googlemail.com> <20170120152232.13943-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170120_072413_828857_3BC7CE02 X-CRM114-Status: UNSURE ( 7.45 ) 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, 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 adds the amlogic,tx-delay-ns property with the old (hardcoded) default value of 2ns to all boards which are using an RGMII ethernet PHY. Signed-off-by: Martin Blumenstingl Tested-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 2 ++ arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts | 2 ++ arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 2 ++ arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-hub.dts | 2 ++ arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-play2.dts | 2 ++ arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p230.dts | 2 ++ arch/arm64/boot/dts/amlogic/meson-gxm-nexbox-a1.dts | 2 ++ arch/arm64/boot/dts/amlogic/meson-gxm-q200.dts | 2 ++ 8 files changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts index 6b5579522587..e63ed98d6c25 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts @@ -154,6 +154,8 @@ phy-handle = <ð_phy0>; phy-mode = "rgmii"; + amlogic,tx-delay-ns = <2>; + snps,reset-gpio = <&gpio GPIOZ_14 0>; snps,reset-delays-us = <0 10000 1000000>; snps,reset-active-low; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts index fa0f84cfeaa9..6c7e914e9bd9 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts @@ -58,6 +58,8 @@ phy-handle = <ð_phy0>; phy-mode = "rgmii"; + amlogic,tx-delay-ns = <2>; + snps,reset-gpio = <&gpio GPIOZ_14 0>; snps,reset-delays-us = <0 10000 1000000>; snps,reset-active-low; 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 358ab5159bd5..4301ad860a76 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi @@ -131,6 +131,8 @@ phy-handle = <ð_phy0>; phy-mode = "rgmii"; + amlogic,tx-delay-ns = <2>; + snps,reset-gpio = <&gpio GPIOZ_14 0>; snps,reset-delays-us = <0 10000 1000000>; snps,reset-active-low; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-hub.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-hub.dts index 47fe4e444f33..f6d8c70a26a2 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-hub.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-hub.dts @@ -72,6 +72,8 @@ phy-handle = <ð_phy0>; phy-mode = "rgmii"; + amlogic,tx-delay-ns = <2>; + snps,reset-gpio = <&gpio GPIOZ_14 0>; snps,reset-delays-us = <0 10000 1000000>; snps,reset-active-low; 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 9a8e2f492b97..1a222ce60a30 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-play2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-play2.dts @@ -94,6 +94,8 @@ phy-handle = <ð_phy0>; phy-mode = "rgmii"; + amlogic,tx-delay-ns = <2>; + snps,reset-gpio = <&gpio GPIOZ_14 0>; snps,reset-delays-us = <0 10000 1000000>; snps,reset-active-low; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p230.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p230.dts index f66939cacd37..7663d6775823 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p230.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-p230.dts @@ -59,6 +59,8 @@ /* Select external PHY by default */ phy-handle = <&external_phy>; + amlogic,tx-delay-ns = <2>; + /* External PHY reset is shared with internal PHY Led signals */ snps,reset-gpio = <&gpio GPIOZ_14 0>; snps,reset-delays-us = <0 10000 1000000>; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-nexbox-a1.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-nexbox-a1.dts index 5a337d339df1..a0bc746adb42 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxm-nexbox-a1.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxm-nexbox-a1.dts @@ -162,6 +162,8 @@ /* Select external PHY by default */ phy-handle = <&external_phy>; + amlogic,tx-delay-ns = <2>; + snps,reset-gpio = <&gpio GPIOZ_14 0>; snps,reset-delays-us = <0 10000 1000000>; snps,reset-active-low; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-q200.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-q200.dts index 5dbc66088355..e6ac39b712b7 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxm-q200.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxm-q200.dts @@ -59,6 +59,8 @@ /* Select external PHY by default */ phy-handle = <&external_phy>; + amlogic,tx-delay-ns = <2>; + /* External PHY reset is shared with internal PHY Led signals */ snps,reset-gpio = <&gpio GPIOZ_14 0>; snps,reset-delays-us = <0 10000 1000000>;