Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp54897lqb; Thu, 14 Mar 2024 05:32:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYPSvECLJOxhXJSktZuAh47qw7ipFEJ48Ku+n1gVZPBQjWkXpDTtuFCx3xcxUUIrU55Oy2OYxZK1Jn5u5a0pK84AxGUpQT9vHtKTTMOg== X-Google-Smtp-Source: AGHT+IG+bbnyVw4iA8AKi9ORv5i0AUOG7ZokGBRxQ0rVRlptmk9wUey8rZCF5ZBO6qOdcqzJidNl X-Received: by 2002:a05:6870:8a11:b0:221:c9ef:47 with SMTP id p17-20020a0568708a1100b00221c9ef0047mr1633534oaq.15.1710419521536; Thu, 14 Mar 2024 05:32:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710419521; cv=pass; d=google.com; s=arc-20160816; b=pakB4HG4Md9QDNT6Nqja+/5ALdz5r25uB2LPpD6Mzer1OkUgRhifsBDkQHLobiIT+o Ba/AE02TDNFU1eW/T9mPvB20XEHRDeorx9iBdgY0H0XPjrPBTDEmrFfliwMTthy05sVy HlxGaJgnQao1bTTXKNAzD/uxJP3SO9ZNFtRugabZoYQkzh72IX235lQ5Un51A6/zG64b emffB7bm54ZSSf40RT1m81KozPK4dG08w0UPMhHIDVljrV7Ilk/zvTBsm74FrCDkNgPi 8939yAaNRW4TVYvzHDonH9bGXSkDv1fXbPsiOO6EjYQcpzsUjPrj1scUR2wwfX+t2pKd xCVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=8c9LWjHzHUwX7HhYzOs6hAiF2n2qMYYHewnsk3ZoZTE=; fh=kQs5h7UmNyOIQ8PCAr38HS1D1UR+DvEymXxEBGlItcU=; b=ZQEYTrdg7TEFVglymHebn/isgjFIWxNziZG9b/Yp8oQaVTH6CqoPDwRpUnOyB5CC/C 8Y15Na/qjf0wBTBr4MeLB1PjQatK+aCDB2eqmjbzCI+liIkuc3KRjHZB8HGWSVKP1XNK QU0aoJJa6ZYqWXa/K+z2VZbZGlsRhV8pi+P2h63JX+UooISo/1eK0fVJbelvgQXJ8H36 TbbzSsTpB9DNcTAvN1BwHGXolLvP7jlFZXJvlKQLvHq9x3BodowVP3AGe/q5ze+bJggO 31K2oQPcYUr7Va+cavapvYI6mvMW0wAggvyuPH07blJIKFQBE0D6hR7AGzcJ+k4e4YkO lSag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-103244-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103244-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id iy1-20020a0562140f6100b00690bba8c5casi568028qvb.116.2024.03.14.05.32.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 05:32:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103244-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-103244-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103244-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4298B1C21754 for ; Thu, 14 Mar 2024 12:32:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A1F918E20; Thu, 14 Mar 2024 12:31:28 +0000 (UTC) Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4326647F46; Thu, 14 Mar 2024 12:31:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710419487; cv=none; b=sLUq5fswfpc9bIZ5lYF+7LWj5AWG4bQGXxL283Y5MWwW+/QqL1BG9ohhcDz95w1GKZ8oky0ZXXvFVgrHnGU6wNHWRoeVo6sD4UBq7zCRPuNQc2DAdd8OOjw3UVOGcIb0D4mDI2fG5DEGDPVfbz/2AiXrlwp6s81yk6/iay2YJP4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710419487; c=relaxed/simple; bh=esxIP+Mn1RizCEnvwEiAOQ4xYLuuJSPTIKa725nOahs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=STrBV/fh84ndgeKtGq+na40ORe3jhJVozvsznTv6vV6EHYRxtGtdjhpvLnPhmg/ezpgLG2Tvc1TK7OZJE7i76CNdx+VFGRtTLErQGQPk0O06xiAmYOnRDKsWSuwUV6xZUc1BIEkLvDujIteZylfoDql4NPA2/XDs2B9y9VhQ8Hs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Received: from i53875a9e.versanet.de ([83.135.90.158] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rkkEs-0003Ip-Sw; Thu, 14 Mar 2024 13:31:14 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , arinc.unal@arinc9.com Cc: mithat.guner@xeront.com, erkin.bozoglu@xeront.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= Subject: Re: [PATCH] arm64: dts: rockchip: set PHY address of MT7531 switch to 0x1f Date: Thu, 14 Mar 2024 13:31:13 +0100 Message-ID: <4682635.taCxCBeP46@diego> In-Reply-To: <20240314-for-rockchip-mt7531-phy-address-v1-1-743b5873358f@arinc9.com> References: <20240314-for-rockchip-mt7531-phy-address-v1-1-743b5873358f@arinc9.com> 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" Am Donnerstag, 14. M=C3=A4rz 2024, 13:24:35 CET schrieb Ar=C4=B1n=C3=A7 =C3= =9CNAL via B4 Relay: > From: Ar=C4=B1n=C3=A7 =C3=9CNAL >=20 > The MT7531 switch listens on PHY address 0x1f on an MDIO bus. I've got two > findings that support this. There's no bootstrapping option to change the > PHY address of the switch. The Linux driver hardcodes 0x1f as the PHY > address of the switch. So the reg property on the device tree is currently > ignored by the Linux driver. >=20 > Therefore, describe the correct PHY address on Banana Pi BPI-R2 Pro that > has this switch. >=20 > Signed-off-by: Ar=C4=B1n=C3=A7 =C3=9CNAL =46ixes: c1804463e5c6 ("arm64: dts: rockchip: Add mt7531 dsa node to BPI-R2= =2DPro board") > --- > arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts b/arch/ar= m64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts > index 7b5f3904ef61..03d6d920446a 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts > +++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts > @@ -525,9 +525,9 @@ &mdio0 { > #address-cells =3D <1>; > #size-cells =3D <0>; > =20 > - switch@0 { > + switch@1f { > compatible =3D "mediatek,mt7531"; > - reg =3D <0>; > + reg =3D <0x1f>; > =20 > ports { > #address-cells =3D <1>; >=20 > --- > base-commit: 0276d797531ea2d1865a04fbe54c659608f5788f > change-id: 20240314-for-rockchip-mt7531-phy-address-ba6c2fff485f >=20 > Best regards, >=20