From nobody Thu Nov 28 04:56:14 2024 Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7B4B4DA00 for ; Fri, 4 Oct 2024 06:16:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728022565; cv=none; b=IV3KOsnGfqtda+uGGm4p7onD0Jwo/fXFQuniSpzOFFV7dWmMJE5Oa+IlDsWJH/NUczBySqekk9xsWfMJHs9Y1DAkEpxNGlC0bHvz4ip/SYvh6nflBINB7GERevE9Hp7+VxW0w6VtE84mLiq6F3MnG8t0A3U/pjb11vmskRwQtyc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728022565; c=relaxed/simple; bh=ND2xakU1Ed9cn9wtrPt+jwHnXKN2SIbAPbA3s1VC1iw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hweEYcpDQRbdBYieUr+06K3K3BamXFy4LFmLAsCXN4jx42teFxqFc0lK/YaQ5CAZHbD0jFmEoah+kd9YMQYTdSmaxRnuullx9ZAtThuzZYGeENOPbH+EhC5zwBswCYZ4R3GhnGFtLfhVDLj068fhqDhyqfl2KpVFdFKyn+/XDdk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nigauri.org; spf=none smtp.mailfrom=nigauri.org; dkim=pass (2048-bit key) header.d=nigauri-org.20230601.gappssmtp.com header.i=@nigauri-org.20230601.gappssmtp.com header.b=y4e4goPM; arc=none smtp.client-ip=209.85.215.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nigauri.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=nigauri.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nigauri-org.20230601.gappssmtp.com header.i=@nigauri-org.20230601.gappssmtp.com header.b="y4e4goPM" Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-6e7b121be30so1118548a12.1 for ; Thu, 03 Oct 2024 23:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nigauri-org.20230601.gappssmtp.com; s=20230601; t=1728022562; x=1728627362; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=CiPQ7lESH5Gy691au9mdhveuFFHiiywWJe9zyxWKyzs=; b=y4e4goPMFCs+N/H7U1GJy1RSQhIPKr0uUn4zJvYCYyBp3eyWI8FDfRp5Z5caZhzHGj mjnMWxO6SPjIjvjnV06WKJM9/0PwZdutycbYXQ9UO0NvQAPZkyajngCWrSr/DuAy5lm7 TAxgRVNUihX29NxYOJ89lOC/nYOL1y2gXXNU6uGeL6qPSpE/HKdyNs0PILXpAxH2sRHm 3xIEKWgFY3WZKhwYDCiN/gWqJlCxWz4c55Ts0EAXQRcY1C0m6cwQWosYxGCmT9PTavW+ 5JopUw7RsDrvJB+jAmCW6IUqzY9ig/mqVV53x+h01d9uElqfHFeDkz4+nvYeYrL0IY7l NoBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728022562; x=1728627362; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CiPQ7lESH5Gy691au9mdhveuFFHiiywWJe9zyxWKyzs=; b=LIREAx2tZAaU/6C9lAOevf9FlVvFl19Gqui103VHZLJKVeunZVHZSmnwH5Yh/WLDKU z2l0yOm1jreW0JGBkFGPKG4I507YGCDUkTShP9r8ork5H+ih6YuDOf2lP3IWnbvGtDgj Ji9sstkR7p1kUFmx4ra/elNzW6Z6PHAB7xg/8AvpKa/xV5shhvIDTtgGWd0+ULUics2P yOWazJtOEIjEosyncH2BLHUMZAhGFxxlTJlEA4+coljua7anfFWwkEB7p0hQCw6jkXwO cd3c4KAY97meXrrA7nht1b+3EUC/ytsOan7iA+1K5nIYxDrQ1LGWwuJzh0fofwndafk0 IrjA== X-Forwarded-Encrypted: i=1; AJvYcCXbFRfQZqWirLCny7dUWPXClrxx/zyczippaNwnCT99cC6Hmtp4otPxG3htbU7ilAh5Wm/EV/1UfkCYxrk=@vger.kernel.org X-Gm-Message-State: AOJu0YxyN9hOYPhzzfjtt3kCxm2MlWNS2KrF5HjqzAeM73FS5c3X8xK9 5P+i2iuvrJ0x4eqHjKg0MFipoN/+i535cF+pw/X0ZFos++MVNvlpI8XJQz71 X-Google-Smtp-Source: AGHT+IHtbGb53QIqfIfaHFTTKzwgD4vmCfhsKiGIH6YMCbaEJi/On/jh5vfbtaP4ptDCa90Hd1a7vw== X-Received: by 2002:a17:90b:4ac7:b0:2e1:cda1:12c6 with SMTP id 98e67ed59e1d1-2e1e63c58c8mr1636571a91.40.1728022561835; Thu, 03 Oct 2024 23:16:01 -0700 (PDT) Received: from localhost ([2405:6581:5360:1800:97a9:b968:cde4:c75e]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e1e862328csm672661a91.44.2024.10.03.23.16.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 23:16:01 -0700 (PDT) From: Nobuhiro Iwamatsu X-Google-Original-From: Nobuhiro Iwamatsu To: robh+dt@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, dinguyen@kernel.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nobuhiro Iwamatsu , stable@vger.kernel.org Subject: [PATCH] ARM: dts: socfpga: sodia: Fix mdio bus probe and PHY ID Date: Fri, 4 Oct 2024 15:15:41 +0900 Message-ID: <20241004061541.1666280-1-nobuhiro1.iwamatsu@toshiba.co.jp> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Nobuhiro Iwamatsu On SoCFPGA/Sodia board, mdio bus cannot be probed, so the PHY cannot be found and the network device does not work. ``` stmmaceth ff702000.ethernet eth0: __stmmac_open: Cannot attach to PHY (erro= r: -19) ``` To probe the mdio bus, add "snps,dwmac-mdio" as compatible string of the mdio bus. Also the PHY ID connected to this board is 4. Therefore, change to 4. Fixes: 8fbc10b995a5 ("net: stmmac: check fwnode for phy device before scann= ing for phy") Cc: stable@vger.kernel.org # 6.3+ Signed-off-by: Nobuhiro Iwamatsu --- arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts b/a= rch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts index ce0d6514eeb571..e4794ccb8e413f 100644 --- a/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts +++ b/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts @@ -66,8 +66,10 @@ &gmac1 { mdio0 { #address-cells =3D <1>; #size-cells =3D <0>; - phy0: ethernet-phy@0 { - reg =3D <0>; + compatible =3D "snps,dwmac-mdio"; + + phy0: ethernet-phy@4 { + reg =3D <4>; rxd0-skew-ps =3D <0>; rxd1-skew-ps =3D <0>; rxd2-skew-ps =3D <0>; --=20 2.45.2