Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp75091pxb; Wed, 25 Aug 2021 20:31:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfYnHbZPaYBF07qrV8CwcdABiFlhvDzBQeegc53MEvdtIFMbWXtw97VrNHT+jnLObnP6Z9 X-Received: by 2002:a17:906:c7c2:: with SMTP id dc2mr2006729ejb.472.1629948698137; Wed, 25 Aug 2021 20:31:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629948698; cv=none; d=google.com; s=arc-20160816; b=zbE5N3bM9TNIMk/MI8xBBUbPnfWq+i7gOXYC3vTHQpe4lEw1spYB0Ncy1Xj1B6tqrV m6r2CcESX42Rjgdaa93x+w3CE9kOqQfKtykq25du68br/3N7NqhX6WXJOy+Fmj7HH9mo fgf98Z+9Jo+ANcYJOkfLTMdODAqSTlsP0PA866/O+9oiDefohUcl0Crf688SzCLtcGl6 uxQpYLGGlmXn4ZM7hlBS1zVFm68/Q6cCZMdQ6xH98EdbxWsjCjjsyRBxuody3guBzPif LFqzw7gFWSykvjERZXoMsEU/yVCp5xLT+WNE7gG7ndpmUndoBISGtKvdXufYHpa0bMJu 8doQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date:dkim-signature; bh=XtPfIMAUlTL7iDQoQvHB8+nZAxqrvLZEj9yQzJVKyuI=; b=EQH1sGt9w6yaxVj4c5EmXJ058Mj2mexChoux0YyStxfjldxlUHMTHRZ/8NttEAmTj2 yW4Lv3UIsneopHA8gbv6M135mP8fE8Yjolwwfnl8Xu5f/jud6qD3t50XncfiYc5uTZ00 XKkxnJjRGN8+frttyazlwim7eUMI1Pb50ugD1C7z9gA+544A/rrxc0YbRlvzI69nitv3 g8mnETi2zU1CJ7vamPxL7Fhy5Gk1/CG61PXJfhj0z6G0WiayaPcoDwMxD9pp6VLNBMUi V0T7Hlv9c3AbWAA9UB+kkyXKSwHE48UTMDpxWDtHM5nsL0hZxhkvUfwjMWYbQDyY2ux7 FZ+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aMkAaEnC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w3si1532512ejv.301.2021.08.25.20.31.14; Wed, 25 Aug 2021 20:31:38 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=aMkAaEnC; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235697AbhHZDai (ORCPT + 99 others); Wed, 25 Aug 2021 23:30:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbhHZDah (ORCPT ); Wed, 25 Aug 2021 23:30:37 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0599AC061757; Wed, 25 Aug 2021 20:29:51 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id e16so1094476pfc.6; Wed, 25 Aug 2021 20:29:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition; bh=XtPfIMAUlTL7iDQoQvHB8+nZAxqrvLZEj9yQzJVKyuI=; b=aMkAaEnCl/7RVWlXQgdSIUOVDeucvFNXh1W7GIwr6Wi77qHBV6jDkYsZdYmjj7LXjx HpoC6ClJubwRPvqM3UD+L/f9oRzdEXO6jDssMoggWKHrpmiUGbUmibOEFfeB9EYBUlat Xnz7FOlMNL1BBuAAqU17Iz9NucgWLCxJYMgBzFs4PQ/SL2TG2ziAjtjmtfaSRlfh3Svm Oezz/Y0HRkgv93yHHEH7cM8PJzz7Gc1J8jKWEcrtzZM38X6Ry+tDDa7goZ6wgElGWiMz OehUtmeu0D3D7SBvuulfmHUL9Ulw8J6+jXPj9k8c4xvol1VHX60r04w6SSeL6rTQhea9 bKww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=XtPfIMAUlTL7iDQoQvHB8+nZAxqrvLZEj9yQzJVKyuI=; b=TUOgdU0oD7xRw2yreo/9mK7EIdIpC99KvYv2MNH/WMkAQnaNPUS5HyRPN7FoTJ1tNA Q1kzk1mTKQCALv1yytAC50nZLIxF5A43JyGK/8eKUJObmlSByabCIIWx6wiUTM5hAxju kmQ+CqSs5P6F4dwa0MsJDHujb72+tTTqZYncNh+ZZFJ68QmpnxSYVPTjqMtt0ZzKSgpj d5Dux/yLuxlJ24KSLxAx3FRJZPAm0oQU4URbkkqswgb958aMIVaplCwDSe4zxgYcYwys mE5E48DtB7GVdQ0eiejCC2eyXUNIZ9rF4m20201xo405+jzAjXZkthi8gMXE0mKzEzLa S3eQ== X-Gm-Message-State: AOAM531esWjRLOszV0vIOAmBZ60OAkGiX86yAMsQ50yJ/LrzwLjlN02J m5npgLCn2QT0M2A766Nd2GNxNzuKjjI= X-Received: by 2002:a62:32c7:0:b029:3cd:fba0:3218 with SMTP id y190-20020a6232c70000b02903cdfba03218mr1668755pfy.52.1629948590503; Wed, 25 Aug 2021 20:29:50 -0700 (PDT) Received: from anyang-linuxfactory-or-kr ([106.250.177.234]) by smtp.gmail.com with ESMTPSA id p18sm1441194pgk.28.2021.08.25.20.29.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Aug 2021 20:29:49 -0700 (PDT) Date: Thu, 26 Aug 2021 12:28:32 +0900 From: Dongjin Kim To: Rob Herring , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: meson: sm1: add Ethernet PHY reset line for ODROID-C4/HC4 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch is to fix an issue that the ethernet link doesn't come up when using ip link set down/up: [ 11.428114] meson8b-dwmac ff3f0000.ethernet eth0: Link is Down [ 14.428595] meson8b-dwmac ff3f0000.ethernet eth0: PHY [0.0:00] driver [RTL8211F Gigabit Ethernet] (irq=31) [ 14.428610] meson8b-dwmac ff3f0000.ethernet: Failed to reset the dma [ 14.428974] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed [ 14.711185] meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Hw setup failed This fix has been referred two commits applied for ODROID-N2 (G12B). commit 658e4129bb81 ("arm64: dts: meson: g12b: odroid-n2: add the Ethernet PHY reset line") commit 1c7412530d5d0 ("arm64: dts: meson: g12b: odroid-n2: fix PHY deassert timing requirements") Signed-off-by: Dongjin Kim --- arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi index d14716b3d0f1..1230beba04aa 100644 --- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi @@ -256,6 +256,10 @@ external_phy: ethernet-phy@0 { reg = <0>; max-speed = <1000>; + reset-assert-us = <10000>; + reset-deassert-us = <80000>; + reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; + interrupt-parent = <&gpio_intc>; /* MAC_INTR on GPIOZ_14 */ interrupts = <26 IRQ_TYPE_LEVEL_LOW>; -- 2.30.2