From patchwork Thu Apr 6 08:01:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 13202984 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 81EE4C76196 for ; Thu, 6 Apr 2023 08:03:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=bHBCdMFCKFXCyx/jegVfqCTNsWn0V8a72Losip00K1o=; b=CeTpEVaFE8RxdU fKQRJL+qkvH8St7mfzDAxqQfESrGFeb1rS+8ZYAXsKsr+5u0/u5MVJNWPJcsjFtjB8CmzAskLaEo6 TIsANq81KBiEwQMyTrLKVWE9rfAY9QUMX/1tfsIfmJT9I3KGpR2anTqCmgm/MHtXY65T6F8u6U4Vk DsIPn5yeY+C2mykwgR0NLiD7jmyBPSqJnaVayTDfi12dkb5MGfA6uFHxsvnHT6Re/jvCK4K+QGkR4 c4T/vKv1maI9Ban7KpuE0YvrHOLxo0pWp6xacGsk/gXzZhvmg1JUn2pQOiWaCCPMvDw6ajQpTOzqk /n2OoyfqZeIOQ0M3CJ6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pkKZU-006gaH-38; Thu, 06 Apr 2023 08:02:16 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pkKZR-006gZb-37; Thu, 06 Apr 2023 08:02:15 +0000 Received: by mail-wm1-x330.google.com with SMTP id m6-20020a05600c3b0600b003ee6e324b19so23297519wms.1; Thu, 06 Apr 2023 01:02:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680768132; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ICl5yXhMxeO2u+7yTPtP7Jl3u4X7NhJCydXnMv94CdE=; b=it8N5epu/hXZbHWuT1hr22stKIGl0pvvUn+gedunaw90tc0hnlroPv6UR0rKExvyi+ /5HNW3X0Ey7HHnOjoxPAscBmzuT17opVmLbvKHPbxAl711L9R07V1KEsXUGg5vV06HuO bZ5kFMF6w8bZZU7YwUoTdeLRR+lD6jPKd+bCJ0Qr9B2qnZCTYFvuKmQuq7v9J6HYVtc8 qkmBat7UPxpQ5MPXBkDfZJG9DUV0RANmcXSYDpJEtxYvai9w9ZpVQtUP5ezdt5QNVT8x JJDinsYCQ0vLm1/73RGpI1qYadaH2rbnLSSsb6axGuq/3jwX5U27iIUFZhCW0uqGJmsL jPxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680768132; 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=ICl5yXhMxeO2u+7yTPtP7Jl3u4X7NhJCydXnMv94CdE=; b=YXXwgzbihKV3M/M+b9r+3iMk9kEwXF8K27jvmLL20z66GCV0gL7NAFJ5NMomVeJI0T YdOXhq804yQqrnibKLF6TxGgsZGfZvRU/ws29BI8GCeWXGoOAxF24CdjHLta74/WGjNm bdMSFV1QeKiYVqqYgA/LLkShvLGDnA4/q5v06NiC6isEjojTOwBAdJ1Zd44yU7FHEHkU yXpFvEJEkR2/cwu1+ubjjtp2cfvE7cVX+dNDQvj4fm6EM41+NOCZRbg9qEXY+4AoLYNI gsSjUfnzfNC/AdAjmD+gKduAvwaiqWBkeULWhNhVH4addjR4sroXKpw50M8kSu8gXSDp 58gA== X-Gm-Message-State: AAQBX9cEfexL9JANeA/UZD6hOypZqFZQAQFBjuweNKiRJdIHT9gu2w4o pecRyrSvctNJoQ9To3zitXo= X-Google-Smtp-Source: AKy350a/F/lBPdvFizmroFVH3fzHbWGMlo4ft4HctNyHW+b1LaJS8K92j1zaDn1g279tfeuONBh+TA== X-Received: by 2002:a7b:ca47:0:b0:3ed:1f9c:af12 with SMTP id m7-20020a7bca47000000b003ed1f9caf12mr6967575wml.22.1680768131483; Thu, 06 Apr 2023 01:02:11 -0700 (PDT) Received: from arinc9-PC.lan ([149.91.1.15]) by smtp.gmail.com with ESMTPSA id s9-20020a7bc389000000b003ef64affec7sm826993wmj.22.2023.04.06.01.02.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 01:02:10 -0700 (PDT) From: arinc9.unal@gmail.com X-Google-Original-From: arinc.unal@arinc9.com To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang Cc: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= , erkin.bozoglu@xeront.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 1/7] dt-bindings: net: dsa: mediatek,mt7530: correct brand name Date: Thu, 6 Apr 2023 11:01:35 +0300 Message-Id: <20230406080141.22924-1-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230406_010214_006324_FA78865F X-CRM114-Status: GOOD ( 11.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arınç ÜNAL The brand name is MediaTek, change it to that. Signed-off-by: Arınç ÜNAL Acked-by: Daniel Golle Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index e532c6b795f4..6df995478275 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -4,7 +4,7 @@ $id: http://devicetree.org/schemas/net/dsa/mediatek,mt7530.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Mediatek MT7530 and MT7531 Ethernet Switches +title: MediaTek MT7530 and MT7531 Ethernet Switches maintainers: - Arınç ÜNAL From patchwork Thu Apr 6 08:01:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 13202983 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7D2F8C77B6E for ; Thu, 6 Apr 2023 08:03:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eZGUqtLyjdOcj6iNaTvw4OW9ERXKiqlwfOfL1DtnwFw=; b=UMY9vj+lfnN0K4 pBFhH8toLGSo3C1daXaY6PNAk67D98UUdFw3hxRynGfsc/OIG4ow3z6RqVvab82uzZpuStYlpyFVG RpQsLboe3/5U8OAg28wVu/Li6lxXO+I1yboJN988+PGSPlQ2kABKrlk+z2hYeABSL1z6EcrRxNuOA zHinZq5rTz7WMiIzfdF1uQvcMwlP/5a2I5Md3xHDopszdTv73dy+2V7vEkGQ0k7kdH3KGowMHsrLS 5pSAOqC4rEsnu9pwYaf//08APZfgMrtEVmnSIA0z9T4qL+nDto0fX3lLeqcndmJPUk7cbbO7Cqklt lPUsW1XKYjkQU05fmtNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pkKZX-006gbP-1W; Thu, 06 Apr 2023 08:02:19 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pkKZU-006gZp-1Z; Thu, 06 Apr 2023 08:02:17 +0000 Received: by mail-wm1-x329.google.com with SMTP id m8so11232928wmq.5; Thu, 06 Apr 2023 01:02:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680768134; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Qh7/8q6ObYiJ8rFG7u0fNoXDSPJQ6AW2HK/HF1hPhps=; b=BnHWav7djfJ0AnrN+7BSjt2yjCiUpxrN2syTjNZ6vdv3213viKA4wHb0Vcqzj5m4Vd SwmooCnH0nPxRf8nXu6VPgOH8Vkh3oAiDfMYToZTTX5XC7uF0uvkGCe2xaVHsLHCVT6q kgYN5DVuxR0T6LpqVa17kk8lND1sgA48HGPnPdB41B4abfnbrHfpMxCwUBwBLrJmimCT kJ/6h8yIFb1oxz7P7VBJnrJfEqRHJibSQGtcMNuAoaKMIG3DHSLhICxP6j0YK216xu4t DePFP7rcsrsb8/K5H8jtVrJgcXibo0BUFKvmQMZNQZPsSAVmhC5xyQiE8ePgxaU7MZn6 tNtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680768134; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Qh7/8q6ObYiJ8rFG7u0fNoXDSPJQ6AW2HK/HF1hPhps=; b=ZEwLJEVo8LJzGhFHC8LdNMSTqtwBLIVLDwMexoBfDOBlDkZ9O42J4vJP6Mq78HUs0A IYkwDI5YMsPCjdMGnfU11LkIVuPVa2dKhNP8PQk0zIwG/lwIFAbDHMKtHidEEvPICpCJ PxHe9t6bNqK25woXBxVlXf0cBb94ZdXkJ93UKpPyPB0xbAIvyyyZQzESoPuJv++QkZPT Qbf3crq2GTCWsLS6Jdc4WYkfusf5xG6bjznCT04ktk8hdOA/UrjuSdcIiaMFFhzrxBbo 8zDSKz10iMLgZGmZir/0vOkIbGgCohOFqBYi1wch434C3A80PjqjCrPY3tbZMfXj33bf y1xQ== X-Gm-Message-State: AAQBX9e91Md1akqXzH7KNO6rQDpWiKGFuqpBy5GXd6p8G//c9mDZhUTH uV7feliqssybg6fs5MBkEQE= X-Google-Smtp-Source: AKy350Z8BUntUGgaUZ0JsYY0YWX6eYpdtEuArg2Rn3T2ll8NM3bGUndFU79f26oyoEzymFlcIcppzA== X-Received: by 2002:a05:600c:2312:b0:3ef:6396:d9c8 with SMTP id 18-20020a05600c231200b003ef6396d9c8mr6317377wmo.5.1680768134079; Thu, 06 Apr 2023 01:02:14 -0700 (PDT) Received: from arinc9-PC.lan ([149.91.1.15]) by smtp.gmail.com with ESMTPSA id s9-20020a7bc389000000b003ef64affec7sm826993wmj.22.2023.04.06.01.02.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 01:02:13 -0700 (PDT) From: arinc9.unal@gmail.com X-Google-Original-From: arinc.unal@arinc9.com To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang Cc: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= , erkin.bozoglu@xeront.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 2/7] dt-bindings: net: dsa: mediatek,mt7530: improve MCM and MT7988 information Date: Thu, 6 Apr 2023 11:01:36 +0300 Message-Id: <20230406080141.22924-2-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230406080141.22924-1-arinc.unal@arinc9.com> References: <20230406080141.22924-1-arinc.unal@arinc9.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230406_010216_523150_DF4B533B X-CRM114-Status: GOOD ( 14.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arınç ÜNAL Improve the description of the schema. The MT7620 SoCs described are not part of the multi-chip module but rather built into the SoC. Mention the MT7530 MMIO driver not supporting them. Move information for the switch on the MT7988 SoC below MT7531, and improve it. List maintainers in alphabetical order by first name. Signed-off-by: Arınç ÜNAL Acked-by: Daniel Golle Acked-by: Krzysztof Kozlowski --- .../bindings/net/dsa/mediatek,mt7530.yaml | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index 6df995478275..7045a98d9593 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -8,29 +8,30 @@ title: MediaTek MT7530 and MT7531 Ethernet Switches maintainers: - Arınç ÜNAL + - Daniel Golle - Landen Chao - DENG Qingfang - Sean Wang - - Daniel Golle description: | - There are three versions of MT7530, standalone, in a multi-chip module and - built-into a SoC. + There are three versions of MT7530, standalone, in a multi-chip module, and + built into an SoC. - MT7530 is a part of the multi-chip module in MT7620AN, MT7620DA, MT7620DAN, - MT7620NN, MT7621AT, MT7621DAT, MT7621ST and MT7623AI SoCs. - - The MT7988 SoC comes with a built-in switch similar to MT7531 as well as four - Gigabit Ethernet PHYs. The switch registers are directly mapped into the SoC's - memory map rather than using MDIO. The switch got an internally connected 10G - CPU port and 4 user ports connected to the built-in Gigabit Ethernet PHYs. + MT7530 is a part of the multi-chip module in MT7621AT, MT7621DAT, MT7621ST and + MT7623AI SoCs. MT7530 in MT7620AN, MT7620DA, MT7620DAN and MT7620NN SoCs has got 10/100 PHYs - and the switch registers are directly mapped into SoC's memory map rather than - using MDIO. The DSA driver currently doesn't support MT7620 variants. + and the switch registers are directly mapped into the SoC's memory map rather + than using MDIO. The MT7530 MMIO driver currently doesn't support these SoCs. There is only the standalone version of MT7531. + The MT7988 SoC comes with a built-in switch with four Gigabit Ethernet PHYs. + The characteristics of the switch is similar to MT7531. The switch registers + are directly mapped into the SoC's memory map rather than using MDIO. The + switch has got an internally connected 10G CPU port and 4 user ports connected + to the built-in Gigabit Ethernet PHYs. + Port 5 on MT7530 has got various ways of configuration: - Port 5 can be used as a CPU port. From patchwork Thu Apr 6 08:01:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 13202980 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9544AC76196 for ; Thu, 6 Apr 2023 08:03:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WX2pg15xRa9kWEstS1T/sr1Uk5/BRT+TewjuJ6rFqm0=; b=3su1J0BNNUOJ8P RDVecY5bLbTEq+alXCJqibWaFHBMFP2ve6MdxsZI+oUDXh1zRdsQNPg/yeYqugQmrZMrMX5SXQROb xftTHiebHF2DVq1sl791l8S7sOzNJpqZmBrVtrOmReWz2Vv8gVh4jiIjPTUgLo0CATRCM6cZjWcIG 2SEqVeBIYK3dvqkiVMzFmxWgaTE/XF9U/BbHqwHPIvfHZT283bxoXPLBusJA3T2XIxOxadO481Y38 u9aagEfKKqxSSuhPWZGUummCt+cmQeemlHGBznF6s/dtKjehHqHqBC2zQhjnQaVqzZuTUmlwLYqz6 iJSzWj+Yih7e0HOphJ6A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pkKZa-006gcY-06; Thu, 06 Apr 2023 08:02:22 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pkKZW-006gaM-33; Thu, 06 Apr 2023 08:02:20 +0000 Received: by mail-wm1-x331.google.com with SMTP id l15-20020a05600c4f0f00b003ef6d684102so19759778wmq.3; Thu, 06 Apr 2023 01:02:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680768137; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LCcdE7dUEXb8lwbE7KvuyXGuIt74Tuf6bSVVO3NCHnI=; b=UrCyNSmLCpUhTtLbClX53/JZ14Vonr35xOfoaooPfPxC6OfEPYPGvjEHfkOA+OJ4Ro QjpW/sVm/Q8YC4uCHfg8yljsqJw+73p4zoG0ywI4JgYqanIYdzRc9IQc//NZ59pZ2GVd L5xPLrXXu9KO3Yxu5sPlMAYtX9NzPZKZXaNGEw+lq756gkwFjKk94xE4xVBRLMeVrM19 KzguntSeG6P7x2VggjkcNbi2gLbDD2czRaKrPICtTNgf5XwWWA3roZPgse6qNvN66l3r uI9bOAnap95CvaNnKSfiYcVVUyndPoC+kGXBiARbHBU9VzqAPP6v2V9maP5tTSeg0v/5 74jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680768137; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LCcdE7dUEXb8lwbE7KvuyXGuIt74Tuf6bSVVO3NCHnI=; b=ocvJAr4UGrV+EYhmkV8p7BkMwF2pXdo2wTrSQjf2WLYL0+zYvizE3Y2xX6zhx0/w5h Uo04ykFnpkDOOa0p/sG7tUKy5p3w949QwRCkT98MnCW7bGaR+J964kw/hhl10ONhIiI8 OsODnZBpmZkeakH5FxuJjldSg5dIlu4gzw9ngReEyB1T/ld2SUjJtlNqUA6hJ+0f7xga 87aen0nKzWM4Qh034Pmw8Q6Fjoc77AhLhyg6EgFNa9R214igOovea5f16QFlC/ckmScO wJ1LjA3M0UHeBoMuIFxFCAWvV9SrnCPn/3bhZqkjYJvY0Wfv7UJHFcBSog98yrNc17D0 cxKg== X-Gm-Message-State: AAQBX9d6CEn7mwbJGblNA+Hig3D90MdRl8BAzAOzyMh+ILLbn6CUPo9f /ZmI8SFiAldDaSqE8K+Lt44= X-Google-Smtp-Source: AKy350asArPyeyaBI5v416dwhtFXcF3RCqZCSobCIiySV4LcN5vzjJwxz0eGo4Fa58lOsn2mzDPf1A== X-Received: by 2002:a7b:c416:0:b0:3ee:6d55:8b73 with SMTP id k22-20020a7bc416000000b003ee6d558b73mr6893176wmi.29.1680768136558; Thu, 06 Apr 2023 01:02:16 -0700 (PDT) Received: from arinc9-PC.lan ([149.91.1.15]) by smtp.gmail.com with ESMTPSA id s9-20020a7bc389000000b003ef64affec7sm826993wmj.22.2023.04.06.01.02.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 01:02:15 -0700 (PDT) From: arinc9.unal@gmail.com X-Google-Original-From: arinc.unal@arinc9.com To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang Cc: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= , erkin.bozoglu@xeront.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 3/7] dt-bindings: net: dsa: mediatek,mt7530: add port bindings for MT7988 Date: Thu, 6 Apr 2023 11:01:37 +0300 Message-Id: <20230406080141.22924-3-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230406080141.22924-1-arinc.unal@arinc9.com> References: <20230406080141.22924-1-arinc.unal@arinc9.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230406_010218_983937_9652E0A2 X-CRM114-Status: GOOD ( 13.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arınç ÜNAL The switch on MT7988 has got only port 6 as a CPU port. The only phy-mode to be used is internal. Add this. Some bindings are incorrect for this switch now, so move them to more specific places. Address the incorrect information of which ports can be used as a user port. Any port can be used as a user port. Signed-off-by: Arınç ÜNAL Acked-by: Daniel Golle --- .../bindings/net/dsa/mediatek,mt7530.yaml | 63 ++++++++++++++----- 1 file changed, 46 insertions(+), 17 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index 7045a98d9593..605888ce2bc6 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -160,22 +160,6 @@ patternProperties: "^(ethernet-)?port@[0-9]+$": type: object - properties: - reg: - description: - Port address described must be 5 or 6 for CPU port and from 0 to 5 - for user ports. - - allOf: - - if: - required: [ ethernet ] - then: - properties: - reg: - enum: - - 5 - - 6 - required: - compatible - reg @@ -186,9 +170,21 @@ $defs: "^(ethernet-)?ports$": patternProperties: "^(ethernet-)?port@[0-9]+$": + properties: + reg: + description: + Port address described must be 5 or 6 for the CPU port. User + ports can be 0 to 6. + if: required: [ ethernet ] then: + properties: + reg: + enum: + - 5 + - 6 + if: properties: reg: @@ -212,9 +208,21 @@ $defs: "^(ethernet-)?ports$": patternProperties: "^(ethernet-)?port@[0-9]+$": + properties: + reg: + description: + Port address described must be 5 or 6 for the CPU port. User + ports can be 0 to 6. + if: required: [ ethernet ] then: + properties: + reg: + enum: + - 5 + - 6 + if: properties: reg: @@ -235,6 +243,27 @@ $defs: - 2500base-x - sgmii + mt7988-dsa-port: + patternProperties: + "^(ethernet-)?ports$": + patternProperties: + "^(ethernet-)?port@[0-9]+$": + properties: + reg: + description: + Port address described must be 6 for the CPU port. User ports + can be 0 to 3, and 6. + + if: + required: [ ethernet ] + then: + properties: + reg: + const: 6 + + phy-mode: + const: internal + allOf: - $ref: dsa.yaml#/$defs/ethernet-ports - if: @@ -285,7 +314,7 @@ allOf: compatible: const: mediatek,mt7988-switch then: - $ref: "#/$defs/mt7530-dsa-port" + $ref: "#/$defs/mt7988-dsa-port" properties: gpio-controller: false mediatek,mcm: false From patchwork Thu Apr 6 08:01:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 13202982 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7B4B1C77B6C for ; Thu, 6 Apr 2023 08:03:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NZdSx/iUyGKadpA30BeIZD3nWJfvdGv9rT/+mkXPfkY=; b=4LcWPeTvM8lNrY hM7ItGeM6nf6tig+rT39mWYqdQE7aWan2FrrdEUg3O0HCKcW9VG2JcXvUhN4ARQG4CCSx3EsR/ccr TpJrpLVkVIhxQ4LKcLz5YAf7pnIOIC6/SIXI1ohXfru2Dj7SBiG5Mleag40UWXgB3WcLVd/3kcDJ3 n9Cd+jjWbM3ZGzbjQ35K9DFOzIuUvnKR8zy2mDbh7fovMkYov+WtWkraCmRuio+XB3Lvb0KooiKvd XVd9YKPC8CluasViMHVA9wEF9Ck8Q/4UB0dMs3phXBLXyVhsMB7ZAZjjTDmuNHFje2ddPpEylJcY3 skKFyTKhj+oL4ycnh/Gw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pkKZe-006gfL-0l; Thu, 06 Apr 2023 08:02:26 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pkKZZ-006gbV-0d; Thu, 06 Apr 2023 08:02:22 +0000 Received: by mail-wm1-x32e.google.com with SMTP id hg25-20020a05600c539900b003f05a99a841so5351341wmb.3; Thu, 06 Apr 2023 01:02:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680768139; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=z1Dy9jILghc2oin2d9VIZqVYpUmKIJ7JSNuj8W4KgH8=; b=RGvP+SDZxX9ME1EKpF3ct3mhEv1ZmdaEzq63cIvihhDYWiECOzUOxAgTEaIJStyOHt 3Q3RDWHrn9fZSiI8hOlPQYwy988GyH9GtytIjPpNwN2BccfQnKBKuCQ4DHe3eCJSFrFW WwrIIQ0nkdMXOQhtAkDPhZWeq2KlUIAjkgLvWyPnc/GFhXTLZtEpbhtirZRCyHhdSmEj c1foqVMh+QGOqph6DBFcPdVXjYV/Tm1agZgpbPdmx/h+2oVUumbHPjQZA5VgCdE2nYd0 HZqWyWgeOQoI8FyqkkOKpHXQsviiZweeQ7TlYjjbfNCJf8/XtBxqc8w3axtSx3kOyAwz /n9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680768139; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z1Dy9jILghc2oin2d9VIZqVYpUmKIJ7JSNuj8W4KgH8=; b=S64+MFTC9XZnIaO5ksCzYTeJ9ojzWPC8Sxi5M3mtIxm4IzlXOSdBwMBvLU08oAUj32 O5u1wonikQMXsEiNLa0oe675vbwGIFizLhl4kqNBZGLLuCoHYTYGbq56eQjtYdYH4qSx sbqdDZc7lidYN/uddeceQdGH86B5A75kCHuY3zBpGL+33jFyjSjTmdnt6I9K7J5fTUK7 INiBwPMY7jsDtz3f1aUvLH5yU3rqV7plV9HRqZhpTgFzQvt7fib+eBsaNeKioYggbdGr ZOY03YAHex0VWoUmma3uiqyy0F6AMn/21OMLj/BTM79S+Hz3m9t4Jg9b41fRsVeQoXFN L36A== X-Gm-Message-State: AAQBX9cPJpFje491VieCVLQu68G+lnaOqh/wAFa2tghIbzpXAm1hCT5T JaXxhAysOBK6MRFz/CgwrCg= X-Google-Smtp-Source: AKy350YO5UG8gcVMQFQKFtkzSgSlc9tFvejLdwA8V7eMge/Igj8Gq/c0hD+r7klScptaKFWE9kKbNQ== X-Received: by 2002:a1c:4b10:0:b0:3ed:de58:1559 with SMTP id y16-20020a1c4b10000000b003edde581559mr6869833wma.2.1680768139043; Thu, 06 Apr 2023 01:02:19 -0700 (PDT) Received: from arinc9-PC.lan ([149.91.1.15]) by smtp.gmail.com with ESMTPSA id s9-20020a7bc389000000b003ef64affec7sm826993wmj.22.2023.04.06.01.02.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 01:02:18 -0700 (PDT) From: arinc9.unal@gmail.com X-Google-Original-From: arinc.unal@arinc9.com To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang Cc: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= , erkin.bozoglu@xeront.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 4/7] dt-bindings: net: dsa: mediatek,mt7530: allow delayed rgmii phy-modes Date: Thu, 6 Apr 2023 11:01:38 +0300 Message-Id: <20230406080141.22924-4-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230406080141.22924-1-arinc.unal@arinc9.com> References: <20230406080141.22924-1-arinc.unal@arinc9.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230406_010221_230166_2E993C1A X-CRM114-Status: UNSURE ( 9.20 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arınç ÜNAL According to mt7530_mac_port_get_caps() and mt7531_mac_port_get_caps(), all rgmii phy-modes on port 5 are supported. Add the remaining to mt7530-dsa-ports and mt7531-dsa-ports definitions. Signed-off-by: Arınç ÜNAL Acked-by: Daniel Golle --- .../devicetree/bindings/net/dsa/mediatek,mt7530.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index 605888ce2bc6..9d99f7303453 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -196,6 +196,9 @@ $defs: - gmii - mii - rgmii + - rgmii-id + - rgmii-rxid + - rgmii-txid else: properties: phy-mode: @@ -234,6 +237,9 @@ $defs: - 1000base-x - 2500base-x - rgmii + - rgmii-id + - rgmii-rxid + - rgmii-txid - sgmii else: properties: From patchwork Thu Apr 6 08:01:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 13202981 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C3E1CC7618D for ; Thu, 6 Apr 2023 08:03:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=M1h//OrcQlV+mbz0az8wI3tpxr9qdKUESZaipyCHjjc=; b=ZDdV06v2fTYfGV YTBSVpzOKUIhSX59pBonC9mNfGHHQJeO2gOYJwSOjhrrfR0CTyoeNz9cnh0UACJOV5fOgiB5AUow+ fVl4cWJKFn15TlRXhoJoQOp74xdrsMTNXSaP5kMQV0GvHL5QQgx3XvH50psQSvZ2e0UHhbXhC1lJi tFyuWmNwi+9yoUl9/z+Tsk987254uzkOpou2weh/TVQZZThWkdOn8fahvWE2Sa/ZLGnFdrrAe/kl2 bdtRI6t3rmLUI0RFtkqg1OI0I/AQivYlokIcWnEnTuY7uRA228SOauXOs81QmRKTM0e811Wa9IlEN VpIWZZ7sDsb2bEkkaO0g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pkKZf-006ggG-2O; Thu, 06 Apr 2023 08:02:27 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pkKZc-006gcn-0X; Thu, 06 Apr 2023 08:02:25 +0000 Received: by mail-wm1-x32c.google.com with SMTP id n10-20020a05600c4f8a00b003ee93d2c914so24735626wmq.2; Thu, 06 Apr 2023 01:02:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680768142; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WPfB86t+nbjtQNmGqonvhYdyRwayc+B/NfmEAcnxhaY=; b=gDOU9qcSBn5YF586j9L2PcoNM2JnU+QiRJv01Cf+abyOI5XBvMdDVBl/RXCleLpqD8 +p4uNaXMHKa17Vz6kOTtHzHCu0Fli6Yo/pVJDwRWKMlz+NYcRcXqd/ACtkw/4hcQ2qPp rI0ZNsmjuF5EtZ1h90CjejIlK7o2t8TQczn2gAUsKMNXQS1MxkiPIaz7CABkIkMoUGWV v3r7njOe720uKsZjHEbz+Cr13leaPJGg8R+izEAlmtKUofV2Ldy+8ovA+hQCXYlwlmi2 4Cbs6OelciOyWR9iO/zEAgPCZrXhiBJYD4z4acnXBPcFKlZy2222fGH0GR3YRhSaJfJZ 7KAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680768142; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WPfB86t+nbjtQNmGqonvhYdyRwayc+B/NfmEAcnxhaY=; b=qIT4zpzZcpbzVAmXnVxnnPwkPh1fSm/bkD0QSG01MiRhoZtQvnJ+QvAZG40r42D4/8 lcZEuTMNlNEYRb6IxPzv4YeGPrI5FF4w5PJE4NqPHciNvMI4zJxYNTvdBKUvCaShy9o4 ubLKvGpbH9tN7pSGTDO96cpNlbemiFUpjU0N1Z5v9SOghovyxE89AGu7KdE6KqdjnWSX OZQLjnhJUrkBDFuHZArLKQifgE8zsScC+RWwv+Kxmw35gk3mwV36oqQValWXQgH1FuI2 XTGe7Me+hR/ww5s7rpOtUh+NUdVDgeG8V/+IPLWxQ97Dn+f1hmfajV6JG7UvKhRzdVcY RyBg== X-Gm-Message-State: AAQBX9fHZBsNSzkY5k7drguoDJorc7VYEm/xyIfVUvUDsE/Pv79SfuqO 7W7CrQxTjvATsyrzqu/4iYE= X-Google-Smtp-Source: AKy350b4aoIYcpf6jCSqmpCE9htfsTH/GIbFV9cCyChDpC1YQ8GkUjnVJ8aijJvGqy4Ee0cnZKxxMg== X-Received: by 2002:a1c:790b:0:b0:3ed:2b49:1571 with SMTP id l11-20020a1c790b000000b003ed2b491571mr6195603wme.20.1680768141695; Thu, 06 Apr 2023 01:02:21 -0700 (PDT) Received: from arinc9-PC.lan ([149.91.1.15]) by smtp.gmail.com with ESMTPSA id s9-20020a7bc389000000b003ef64affec7sm826993wmj.22.2023.04.06.01.02.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 01:02:20 -0700 (PDT) From: arinc9.unal@gmail.com X-Google-Original-From: arinc.unal@arinc9.com To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang Cc: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= , erkin.bozoglu@xeront.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 5/7] dt-bindings: net: dsa: mediatek,mt7530: disallow reset without mediatek,mcm Date: Thu, 6 Apr 2023 11:01:39 +0300 Message-Id: <20230406080141.22924-5-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230406080141.22924-1-arinc.unal@arinc9.com> References: <20230406080141.22924-1-arinc.unal@arinc9.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230406_010224_205895_EB39F0CE X-CRM114-Status: GOOD ( 11.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arınç ÜNAL The resets and reset-names properties are used only if mediatek,mcm is used. Set them to false if mediatek,mcm is not used. Remove now unnecessary 'reset-names: false' from MT7988. Signed-off-by: Arınç ÜNAL Acked-by: Daniel Golle Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/net/dsa/mediatek,mt7530.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index 9d99f7303453..3fd953b1453e 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -282,6 +282,10 @@ allOf: required: - resets - reset-names + else: + properties: + resets: false + reset-names: false - dependencies: interrupt-controller: [ interrupts ] @@ -324,7 +328,6 @@ allOf: properties: gpio-controller: false mediatek,mcm: false - reset-names: false unevaluatedProperties: false From patchwork Thu Apr 6 08:01:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 13202986 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A8135C76196 for ; Thu, 6 Apr 2023 08:03:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YF/GHsRA8D3XX+zlIeoLOMDH9U2UxNrlDgHcyCkseTY=; b=hlzO6+NqvRQu8V LqooIpje9v2/TEnSo+q2KL64wJausjEXBn6SF5CQJBNFNFz9OJtBonV5Ddp9KD2xo/J0Vr+kYMRVU ONxowe1lJlCRNkh/Gm9hYQAZLrA+LSPn2aTeqGj/sDD6sacedcTS7k7lFbz30xM0ziRSpg/lp2IoF E2AID894qPsAWQYLsJe4ydaK+D7OtETSfZbvSC1Pk/RzwD13t0cMkpFha7DcFVdmZX9MYm+Gnp0xd zZa0jHvPy7hlRmHOBV+hlsZXwHdCUFFKN/EyhawhuWyN2hkRGH7GrvkKZM4PrU+R8Xk9aM1Cn0Hwu zhXHWm5OCQEukozhyGiQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pkKZh-006ghg-2I; Thu, 06 Apr 2023 08:02:29 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pkKZd-006gel-2j; Thu, 06 Apr 2023 08:02:27 +0000 Received: by mail-wm1-x331.google.com with SMTP id n9-20020a05600c4f8900b003f05f617f3cso4139007wmq.2; Thu, 06 Apr 2023 01:02:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680768144; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RmRk0xNMsCgcrJI+xRy0MzfsEtKexUj93Cn4/6APjX4=; b=mPJYOeA/OqyZBFsaE+PJHnSCcxVCH7AsuJcTDA6Kn0cpNisoIlJ53FufnOmcsr5FI+ GgFkNmFTOFmRJJvdv6zaYXpxWwdSoe8jJPr+X/77ixE0GBzWMGm4uA5lVc8D6lZZE4bA OAUMoNbG8sefSz8agTff7mjEdGmwYnHhvvxUx6yHZ2B7RGxVD0ZPusatK/GwRcnIMbmx TDDsimNHyUM4HMgCQpBkEw+dmo4UOTOB4tssZZfvO/wXcjqGX0IT/Ge8l4fXPMxlVm9g YLfito9EZ96sysUz2LRCXuRj6g0ESA+6HeQUxNHB5wKVtTruB9kjF2DkFYLzfn5Jav2w 2qRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680768144; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RmRk0xNMsCgcrJI+xRy0MzfsEtKexUj93Cn4/6APjX4=; b=tWfqjc/X3K64AC4VzU4XUBxtojkvzuqL6iAb1rth7ezYBnpspSTZxyONBx0/QeEjiz J2TpkDRI4I5navzck+f94vcEEcDcCBOe2zrNJrSrgkT0mXB0dpfVI8dOc7X2/q23ZmfV Qbt3FRQXs6/bLc0jgKqYjZYcoHEldQMjGVdmr8g/mYRQuwjbv6qtbXozdzTbBFpIv88G fe13dYv9+doRK5sfajgpolUejHgHw86ZGLFmiBRtMQXHcEte2J8qZQ/nzi4lJ+yplCS2 SM3k2B6HUex5dHlU5yWKerN2XRNvACupQUqXLA3eFxDPBqDwFlUuMn1+m2LY+OIyNRb7 NlsQ== X-Gm-Message-State: AAQBX9fZrGoz4sxxjTvsjWE6r/vMzJJkHgb+fO9GFXY5NE8YPnW/BKR0 6DysXX3DHBIxoci2pYNepa4= X-Google-Smtp-Source: AKy350YR8IyuUclg8HySvJg9M4xWTYXQw+ShkQu/tly5qXQdseVIwZ8mZF6V3eJiL+2q4c+B/TqXQA== X-Received: by 2002:a1c:790c:0:b0:3ee:7022:5eda with SMTP id l12-20020a1c790c000000b003ee70225edamr6859209wme.7.1680768144497; Thu, 06 Apr 2023 01:02:24 -0700 (PDT) Received: from arinc9-PC.lan ([149.91.1.15]) by smtp.gmail.com with ESMTPSA id s9-20020a7bc389000000b003ef64affec7sm826993wmj.22.2023.04.06.01.02.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 01:02:23 -0700 (PDT) From: arinc9.unal@gmail.com X-Google-Original-From: arinc.unal@arinc9.com To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang Cc: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= , erkin.bozoglu@xeront.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 6/7] dt-bindings: net: dsa: mediatek,mt7530: disallow core-supply and io-supply Date: Thu, 6 Apr 2023 11:01:40 +0300 Message-Id: <20230406080141.22924-6-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230406080141.22924-1-arinc.unal@arinc9.com> References: <20230406080141.22924-1-arinc.unal@arinc9.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230406_010225_882770_AE8F8C59 X-CRM114-Status: GOOD ( 10.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arınç ÜNAL The core-supply and io-supply properties are used only on hardware that uses the mediatek,mt7530 compatible string. Set them to false if the compatible string is not mediatek,mt7530. Signed-off-by: Arınç ÜNAL Acked-by: Daniel Golle --- .../devicetree/bindings/net/dsa/mediatek,mt7530.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index 3fd953b1453e..0095b7fcef72 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -299,6 +299,10 @@ allOf: required: - core-supply - io-supply + else: + properties: + core-supply: false + io-supply: false - if: properties: From patchwork Thu Apr 6 08:01:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= X-Patchwork-Id: 13202985 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A8647C7618D for ; Thu, 6 Apr 2023 08:03:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3yHMfjIHaVbwKwIzk0iYdsHK7lrXj5wYAEdd3yLE3uc=; b=efPzUw3GbO/8s2 9F1MxH1ir3ru+i5ZRGCg0L6ADtLEYD9tODiFztmmK0+Mn6BIHc4Pxtvj9rNL5MJ8KzwyfIy9F8I0U JOGvZU76+egcp4JTQKGAN+qHXSl7gXPqBfDg6nhKPTiU1tI5dajuTt+Huxz5S9vowXg1h4bAz0Mwk iNumYW5aptVa9A3qWgpKTw/bhl3XhSDRFX7PJJwTguJuCzTNDZ/UPHm2R5MtfUTFdnbUtVyH5rW0B Iwgod5EJrpNl/MN5jonduO0x/MIeII7Vw3PI/s/CvaoguxAjx7NZAwHYO0D0IfCz5+qLzGGFq3Mjf Kdo1pGv8+3yeGCfrrrNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pkKZl-006gkf-1x; Thu, 06 Apr 2023 08:02:33 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pkKZh-006ggJ-17; Thu, 06 Apr 2023 08:02:30 +0000 Received: by mail-wm1-x32d.google.com with SMTP id n19so22151624wms.0; Thu, 06 Apr 2023 01:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680768147; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aA5NdqluYyuyJgpU2xMc4bklKNQ4+NDybzhpsjIzUzo=; b=lV/QZB18CxFfmJKB4mKWpBOCfPvrpEhyZ6LkZPtrlnwqSJ8zhP2DRZoju2VW/Oy0UN thhs5LDM/CKa2MMn9r74RUEiIQLMRwEaxKL1pwZqDEpm2XxygHkH8Y101yBkkhYERijF nXT5IicjEujXwoGBWLdp7yIZAnmdZO4/JdVuOagei4jFms9+e9zLEedXEE3m4RcpECj9 ZuG4F0JncgjSr5pvapi1MmP410E/svBGd0lzGUuSSZzYMIwvD3N9JV/seTJ7rfixquDg xktnfAmSD3z35x+I7Q3amTffZwdgllldRnCvNKwd+bK1RMXOhrQawdom8c3X0SWkSF3J piMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680768147; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aA5NdqluYyuyJgpU2xMc4bklKNQ4+NDybzhpsjIzUzo=; b=DNtdIaXLdih0LDiRyesTWEeHG6og2NKvuq017+aTh/ppAYih+ntoxBfraL9CZQZpKk P/0YOMg3j9cU5Oo0wXNu3V1Isq5Gq+pJz6MRN/7dgjt/SUUxMd2ItPDZLUvhd2yWki9p QcapuW2RqvkYkUeToEvmNjW8842tA8t7CciMWPXHaes9/1VDW7Zs1+VHDA9kGevUfnUp RVQT41xPKSfqBJLNfDN8THbedfZ/1OiSEobK6NG7eeUaKeD2bwZQ6RXGi9rG+xpy0YVd sL32udKjRbkIm0KHBAiB4LRx6pFNACF1xR5T7URyZkGjn/mOFBWmuNzL0letBmariO7l PZLg== X-Gm-Message-State: AAQBX9dRTEmcWqVhpII4IMQJqu2yAeEWOBMmI6HKCq+A6ytF0UBTG0RO 4u1sGU4VOaaDxfJQM2L0AIyrEoETYxa0zw== X-Google-Smtp-Source: AKy350bzZPnNNXqxUTt+rQdFAAXBkweS3uWiUyTfUHfxuieEJ7GOxGxGgDDmv9vTnksNwhu8CxQDMg== X-Received: by 2002:a05:600c:301:b0:3e2:19b0:887d with SMTP id q1-20020a05600c030100b003e219b0887dmr6579110wmd.25.1680768146933; Thu, 06 Apr 2023 01:02:26 -0700 (PDT) Received: from arinc9-PC.lan ([149.91.1.15]) by smtp.gmail.com with ESMTPSA id s9-20020a7bc389000000b003ef64affec7sm826993wmj.22.2023.04.06.01.02.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 01:02:26 -0700 (PDT) From: arinc9.unal@gmail.com X-Google-Original-From: arinc.unal@arinc9.com To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang Cc: =?utf-8?b?QXLEsW7DpyDDnE5BTA==?= , erkin.bozoglu@xeront.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 7/7] dt-bindings: net: dsa: mediatek,mt7530: allow mediatek,mcm on MT7531 Date: Thu, 6 Apr 2023 11:01:41 +0300 Message-Id: <20230406080141.22924-7-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230406080141.22924-1-arinc.unal@arinc9.com> References: <20230406080141.22924-1-arinc.unal@arinc9.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230406_010229_380416_202F3245 X-CRM114-Status: GOOD ( 10.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Arınç ÜNAL Allow mediatek,mcm on MT7531. There's code specific to MT7531 that checks if the switch is part of an MCM. Signed-off-by: Arınç ÜNAL Acked-by: Daniel Golle --- Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index 0095b7fcef72..b1dc1600f0dc 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -312,7 +312,6 @@ allOf: $ref: "#/$defs/mt7531-dsa-port" properties: gpio-controller: false - mediatek,mcm: false - if: properties: