Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4157746pxf; Tue, 23 Mar 2021 04:19:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSY5pxQg+JGAWZWd5XsSFRmB0Nmb7c4kQhul+Fxv5R7iBOWdxaBq9G3edbL0EbOtF7/jPA X-Received: by 2002:a17:906:c0c8:: with SMTP id bn8mr4306964ejb.445.1616498340766; Tue, 23 Mar 2021 04:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616498340; cv=none; d=google.com; s=arc-20160816; b=Mw4g5OJCeI2RNkj2NLBflSMSCeEHep2/aKnhNI+nvbK38lHfnNXxX6Qi/hX34qNH03 Au2UTGtE3L1HCOCCVLTwANIH+kyAEAyHCPyZNxPknnuhX4CCfQCXCq+en9cM/8BIQkED ImRZyzs96bjSChfIG7zfN/k/5jLUXwzFsqcbcdKuT2K8j7Vfx04j2njUwYx5L11tHImx FpHP5X6/yfL3iR2HyWnWWbkic5zoOIQEhxAxqM5rHEY9Y5j5pMxqYrv+Dw5NzE5RUdtp gibp16WC8WFIch7lo5U3WIHg8wuEo4sjG82uTAlclCGK1oR/K+u6y6JGBT/R0ko+0VEp bZ+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:ironport-sdr:dkim-signature; bh=GKZJnF6fFb2jkAt6ohsa13/ZjE1ui9bn37lY8JmAFEg=; b=Q34Bx/iSIi4dHgesiTZbu3c0f7D8rIjYczeDr/jHG5ykIrrKFU833KLV83uZ5U0N6l Fbgr3Uz9seZE22Y4JCAswUwEy7CwS8UwLgFmszwUFVFiy8/RyFFgFGS/44WGMxKDcL1J d0BoxXxZHrLRCxhDqEkz3njeoqR4q1BPKG9rIROoo7dDPjKSQjouf4FqU/+BqcdTQl57 Ch0STrMu3TjdFb5Pg5yIGoSKxEDnUNhgWu6D/7eUJ8ufffyMhYQ9Qr3OARBIB2GxtFVd G069noZM10Yzzbohx9OvHW/ByOgn0bK8Im8NlBgsQOwhivfQk+mFNBmYaD7cnr3yNzjN lfeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b="s7L/W9XO"; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u14si13799832edx.551.2021.03.23.04.18.37; Tue, 23 Mar 2021 04:19:00 -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=fail header.i=@microchip.com header.s=mchp header.b="s7L/W9XO"; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230386AbhCWLR1 (ORCPT + 99 others); Tue, 23 Mar 2021 07:17:27 -0400 Received: from esa.microchip.iphmx.com ([68.232.154.123]:19224 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230228AbhCWLRV (ORCPT ); Tue, 23 Mar 2021 07:17:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1616498241; x=1648034241; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=xkEtnj795OGz0YOCi1K5ZAUBjS8scZ1aflNvlUmjf0Q=; b=s7L/W9XO/FyaCx65CjCOqH+1iHlANCXMJL+jWxdTf6trkWdwcBK6KKpz GGBcFX45WShEmyCjaOWfJm1TvVsWj7r6bhomtvL+nYPwydvlr7maY/IQx 6P6DtcKkIYX05ZPOd2UVEDG1S6FLKQW6Nff4TNvntnhis1eEWspZlaarV PI3vM29Kd292XGlS2GDasW6zJGax3xN9+5D9u8EvakM1fBV4vs3klXJNf hhGu8cmRAGUnid42OG+/Xs+V7TMyBI564aEHuDi7HNj4tlVGSPGsMD4FT uBXlAcwo3ODmSQ0cYAp+FYj/U1nMoFwpapi3nmJ+/fcu+Ra7K8HTuUkmp A==; IronPort-SDR: dkIXIA6MiHaqQFqxXM+aBgCxFDlrG/dDsWufP43wMkKAC9OPqYPlBdKobBVSToJXsx6s2K1Aut sz0MegjHkRV9Sh6EAy5IadY5Ar+XYyl9Nk2ad0a3iHLSXGNsd0pTp2QALl3du/bS+iisCvV2nK q4dOs/DjHmCu1VpAt5vzqobV3EN8S6QDvtS1HwcLPL+ncCVnWUQLbgoNx/Y4cMh9Nz/F3HbAKa ksLey87/bqx2zosANHwA81EtVmG+J8yy2ahMFr7cOD/ElaD0EBjoiRmo4E+TQg8H5OVC/thrIt Ac8= X-IronPort-AV: E=Sophos;i="5.81,271,1610434800"; d="scan'208";a="48534067" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 23 Mar 2021 04:17:14 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 23 Mar 2021 04:17:14 -0700 Received: from [10.12.80.255] (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Tue, 23 Mar 2021 04:17:11 -0700 Subject: Re: [PATCH] ARM: dts: at91-sama5d27_som1: fix phy address to 7 To: Ahmad Fatoum , Alexander Dahl , , , Alexandre Belloni , Ludovic Desroches CC: Claudiu Beznea , , "devicetree@vger.kernel.org" , "Pengutronix Kernel Team" , Oleksij Rempel References: <20210217113808.21804-1-nicolas.ferre@microchip.com> <1732882030.11903.1616496356027@seven.thorsis.com> From: Nicolas Ferre Organization: microchip Message-ID: <580984ef-41fe-62d0-ad30-f707a6669a13@microchip.com> Date: Tue, 23 Mar 2021 12:17:10 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alexander, Ahmad, On 23/03/2021 at 11:55, Ahmad Fatoum wrote: > Hello Alexander, > > On 23.03.21 11:45, Alexander Dahl wrote: >> Hei hei, >> >> I could not get ethernet to work on SAMA5D27-SOM1-EK1 with kernels v5.10 and v5.11 built by a recent ptxdist based DistroKit BSP, while it used to work with an older v4.19 kernel. Just applying this patch to the tree made ethernet working again, thus: >> >> Tested-by: Alexander Dahl >> >> Not sure why it worked with that older kernel, though. > > Thanks for investigating! Seems that somehow PHY broadcast worked on this > board with older kernels (and current barebox), but no longer does with > newer kernels. > > A bisection could shed some light onto what broke this. > > As the KSZ8081 driver disables broadcast in the phy config init, this change > looks appropriate regardless. The fixes tag doesn't refer to an upstream > commit though. This should probably read: > Fixes: af690fa37e39 ("ARM: dts: at91: at91-sama5d27_som1: add sama5d27 SoM1 support") I didn't noticed that on my side. > With this addressed: > > Reviewed-by: Ahmad Fatoum Thanks a lot for your feedback. > You could send a proper patch and stick your S-o-b under it. Actually this patch is already in arm-soc tree here: https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git/commit/?h=arm/fixes&id=221c3a09ddf70a0a51715e6c2878d8305e95c558 So I cannot add tags anymore to it, sorry. Best regards, Nicolas >> I added Ahmad to Cc, he added board support to DistroKit for that board, and might want to know. And I added the devicetree list to Cc, I wondered why the patch was not there and get_maintainers.pl proposed it. >> >> Thanks for fixing this and greetings >> Alex >> >>> nicolas.ferre@microchip.com hat am 17.02.2021 12:38 geschrieben: >>> >>> >>> From: Claudiu Beznea >>> >>> Fix the phy address to 7 for Ethernet PHY on SAMA5D27 SOM1. No >>> connection established if phy address 0 is used. >>> >>> The board uses the 24 pins version of the KSZ8081RNA part, KSZ8081RNA >>> pin 16 REFCLK as PHYAD bit [2] has weak internal pull-down. But at >>> reset, connected to PD09 of the MPU it's connected with an internal >>> pull-up forming PHYAD[2:0] = 7. >>> >>> Signed-off-by: Claudiu Beznea >>> Fixes: 2f61929eb10a ("ARM: dts: at91: at91-sama5d27_som1: fix PHY ID") >>> Cc: Ludovic Desroches >>> Signed-off-by: Nicolas Ferre >>> Cc: # 4.14+ >>> --- >>> arch/arm/boot/dts/at91-sama5d27_som1.dtsi | 4 ++-- >>> 1 file changed, 2 insertions(+), 2 deletions(-) >>> >>> diff --git a/arch/arm/boot/dts/at91-sama5d27_som1.dtsi b/arch/arm/boot/dts/at91-sama5d27_som1.dtsi >>> index 1b1163858b1d..e3251f3e3eaa 100644 >>> --- a/arch/arm/boot/dts/at91-sama5d27_som1.dtsi >>> +++ b/arch/arm/boot/dts/at91-sama5d27_som1.dtsi >>> @@ -84,8 +84,8 @@ macb0: ethernet@f8008000 { >>> pinctrl-0 = <&pinctrl_macb0_default>; >>> phy-mode = "rmii"; >>> >>> - ethernet-phy@0 { >>> - reg = <0x0>; >>> + ethernet-phy@7 { >>> + reg = <0x7>; >>> interrupt-parent = <&pioA>; >>> interrupts = ; >>> pinctrl-names = "default"; >>> -- >>> 2.30.0 >>> >>> >>> _______________________________________________ >>> linux-arm-kernel mailing list >>> linux-arm-kernel@lists.infradead.org >>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel >> > > -- > Pengutronix e.K. | | > Steuerwalder Str. 21 | http://www.pengutronix.de/ | > 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | > -- Nicolas Ferre