From patchwork Fri Apr 7 12:50:03 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: 13204747 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 3727BC6FD1D for ; Fri, 7 Apr 2023 12:51:23 +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=Kt8ovt3UfW253KmcEEZOfHYcRjFjRuB+qxr0muYQolU=; b=bJrI+3Cef7HN9e P1eRn6qG6TkPmIchVM3u4msLA98MOjn9GaGkzhhG0/dqD4BDjViFRubHvmiCj+mvoDTnPJmXujTx8 eOHYg53U2Z3EFZ87hGGWt7CuqzSD9IVa7iI07s6cqVDLmhM3LduBK1fv3mu/02MqlQSuGTVSHddtX glXSsx4eymjjhoTELNfUJ4qQxqJ/PhZp6UyD/mWYhzFSnNmNogSMOWRBqHIAq+sNoKp+X0GQDGGs7 sByKj3egX0YS0gijzYIyXN+LObJZt/JZ8JhSZ0KZCW/syF/GLrYPgT8svhchUH0lTDuUf2r3KWV6m gxqIofC2VTqCvdyQP3Uw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pklXu-00ACWn-2u; Fri, 07 Apr 2023 12:50:26 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pklXr-00ACVA-20; Fri, 07 Apr 2023 12:50:25 +0000 Received: by mail-wm1-x336.google.com with SMTP id n9-20020a05600c4f8900b003f05f617f3cso6005817wmq.2; Fri, 07 Apr 2023 05:50:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680871819; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=PvJDsmC2qYd1pgQ85lBs960eVGMLB3x0B1T+4QHFB/Q=; b=or7WakKRtDQDG/fo28VWWqQ07MrMmoabczFnS36b+Yv6/y2tULbns4a+2N+gTqVBXc BGw/C7SSv9esONmfQEAH8t8CiBBHYzU/725u/zfpeIqD87qN7w8FOkQsyamZbQC2Q8Ay p0Hb+asWzOzTdnTxhTwIZGsEJs3HcInQzDFJd5bvel6mc0MswbuKG7n8D1LiTG/a4wj9 rGbbl81d393pX3y/1rZCSUmO3dQEfCWywNUlW0eZNf1jEwYZHlOn5oi+h4pEvMNoGcy3 kZNc1koD34agwDKSTG2GqqzB7w+9KKdjRB+lO5fJcjkk0PcgcxtC3/wNv0kHf90ixWcg cP2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680871819; 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=PvJDsmC2qYd1pgQ85lBs960eVGMLB3x0B1T+4QHFB/Q=; b=otTr9R53RlKfg+IAAzAXKoOKgxi/5OSNwkbO00/NuKHDZlyQofbiKwV8Uayp6f0ljN 7DyGnfuy+UpBUPjT0zEA4dzLiXV/ccWrM/ibcOwpKaNyrcVVTAxflF6z1tI9Q78cE6kp P8NdspCJYY+0kCMs3rWP0cRG/kDQbHjaCjlEwAt6lY5YV5RB2LgYMiAFhmpb58eReQPx db4OucOMOBuiaETq5Tdd+JnA7V35ERYeHoIyX8FwWx//6bQ0kPcdfWA1b5ilTp6o7XIJ yqlfXuliG73rEefV2caLpF47vFelpXwr+IwuRwu98U/QQVEw413yT2NykgmcXEykjjhZ Vcxw== X-Gm-Message-State: AAQBX9dkLPhUkTaN6gVxnnFZMa8FOQDpfdqpjQIG89D5aStV8botxbt9 sloqRdGntDUdW7G1JJyUDlc= X-Google-Smtp-Source: AKy350Y38LWAG0Pi4Cy7ceE+yBoIdK/XagcUtp+HxL2q1jU0J/A1wR05OD7xPN4j1W40G6jbzPlkQg== X-Received: by 2002:a05:600c:2296:b0:3ed:358e:c1c2 with SMTP id 22-20020a05600c229600b003ed358ec1c2mr1164737wmf.18.1680871819058; Fri, 07 Apr 2023 05:50:19 -0700 (PDT) Received: from arinc9-PC.lan ([149.91.1.15]) by smtp.gmail.com with ESMTPSA id n37-20020a05600c3ba500b003f0652084b8sm8176596wms.20.2023.04.07.05.50.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 05:50: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==?= , Krzysztof Kozlowski , 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 v2 1/7] dt-bindings: net: dsa: mediatek,mt7530: correct brand name Date: Fri, 7 Apr 2023 15:50:03 +0300 Message-Id: <20230407125008.42474-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-20230407_055023_677930_5EA8C80A X-CRM114-Status: GOOD ( 11.82 ) 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 Fri Apr 7 12:50:04 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: 13204748 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 B5804C77B61 for ; Fri, 7 Apr 2023 12:51:24 +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=UJ72vS9CeI80y64HobLRMWV3ZKK1O3g1cYHzwU0ger0=; b=jBWBT2Eji9XpgQ 8c2kw2zq6Gzau/oCgbdef8kfkzaJ1hUSxiGamMeYMZursjz+h374opY9pjUDKzqHFVSvUybl+d0ST neKDmC69MUFUX3jKTa5LSdQTOG8GVHbQxzvBzG9m12oLXEDKqUxO2kmc8DcF99lOKgVroX+3rO2FE TO6SZQHlxAnWukOD0BaW7sq4DON655J9YMxE2TVa4sjV/uaV6HNpQdYX/Xom/2OZjdk1hmwamdK9j QZaR2mdbZNCG8AdLVroA7GKDnrKhxYgdwpJtvC8qpdWFXyK+XqKqddZdiTZ0rhVCyr5LPADlwi/t3 7UEbEYwV3kOj01msLp9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pklXy-00ACZ1-1a; Fri, 07 Apr 2023 12:50:30 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pklXs-00ACVP-0H; Fri, 07 Apr 2023 12:50:25 +0000 Received: by mail-wm1-x32a.google.com with SMTP id s13so23967860wmr.4; Fri, 07 Apr 2023 05:50:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680871821; 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=BhBtxDtSz4bH7TbpHPVA9FnwXJmNesfBIN2Sp8mydaA=; b=VMxkrT7qvXhqqRG7V6RDlV9gwWNBpUI1gCouk5IpwxbSAW+6uZ1cJ6dPxDZ2jxheeE Mck1FjSAyxcAvRrlJ4g5Q7r7dcmikNMbMrh5aBIkOqx8bmhlgzC111MBUk4ts6luURtN WCXvuUvPaTpuWLXaPmhn3kddiwrLbpcKkbS2iKnHWvKVu648mhC9/3yGfPr8VSJ9oca3 WeIrXuPN1gcH65YSjv5JQ43Q9ZdxNvq0H8I3fRMGmAsb+ZkvOmhT04vegdUZLR6OyuuZ HtDNlBGkp6oZHk+dNPXrNnNplkWeQrCF83aZejrFayq2EztMgyXjuDQnOwa2+H4/PHO9 aA/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680871821; 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=BhBtxDtSz4bH7TbpHPVA9FnwXJmNesfBIN2Sp8mydaA=; b=aQy6RERckm3qkmJt+bNokVxitVALNS3poP/IYzQvK+/hfY0Yu+2wVRIDP/HMlTmZmm eXQKPCLqy//VvyEjfBmO1Ptt4oeZtGgNzcSMVtSRfRaBR5bO1qfQ8/VBYylNm0YSUOFU VQgUWXRg3HN00X3dLt87YECg7jKjCCbxqXex7BKziXIe9UdQu8TZNudCMp26vGrqaX/9 5rQat7Sd9IPZqnNT04UJtwB+qeb1dup3W352ENhR5UzV0yqhMN1BLFWZe8pPGHbv6bZD E60PURZt8yFgrs/Q5WZU8+qeyhLHgQGA7JcEWwbP3ue0bfatyI+50zUFJBOZrLIzS+ix iAbw== X-Gm-Message-State: AAQBX9cUGvYorexfLANmmH3dGos9fDEIilh1lowRAdZDss0b0I9KTWya MadmsyNycAE2OLfo4rLCb+qzGIYoLTycUg== X-Google-Smtp-Source: AKy350aP+Zz+P6Ae0/eMi3ClAC6lpFOkTb8pPG5GtRkLI+FW+xHkQ4WoadPWcXIdrsg760lMm4uQIA== X-Received: by 2002:a7b:c04b:0:b0:3eb:3104:efec with SMTP id u11-20020a7bc04b000000b003eb3104efecmr1160754wmc.16.1680871821214; Fri, 07 Apr 2023 05:50:21 -0700 (PDT) Received: from arinc9-PC.lan ([149.91.1.15]) by smtp.gmail.com with ESMTPSA id n37-20020a05600c3ba500b003f0652084b8sm8176596wms.20.2023.04.07.05.50.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 05:50: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==?= , Krzysztof Kozlowski , 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 v2 2/7] dt-bindings: net: dsa: mediatek,mt7530: improve MCM and MT7988 information Date: Fri, 7 Apr 2023 15:50:04 +0300 Message-Id: <20230407125008.42474-2-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230407125008.42474-1-arinc.unal@arinc9.com> References: <20230407125008.42474-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-20230407_055024_209245_6663F148 X-CRM114-Status: GOOD ( 14.34 ) 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 Fri Apr 7 12:50:05 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: 13204750 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 EF700C6FD1D for ; Fri, 7 Apr 2023 12:51: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=azfjd0TQ3pk38VRMH1tDVKtkZK3gBp7lbhThD2OxTOs=; b=H0oh7ir3fdr9i8 V50Zu+76XOiTPQOT0XRNRdPhVvxA9vzUqk3uVk7bj3X9Nk5i9JgS/mLJX0pul8SfYDB3aUkTGS+zB H/3FlIbPbsbdnm3pg/g351djW1+oaJzjFk/6ZoWBbDqIr8RuM/5kaKrMes3tw3sGWhenFshusVu3L XbVdUcyrNIAqspLHs7rwT/XlE2B238NrgfvJB+DRu5lTF44txa9bACluvVPvcNHCGz1GKmWkyHdxR tdHobrCQz2TuU+XuRjTM44oHPBW4BHdiaz6ml7WSZnB/OkgvT5qWhAsihrTrYkhabL+dd8P1ahMMq jVMG9gf3B0sOukJ13dxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pklY4-00ACcz-1J; Fri, 07 Apr 2023 12:50:36 +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 1pklXw-00ACVq-2K; Fri, 07 Apr 2023 12:50:30 +0000 Received: by mail-wm1-x32c.google.com with SMTP id n19-20020a05600c501300b003f064936c3eso4346268wmr.0; Fri, 07 Apr 2023 05:50:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680871823; 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=ijOoimJYROvL2xKKNrDkLF9qZTzoSBmk/l6jvqUrH2Y=; b=mLxuJVp1lpNT8/fb6Y0avFEOu/NNjP1458DTL5fFs+veWRX5KSMi5bhZs3Y79jXDtO fBu8U37MIlltZGTFWK4EmLjGHUeZMVNmDzMINeUwJZqH/QOoiCmuk53a3O3PUntrI6Sf QJ2FlJv7FKM5O3bRE1GWsevV6SoTMOslaXTZF+M5wrbbamUZOUunAKQ73L90uU+Q6kvq 650/qXUO0Vtexr0NeB45xwHjD1qMXVywj35h+ShGAIUxG8ha+2NE1P1mig4GxsK6RkA8 pSqxXs98cwBnF47+RVQD0fCSgU8N9VxgEoHRHY5HieFkrj3PUyIJr8pSBvx7gp/fww1X O+SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680871823; 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=ijOoimJYROvL2xKKNrDkLF9qZTzoSBmk/l6jvqUrH2Y=; b=i3HskZUixqJcsXywXrVD9vfnD/MAEF0aDseAvYikUnrgJubQoZ1IcDP4aeWqkBIms9 l1Ux7tXhRdrobZsUAuGd3/ZDD0tNyp7R3zG8RR33uiWDV9ilfS2NF/6HoEPCTRpnEV49 oBBE6ULsZum/FbQtUBZWgjktjMQzedQQvleklhtHeSYyLYoRjhNHnMfviud6Q7Pf/9Iz eyigYMz+93jS+YSgP/zuLn4uiQaXlETmob72TuUtWZd//Rv4H5i6EbVY+5UHapZpnUTd 90RP+uqyIWzyFgzWwdG0512J9ohYIOBGPZixtaQHZYYdQ/lAC79CvA7D4W93c9s3KBX8 IZWw== X-Gm-Message-State: AAQBX9fVSGDJSHt7YoZu9RBasLSnAkTq8NbbQ+mTdTgeUr3Exfp4fw0z zpAHQ3GWqombhf42Qo17j3o= X-Google-Smtp-Source: AKy350Zk26UApNEGoDELJLQMWH/Qq3yPg/VheTn1EjnWyokM6oY6sX0P15HTgqQQ4ASurUEw52f7pw== X-Received: by 2002:a05:600c:22cf:b0:3eb:3f2d:f237 with SMTP id 15-20020a05600c22cf00b003eb3f2df237mr1736688wmg.6.1680871823257; Fri, 07 Apr 2023 05:50:23 -0700 (PDT) Received: from arinc9-PC.lan ([149.91.1.15]) by smtp.gmail.com with ESMTPSA id n37-20020a05600c3ba500b003f0652084b8sm8176596wms.20.2023.04.07.05.50.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 05:50: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 v2 3/7] dt-bindings: net: dsa: mediatek,mt7530: add port bindings for MT7988 Date: Fri, 7 Apr 2023 15:50:05 +0300 Message-Id: <20230407125008.42474-3-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230407125008.42474-1-arinc.unal@arinc9.com> References: <20230407125008.42474-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-20230407_055028_792174_4CAC8F6A X-CRM114-Status: GOOD ( 13.45 ) 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 | 71 ++++++++++++------- 1 file changed, 46 insertions(+), 25 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml index 7045a98d9593..922865a2aabf 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -152,30 +152,6 @@ properties: ethsys. maxItems: 1 -patternProperties: - "^(ethernet-)?ports$": - type: object - - 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 +162,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 +200,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 +235,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 +306,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 Fri Apr 7 12:50:06 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: 13204749 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 DD84CC77B6C for ; Fri, 7 Apr 2023 12:51:25 +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=mJMAnuNRVHQ8T0EOvmbW9tNGrkGg35YSB7IBm/KrwEk=; b=iiWjXPPUC6Fu3t SwkFbGKbgky7GgSedh3IXgy3Sp7Fb4nYtpgiSJWNWaB1B9HN27uc76DWsa05Fc9ToKsZYxEwyk8FE lbfjqdI/Kbdm7WDmLTxJEj5bkoX89hoR08wKJHEOekp7tqDVi++ljGqeQZ+M7vWaLmUvwPkj0fxFq rWgYN8ODBGgDoqbHw160KM3TpkLm+mz2/gAJO8K3sZ9vGr/WgXsNgI/2ZVZgYsGXwprJ+EeBAhQDh kJOyIHvLV51LRE3ByhLEOIY1hgn0d5cYr56BZKgdBbgRv6bqxPHuocsvnRmmvKaEhARpAtmFGQik2 0OrBqwdz+Tb+xXwhvr2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pklY2-00ACc1-2z; Fri, 07 Apr 2023 12:50:34 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pklXw-00ACWc-31; Fri, 07 Apr 2023 12:50:30 +0000 Received: by mail-wr1-x434.google.com with SMTP id g5so2285364wrb.5; Fri, 07 Apr 2023 05:50:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680871825; 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=d2Jx75BdmM1DRIeZU7e7TBMUNuXWgIzSc84P6AFM0gY=; b=hZcWa0HFwLeUOYBlBloUEX+Gaq7fM3R9AG4Q0VV839B/i1zN0VBj9/LLXSiAe7Wm8i NlJLovn8esr+YA3r2p9QBzTDZtCpCjvoxkZAuTQRdZ8dW/uk+VMvskWOFBr61bGMOf+C P+cEpbWt17E14Uda2Tz9uIryMW0StfE31q0EfhYGG94gCqvDvBlAW5/kXQitzd9k1pA0 9WwvCys+4g6nr42u+6sOjSZeJkQSbp1HLQmBg3vBus5sP2Msozdnt8/nK21NCHdsdEhR NZL98Qxy6kkxsaSBHbzQPQhHVC+sQJVlgKAoqVsGHAWLpUQ2lMa99neOIniVOwKFRJ5M CsBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680871825; 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=d2Jx75BdmM1DRIeZU7e7TBMUNuXWgIzSc84P6AFM0gY=; b=Q9vhOHbGRBUaI7ReuBjCZFPL5tsCFM3eYc/1GVoIsMAgN5YBZwXF1bEDehhAmGm7F5 WNB2M9ZBkhj0GNcGP+0TcKLQS7dH2MLcZW+yktXjY5+fPSAV4CLM0lYNF4L/TIOIUF7X qD+ghh7ZPL8/UfR6oW+WaLTaUkjv9VwiBbzApA2c/WaNzYK3K07BS0Dp9NN1pTOhVSHI wQOIj1AtR76mybeg46sOGVpdwLnwZ8OXLWY95wALirI/OQu/RujV9qECI2p2bYFQkbsB yu549guN3pcuiXmt+LlTY3fEqFAKSSNca0MZzgKcbM6xOw+LF85TCvz+ikY7Fy0XB32/ vNPw== X-Gm-Message-State: AAQBX9fOuw13Jjw+Dn9EvmT3q2BRJI/9CL92XpQKm/X8xQqIifEaXFVo lI2iVdauvP1kotYH50nFyS8= X-Google-Smtp-Source: AKy350aDOnsG7tp548bKfnKmtM6qwQHsjisCGHW0Ku6OVLIOs5Mlcs/gY2OHF8QTarpzU8KyH0pYng== X-Received: by 2002:a5d:5383:0:b0:2d8:82f9:9dbd with SMTP id d3-20020a5d5383000000b002d882f99dbdmr1320495wrv.11.1680871825298; Fri, 07 Apr 2023 05:50:25 -0700 (PDT) Received: from arinc9-PC.lan ([149.91.1.15]) by smtp.gmail.com with ESMTPSA id n37-20020a05600c3ba500b003f0652084b8sm8176596wms.20.2023.04.07.05.50.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 05:50:25 -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 v2 4/7] dt-bindings: net: dsa: mediatek,mt7530: allow delayed rgmii phy-modes Date: Fri, 7 Apr 2023 15:50:06 +0300 Message-Id: <20230407125008.42474-4-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230407125008.42474-1-arinc.unal@arinc9.com> References: <20230407125008.42474-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-20230407_055028_971681_4624AE39 X-CRM114-Status: UNSURE ( 9.41 ) 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 922865a2aabf..79ddd16e530b 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -188,6 +188,9 @@ $defs: - gmii - mii - rgmii + - rgmii-id + - rgmii-rxid + - rgmii-txid else: properties: phy-mode: @@ -226,6 +229,9 @@ $defs: - 1000base-x - 2500base-x - rgmii + - rgmii-id + - rgmii-rxid + - rgmii-txid - sgmii else: properties: From patchwork Fri Apr 7 12:50:07 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: 13204752 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 5AE97C77B61 for ; Fri, 7 Apr 2023 12:51:37 +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=HfXGORaU9ASjvZgU90TpM3X/9/wr6Iem8FmgIq9XQL4=; b=zrJU3ExNPCHqa7 BNn0UgnyUUwSG7IFMV3BvDQsWORo27z2kqRw+XWa890udwYR6GudCUCb/XtkqFfdEnteCMNegcwPU MzyrlAz391te79IOzcM0t/S0Fuk+aIfria6ZURYRJ8rLvcpAmQ9cSL/C6LzENV71NUH8tCKpcGvzz Sm442zNuVltnSZlCRSG0HhqHkcmoGryuSv3ak6XOrGSL9jyh48VnRX9qwzrFnMuX1DYmiQpSULras FdM5CNTzRTkJaKi7CqiImYXrLN95lETBq6qw752Cd2Do1SdQu3ikBwpVc+Pk/iYJBB+NIwKMpqjgf gEdGzUigMiYgQI51oN1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pklYC-00AChi-11; Fri, 07 Apr 2023 12:50:44 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pklXz-00ACXq-0f; Fri, 07 Apr 2023 12:50:32 +0000 Received: by mail-wm1-x335.google.com with SMTP id p34so23987614wms.3; Fri, 07 Apr 2023 05:50:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680871827; 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=8Ur5gBAQUU5sWkYwoSsgIt09ft/hZck63dNnALmT94k=; b=jmvLvlSuptupcp8j/tpJaul5eWm4fGvzbfGMuWKm2lEUq8411XoYEJK5VMyg+S5FFt TjuZGCLe30zV4PkL/yCQzNQmmN00nSbINDsnQPOaTcjBK0B5/AAogmRdiJLjfiPbv9o+ WVO9o3NyW9h+lmQlzw4eeTi/XPEHlEgMemwsoq+TKAOuSXYt/5kqjaTPCqCfsXCewN/z TN8n2RJF3V3q1Igjm0oaaau5wMgYwqps7laLiP3Ym+UhDtkuaVgy3FNneYVtAXTQB4HA 7KTTsKztjnVlXvdu/6ZvDUARAo5qW+HL6UtjpR2wRNyHXzx9ttq5S6qgiDm4Ec/YrNWb APnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680871827; 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=8Ur5gBAQUU5sWkYwoSsgIt09ft/hZck63dNnALmT94k=; b=qgwCDXGWpIqarCcb0BiSteEXtCc3KgyHhVT+zJ3LaobFA5LW/wOQRQhtMpdRmM6EwB VY3xZhWOgoOY5SemFjCfva4CFF87/ZfgqgTsqaVqOTHrEIYWnw7v9SDiwh3yxFhZc6GI vB2NySwxgt8eMO3BJi+8RgmSxDl4lXxecASQm5QaweYhOGT9E1v4XyV78USzUgqfSgyX SaxEs3OvPwrSAvzbYp+ZNjvOdZW/Xsc1XeTkl+Q/unRMBSf9Zm7KQ2vLNB0voEmVrmva erTOgMB4XvkdqAPRhPy2sFEv93THK3+KA9tesNPB3MkeeZDyQL7rABorH81PdbwRjr7o KllA== X-Gm-Message-State: AAQBX9e7oEibUGtvRCvVUbTZ8G0OpUoTvvO7P5WP94Sut2YmHEuvJH6a UCVJ6U0jn5YYGMZkKwpKLG0= X-Google-Smtp-Source: AKy350Z1cjauAcBYmc41Vrlz4XKvFh5rNTJy7A3QvYqcUzeBpe3Yy0sjgBW5eKKQw0VJPdb3knNE6g== X-Received: by 2002:a1c:f609:0:b0:3ed:316d:668d with SMTP id w9-20020a1cf609000000b003ed316d668dmr1176048wmc.5.1680871827427; Fri, 07 Apr 2023 05:50:27 -0700 (PDT) Received: from arinc9-PC.lan ([149.91.1.15]) by smtp.gmail.com with ESMTPSA id n37-20020a05600c3ba500b003f0652084b8sm8176596wms.20.2023.04.07.05.50.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 05:50:27 -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==?= , Krzysztof Kozlowski , 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 v2 5/7] dt-bindings: net: dsa: mediatek,mt7530: disallow reset without mediatek,mcm Date: Fri, 7 Apr 2023 15:50:07 +0300 Message-Id: <20230407125008.42474-5-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230407125008.42474-1-arinc.unal@arinc9.com> References: <20230407125008.42474-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-20230407_055031_260384_1BE1D5BC X-CRM114-Status: GOOD ( 11.67 ) 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 79ddd16e530b..b5db0f50aa59 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -274,6 +274,10 @@ allOf: required: - resets - reset-names + else: + properties: + resets: false + reset-names: false - dependencies: interrupt-controller: [ interrupts ] @@ -316,7 +320,6 @@ allOf: properties: gpio-controller: false mediatek,mcm: false - reset-names: false unevaluatedProperties: false From patchwork Fri Apr 7 12:50:08 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: 13204751 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 221D3C77B61 for ; Fri, 7 Apr 2023 12:51:33 +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=eMaUNP+x6xhSQInBOawPFWXjJKHDM9yV7ypSZns1h40=; b=UgD7rT21SqZuSz f01vOFdJdklurXvzby++vP8TxXmiLN8nlHRgQI7HmcN0ZjYcZ/POrI8/KI623Fsf+asIuFqbRM7Ix KnRMEQ8GQv6fEUBGWc0EWluzlN85cQa4XXnQEkDeYT56OAM/5QjBgVrE57Dq+yXjBo0ZwbZ+usHr9 ayswgurenk78+z51KIcEgCV/55IMJoVhTTEIYJXgCWEwgl/OuC1CP/dGGlf0VZsTXMbt/Jof6XjrQ zcE9oQYojXWfZ6/sUaxRgUqm8f2IJMkDVxjd1GcIiifDtaUuEaJsTpXonJfzFesLjGsp+TF+3GzdL DfB8ItIj3nMQQaoAjlSA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pklY9-00ACgN-2t; Fri, 07 Apr 2023 12:50:42 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pklXz-00ACZC-0f; Fri, 07 Apr 2023 12:50:32 +0000 Received: by mail-wm1-x335.google.com with SMTP id m8so13080026wmq.5; Fri, 07 Apr 2023 05:50:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680871830; 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=PT2R/N8DSjvq3gCY4oulVlTU0UqMGHgaoluEuUjzZCA=; b=HWigBAGSs7yP+Us6sjpXun72uAtox3ewvDqYb32bkrgH8/iGinnU7rqUJ18vtGP7BF VTX7nZRKTUkPz3fm79umRlUTPBk8lSX0BfAWoh8Qns4HoP0JdQRW60q7jp3i8+SX0KNh tUEGjqmiuBSE2EkzQpGaqPK/qrShmVHHIAFwGvDaueuzAx+RF8MkmT/0TpPOdJTR9ivn u9NYwKyDc0l5oXljz6jV1EyTKXf6QYv56is/tz9gQi2KvhgelvRLXBHUfvnQR9xQUMTI 8vmyZwUHtwtYywvHATxJXmnzXW5TNZ97jFFeMfmkQqpHsYY3s3YOCCOkw5hSnVfZ+EaY uNHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680871830; 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=PT2R/N8DSjvq3gCY4oulVlTU0UqMGHgaoluEuUjzZCA=; b=2v59bzylfUWWq0TactT94vKmi8GEPmIEgb98U42PjCuK4sRovF8cBphPQIcI/kByth 45SRGgnnLSFZTdY1nvITJ92bdrXLm5caxG58FtKcekeS5d+U63RdqF+9Dj9pBbbXNfh1 zzkzBJUm/15kaGq3jTDdEe2U+MLLEXqEoXo6A01Sm5bkkQlRwAw7CVGrmBWJ0YDo0fs5 tRiIc/NBK79s02Im428d+XirbsXUtwy9Z7PmP1DIRTZRrdZ1gonGFavPCJ0+54SlP1iY zP7fvWEPAyv6TU1G4XIj3mwLZIkxNVBOOl6EFqfYFiVzCLxNVqqphnMbFDoZE8MCHqs4 48/A== X-Gm-Message-State: AAQBX9cBaigVDU1gLKnjqcpt4kOQ27ThwtGmiF9lAJe3ec46+ZdVlxQj sYZ2AxFsWrDTkchdkm7rQcQ= X-Google-Smtp-Source: AKy350ZUvz2opaO63plSTQkaRGo/We03Acro9SeWKsVWVPci5sBss3eVrvBEdbUYYJH3O/X/VUGEJg== X-Received: by 2002:a05:600c:3649:b0:3eb:39e7:3607 with SMTP id y9-20020a05600c364900b003eb39e73607mr1565229wmq.4.1680871829627; Fri, 07 Apr 2023 05:50:29 -0700 (PDT) Received: from arinc9-PC.lan ([149.91.1.15]) by smtp.gmail.com with ESMTPSA id n37-20020a05600c3ba500b003f0652084b8sm8176596wms.20.2023.04.07.05.50.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 05:50:29 -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 v2 6/7] dt-bindings: net: dsa: mediatek,mt7530: disallow core-supply and io-supply Date: Fri, 7 Apr 2023 15:50:08 +0300 Message-Id: <20230407125008.42474-6-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230407125008.42474-1-arinc.unal@arinc9.com> References: <20230407125008.42474-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-20230407_055031_251554_63A26AC9 X-CRM114-Status: GOOD ( 10.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 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 b5db0f50aa59..3b85063d5b5a 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -291,6 +291,10 @@ allOf: required: - core-supply - io-supply + else: + properties: + core-supply: false + io-supply: false - if: properties: From patchwork Fri Apr 7 12:50:09 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: 13204935 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 BCAB1C77B70 for ; Fri, 7 Apr 2023 14:04:01 +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=C5Waog1UsjU7wiEv+lqXuyT+YOnym4ZDfACBVj9iBHQ=; b=NhEgZbvkXV1/ME HNqxQE2Fq5HeGzARr3tyjprGZjFjTzuNrlSmhSydZ1yya+ATjkfBbuae6AkIEU0ukfmttvNpTQHGU 5FmfJh2e+AwNVJDOAg0/E+mifWnGYY2+t7RdPZmzSc0JEMC+lwRhgvb/IJ2XuIZAV14Ay4z1dX1Ay S5hA2lE1MW/xiCWdQcwpoEu9dbeW0qO4co4fbEj1+tlh6qvavT/z/PtrTCAuD0s0FjfJWj5DI+uLB +QAw4HkxMa3zxIdeOYHPE00PBWkP+AwHbnQVem0//y5LqktPALsS57Cy0qGN2oHgkUYLyy+0AaxSq QklQP/zWK0enY2uWt5Lg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pkmgE-00ARSQ-0N; Fri, 07 Apr 2023 14:03:06 +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 1pklY2-00ACal-2E; Fri, 07 Apr 2023 12:50:36 +0000 Received: by mail-wm1-x32d.google.com with SMTP id p34so23987693wms.3; Fri, 07 Apr 2023 05:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680871832; 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=dLHvO2FfplQIRzVomYcprC2rvpDUKXpOVap/nUAtaf4=; b=XQt55Q3+7ebyW5LUhFMC4lVpV49B6vOtP6SDdNgq+QoR4bIsNLEE0/us9p504H8vt1 6avl8+8a1S3mTOdAkKbRBIPD/FO7E8HGngWPeKV3/x71qGasONJNQeeUL8mtqqNFRkCp SyKTTFgOaaZC20DTNFiltuszp2fZnmNtrFYUxS8aesPH7tP5F16h++VQxtxNKyb6Xcel RcsKQh+n+03VWbtQGKzzQNyCVZJQmd7garR9MEju6xX/51d4pF7fJfPPQkhmILDv8TFO 8GZQPNQnICnpTK5bWFhs0oXkzvJX6aeGljhXaC2MygC45km4gKlUEJuEeKTx0q/Ynw/F KPcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680871832; 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=dLHvO2FfplQIRzVomYcprC2rvpDUKXpOVap/nUAtaf4=; b=mSVPfaiesV8fHxEPZHr9/vg76csQ5yPrCwCLHSgegGqUo2QWYDDUvF7uYaa6Crtohv wHo3P5EleG6PLql8pBmoza/MIFi6fXs5yk9TxwuB7b9d2DXqw2AbLJ5WZr+Pv8Hd/oyr vZnT/Z21TAmplDXYCaLJkMff5ls0iMlTk3QSrt9fwmF/NRw3FCf197nx71SCvuwXta2x 3OjBkcEpR7HsakiHhxlaLm6aDBgQ/Vw1EexAvHinlIQWk2+rYU0Z/Ljxa15mcKg4Fubt cl9Gmx8s//5AC0LHNFlV8LHA6HtiPf3dkB2i3SuCovv9/Ytgd/ezmZUO5uxaobP5+qqZ EN+w== X-Gm-Message-State: AAQBX9dROfgb6z7l+OtDdvYKXKZJL8UR3/LxzDlYT8J9gRqdC2keurxh Ttza+C6fsG+DnDX4wyQnZcw= X-Google-Smtp-Source: AKy350YtsYxuyrbQ3Bd05zHmURZtqmHFghRDkFAgzc2WJ+jhxRWD4RZIe1RArSGHTemJx6ZplJl6SQ== X-Received: by 2002:a1c:6a1a:0:b0:3eb:383c:1870 with SMTP id f26-20020a1c6a1a000000b003eb383c1870mr1353860wmc.11.1680871831686; Fri, 07 Apr 2023 05:50:31 -0700 (PDT) Received: from arinc9-PC.lan ([149.91.1.15]) by smtp.gmail.com with ESMTPSA id n37-20020a05600c3ba500b003f0652084b8sm8176596wms.20.2023.04.07.05.50.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 05:50:31 -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 v2 7/7] dt-bindings: net: dsa: mediatek,mt7530: allow mediatek,mcm on MT7531 Date: Fri, 7 Apr 2023 15:50:09 +0300 Message-Id: <20230407125008.42474-7-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230407125008.42474-1-arinc.unal@arinc9.com> References: <20230407125008.42474-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-20230407_055034_820323_77808830 X-CRM114-Status: GOOD ( 10.84 ) 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 3b85063d5b5a..71ae431c61d1 100644 --- a/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml +++ b/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml @@ -304,7 +304,6 @@ allOf: $ref: "#/$defs/mt7531-dsa-port" properties: gpio-controller: false - mediatek,mcm: false - if: properties: