Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4788724iob; Mon, 9 May 2022 01:27:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjs9h8I8p1vhrh/7AJjf4cuvmX1CrkwvRQfhnqmSFoHYpiO/xx5yu1tSkamz2jH0wlZQ3Q X-Received: by 2002:a05:6638:1509:b0:32b:d44c:9049 with SMTP id b9-20020a056638150900b0032bd44c9049mr5068493jat.290.1652084846220; Mon, 09 May 2022 01:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652084846; cv=none; d=google.com; s=arc-20160816; b=i67OjUr6hiHW3VaDfd7zaAixVCtmJmC5408RIP3M0Ck674pnxV29qpxmwSR0E81MQ1 92zC8mkIuFC3am7FOvDV1tMQe5ZpqK/15htIVFXJex4qUv9H22VAnQKFeNTtlYGt7g+r QrpxGoLhKC/Gh0BvA50oV5eKXcCTAmYp8xV1aLH7eLGl5xwfQU5O0Co6V8OZNBfhHbAB J4Ugf7Bg0bLwNac4CqNI9mtuzlDgZq4YlWDx4U+tKBZIYxhyr7kXS+WWOufIXncoYOTx FcZR6vwLSrqQV6nlH0E2vOqgbzdzeHoibUaK5WNOY54omS9nue6hCuzz1wuGOH3xJmom 6U/A== 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=EjaSzJO2uUUmd5uhe8Cz84DcqNwhDvLFMPUk6p2YS/w=; b=EfosVNGzGlFEmHfhw3zf5gi/9IjVLf21pFqWImvPorGEwsLAJxuh0D2o6vhDbBDP3B FFW70zK7/qwX1xfgwURitWQ/tVRhXiPFtKtt3P97yxOnY2rQWI/t1C3lYhdRZnpjfR4W b/lv1M2SRu5Md4veLbb44Z535431na/Z40uPr8GDmLiqa96d7wu3vWmDWbC63hvxniw2 2vhaY7IKhWWm36fl0LjrnPsKH27VT+ZHk0BoRfWhB0r/FUYEabEJY9k7ogCdcaeJRyGj /t9dF+LBJfOdvO/cSJNMDZ63vwD9i3AEYZhhkIQQIryVLxeYsGlfFL/uQtMCCWrO0vxN gw/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=u7ml8eB1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k3-20020a056638140300b003212acaaa24si10198349jad.160.2022.05.09.01.27.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 01:27:25 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=u7ml8eB1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2894F15EA4C; Mon, 9 May 2022 01:13:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1446690AbiEGRJq (ORCPT + 99 others); Sat, 7 May 2022 13:09:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243583AbiEGRIk (ORCPT ); Sat, 7 May 2022 13:08:40 -0400 Received: from mxout3.routing.net (mxout3.routing.net [IPv6:2a03:2900:1:a::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4699E1AD83; Sat, 7 May 2022 10:04:53 -0700 (PDT) Received: from mxbox4.masterlogin.de (unknown [192.168.10.79]) by mxout3.routing.net (Postfix) with ESMTP id A35D2604E9; Sat, 7 May 2022 17:04:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1651943090; 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=EjaSzJO2uUUmd5uhe8Cz84DcqNwhDvLFMPUk6p2YS/w=; b=u7ml8eB1fN+vbtefw+qMcmyX+1x1u+VpRfN7Qm4QGQK3PfOjiFFDhbtiKiHKpl3ITd/h/f 3aJN4bZopDwRZfuHzZy/qQEA5AQxmoyTD1CcKIv7wBHwEBVy1G72nkZG2/GWbkQ3Mb1+Qa P6XeQOfNH4/HylmPQdkCehDTQoFB7xY= Received: from localhost.localdomain (fttx-pool-80.245.74.2.bambit.de [80.245.74.2]) by mxbox4.masterlogin.de (Postfix) with ESMTPSA id 376E2800AB; Sat, 7 May 2022 17:04:49 +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" , 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=20van=20Dorst?= , "Mauro Carvalho Chehab" Subject: [PATCH v3 0/6] Support mt7531 on BPI-R2 Pro Date: Sat, 7 May 2022 19:04:34 +0200 Message-Id: <20220507170440.64005-1-linux@fw-web.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: da758d6d-308b-42e9-967d-54e70fb985a9 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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. Main change is that i now include the binding-changes into the patchset which i posted separately. 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 | 421 ++++++++++++++++++ .../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, 522 insertions(+), 357 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml delete mode 100644 Documentation/devicetree/bindings/net/dsa/mt7530.txt -- 2.25.1