Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3197204iob; Sun, 1 May 2022 09:23:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyu48FxRe7qvg6TouGHFN9osty9Tif5Ocvg/gVl+NSqRx5ivi9OhnTUmgD6WUKmQ9URtYmt X-Received: by 2002:a17:902:d5ce:b0:158:48db:9719 with SMTP id g14-20020a170902d5ce00b0015848db9719mr8184675plh.7.1651422215039; Sun, 01 May 2022 09:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651422215; cv=none; d=google.com; s=arc-20160816; b=QcLv2xNInl/zpNcaNj8eVaZF6k7C6XjrK3DHFg5zlE+81BR06DwA2yRkOgmfIaq/wl CERGGx9XqF6P70VW9L5FmGQnicXnEUFGKapp0dqdyu2Lp0x/GE9KO1twavHJ9xxCDWxl NakNI4gWjKPA3C0nfs55rARxv6a7Oe5QxISHGGR8dyvUfnskc+6yvjYlc07dQ3aGDDKz oBG7i0DfjxrEGOerLKPuLUzkClBZ8BhOdS4t2/kADPXkq6PT5ehSbctvkHZc/ISvk/8O EvJVmKcl3adbYAARLV+7GfMJTHaoH86BucOC90GJKxXTnX5mMgiT97kD6WMcdQcBM52k UMrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=E/DjbKxcbIiIW9rYKpEMs3z/xZdjhL53L8stR7y8sO4=; b=jKgI09B/HqiDlW1B5JlfC8Waf8hC1SnCwB7H8K8nwuI2lOZPvq51pgc0aCVgzJwK8a 6IAxEedS08jJRvHsMZau4evcOCeWkQAxfeBKG+9W98ZvYaCj4Ik7+YaEa/wwaB+sVIQf 60D3aJibyI1n8BN4p9QOpW5+WrikiRf1BPVeIrN0QgbKA3swJE2Xj0TBf3p1in6v8n1B CyRWtGZJP/JIfFx0PniElLu3US7Eqzu/dP5Lumj+oQdhA/bKhyL68QZrJhiB7lbqE0DE kOvAyFsZcUpcLR1d2grX6yOzo2DvL6m2zrTx+0CRrVcOG1OXa9dBDss2ruK5G3XjJF4f 2yzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b="c/b2QyYw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s21-20020a63ff55000000b003a821909e2fsi12230402pgk.716.2022.05.01.09.23.15; Sun, 01 May 2022 09:23:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b="c/b2QyYw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380401AbiD3NHZ (ORCPT + 99 others); Sat, 30 Apr 2022 09:07:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232192AbiD3NHY (ORCPT ); Sat, 30 Apr 2022 09:07:24 -0400 Received: from mxout3.routing.net (mxout3.routing.net [IPv6:2a03:2900:1:a::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFDCC8071F; Sat, 30 Apr 2022 06:04:01 -0700 (PDT) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout3.routing.net (Postfix) with ESMTP id DA8BC6054A; Sat, 30 Apr 2022 13:03:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1651323839; 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=E/DjbKxcbIiIW9rYKpEMs3z/xZdjhL53L8stR7y8sO4=; b=c/b2QyYwrIXU5MbbqgvfcAfL4FUW9cZZKO0WzmDYe7xspvdKnTqhl3uEd3tymKqcZ2zZ59 UG0RabZgG7IZYViF/AZ6N+MnHtUdzPBYfsByChAIUePYmEx8natLwxwu3IcmdSKWNz/JFn //VNzhNLCclCBauqbsf/bSVec02HjAg= Received: from localhost.localdomain (fttx-pool-80.245.72.211.bambit.de [80.245.72.211]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 5AC8B3600EF; Sat, 30 Apr 2022 13:03:57 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org Cc: Frank Wunderlich , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Sean Wang , Landen Chao , DENG Qingfang , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Matthias Brugger , Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [RFC v2 0/4] Support mt7531 on BPI-R2 Pro Date: Sat, 30 Apr 2022 15:03:43 +0200 Message-Id: <20220430130347.15190-1-linux@fw-web.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: b931c4e7-0a19-447e-82b1-0aeac9a6c684 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 using mt7530 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. Frank Wunderlich (4): 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 arm64: dts: rockchip: Add mt7531 dsa node to BPI-R2-Pro board .../boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 48 +++++++++++ drivers/net/dsa/mt7530.c | 81 ++++++++++++------- drivers/net/dsa/mt7530.h | 1 - 3 files changed, 100 insertions(+), 30 deletions(-) -- 2.25.1