From nobody Sat Sep 21 16:54:32 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 C3F98ECAAD8 for ; Wed, 14 Sep 2022 08:55:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229690AbiINIzo (ORCPT ); Wed, 14 Sep 2022 04:55:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbiINIzl (ORCPT ); Wed, 14 Sep 2022 04:55:41 -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 316DF2CDF1; Wed, 14 Sep 2022 01:55:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663145710; cv=none; d=zohomail.com; s=zohoarc; b=N7z0aGEDn+0EwDA/Ajf3aOtLqdY5lJjAnszbXSoNbjDcezB8GBf5rBpa7uosirgbDyWSY3LykMOw3ELlDbgxnTb79lnhWFTrL5QuaYheaN4pHaK2bsl6vfEpf35LMlznqQ29mAQQNc205vGighBBW5+mjKkEIL320wNgG0yMqp8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1663145710; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=X/Wt+Y94rMwALGSEACdcswFA6kDWzirCzDRw4TCsfoc=; b=cCcXaAgU27pO/7t3PgKvWrnmg86uyGJrOF5E8F9lHKPKGS18hZOroRgr8EkcOAfEV/kdeZsNch1hSYnZhaH4yzyRnK/wdVNdoMY0Lf/oVTPM8YvBxC+s3QmFKuIiD1APnIN5T1rPXHgWZSvygDWdKIHFeGO4LOA/F4wfetVFXPI= 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=1663145710; 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=X/Wt+Y94rMwALGSEACdcswFA6kDWzirCzDRw4TCsfoc=; b=LYyKqjUsaA8jZaKODD58+cY+MUE+CWTCXZMiGnkwmEm5CQ4YxVICll0S/87yQwz1 mC3LQ4i+p3A//oSNLTJpl5hudeOIr7tlxvY3XAEwlF3woUiPfo5z+4eY4TGeYATet6o yY+x4c7t8M1jMuAY/bPiLlHD7SSo9xK+UOXk6Fvk= Received: from arinc9-PC.lan (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 1663145707927783.0802898179184; Wed, 14 Sep 2022 01:55:07 -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?= Subject: [PATCH 01/10] dt-bindings: net: drop old mediatek bindings Date: Wed, 14 Sep 2022 11:54:42 +0300 Message-Id: <20220914085451.11723-2-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 Remove these old mediatek bindings which are not used. Signed-off-by: Ar=C4=B1n=C3=A7 =C3=9CNAL Acked-by: Rob Herring --- .../bindings/net/mediatek,mt7620-gsw.txt | 24 -------- .../bindings/net/ralink,rt2880-net.txt | 59 ------------------- .../bindings/net/ralink,rt3050-esw.txt | 30 ---------- 3 files changed, 113 deletions(-) delete mode 100644 Documentation/devicetree/bindings/net/mediatek,mt7620-g= sw.txt delete mode 100644 Documentation/devicetree/bindings/net/ralink,rt2880-net= .txt delete mode 100644 Documentation/devicetree/bindings/net/ralink,rt3050-esw= .txt diff --git a/Documentation/devicetree/bindings/net/mediatek,mt7620-gsw.txt = b/Documentation/devicetree/bindings/net/mediatek,mt7620-gsw.txt deleted file mode 100644 index 358fed2fab43..000000000000 --- a/Documentation/devicetree/bindings/net/mediatek,mt7620-gsw.txt +++ /dev/null @@ -1,24 +0,0 @@ -Mediatek Gigabit Switch -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D - -The mediatek gigabit switch can be found on Mediatek SoCs (mt7620, mt7621). - -Required properties: -- compatible: Should be "mediatek,mt7620-gsw" or "mediatek,mt7621-gsw" -- reg: Address and length of the register set for the device -- interrupts: Should contain the gigabit switches interrupt -- resets: Should contain the gigabit switches resets -- reset-names: Should contain the reset names "gsw" - -Example: - -gsw@10110000 { - compatible =3D "ralink,mt7620-gsw"; - reg =3D <0x10110000 8000>; - - resets =3D <&rstctrl 23>; - reset-names =3D "gsw"; - - interrupt-parent =3D <&intc>; - interrupts =3D <17>; -}; diff --git a/Documentation/devicetree/bindings/net/ralink,rt2880-net.txt b/= Documentation/devicetree/bindings/net/ralink,rt2880-net.txt deleted file mode 100644 index 9fe1a0a22e44..000000000000 --- a/Documentation/devicetree/bindings/net/ralink,rt2880-net.txt +++ /dev/null @@ -1,59 +0,0 @@ -Ralink Frame Engine Ethernet controller -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D - -The Ralink frame engine ethernet controller can be found on Ralink and -Mediatek SoCs (RT288x, RT3x5x, RT366x, RT388x, rt5350, mt7620, mt7621, mt7= 6x8). - -Depending on the SoC, there is a number of ports connected to the CPU port -directly and/or via a (gigabit-)switch. - -* Ethernet controller node - -Required properties: -- compatible: Should be one of "ralink,rt2880-eth", "ralink,rt3050-eth", - "ralink,rt3050-eth", "ralink,rt3883-eth", "ralink,rt5350-eth", - "mediatek,mt7620-eth", "mediatek,mt7621-eth" -- reg: Address and length of the register set for the device -- interrupts: Should contain the frame engines interrupt -- resets: Should contain the frame engines resets -- reset-names: Should contain the reset names "fe". If a switch is present - "esw" is also required. - - -* Ethernet port node - -Required properties: -- compatible: Should be "ralink,eth-port" -- reg: The number of the physical port -- phy-handle: reference to the node describing the phy - -Example: - -mdio-bus { - ... - phy0: ethernet-phy@0 { - phy-mode =3D "mii"; - reg =3D <0>; - }; -}; - -ethernet@400000 { - compatible =3D "ralink,rt2880-eth"; - reg =3D <0x00400000 10000>; - - #address-cells =3D <1>; - #size-cells =3D <0>; - - resets =3D <&rstctrl 18>; - reset-names =3D "fe"; - - interrupt-parent =3D <&cpuintc>; - interrupts =3D <5>; - - port@0 { - compatible =3D "ralink,eth-port"; - reg =3D <0>; - phy-handle =3D <&phy0>; - }; - -}; diff --git a/Documentation/devicetree/bindings/net/ralink,rt3050-esw.txt b/= Documentation/devicetree/bindings/net/ralink,rt3050-esw.txt deleted file mode 100644 index 87e315856efa..000000000000 --- a/Documentation/devicetree/bindings/net/ralink,rt3050-esw.txt +++ /dev/null @@ -1,30 +0,0 @@ -Ralink Fast Ethernet Embedded Switch -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D - -The ralink fast ethernet embedded switch can be found on Ralink and Mediat= ek -SoCs (RT3x5x, RT5350, MT76x8). - -Required properties: -- compatible: Should be "ralink,rt3050-esw" -- reg: Address and length of the register set for the device -- interrupts: Should contain the embedded switches interrupt -- resets: Should contain the embedded switches resets -- reset-names: Should contain the reset names "esw" - -Optional properties: -- ralink,portmap: can be used to choose if the default switch setup is - llllw or wllll -- ralink,led_polarity: override the active high/low settings of the leds - -Example: - -esw@10110000 { - compatible =3D "ralink,rt3050-esw"; - reg =3D <0x10110000 8000>; - - resets =3D <&rstctrl 23>; - reset-names =3D "esw"; - - interrupt-parent =3D <&intc>; - interrupts =3D <17>; -}; --=20 2.34.1 From nobody Sat Sep 21 16:54:32 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 From nobody Sat Sep 21 16:54:32 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 35EE1ECAAD3 for ; Wed, 14 Sep 2022 08:56:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230048AbiINI4L (ORCPT ); Wed, 14 Sep 2022 04:56:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbiINIzw (ORCPT ); Wed, 14 Sep 2022 04:55:52 -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 080E12E9FF; Wed, 14 Sep 2022 01:55:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663145720; cv=none; d=zohomail.com; s=zohoarc; b=agcuuF3mWDPU110LEP0IFmUH9nGR+C2iIgWwzM2wWCMZERVpiWXz6VLzjUessI3mNube8XYZoUnIkAJA7CY/IzAKBqDlZElD+py3qcIUAKTPQcpzp3hP+/kmBHlFQK1tZv8c5xdhzeocfNQ9qBoiZISvA4u8idtSWOqXUAOlgGc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1663145720; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=wLYBPygnnLliGka60fg9i7wMdcBY+h75qIvfjVPo2mU=; b=gpiJzQjAkZqcNt2oArpK+gsFedt42w82O/FZxK8ZiqU9uZJsMKUx0d93aNXAicmtccoWoLpQ24h/eJrbotGga22G5klxw2xCOWRk+rRTp+rjx56jHp8uIMCDP9G8c4CvyW4ePrTJ2C1ao7gjBVxsFwJEoeKk4mSU0R/vbvTWar4= 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=1663145720; 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=wLYBPygnnLliGka60fg9i7wMdcBY+h75qIvfjVPo2mU=; b=TEJhvi81a/KYLbwu0kFzkKEIfiekXzyiG4bPDssqGEQCB0k/3odwkaKonzPxPejv 22hh3n/txeb2QuAbBYAKPpucdPdYtEXaTK1Nm5mItnNF4EUiOwBPgvgZSxlXlayUFIW Hhu7tJzL/vpPplrPaLP0MqkPLSwgZ4bw9oX/llew= Received: from arinc9-PC.lan (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 1663145719219338.22706013659763; Wed, 14 Sep 2022 01:55:19 -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?= Subject: [PATCH 03/10] dt-bindings: net: dsa: mediatek,mt7530: expand gpio-controller description Date: Wed, 14 Sep 2022 11:54:44 +0300 Message-Id: <20220914085451.11723-4-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 Expand the description of the gpio-controller property to include the controllable pins of the MT7530 switch. The gpio-controller property is only used for the MT7530 switch. Therefore, invalidate it for the MT7531 switch. Signed-off-by: Ar=C4=B1n=C3=A7 =C3=9CNAL --- .../devicetree/bindings/net/dsa/mediatek,mt7530.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml= b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index 2c73d13adf14..3ec4fffec780 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -104,7 +104,14 @@ properties: gpio-controller: type: boolean description: - If defined, MT7530's LED controller will run on GPIO mode. + If defined, LED controller of the MT7530 switch will run on GPIO mod= e. + + There are 15 controllable pins. + port 0 LED 0..2 as GPIO 0..2 + port 1 LED 0..2 as GPIO 3..5 + port 2 LED 0..2 as GPIO 6..8 + port 3 LED 0..2 as GPIO 9..11 + port 4 LED 0..2 as GPIO 12..14 =20 "#interrupt-cells": const: 1 @@ -272,6 +279,7 @@ allOf: then: $ref: "#/$defs/mt7531-dsa-port" properties: + gpio-controller: false mediatek,mcm: false =20 - if: --=20 2.34.1 From nobody Sat Sep 21 16:54:32 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 AF087ECAAD8 for ; Wed, 14 Sep 2022 08:56:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229826AbiINI4H (ORCPT ); Wed, 14 Sep 2022 04:56:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229874AbiINIzw (ORCPT ); Wed, 14 Sep 2022 04:55:52 -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 DC09A6C75B; Wed, 14 Sep 2022 01:55:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663145726; cv=none; d=zohomail.com; s=zohoarc; b=ICKDQjUAhOLFVv/HjDOGzmAJz6nF18Dq9PkHoQt4pYdWNPez4NLWFh88k5jwCziRBSRdsCwZLvBnAL1ba/w/b4dxtYZxgPxUD2DkN72aZcjr835MlqGmR7lvXxpI4Ilvt1cm6bzpqsB949WMcBn/PLq0XLGwrp6P4HuwOJ5CiVg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1663145726; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=OKLAhyPIS7u1j1ZgI5worLlV8YgMFCXUQ3FS/Nhbktk=; b=X3Z9AKHQasC8oyW2Otbfa5qt27yEtJO0gz4lT/uOUHipUFG59BdIg3PuzUwDbvmhGmAnyX2CwuaOCbrqXimmlR1SChO7VkHcGptDX2SD+uZuBQxt2/jdhnpfRqYqvNp7TvQBn+O0J/vLbQmky0kP+jp+eql/AwtFk8BRupJRumU= 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=1663145726; 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=OKLAhyPIS7u1j1ZgI5worLlV8YgMFCXUQ3FS/Nhbktk=; b=QgbkSiplZPCP5/i+0PAkspRCysqPKZ/m76m0QSaJE6NKg9expeaAspAGyp45rwX+ 2foXHjCVmkXjsRVZezz6xN3Sn4SCILHrL6zjjACJPhOtea88jjf3RH0aVIEFt6t1Teh UBGgCG4R29+ZKBBd9VklQd144DIWYMT+0Q4WB/fE= Received: from arinc9-PC.lan (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 16631457251941006.247763449766; Wed, 14 Sep 2022 01:55:25 -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?= Subject: [PATCH 04/10] dt-bindings: memory: mt7621: add syscon as compatible string Date: Wed, 14 Sep 2022 11:54:45 +0300 Message-Id: <20220914085451.11723-5-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 Add syscon as a constant string on the compatible property as it's required for the SoC to work. Update the example accordingly. Fixes: 5278e4a181ff ("dt-bindings: memory: add binding for Mediatek's MT762= 1 SDRAM memory controller") Signed-off-by: Ar=C4=B1n=C3=A7 =C3=9CNAL --- .../bindings/memory-controllers/mediatek,mt7621-memc.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,= mt7621-memc.yaml b/Documentation/devicetree/bindings/memory-controllers/med= iatek,mt7621-memc.yaml index 85e02854f083..6ccdaf99c778 100644 --- a/Documentation/devicetree/bindings/memory-controllers/mediatek,mt7621-= memc.yaml +++ b/Documentation/devicetree/bindings/memory-controllers/mediatek,mt7621-= memc.yaml @@ -11,7 +11,9 @@ maintainers: =20 properties: compatible: - const: mediatek,mt7621-memc + items: + - const: mediatek,mt7621-memc + - const: syscon =20 reg: maxItems: 1 @@ -25,6 +27,6 @@ additionalProperties: false examples: - | memory-controller@5000 { - compatible =3D "mediatek,mt7621-memc"; + compatible =3D "mediatek,mt7621-memc", "syscon"; reg =3D <0x5000 0x1000>; }; --=20 2.34.1 From nobody Sat Sep 21 16:54:32 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 7D9A7ECAAD3 for ; Wed, 14 Sep 2022 08:56:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230083AbiINI4q (ORCPT ); Wed, 14 Sep 2022 04:56:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230107AbiINI4C (ORCPT ); Wed, 14 Sep 2022 04:56:02 -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 50DF1371AB; Wed, 14 Sep 2022 01:55:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663145733; cv=none; d=zohomail.com; s=zohoarc; b=AoSBTWqQ39jMdawJUMN6V+Cl0FF7bMWFRIG/oEatTajK1kuQv5lExZHNStFm2XkU+acTYJekrJWKSYKraA+UHM4mAItRFHuuGSwzIfUHmd8QL2y4CxcngLL0/fsQk12cDISrDhlZrky3R1AASXZDS8VCXBL4by+XYBWHRUlQIBo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1663145733; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=yAKjMq/uUK9WZ8CnisN9As4Pk+9tXhXvBVyYrH2ZjnQ=; b=RG+PoUpkaGGxECzyQrpf4ygLaoiqPxbkQMWDS91pZ36b32x929DxFmwNtL08kUmHtq7FXvbTKLODWN7fJXsUUnTCodomomy8IakRMthiGeUpP7xHIhMD9wdj2QXbDl4qwVafjQpbXNF2b5UEAyrlak+UuqbHBzI/+2bCM/tvGto= 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=1663145733; 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=yAKjMq/uUK9WZ8CnisN9As4Pk+9tXhXvBVyYrH2ZjnQ=; b=jfKnSJunLzTND9Hq/5TTo8MGc0iZZZwSXwE5/eMNAIoD5pVSpJfIXEnnA05CuGxW a44/hv0XiVKmkMl6jFeBs5c1s2LHOsFrnAsDhWv8AvEBnTRA94K5KlDYCY9/ltdBrcT eW7fUQqZPxMENUirNlVCXcRRWCl/y6lmCsfK7SSs= Received: from arinc9-PC.lan (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 1663145731156740.504015969723; Wed, 14 Sep 2022 01:55:31 -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?= Subject: [PATCH 05/10] mips: dts: ralink: mt7621: fix some dtc warnings Date: Wed, 14 Sep 2022 11:54:46 +0300 Message-Id: <20220914085451.11723-6-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 Fix the dtc warnings below. /cpus/cpu@0: failed to match any schema with compatible: ['mips,mips1004Kc'] /cpus/cpu@1: failed to match any schema with compatible: ['mips,mips1004Kc'] uartlite@c00: $nodename:0: 'uartlite@c00' does not match '^serial(@.*)?$' From schema: /home/arinc9/Documents/linux/Documentation/devicetree/binding= s/serial/8250.yaml uartlite@c00: Unevaluated properties are not allowed ('clock-names' was une= xpected) From schema: /home/arinc9/Documents/linux/Documentation/devicetree/binding= s/serial/8250.yaml sdhci@1e130000: $nodename:0: 'sdhci@1e130000' does not match '^mmc(@.*)?$' From schema: /home/arinc9/Documents/linux/Documentation/devicetree/binding= s/mmc/mtk-sd.yaml sdhci@1e130000: Unevaluated properties are not allowed ('bus-width', 'cap-m= mc-highspeed', 'cap-sd-highspeed', 'disable-wp', 'max-frequency', 'vmmc-sup= ply', 'vqmmc-supply' were unexpected) From schema: /home/arinc9/Documents/linux/Documentation/devicetree/binding= s/mmc/mtk-sd.yaml xhci@1e1c0000: $nodename:0: 'xhci@1e1c0000' does not match '^usb(@.*)?' From schema: /home/arinc9/Documents/linux/Documentation/devicetree/binding= s/usb/mediatek,mtk-xhci.yaml xhci@1e1c0000: compatible: ['mediatek,mt8173-xhci'] is too short From schema: /home/arinc9/Documents/linux/Documentation/devicetree/binding= s/usb/mediatek,mtk-xhci.yaml switch0@0: $nodename:0: 'switch0@0' does not match '^(ethernet-)?switch(@.*= )?$' From schema: /home/arinc9/Documents/linux/Documentation/devicetree/binding= s/net/dsa/mediatek,mt7530.yaml port@1: status:0: 'off' is not one of ['okay', 'disabled', 'reserved'] From schema: /home/arinc9/.local/lib/python3.10/site-packages/dtschema/sch= emas/dt-core.yaml port@2: status:0: 'off' is not one of ['okay', 'disabled', 'reserved'] From schema: /home/arinc9/.local/lib/python3.10/site-packages/dtschema/sch= emas/dt-core.yaml port@3: status:0: 'off' is not one of ['okay', 'disabled', 'reserved'] From schema: /home/arinc9/.local/lib/python3.10/site-packages/dtschema/sch= emas/dt-core.yaml - Remove "mips,mips1004Kc" compatible string from the cpu nodes. This doesn't exist anywhere. - Change "memc: syscon@5000" to "memc: memory-controller@5000". - Change "uartlite: uartlite@c00" to "serial0: serial@c00" and remove the aliases node. - Remove "clock-names" from the serial0 node. The property doesn't exist on the 8250.yaml schema. - Change "sdhci: sdhci@1e130000" to "mmc: mmc@1e130000". - Change "xhci: xhci@1e1c0000" to "usb: usb@1e1c0000". - Add "mediatek,mtk-xhci" as the second compatible string on the usb node. - Change "switch0: switch0@0" to "switch0: switch@0" - Change "off" to "disabled" for disabled nodes. Remaining warnings are caused by the lack of json-schema documentation. /cpuintc: failed to match any schema with compatible: ['mti,cpu-interrupt-c= ontroller'] /palmbus@1e000000/wdt@100: failed to match any schema with compatible: ['me= diatek,mt7621-wdt'] /palmbus@1e000000/i2c@900: failed to match any schema with compatible: ['me= diatek,mt7621-i2c'] /palmbus@1e000000/spi@b00: failed to match any schema with compatible: ['ra= link,mt7621-spi'] /ethernet@1e100000: failed to match any schema with compatible: ['mediatek,= mt7621-eth'] Signed-off-by: Ar=C4=B1n=C3=A7 =C3=9CNAL --- .../boot/dts/ralink/mt7621-gnubee-gb-pc1.dts | 2 +- .../boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 2 +- arch/mips/boot/dts/ralink/mt7621.dtsi | 32 +++++++------------ 3 files changed, 14 insertions(+), 22 deletions(-) diff --git a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts b/arch/mips= /boot/dts/ralink/mt7621-gnubee-gb-pc1.dts index 24eebc5a85b1..6ecb8165efe8 100644 --- a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts +++ b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts @@ -53,7 +53,7 @@ system { }; }; =20 -&sdhci { +&mmc { status =3D "okay"; }; =20 diff --git a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts b/arch/mips= /boot/dts/ralink/mt7621-gnubee-gb-pc2.dts index 34006e667780..2e534ea5bab7 100644 --- a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts +++ b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts @@ -37,7 +37,7 @@ key-reset { }; }; =20 -&sdhci { +&mmc { status =3D "okay"; }; =20 diff --git a/arch/mips/boot/dts/ralink/mt7621.dtsi b/arch/mips/boot/dts/ral= ink/mt7621.dtsi index ee46ace0bcc1..9302bdc04510 100644 --- a/arch/mips/boot/dts/ralink/mt7621.dtsi +++ b/arch/mips/boot/dts/ralink/mt7621.dtsi @@ -15,13 +15,11 @@ cpus { =20 cpu@0 { device_type =3D "cpu"; - compatible =3D "mips,mips1004Kc"; reg =3D <0>; }; =20 cpu@1 { device_type =3D "cpu"; - compatible =3D "mips,mips1004Kc"; reg =3D <1>; }; }; @@ -33,11 +31,6 @@ cpuintc: cpuintc { compatible =3D "mti,cpu-interrupt-controller"; }; =20 - aliases { - serial0 =3D &uartlite; - }; - - mmc_fixed_3v3: regulator-3v3 { compatible =3D "regulator-fixed"; regulator-name =3D "mmc_power"; @@ -110,17 +103,16 @@ i2c: i2c@900 { pinctrl-0 =3D <&i2c_pins>; }; =20 - memc: syscon@5000 { + memc: memory-controller@5000 { compatible =3D "mediatek,mt7621-memc", "syscon"; reg =3D <0x5000 0x1000>; }; =20 - uartlite: uartlite@c00 { + serial0: serial@c00 { compatible =3D "ns16550a"; reg =3D <0xc00 0x100>; =20 clocks =3D <&sysc MT7621_CLK_UART1>; - clock-names =3D "uart1"; =20 interrupt-parent =3D <&gic>; interrupts =3D ; @@ -236,7 +228,7 @@ pinmux { }; }; =20 - sdhci: sdhci@1e130000 { + mmc: mmc@1e130000 { status =3D "disabled"; =20 compatible =3D "mediatek,mt7620-mmc"; @@ -262,8 +254,8 @@ sdhci: sdhci@1e130000 { interrupts =3D ; }; =20 - xhci: xhci@1e1c0000 { - compatible =3D "mediatek,mt8173-xhci"; + usb: usb@1e1c0000 { + compatible =3D "mediatek,mt8173-xhci", "mediatek,mtk-xhci"; reg =3D <0x1e1c0000 0x1000 0x1e1d0700 0x0100>; reg-names =3D "mac", "ippc"; @@ -338,7 +330,7 @@ fixed-link { gmac1: mac@1 { compatible =3D "mediatek,eth-mac"; reg =3D <1>; - status =3D "off"; + status =3D "disabled"; phy-mode =3D "rgmii-rxid"; }; =20 @@ -346,7 +338,7 @@ mdio: mdio-bus { #address-cells =3D <1>; #size-cells =3D <0>; =20 - switch0: switch0@0 { + switch0: switch@0 { compatible =3D "mediatek,mt7621"; reg =3D <0>; mediatek,mcm; @@ -362,31 +354,31 @@ ports { #size-cells =3D <0>; =20 port@0 { - status =3D "off"; + status =3D "disabled"; reg =3D <0>; label =3D "lan0"; }; =20 port@1 { - status =3D "off"; + status =3D "disabled"; reg =3D <1>; label =3D "lan1"; }; =20 port@2 { - status =3D "off"; + status =3D "disabled"; reg =3D <2>; label =3D "lan2"; }; =20 port@3 { - status =3D "off"; + status =3D "disabled"; reg =3D <3>; label =3D "lan3"; }; =20 port@4 { - status =3D "off"; + status =3D "disabled"; reg =3D <4>; label =3D "lan4"; }; --=20 2.34.1 From nobody Sat Sep 21 16:54:32 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 89238ECAAD3 for ; Wed, 14 Sep 2022 08:57:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230119AbiINI5A (ORCPT ); Wed, 14 Sep 2022 04:57:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbiINI4n (ORCPT ); Wed, 14 Sep 2022 04:56:43 -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 E93F439B9B; Wed, 14 Sep 2022 01:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663145739; cv=none; d=zohomail.com; s=zohoarc; b=ltoEjcbZu+opUCeFag1Q3m7T+Wvgafb9HBaXi1x0kMcJXQCpqDkknwg/Sz+n4EDN5wBPEsYgwyiJtOuevJOU66maHNCz13IqUuQ+JDY9k3NfACIuZTkXDTatC1RzpRlpVvQobtJ/059fc1iMyKdTk832yVA1HwM2IKVc4oMoggQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1663145739; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=NobuUIDGzyuidvw+6ptTtuOVjxh1cmrEHK3JsUmEAlI=; b=D6YppVTMq1IKIFBBHO51zYCXPUDbmljIhtc+W+2ghJGl8pkjUgv+wE5s3Hjy8cPIBxA9p3WuObaZmRdPckABcjTYRWpadUxMMeet8PuSCymiOQFkt88lFFrBpmaeJcFlDJ5wqZ+mA7h9W2xtTmX+dKlEy8DJL48usAdJbWBubmo= 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=1663145739; 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=NobuUIDGzyuidvw+6ptTtuOVjxh1cmrEHK3JsUmEAlI=; b=d9d6wRiqyFYSNwC13megxI0ulVgIr/OK5BuklH6+pELdxYqUZ6cw9DAjGb7ICG/i KDsGKbl2SDDvS3/ruCcef+IFCpyeZNAAfUUXadlJdi7ro2hwBxoxrjQT2So9ZKVLzB4 +O+sE0g7VcVBW71Y3AaliQylY+wE21VxB7NIswYg= Received: from arinc9-PC.lan (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 1663145736632721.7554876765212; Wed, 14 Sep 2022 01:55:36 -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?= Subject: [PATCH 06/10] mips: dts: ralink: mt7621: remove interrupt-parent from switch node Date: Wed, 14 Sep 2022 11:54:47 +0300 Message-Id: <20220914085451.11723-7-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 The interrupt-parent property is inherited from the ethernet node as it's a parent node of the switch node. Therefore, remove the unnecessary interrupt-parent property from the switch node. Signed-off-by: Ar=C4=B1n=C3=A7 =C3=9CNAL --- arch/mips/boot/dts/ralink/mt7621.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/mips/boot/dts/ralink/mt7621.dtsi b/arch/mips/boot/dts/ral= ink/mt7621.dtsi index 9302bdc04510..e9203fec3fdf 100644 --- a/arch/mips/boot/dts/ralink/mt7621.dtsi +++ b/arch/mips/boot/dts/ralink/mt7621.dtsi @@ -346,7 +346,6 @@ switch0: switch@0 { reset-names =3D "mcm"; interrupt-controller; #interrupt-cells =3D <1>; - interrupt-parent =3D <&gic>; interrupts =3D ; =20 ports { --=20 2.34.1 From nobody Sat Sep 21 16:54:32 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 16D11C6FA89 for ; Wed, 14 Sep 2022 08:57:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230302AbiINI5E (ORCPT ); Wed, 14 Sep 2022 04:57:04 -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 S230084AbiINI4p (ORCPT ); Wed, 14 Sep 2022 04:56:45 -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 0B53C74DCC; Wed, 14 Sep 2022 01:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663145743; cv=none; d=zohomail.com; s=zohoarc; b=GjnD/y1nylC/ssjzFpVpPgdfXJVt4IOmCh4dphXfnj1utdaw0Y5tZeUvKcrkoWrnzqtUibI/Z6DQwrNPZCPGHbvaN9XGc86T4cFIkAWjFXiWPyaR9x8R4n3xkKYD9rJ6/4//9APerL8OAL7gJDZwfqrUUUYyYBTw+Ni1EtB6rcE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1663145743; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=R4ALxyq+RBO+GV4tDQQ/4ssUEgJ4SrRXCbUkyXnabqQ=; b=ZzI6c/QZK60dvXNtj+mJtMSP5z4Rl4zsYvPDN7MZo/slVfN4cCXcT0VkeIyUpwzn8PR+EMpIQhUTjI4ruzv+6rHvnLP6UnzHQ/eg0FxCvRVWT4nNWTpEHlt89rgg630T3bOj1UeqDs99UhLrMqD8x2L3bOIKTClutF2COiAU2k8= 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=1663145743; 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=R4ALxyq+RBO+GV4tDQQ/4ssUEgJ4SrRXCbUkyXnabqQ=; b=VPs+Zc6RO2GsjBVWKHAqCOqXgRK8rB77QUJ289Xy0zX7RZhXSdVqAE7EPTI9iGKd dfO8w//p0+cgI+FKhViuOr2FcwElL5zCRdQsfIIKK20EhWEmK+LP9kE0hQ9D9jHiupW p0+W9Iaz/80cLz8eLrvuf3G1eAg4EbPtQ7WVywaI= Received: from arinc9-PC.lan (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 1663145742438887.9640433477236; Wed, 14 Sep 2022 01:55:42 -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?= Subject: [PATCH 07/10] mips: dts: ralink: mt7621: change phy-mode of gmac1 to rgmii Date: Wed, 14 Sep 2022 11:54:48 +0300 Message-Id: <20220914085451.11723-8-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 Change phy-mode of gmac1 to rgmii on mt7621.dtsi. Same code path is followed for delayed rgmii and rgmii phy-mode on mtk_eth_soc.c. Signed-off-by: Ar=C4=B1n=C3=A7 =C3=9CNAL --- arch/mips/boot/dts/ralink/mt7621.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/boot/dts/ralink/mt7621.dtsi b/arch/mips/boot/dts/ral= ink/mt7621.dtsi index e9203fec3fdf..50799bb1cc5d 100644 --- a/arch/mips/boot/dts/ralink/mt7621.dtsi +++ b/arch/mips/boot/dts/ralink/mt7621.dtsi @@ -331,7 +331,7 @@ gmac1: mac@1 { compatible =3D "mediatek,eth-mac"; reg =3D <1>; status =3D "disabled"; - phy-mode =3D "rgmii-rxid"; + phy-mode =3D "rgmii"; }; =20 mdio: mdio-bus { --=20 2.34.1 From nobody Sat Sep 21 16:54:32 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 715C0ECAAD3 for ; Wed, 14 Sep 2022 08:57:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230321AbiINI52 (ORCPT ); Wed, 14 Sep 2022 04:57:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230294AbiINI5A (ORCPT ); Wed, 14 Sep 2022 04:57:00 -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 BB10D74E18; Wed, 14 Sep 2022 01:56:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663145749; cv=none; d=zohomail.com; s=zohoarc; b=mHfjN647zj3jluXInpvQq24rjh9/t1GQPh7RyL8u36AgIbtLxoLOJow5agnK2dtoSV88w8Sh8JJYDQLCMkIHcecxX7+WXDemC/urtjR5qxdzRCrq6fY/K18GMMywNAwk0dwkD3nBoivERY8vKHRNeMJWaBqOYaMhWqLfc8Y+ItA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1663145749; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=7DlB2p/FOQtGMjYXmLdhrWgW0oQFWSLLmhIHeOWpKoY=; b=KQEcwTkNW58NM6GNKLY9wPOV3t6QJHYtOvotC0owouLUivEKfJO4R7fxEfzbqsZAwx2nrUEs2pcfrWYu/7XSQAu6IUemBPB8T+FKGBWdpflAYwHcS8L2NeQzM5MAGZ8UE9yMNNcOHn7+eYHNOjPEY7K5b13h3Ce/t7o4lh6cvww= 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=1663145749; 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=7DlB2p/FOQtGMjYXmLdhrWgW0oQFWSLLmhIHeOWpKoY=; b=eTcBj5/w6kgPIPJdO6DazqtUoSSzpPtGfckUfcqre1VI/c14AiTz0+IL9tIIWZCl TxVckcqDKleqZlmZCP0sPeMsqKVZsFPzG8iQuU6iyyXZT0NmougZuBhtJZhrWLlBuFe s3JGPmFvlPmK85JCBhhKj+ATaEt8NXIEwHbo3Qvg= Received: from arinc9-PC.lan (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 1663145748228839.2714814543557; Wed, 14 Sep 2022 01:55:48 -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 08/10] mips: dts: ralink: mt7621: change mt7530 switch address Date: Wed, 14 Sep 2022 11:54:49 +0300 Message-Id: <20220914085451.11723-9-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 --- arch/mips/boot/dts/ralink/mt7621.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/boot/dts/ralink/mt7621.dtsi b/arch/mips/boot/dts/ral= ink/mt7621.dtsi index 50799bb1cc5d..206078bd2284 100644 --- a/arch/mips/boot/dts/ralink/mt7621.dtsi +++ b/arch/mips/boot/dts/ralink/mt7621.dtsi @@ -338,9 +338,9 @@ mdio: mdio-bus { #address-cells =3D <1>; #size-cells =3D <0>; =20 - switch0: switch@0 { + switch0: switch@1f { compatible =3D "mediatek,mt7621"; - reg =3D <0>; + reg =3D <0x1f>; mediatek,mcm; resets =3D <&sysc MT7621_RST_MCM>; reset-names =3D "mcm"; --=20 2.34.1 From nobody Sat Sep 21 16:54:32 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 21B0AECAAD8 for ; Wed, 14 Sep 2022 08:57:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230298AbiINI5c (ORCPT ); Wed, 14 Sep 2022 04:57:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230113AbiINI5A (ORCPT ); Wed, 14 Sep 2022 04:57:00 -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 BBCB2754B1; Wed, 14 Sep 2022 01:56:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663145755; cv=none; d=zohomail.com; s=zohoarc; b=drNCMGnpaC1O37wVgp0Xcj2fLvoJG6WtISIPFVBgUFu+EfM7j6kmXmKSPDt9tOP7d5W1LG0XWaDQhnB8Zez74AanYcZZ4bhHl09kCF/FUuCJt5/a/DDyHbFV863D+b2Lx6YR7e1EaSeHXywU8IMUF6z8GmTmEb0A4gWrIjfA6V8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1663145755; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=cN/vVpd4kMo1dSKFcVUlYwkahGokSNXVTYI2UGNTrT8=; b=S+WXaArXB6gBrMvUlgGZhNILYDWedLz6iofh0M4Uf8E97EI0VP5TlIm7NjRiYlaozIYzWkQuGXE1lzlLPJyKllq4RZaCFGLILkmVOgd7vb2tX1jWjfXlKEz9ydkm/UmI0mHUpk5tLB5mp9cnwEqrKNByu4JQ4juB0ET9A3kR3j4= 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=1663145755; 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=cN/vVpd4kMo1dSKFcVUlYwkahGokSNXVTYI2UGNTrT8=; b=MdOzQnoHOS3Cp0dljo2jMIBss584fLWC2inX5ArH+RWOhjOj1BzvLoaxrcMtdsGz yHPd3XapxmBU465Ndd1iBcmr1CO2Kv/U4y6ZoGnWhnd9NQ2PkzHeRdYFTy3zl58dBq5 oGEoyrvnhfljUy3e9InHFmD0O7Kz4EUERk7tgWds= Received: from arinc9-PC.lan (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 1663145753702140.0435409651668; Wed, 14 Sep 2022 01:55:53 -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?= Subject: [PATCH 09/10] mips: dts: ralink: mt7621: fix external phy on GB-PC2 Date: Wed, 14 Sep 2022 11:54:50 +0300 Message-Id: <20220914085451.11723-10-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 The address of the external phy on the mdio bus is 5. Update the devicetree for GB-PC2 accordingly. Fixes: 5bc148649cf3 ("staging: mt7621-dts: fix GB-PC2 devicetree") Signed-off-by: Ar=C4=B1n=C3=A7 =C3=9CNAL --- arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts b/arch/mips= /boot/dts/ralink/mt7621-gnubee-gb-pc2.dts index 2e534ea5bab7..5f52193a4c37 100644 --- a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts +++ b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts @@ -83,12 +83,12 @@ &pcie { =20 &gmac1 { status =3D "okay"; - phy-handle =3D <ðphy7>; + phy-handle =3D <ðphy5>; }; =20 &mdio { - ethphy7: ethernet-phy@7 { - reg =3D <7>; + ethphy5: ethernet-phy@5 { + reg =3D <5>; phy-mode =3D "rgmii-rxid"; }; }; --=20 2.34.1 From nobody Sat Sep 21 16:54:32 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 66475C6FA89 for ; Wed, 14 Sep 2022 08:57:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230229AbiINI5p (ORCPT ); Wed, 14 Sep 2022 04:57:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230126AbiINI5P (ORCPT ); Wed, 14 Sep 2022 04:57:15 -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 C3B3E63F0F; Wed, 14 Sep 2022 01:56:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663145761; cv=none; d=zohomail.com; s=zohoarc; b=nZqifLZ/aXwKwsRNtbTiOD0tRfbk/Jo2ZiU+Ara/YqJ+GtgHiTANuipj4valKISwtuFoObgJxnvDST9IastTACE8w6j1ItD9TcpsCccIhYw3ozBCI/NI31y3uYmWLrIFBB8TefS2l25FXX/iiyd5JOgnp6AJEneVoUrajoqQ3OE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1663145761; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=OYuadvYwRoufJELqxg3IBnXQhwEEDyuwwHMx2BKxeC4=; b=CS2h+QmHaYqWaBTeWLeMsIShjn3h0TKJ2RnK79J2WkMVGuyw5NQOFxbQcsHjnYx+er73fwBgW/4n/cRTxvUOj8KtruApup9l1GL66RZ8p2Yi+yrJkCgOaSNkxnHttgwwaBN/fUaNyjyxGpGKhXa+gPbmbthba55dPb8nDvny8KM= 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=1663145761; 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=OYuadvYwRoufJELqxg3IBnXQhwEEDyuwwHMx2BKxeC4=; b=OMlMOcK9l+h0geJ+/xhKCHDTFQU2x8tACsSPg/voz8Aq9/9JjDK9KRFH32MzLzrs LI1f4ljxr5eFofm3e86RPKrskYI0Qzg6hMl4JFlg4RxajtRdGTX8vYJcR+qZ8AgAISw IylcbphHclwU1aWTPrDcpXGlkFVCw4RRGYEtwE0Q= Received: from arinc9-PC.lan (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 1663145759484287.7612353661906; Wed, 14 Sep 2022 01:55:59 -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?= , Petr Louda Subject: [PATCH 10/10] mips: dts: ralink: mt7621: add GB-PC2 LEDs Date: Wed, 14 Sep 2022 11:54:51 +0300 Message-Id: <20220914085451.11723-11-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 Add the missing LEDs for GB-PC2. The ethblack-green, ethblue-green, power and system LEDs weren't added previously, because they don't exist on the device schematics. Tests on a GB-PC2 by me and Petr proved otherwise. The i2c bus cannot be used on GB-PC2 as its pins are wired to LEDs instead, and GB-PC1 does not use it. Therefore, do not enable it on both devices. Link: https://github.com/ngiger/GnuBee_Docs/blob/master/GB-PCx/Documents/GB= -PC2_V1.1_schematic.pdf Tested-by: Petr Louda Signed-off-by: Ar=C4=B1n=C3=A7 =C3=9CNAL --- .../boot/dts/ralink/mt7621-gnubee-gb-pc1.dts | 6 --- .../boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 42 ++++++++++++++++--- 2 files changed, 36 insertions(+), 12 deletions(-) diff --git a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts b/arch/mips= /boot/dts/ralink/mt7621-gnubee-gb-pc1.dts index 6ecb8165efe8..0128bd8fa7ed 100644 --- a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts +++ b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts @@ -20,12 +20,6 @@ chosen { bootargs =3D "console=3DttyS0,57600"; }; =20 - palmbus: palmbus@1e000000 { - i2c@900 { - status =3D "okay"; - }; - }; - gpio-keys { compatible =3D "gpio-keys"; =20 diff --git a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts b/arch/mips= /boot/dts/ralink/mt7621-gnubee-gb-pc2.dts index 5f52193a4c37..7515555388ae 100644 --- a/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts +++ b/arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts @@ -20,12 +20,6 @@ chosen { bootargs =3D "console=3DttyS0,57600"; }; =20 - palmbus: palmbus@1e000000 { - i2c@900 { - status =3D "okay"; - }; - }; - gpio-keys { compatible =3D "gpio-keys"; =20 @@ -35,6 +29,42 @@ key-reset { linux,code =3D ; }; }; + + gpio-leds { + compatible =3D "gpio-leds"; + + ethblack-green { + label =3D "green:ethblack"; + gpios =3D <&gpio 3 GPIO_ACTIVE_LOW>; + }; + + ethblue-green { + label =3D "green:ethblue"; + gpios =3D <&gpio 4 GPIO_ACTIVE_LOW>; + }; + + ethyellow-green { + label =3D "green:ethyellow"; + gpios =3D <&gpio 15 GPIO_ACTIVE_LOW>; + }; + + ethyellow-orange { + label =3D "orange:ethyellow"; + gpios =3D <&gpio 13 GPIO_ACTIVE_LOW>; + }; + + power { + label =3D "green:power"; + gpios =3D <&gpio 6 GPIO_ACTIVE_LOW>; + linux,default-trigger =3D "default-on"; + }; + + system { + label =3D "green:system"; + gpios =3D <&gpio 8 GPIO_ACTIVE_LOW>; + linux,default-trigger =3D "disk-activity"; + }; + }; }; =20 &mmc { --=20 2.34.1