Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp726488pxb; Tue, 2 Feb 2021 16:50:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyL1mFPN4oOXodQWW7NiggB/NNtO+01e8/BUG46wURB5ietCZPeoBzd78nAepCWmT/Pvg4P X-Received: by 2002:a17:906:3999:: with SMTP id h25mr652193eje.146.1612313436616; Tue, 02 Feb 2021 16:50:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612313436; cv=none; d=google.com; s=arc-20160816; b=0IV8kQBRwexfFmC56K1QBj3DqJsTCpdB/0SRzS3vH3ty5VDHkqaJsT9F3JSBzTA+X+ qDaf1573FxGMUZl6pO+66N9BiIZNoFAS2VieubAZf3lL8fo63l2QsQ9aTAcuVTyLqZTe gZsdpF6dewbx6wlX8oUPcoAN+AExKF4/b4W/HCdnEGXWCgBva2yoRsaaii3K6pmGd5hb 8oHoqwwWA666oo97nkPHuYb+VFp16dVNxBj+FqhzcGDohGCoxzLA3M1kBXHYLgXR69EA RgtXafVE0/Gdum4jZkzX+uxVAxCJ2f7T/CWtwH60Zb/z5h1DpH16pZiRackGehyuPDIJ /w5Q== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ACIkywZwlp74vUpL8S+4BFjeISVRoCyk0tqab/0c8jc=; b=hMrO6ARa1QvddgW6GW64XkrMXfLQQipeZLfKwh+Zxzk0fI0dfMWw0CzNo+E23slvyh 1UWKNx+f2gXLxrHyCTGcGsaZUGuFymlHdXHJ6GgGaGXwIXD3tx8DHZWsZ1zPW9MIuvVH MpC967ni/sN/8JrIIKMWk5lL8DxS3d7htExupTUIoaoPkqRzjlgAauWbINZgNeInEwwm LQeTA3p3EEiWpW5/ivYHdppF1WPUxZjqTVqxbFOhhukbeRa5/s38bGiK0y5RGldbauE1 7D1q6wICtnywDcfHGXtxqtyCfWjWEQKvlMZ1gJLBR7pp++9yyiLqlICaUOIJFQetmUzV vdbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UMkpCj1s; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g24si304238ejc.176.2021.02.02.16.50.12; Tue, 02 Feb 2021 16:50:36 -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=@linuxfoundation.org header.s=korg header.b=UMkpCj1s; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240216AbhBBT5z (ORCPT + 99 others); Tue, 2 Feb 2021 14:57:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:38228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232764AbhBBNuL (ORCPT ); Tue, 2 Feb 2021 08:50:11 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3F5B264FB1; Tue, 2 Feb 2021 13:42:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612273378; bh=cyYxp5wJ/tarTNqT8sbm3bDvNzAKxN3rFcebUfwjwX4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UMkpCj1sVMkI3UogHnItfVIOKAaiCo9KTzKfIs+52Dc21KO/m1YSK5kXTz3wOSX3w F/oj6sNMUOEsHgPGS4lEW1IYmsepDC3wG60ztXzZQH1RWV2/WqEQbLw2ZvCrsjZelf qwP+DTuXbvxTib6BHBHkj42ZpjyXdNsQf41xlChk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christoph Mattheis , Russell King , Shawn Guo , Sasha Levin Subject: [PATCH 5.10 085/142] ARM: dts: imx6qdl-sr-som: fix some cubox-i platforms Date: Tue, 2 Feb 2021 14:37:28 +0100 Message-Id: <20210202133001.222464537@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210202132957.692094111@linuxfoundation.org> References: <20210202132957.692094111@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Russell King [ Upstream commit 2cc0bfc9c12784188482a8f3d751d44af45b0d97 ] The PHY address bit 2 is configured by the LED pin. Attaching a LED to this pin is not sufficient to guarantee this configuration pin is correctly read. This leads to some platforms having their PHY at address 0 and others at address 4. If there is no phy-handle specified, the FEC driver will scan the PHY bus for a PHY and use that. Consequently, adding the DT configuration of the PHY and the phy properties to the FEC driver broke some boards. Fix this by removing the phy-handle property, and listing two PHY entries for both possible PHY addresses, so that the DT configuration for the PHY can be found by the PHY driver. Fixes: 86b08bd5b994 ("ARM: dts: imx6-sr-som: add ethernet PHY configuration") Reported-by: Christoph Mattheis Signed-off-by: Russell King Signed-off-by: Shawn Guo Signed-off-by: Sasha Levin --- arch/arm/boot/dts/imx6qdl-sr-som.dtsi | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-sr-som.dtsi b/arch/arm/boot/dts/imx6qdl-sr-som.dtsi index b06577808ff4e..7e4e5fd0143a1 100644 --- a/arch/arm/boot/dts/imx6qdl-sr-som.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sr-som.dtsi @@ -53,7 +53,6 @@ &fec { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_microsom_enet_ar8035>; - phy-handle = <&phy>; phy-mode = "rgmii-id"; phy-reset-duration = <2>; phy-reset-gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; @@ -63,10 +62,19 @@ #address-cells = <1>; #size-cells = <0>; - phy: ethernet-phy@0 { + /* + * The PHY can appear at either address 0 or 4 due to the + * configuration (LED) pin not being pulled sufficiently. + */ + ethernet-phy@0 { reg = <0>; qca,clk-out-frequency = <125000000>; }; + + ethernet-phy@4 { + reg = <4>; + qca,clk-out-frequency = <125000000>; + }; }; }; -- 2.27.0