From nobody Sat Sep 21 19:57:13 2024 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79711ECAAD3 for ; Wed, 14 Sep 2022 08:56:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229928AbiINI4b (ORCPT ); Wed, 14 Sep 2022 04:56:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230087AbiINIz7 (ORCPT ); Wed, 14 Sep 2022 04:55:59 -0400 Received: from sender4-op-o14.zoho.com (sender4-op-o14.zoho.com [136.143.188.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 315EC38440; Wed, 14 Sep 2022 01:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663145716; cv=none; d=zohomail.com; s=zohoarc; b=dnIFahyM0IisMC8N0DtTazUfCcWYsEENXNGipecNC6GPYrLsfm5DKi8z2ig/iEh/pLaZgjTpFgHvcPzwjR1AgF56RLjmvGR5g/dadAkzrDyBzjEsFHvm/dyeudS2kBX1CjDRynOzskVVOjBazN5i9Vxvki5ny7eKXrzUwd+dal4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1663145716; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=gW2h2omwaqsEc8eIL1oqekJ7kF0Gj5PZa7ThxS1nMEo=; b=WrUpT0z2dmZpiUr2xkzUIhLL9aLMqqnmxTABawtER015c0tFbu2UAiT1i3gbVQYuVtyqwf/FRQa9oo2FuI6oF0hgsKgu4c2ycM4cpnRfbMI6Lvx3aqWhrcKkKnb1louGsor0yQgkO/JWJwZf54yJ3kqFMeJD8D0OmA9L5Rpy83c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1663145716; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Reply-To; bh=gW2h2omwaqsEc8eIL1oqekJ7kF0Gj5PZa7ThxS1nMEo=; b=BRaCg04LH58aSEuT68+BF4QrsDJKoxjONHtarrYBpGDcIvNfHnk5lZ8pypIT3msD LQvgODEuAUhGFrVXi6IRvs0BPUvYBAyAaVElWenD6oNVwWtmS+1xcgwyFuNmrBjn4KD 7S9Jv8NiJ7TgFv8lBWLJc8q4eDtJO3gr90BkOMOk= Received: from arinc9-PC.lan (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 1663145713714881.9487168174912; Wed, 14 Sep 2022 01:55:13 -0700 (PDT) From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= To: Krzysztof Kozlowski , Rob Herring , Matthias Brugger , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Thomas Bogendoerfer , Greg Kroah-Hartman , Sean Wang , Landen Chao , DENG Qingfang , Sergio Paracuellos , erkin.bozoglu@xeront.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Sungbo Eo Subject: [PATCH 02/10] dt-bindings: net: dsa: mediatek,mt7530: change mt7530 switch address Date: Wed, 14 Sep 2022 11:54:43 +0300 Message-Id: <20220914085451.11723-3-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220914085451.11723-1-arinc.unal@arinc9.com> References: <20220914085451.11723-1-arinc.unal@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In the case of muxing phy0 of the MT7530 switch, the switch and the phy will have the same address on the mdio bus, 0. This causes the ethernet driver to fail since devices on the mdio bus cannot share an address. Any address can be used for the switch, therefore, change the switch address to 0x1f. Suggested-by: Sungbo Eo Signed-off-by: Ar=C4=B1n=C3=A7 =C3=9CNAL Acked-by: Rob Herring --- .../bindings/net/dsa/mediatek,mt7530.yaml | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml= b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index f9e7b6e20b35..2c73d13adf14 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -294,9 +294,9 @@ examples: #address-cells =3D <1>; #size-cells =3D <0>; =20 - switch@0 { + switch@1f { compatible =3D "mediatek,mt7530"; - reg =3D <0>; + reg =3D <0x1f>; =20 reset-gpios =3D <&pio 33 0>; =20 @@ -356,9 +356,9 @@ examples: #address-cells =3D <1>; #size-cells =3D <0>; =20 - switch@0 { + switch@1f { compatible =3D "mediatek,mt7530"; - reg =3D <0>; + reg =3D <0x1f>; =20 mediatek,mcm; resets =3D <ðsys MT2701_ETHSYS_MCM_RST>; @@ -486,9 +486,9 @@ examples: #address-cells =3D <1>; #size-cells =3D <0>; =20 - switch@0 { + switch@1f { compatible =3D "mediatek,mt7621"; - reg =3D <0>; + reg =3D <0x1f>; =20 mediatek,mcm; resets =3D <&sysc MT7621_RST_MCM>; @@ -573,9 +573,9 @@ examples: reg =3D <4>; }; =20 - switch@0 { + switch@1f { compatible =3D "mediatek,mt7621"; - reg =3D <0>; + reg =3D <0x1f>; =20 mediatek,mcm; resets =3D <&sysc MT7621_RST_MCM>; @@ -664,9 +664,9 @@ examples: phy-mode =3D "rgmii"; }; =20 - switch@0 { + switch@1f { compatible =3D "mediatek,mt7621"; - reg =3D <0>; + reg =3D <0x1f>; =20 mediatek,mcm; resets =3D <&sysc MT7621_RST_MCM>; @@ -745,9 +745,9 @@ examples: phy-mode =3D "rgmii"; }; =20 - switch@0 { + switch@1f { compatible =3D "mediatek,mt7621"; - reg =3D <0>; + reg =3D <0x1f>; =20 mediatek,mcm; resets =3D <&sysc MT7621_RST_MCM>; --=20 2.34.1