Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp411415pxu; Tue, 1 Dec 2020 14:37:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/BR2na9WTYqmURhAxK4xViJ8ak/pHcQs+Pm02n4zmxVnm2fiOyLESwmrnIK7gIwv9RxuT X-Received: by 2002:a17:906:2b95:: with SMTP id m21mr5444379ejg.134.1606862231989; Tue, 01 Dec 2020 14:37:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606862231; cv=none; d=google.com; s=arc-20160816; b=i2z2VCK1gIClfAR9rGWgOWqnPkuuPGxJN0ZHmsp0vmGU6sFtL29Q+xYOqSQtRzQaIN /yd+iD1+ZWg0i8RfK3vdzS1WXtOchpbuxXJTG4cAYrfsly3bCd3A1OCKijWVXBjJr4qC Ydtx1+1+1gizy8U+DmekqRQUI+N/l0h4Oj/0dUq8bQJhZ89fmkVKncKaoPD3nIS606JL oS+uk6QWOUNJRUNYAFYGH9p9ToYLpU2rUcmmGGYkflcOM9rx9ihxbm4yFYkFLookX96Z /P960Iu7HWBwdsMVhZbpx56hGMVosG8x1bDnJEqhhm8LprrjWar3sQz3doidGcTUyacu XPPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OtFe8i1obXmaq2UarSATtwgKWDwPVnyMFK5sF7gJVHo=; b=Q1dXb/C/9Jpuv/t38ezUIHweH5VR8yPyKwqKopgw04OGSy0hy6itDFsSiwzKjqtK9e jj1C4aUTKVR8kUQwIc9m+HSbsr6H+8+vQ7wKP2PKTZ+aVNvCgpH9yy+aZOc9F18gGrny vC5/NgtlFVi0vGlkgBy1U8hG32T8FGVxZCC7sUmBF+YZY6eMvo+RTJSa6Tlnhk7lhOyV yI40c08AMrsSbtHLF842AyDO3cq8EiCujEVZgSB+AbRgCrH4KfMl3rNAFUL5lSoa+EKR 5+eewDbOr0G7xYun/VprgkH4n/xiGopchCEG55ocdOjRpqP+P5vY7CM8auH1n0X/Bhvk NwyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=E8FWOCDF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gb14si760551ejc.507.2020.12.01.14.36.48; Tue, 01 Dec 2020 14:37:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=E8FWOCDF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391079AbgLANWh (ORCPT + 99 others); Tue, 1 Dec 2020 08:22:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729676AbgLANWc (ORCPT ); Tue, 1 Dec 2020 08:22:32 -0500 Received: from mail.kmu-office.ch (mail.kmu-office.ch [IPv6:2a02:418:6a02::a2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD415C0617A7; Tue, 1 Dec 2020 05:21:51 -0800 (PST) Received: from allenwind.lan (unknown [IPv6:2a02:169:3df5::979]) by mail.kmu-office.ch (Postfix) with ESMTPSA id C07EF5C2AB7; Tue, 1 Dec 2020 14:21:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1606828909; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OtFe8i1obXmaq2UarSATtwgKWDwPVnyMFK5sF7gJVHo=; b=E8FWOCDF8u8bEc0WDVHeUhTm80cxqxN6gUgJr0snnbvuwDItpg85MqJNozVieUcYOAlJCe /ywDxatSQpyIpArJ3Oh4VKlfausKGG9g2OpDhGyBKQYaatrO/eYT/oiV8RQfctxhVPmLZT BK7N3I0uKpvp5+O931zenfIGPbiWNwg= From: Stefan Agner To: khilman@baylibre.com Cc: robh+dt@kernel.org, narmstrong@baylibre.com, jbrunet@baylibre.com, martin.blumenstingl@googlemail.com, christianshewitt@gmail.com, jian.hu@amlogic.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Stefan Agner Subject: [PATCH v2 4/5] arm64: dts: meson: g12a: x96-max: fix PHY deassert timing requirements Date: Tue, 1 Dec 2020 14:21:40 +0100 Message-Id: <83c1a57cb99c04dc31098166f0c26073de5e7709.1606828668.git.stefan@agner.ch> X-Mailer: git-send-email 2.29.2 In-Reply-To: <14754fd95378b78eb9a0a3f8b6bab13f7263c7f1.1606828668.git.stefan@agner.ch> References: <14754fd95378b78eb9a0a3f8b6bab13f7263c7f1.1606828668.git.stefan@agner.ch> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According to the datasheet (Rev. 1.9) the RTL8211F requires at least 72ms "for internal circuits settling time" before accessing the PHY egisters. On similar boards with the same PHY this fixes an issue where Ethernet link would not come up when using ip link set down/up. Fixes: ed5e8f689154 ("arm64: dts: meson: g12a: x96-max: fix the Ethernet PHY reset line") Signed-off-by: Stefan Agner --- arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts index 1b07c8c06eac..463a72d6bb7c 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts @@ -340,7 +340,7 @@ external_phy: ethernet-phy@0 { eee-broken-1000t; reset-assert-us = <10000>; - reset-deassert-us = <30000>; + reset-deassert-us = <80000>; reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; interrupt-parent = <&gpio_intc>; -- 2.29.2