From patchwork Fri Jun 10 17:05:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 12877831 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 A5059C43334 for ; Fri, 10 Jun 2022 17:06:39 +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=A2KNJTxYZ88miLFLgBhI3MinMHSaqjgjdZYbz4r3fQA=; b=sRXAFqv/NxHIiw 9JuzCJjmgXo5Z+JO+xVutMdSr7EwBfSu1qDGgHY0lLJynztZqZQ7ZcYjNk0ygyFjgE41lnAzpGc+c ZBp7EMx9j4WwjQfZW+nu/fLNnTR5Gp9x5zOZk79t7af+fvgF3t93U+HKsnoqq60a9qCB9noIi2SFO Eyd/H200cnKpQ/zex+26zow6Yqc3J+hmo5Lz4TLEVAUa/2VKwzAdVKV95CxPjA/7B8MmNOuhAuJEO ZGGHqSMvzgYlFPru14UGR33a6nmSXxAU/f057I9rrJgI2imGnpOZwyqqsA3+GXRa/Qp4fMZT3gb0W crvxFWLZkY079wkKj++w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzi5b-0093cP-Cm; Fri, 10 Jun 2022 17:06:27 +0000 Received: from mxout3.routing.net ([2a03:2900:1:a::8]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzi5M-0093Se-QN; Fri, 10 Jun 2022 17:06:14 +0000 Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout3.routing.net (Postfix) with ESMTP id 759B7604C3; Fri, 10 Jun 2022 17:06:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1654880766; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=pDrlZAy3kJCxHKJSLpDfcRAgAZ5uvq2tLGud8Ozt00E=; b=xGbp7x7si1B6h/1C0Jfk2q+eiwlESBh2O7MtEPJYQy5+n8FyxKi1gr5ZLtWFqJvIA7JeGb jQ+iU5pw0t5w9zxkPGnUQxZb+fdh8IYzcOYTKrLHZaPKaqUKEiaU95Yt6i1na3AnZk3Zlg meTpB1Zadm2jjbOo3eHT8wMlmkp+eTg= Received: from frank-G5.. (fttx-pool-217.61.154.155.bambit.de [217.61.154.155]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 6F413100863; Fri, 10 Jun 2022 17:06:04 +0000 (UTC) From: Frank Wunderlich To: linux-rockchip@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Heiko Stuebner , Sean Wang , Landen Chao , DENG Qingfang , Peter Geis , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Greg Ungerer , =?utf-8?q?Ren=C3=A9_van_Dorst?= , "Mauro Carvalho Chehab" Subject: [PATCH v4 0/6] Support mt7531 on BPI-R2 Pro Date: Fri, 10 Jun 2022 19:05:35 +0200 Message-Id: <20220610170541.8643-1-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Mail-ID: 2b0c5315-20fe-4f65-8769-27f3112e1833 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220610_100613_066558_930FDE0A X-CRM114-Status: GOOD ( 12.47 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich This Series add Support for the mt7531 switch on Bananapi R2 Pro board. This board uses port5 of the switch to conect to the gmac0 of the rk3568 SoC. Currently CPU-Port is hardcoded in the mt7530 driver to port 6. Compared to v1 the reset-Patch was dropped as it was not needed and CPU-Port-changes are completely rewriten based on suggestions/code from Vladimir Oltean (many thanks to this). In DTS Patch i only dropped the status-property that was not needed/ignored by driver. Due to the Changes i also made a regression test on mt7623 bpi-r2 (mt7623 soc + mt7530) and bpi-r64 (mt7622 soc + mt7531) with cpu- port 6. Tests were done directly (ipv4 config on dsa user port) and with vlan-aware bridge including vlan that was tagged outgoing on dsa user port. v4: - rebase on 5.19-rc1 - some changes in bindings-document and fix wrong squashing from v3 Frank Wunderlich (6): dt-bindings: net: dsa: convert binding for mediatek switches net: dsa: mt7530: rework mt7530_hw_vlan_{add,del} net: dsa: mt7530: rework mt753[01]_setup net: dsa: mt7530: get cpu-port via dp->cpu_dp instead of constant dt-bindings: net: dsa: make reset optional and add rgmii-mode to mt7531 arm64: dts: rockchip: Add mt7531 dsa node to BPI-R2-Pro board .../bindings/net/dsa/mediatek,mt7530.yaml | 404 ++++++++++++++++++ .../devicetree/bindings/net/dsa/mt7530.txt | 327 -------------- .../boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 48 +++ drivers/net/dsa/mt7530.c | 82 ++-- drivers/net/dsa/mt7530.h | 1 - 5 files changed, 505 insertions(+), 357 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml delete mode 100644 Documentation/devicetree/bindings/net/dsa/mt7530.txt