Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp495592ybd; Sat, 22 Jun 2019 07:52:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTbGFOgKDQi+8qgBTg6h3nKVCVj/AvR0xl0k8GOIxDO6rsQWvqlI8F2S1g8BIzPTMJ0j7z X-Received: by 2002:a17:902:8f87:: with SMTP id z7mr109615029plo.65.1561215152743; Sat, 22 Jun 2019 07:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561215152; cv=none; d=google.com; s=arc-20160816; b=DZS9ll3hLZxj/Eo/6hYZTi2i2+7s0HFUmJHlQgJmZiP8aemHh+tUAn6L5dMVaY36cP mELgKSlPDCsqQWcCuD1KdOhbhWFcbW/u1bCh+VP/FZ5yR3ecMQqAwDrILjs/SOI+pYgX J3Ape6Rl6MMtcCUUqSqP4RxJk/z50DX1PLuVslipPdN1/rYUvBR5JkqlEgGZibMCmZgJ Wj32TRb9RfmyadLjD/1hoEI2r8vxbIi7SHtiXi8Ex6pE7nNdxiptnizMdI33f+eub3o9 sv9vmLgfn1qCrC0dD3Pgj0E0DOWO6enQgWOkIjXoepzChTPHErleEslmWI11a4pVDvcL CQdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=OVoJS/prKkIlpjoK2EXW2mlzkMtjGV0xfxR0NzTWrYE=; b=Bafp2UgmHhsA8KOIhA7P59ePL7r9L/ME+Oab+XSVhO/UkAcEtEvyGDIyueq4hb6Otf 2hqthWiR1hbioXJcfIs5OW0VLaMdvujf7QAasGBgGbpjz7j59bGWuH8lYpBVzvyP49YK 6TBpkteD1oRYBh1rsyMoYiMD6phateGk3jaoNX8T7wSs+yx3p7+VyBrI0HL4zSHYnKit MKMxJ3ITX/3KbVuEtHbmrKV7K8KcqPCQX7nhoxA49FwUVYbmoMSP0Xy95jMs0VkKfQj2 8WV1725E9pT/0ZKcUHqeq00fzBSE6391rAhUrcwCJ3Vql5uEdW+WZnD8yFVHESzWLWqo iVTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x9si5054960plv.182.2019.06.22.07.52.15; Sat, 22 Jun 2019 07:52:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726331AbfFVOuX (ORCPT + 99 others); Sat, 22 Jun 2019 10:50:23 -0400 Received: from www1102.sakura.ne.jp ([219.94.129.142]:50119 "EHLO www1102.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726138AbfFVOuX (ORCPT ); Sat, 22 Jun 2019 10:50:23 -0400 Received: from fsav302.sakura.ne.jp (fsav302.sakura.ne.jp [153.120.85.133]) by www1102.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id x5MEoBSI050936; Sat, 22 Jun 2019 23:50:11 +0900 (JST) (envelope-from katsuhiro@katsuster.net) Received: from www1102.sakura.ne.jp (219.94.129.142) by fsav302.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav302.sakura.ne.jp); Sat, 22 Jun 2019 23:50:10 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav302.sakura.ne.jp) Received: from [192.168.1.2] (118.153.231.153.ap.dti.ne.jp [153.231.153.118]) (authenticated bits=0) by www1102.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id x5MEoAQH050929 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NO); Sat, 22 Jun 2019 23:50:10 +0900 (JST) (envelope-from katsuhiro@katsuster.net) Subject: Re: [PATCH] ARM: dts: rockchip: add ethernet phy node for tinker board To: Heiko Stuebner Cc: linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190621180017.29646-1-katsuhiro@katsuster.net> <1871177.hjLhdHVgcu@phil> From: Katsuhiro Suzuki Message-ID: Date: Sat, 22 Jun 2019 23:50:10 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <1871177.hjLhdHVgcu@phil> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Current linux-next on my environment, 'ifconfig eth0 up' does not work correctly with following message... ----- root@linaro-alip:~# ifconfig eth0 up [ 105.028916] rk_gmac-dwmac ff290000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19) SIOCSIFFLAGS: No such device ----- I checked drivers/net/ethernet/stmicro/stmmac/stmmac_main.c and found stmmac_init_phy() is going to fail if ethernet device node does not have following property: - phy-handle - phy - phy-device I salvaged old version of linux-next kernel (5.2.0-rc1-20190523), network device of my Tinker Board worked correctly if use it. I have not bisect commit of root cause yet... Is it better to bisect and find problem instead of sending this patch? Best Regards, --- Katsuhiro Suzuki On 2019/06/22 17:33, Heiko Stuebner wrote: > Hi, > > Am Freitag, 21. Juni 2019, 20:00:17 CEST schrieb Katsuhiro Suzuki: >> This patch adds missing mdio and ethernet PHY nodes for rk3328 ASUS >> tinker board. >> >> Signed-off-by: Katsuhiro Suzuki > > just for my understanding, which problem does this solve? > Normally the gmac can establish connections just fine on > the rk3288 by probing the phy in the automatic way. > > And I also don't see any additional properties like phy > interrupt line below. > > > Thanks > Heiko > >> --- >> arch/arm/boot/dts/rk3288-tinker.dtsi | 12 ++++++++++++ >> 1 file changed, 12 insertions(+) >> >> diff --git a/arch/arm/boot/dts/rk3288-tinker.dtsi b/arch/arm/boot/dts/rk3288-tinker.dtsi >> index 293576869546..3190817e8d5d 100644 >> --- a/arch/arm/boot/dts/rk3288-tinker.dtsi >> +++ b/arch/arm/boot/dts/rk3288-tinker.dtsi >> @@ -117,6 +117,7 @@ >> assigned-clocks = <&cru SCLK_MAC>; >> assigned-clock-parents = <&ext_gmac>; >> clock_in_out = "input"; >> + phy-handle = <&phy0>; >> phy-mode = "rgmii"; >> phy-supply = <&vcc33_lan>; >> pinctrl-names = "default"; >> @@ -127,6 +128,17 @@ >> tx_delay = <0x30>; >> rx_delay = <0x10>; >> status = "ok"; >> + >> + mdio0 { >> + compatible = "snps,dwmac-mdio"; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + phy0: ethernet-phy@0 { >> + compatible = "ethernet-phy-ieee802.3-c22"; >> + reg = <0>; >> + }; >> + }; >> }; >> >> &gpu { >> > > > > >