From patchwork Sun Dec 8 00:20:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 13898447 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 C636FE7717D for ; Sun, 8 Dec 2024 00:23:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:To:From:Reply-To:Cc:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=oxK6gHbSDomuZXVvCjUyLPeNLyx79eeTj/m9WVWrsts=; b=uO2ShG3oR5QjxKrzavy25wl1t/ n8d9/wdAbWc1PyHHY97TubW7cFjdqJl1PgsYIltKtHj035N7oihoICd8QJWbPVevhbky+897/G+KC wxho8w8Uo9LPuB6qVU9bBVyEN8FKlinOUUKYr3/v98bpJEdpgp+fCLirY7LTax3CWJ6O/eQMDwCuJ eqHPrrB60uULzpLgsUA/bnsg4M5iNd0uY5GjFbAWPsbefMcsBDu8o1euay0vp5pziHuD6jriMbdmU udoF9UG/9U0PM/J7pO7fkbjuVc3xRqUtUxvJO+uPeRUyjWzNvuCJWM9oM9BjcNE2MjmBFqlkoJSt4 jFC4gweg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tK54S-00000004bQG-06fa; Sun, 08 Dec 2024 00:22:48 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tK53P-00000004b8c-1URe; Sun, 08 Dec 2024 00:21:44 +0000 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-38637614567so285569f8f.3; Sat, 07 Dec 2024 16:21:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733617301; x=1734222101; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=oxK6gHbSDomuZXVvCjUyLPeNLyx79eeTj/m9WVWrsts=; b=P6e7LmCT2mnjiNMX9dzHAsVeqpb6Ae2RHUwl5BQI7mGCYQ7sl9BXSoh35pVluBLmZN F5k/f4i08qSkHVJvxfwEWhaKd04zKaWePSh4/2IK671lY8CQCIdrtHcYhE/UrmnS2h4d 5W73N37zl7Tl+aPAzxCe4ZmknD9FKsOsxC90ntmqTyZBYq/YLnme2n3oE31EuDpVEumC OVaMT8bTmpETfarqwNhYtbpuDPdHbQfRNSlpsAl0JCDZ6xIMutmt6e28U3CoTMyJrfYK UsznqSa2mdnrAlaD1RRdlDPHbMd+cWdZzsQL9K9327P5lLfTHbH+R7A/c4RFmazXI8Yp /aqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733617301; x=1734222101; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oxK6gHbSDomuZXVvCjUyLPeNLyx79eeTj/m9WVWrsts=; b=V+Y5IKZ8y3wp7OZlot96oFe3nzVoJdLhYvjxIIUvGrqpGZPQzUS3etwsMw6Qmd9ibo ColBp+W64jBsCVIjMj7BX7CpJ+RE5XMpd1HLm2q+qoayJjDs5puENv8KbdvgyiZEthOk jakEJYT21WSSdNnCa+Ymiv7SftwBVdZlRtTZmvb8gZOazVNuu9s03GTsuuKHUh6A7hI1 T7Tutr1Ej+0dR3p/BkJSQVOKS8jFE7m7PX10dXB0lcOqENax2QjLYCwWruXBEle6Mauy bWodn8BJrJmjnleRRu8WVJV3VUUfEyro/1SwXP4xDsEpQ5ObzGZFxWhI3tfqKLKUSENh ztkw== X-Forwarded-Encrypted: i=1; AJvYcCUiieZ/ArVBSZCu1OmpkggLUObNUeIQudXa1k/wqBi9L1ADdRwAhOq9oEXxeGKDDHx9YoKzk/0fJgtolHVZmHw=@lists.infradead.org, AJvYcCVG8FlZ7H47UGZIQNM04qN2ZTEYIE1TOVkHyvMdgKl74TmQd2K/DVMg3Cvpm88MPY5JSrqpnNTDP42MWmaHm3B7@lists.infradead.org X-Gm-Message-State: AOJu0YzxvpLa8EMGkdu0haE5kCalNvl6/3Gi0dzfVqty7vraJBEPeqwb 5un522K+MNaoPzoK1BB7ko9AXsW4+PwKq+kqF26Pgufd22UIQeTQ X-Gm-Gg: ASbGncuM9aPFhonksIk37NplYRv21RSxsyTj/lNKI43wZJZhqFQfVYwW7ARFxUWcelr Ef/aDBcOx/v00WBslu8BWxKjOfESRCU2jS+f7CBs2qXZdRQMd4Exe60bQToSgtvEUrrYf9nKzBm RjjJx/Giyp81UWq9yp39VLc7oMzONwr7NOo9tPcs5ockqN4E+YeYylnWvoDDyDcfrFu/ywlPNgv P8njyHcLYub5ew4vEkSjWlF18vVXzw59Wr+g3bJvNOszBjiyrajNokppUx5JI1aMAl5QDDWZCNh dw1OaOQFv2K+vRhywvE= X-Google-Smtp-Source: AGHT+IH247g3mTnr9s8A/lc2V36VFje2UcvX6IjtjqEjyFKjWqiN50XmqqWFBpWou2bU7EWBH3SqRw== X-Received: by 2002:a05:6000:4014:b0:386:3213:5b9d with SMTP id ffacd0b85a97d-38632135fa3mr3606174f8f.41.1733617300547; Sat, 07 Dec 2024 16:21:40 -0800 (PST) Received: from localhost.localdomain (93-34-91-161.ip49.fastwebnet.it. [93.34.91.161]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-38621909644sm8719170f8f.76.2024.12.07.16.21.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Dec 2024 16:21:39 -0800 (PST) From: Christian Marangi To: Christian Marangi , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , Srinivas Kandagatla , Heiner Kallweit , Russell King , Matthias Brugger , AngeloGioacchino Del Regno , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, upstream@airoha.com Subject: [net-next PATCH v10 0/9] net: dsa: Add Airoha AN8855 support Date: Sun, 8 Dec 2024 01:20:35 +0100 Message-ID: <20241208002105.18074-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241207_162143_433539_2A1D98C1 X-CRM114-Status: UNSURE ( 7.58 ) 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 This small series add the initial support for the Airoha AN8855 Switch. It's a 5 port Gigabit Switch with SGMII/HSGMII upstream port. This is starting to get in the wild and there are already some router having this switch chip. It's conceptually similar to mediatek switch but register and bits are different. And there is that massive Hell that is the PCS configuration. Saddly for that part we have absolutely NO documentation currently. There is this special thing where PHY needs to be calibrated with values from the switch efuse. (the thing have a whole cpu timer and MCU) From v8 Driver is now evaluated with Kernel selftest scripts for DSA: Output local_termination.sh TEST: lan2: Unicast IPv4 to primary MAC address [ OK ] TEST: lan2: Unicast IPv4 to macvlan MAC address [ OK ] TEST: lan2: Unicast IPv4 to unknown MAC address [ OK ] TEST: lan2: Unicast IPv4 to unknown MAC address, promisc [ OK ] TEST: lan2: Unicast IPv4 to unknown MAC address, allmulti [ OK ] TEST: lan2: Multicast IPv4 to joined group [ OK ] TEST: lan2: Multicast IPv4 to unknown group [XFAIL] reception succeeded, but should have failed TEST: lan2: Multicast IPv4 to unknown group, promisc [ OK ] TEST: lan2: Multicast IPv4 to unknown group, allmulti [ OK ] TEST: lan2: Multicast IPv6 to joined group [ OK ] TEST: lan2: Multicast IPv6 to unknown group [XFAIL] reception succeeded, but should have failed TEST: lan2: Multicast IPv6 to unknown group, promisc [ OK ] TEST: lan2: Multicast IPv6 to unknown group, allmulti [ OK ] TEST: lan2: 1588v2 over L2 transport, Sync [ OK ] TEST: lan2: 1588v2 over L2 transport, Follow-Up [ OK ] TEST: lan2: 1588v2 over L2 transport, Peer Delay Request [ OK ] TEST: lan2: 1588v2 over IPv4, Sync [FAIL] reception failed TEST: lan2: 1588v2 over IPv4, Follow-Up [FAIL] reception failed TEST: lan2: 1588v2 over IPv4, Peer Delay Request [FAIL] reception failed TEST: lan2: 1588v2 over IPv6, Sync [FAIL] reception failed TEST: lan2: 1588v2 over IPv6, Follow-Up [FAIL] reception failed TEST: lan2: 1588v2 over IPv6, Peer Delay Request [FAIL] reception failed TEST: vlan_filtering=0 bridge: Unicast IPv4 to primary MAC address [ OK ] TEST: vlan_filtering=0 bridge: Unicast IPv4 to macvlan MAC address [ OK ] TEST: vlan_filtering=0 bridge: Unicast IPv4 to unknown MAC address [ OK ] TEST: vlan_filtering=0 bridge: Unicast IPv4 to unknown MAC address, promisc [ OK ] TEST: vlan_filtering=0 bridge: Unicast IPv4 to unknown MAC address, allmulti [ OK ] TEST: vlan_filtering=0 bridge: Multicast IPv4 to joined group [ OK ] TEST: vlan_filtering=0 bridge: Multicast IPv4 to unknown group [XFAIL] reception succeeded, but should have failed TEST: vlan_filtering=0 bridge: Multicast IPv4 to unknown group, promisc [ OK ] TEST: vlan_filtering=0 bridge: Multicast IPv4 to unknown group, allmulti [ OK ] TEST: vlan_filtering=0 bridge: Multicast IPv6 to joined group [ OK ] TEST: vlan_filtering=0 bridge: Multicast IPv6 to unknown group [XFAIL] reception succeeded, but should have failed TEST: vlan_filtering=0 bridge: Multicast IPv6 to unknown group, promisc [ OK ] TEST: vlan_filtering=0 bridge: Multicast IPv6 to unknown group, allmulti [ OK ] TEST: vlan_filtering=1 bridge: Unicast IPv4 to primary MAC address [ OK ] TEST: vlan_filtering=1 bridge: Unicast IPv4 to macvlan MAC address [ OK ] TEST: vlan_filtering=1 bridge: Unicast IPv4 to unknown MAC address [ OK ] TEST: vlan_filtering=1 bridge: Unicast IPv4 to unknown MAC address, promisc [ OK ] TEST: vlan_filtering=1 bridge: Unicast IPv4 to unknown MAC address, allmulti [ OK ] TEST: vlan_filtering=1 bridge: Multicast IPv4 to joined group [ OK ] TEST: vlan_filtering=1 bridge: Multicast IPv4 to unknown group [XFAIL] reception succeeded, but should have failed TEST: vlan_filtering=1 bridge: Multicast IPv4 to unknown group, promisc [ OK ] TEST: vlan_filtering=1 bridge: Multicast IPv4 to unknown group, allmulti [ OK ] TEST: vlan_filtering=1 bridge: Multicast IPv6 to joined group [ OK ] TEST: vlan_filtering=1 bridge: Multicast IPv6 to unknown group [XFAIL] reception succeeded, but should have failed TEST: vlan_filtering=1 bridge: Multicast IPv6 to unknown group, promisc [ OK ] TEST: vlan_filtering=1 bridge: Multicast IPv6 to unknown group, allmulti [ OK ] TEST: VLAN upper: Unicast IPv4 to primary MAC address [ OK ] TEST: VLAN upper: Unicast IPv4 to macvlan MAC address [ OK ] TEST: VLAN upper: Unicast IPv4 to unknown MAC address [ OK ] TEST: VLAN upper: Unicast IPv4 to unknown MAC address, promisc [ OK ] TEST: VLAN upper: Unicast IPv4 to unknown MAC address, allmulti [ OK ] TEST: VLAN upper: Multicast IPv4 to joined group [ OK ] TEST: VLAN upper: Multicast IPv4 to unknown group [XFAIL] reception succeeded, but should have failed TEST: VLAN upper: Multicast IPv4 to unknown group, promisc [ OK ] TEST: VLAN upper: Multicast IPv4 to unknown group, allmulti [ OK ] TEST: VLAN upper: Multicast IPv6 to joined group [ OK ] TEST: VLAN upper: Multicast IPv6 to unknown group [XFAIL] reception succeeded, but should have failed TEST: VLAN upper: Multicast IPv6 to unknown group, promisc [ OK ] TEST: VLAN upper: Multicast IPv6 to unknown group, allmulti [ OK ] TEST: VLAN upper: 1588v2 over L2 transport, Sync [ OK ] TEST: VLAN upper: 1588v2 over L2 transport, Follow-Up [FAIL] reception failed TEST: VLAN upper: 1588v2 over L2 transport, Peer Delay Request [ OK ] TEST: VLAN upper: 1588v2 over IPv4, Sync [FAIL] reception failed ;TEST: VLAN upper: 1588v2 over IPv4, Follow-Up [FAIL] reception failed TEST: VLAN upper: 1588v2 over IPv4, Peer Delay Request [FAIL] reception failed TEST: VLAN upper: 1588v2 over IPv6, Sync [FAIL] reception failed TEST: VLAN upper: 1588v2 over IPv6, Follow-Up [FAIL] reception failed TEST: VLAN upper: 1588v2 over IPv6, Peer Delay Request [FAIL] reception failed TEST: VLAN over vlan_filtering=0 bridged port: Unicast IPv4 to primary MAC address [ OK ] TEST: VLAN over vlan_filtering=0 bridged port: Unicast IPv4 to macvlan MAC address [ OK ] TEST: VLAN over vlan_filtering=0 bridged port: Unicast IPv4 to unknown MAC address [ OK ] TEST: VLAN over vlan_filtering=0 bridged port: Unicast IPv4 to unknown MAC address, promisc [ OK ] TEST: VLAN over vlan_filtering=0 bridged port: Unicast IPv4 to unknown MAC address, allmulti [ OK ] TEST: VLAN over vlan_filtering=0 bridged port: Multicast IPv4 to joined group [ OK ] TEST: VLAN over vlan_filtering=0 bridged port: Multicast IPv4 to unknown group [XFAIL] reception succeeded, but should have failed TEST: VLAN over vlan_filtering=0 bridged port: Multicast IPv4 to unknown group, promisc [ OK ] TEST: VLAN over vlan_filtering=0 bridged port: Multicast IPv4 to unknown group, allmulti [ OK ] TEST: VLAN over vlan_filtering=0 bridged port: Multicast IPv6 to joined group [ OK ] TEST: VLAN over vlan_filtering=0 bridged port: Multicast IPv6 to unknown group [XFAIL] reception succeeded, but should have failed TEST: VLAN over vlan_filtering=0 bridged port: Multicast IPv6 to unknown group, promisc [ OK ] TEST: VLAN over vlan_filtering=0 bridged port: Multicast IPv6 to unknown group, allmulti [ OK ] TEST: VLAN over vlan_filtering=0 bridged port: 1588v2 over L2 transport, Sync [ OK ] TEST: VLAN over vlan_filtering=0 bridged port: 1588v2 over L2 transport, Follow-Up [ OK ] TEST: VLAN over vlan_filtering=0 bridged port: 1588v2 over L2 transport, Peer Delay Request [ OK ] TEST: VLAN over vlan_filtering=0 bridged port: 1588v2 over IPv4, Sync [FAIL] reception failed TEST: VLAN over vlan_filtering=0 bridged port: 1588v2 over IPv4, Follow-Up [FAIL] reception failed TEST: VLAN over vlan_filtering=0 bridged port: 1588v2 over IPv4, Peer Delay Request [FAIL] reception failed TEST: VLAN over vlan_filtering=0 bridged port: 1588v2 over IPv6, Sync [FAIL] reception failed TEST: VLAN over vlan_filtering=0 bridged port: 1588v2 over IPv6, Follow-Up [FAIL] reception failed TEST: VLAN over vlan_filtering=0 bridged port: 1588v2 over IPv6, Peer Delay Request [FAIL] reception failed TEST: VLAN over vlan_filtering=1 bridged port: Unicast IPv4 to primary MAC address [ OK ] TEST: VLAN over vlan_filtering=1 bridged port: Unicast IPv4 to macvlan MAC address [ OK ] TEST: VLAN over vlan_filtering=1 bridged port: Unicast IPv4 to unknown MAC address [FAIL] reception succeeded, but should have failed TEST: VLAN over vlan_filtering=1 bridged port: Unicast IPv4 to unknown MAC address, promisc [ OK ] TEST: VLAN over vlan_filtering=1 bridged port: Unicast IPv4 to unknown MAC address, allmulti [FAIL] reception succeeded, but should have failed TEST: VLAN over vlan_filtering=1 bridged port: Multicast IPv4 to joined group [ OK ] TEST: VLAN over vlan_filtering=1 bridged port: Multicast IPv4 to unknown group [XFAIL] reception succeeded, but should have failed TEST: VLAN over vlan_filtering=1 bridged port: Multicast IPv4 to unknown group, promisc [ OK ] TEST: VLAN over vlan_filtering=1 bridged port: Multicast IPv4 to unknown group, allmulti [ OK ] TEST: VLAN over vlan_filtering=1 bridged port: Multicast IPv6 to joined group [ OK ] TEST: VLAN over vlan_filtering=1 bridged port: Multicast IPv6 to unknown group [XFAIL] reception succeeded, but should have failed TEST: VLAN over vlan_filtering=1 bridged port: Multicast IPv6 to unknown group, promisc [ OK ] TEST: VLAN over vlan_filtering=1 bridged port: Multicast IPv6 to unknown group, allmulti [ OK ] TEST: VLAN over vlan_filtering=1 bridged port: 1588v2 over L2 transport, Sync [ OK ] TEST: VLAN over vlan_filtering=1 bridged port: 1588v2 over L2 transport, Follow-Up [ OK ] TEST: VLAN over vlan_filtering=1 bridged port: 1588v2 over L2 transport, Peer Delay Request [ OK ] TEST: VLAN over vlan_filtering=1 bridged port: 1588v2 over IPv4, Sync [FAIL] reception failed TEST: VLAN over vlan_filtering=1 bridged port: 1588v2 over IPv4, Follow-Up [FAIL] reception failed TEST: VLAN over vlan_filtering=1 bridged port: 1588v2 over IPv4, Peer Delay Request [FAIL] reception failed TEST: VLAN over vlan_filtering=1 bridged port: 1588v2 over IPv6, Sync [FAIL] reception failed TEST: VLAN over vlan_filtering=1 bridged port: 1588v2 over IPv6, Follow-Up [FAIL] reception failed TEST: VLAN over vlan_filtering=1 bridged port: 1588v2 over IPv6, Peer Delay Request [FAIL] reception failed TEST: VLAN over vlan_filtering=0 bridge: Unicast IPv4 to primary MAC address [ OK ] TEST: VLAN over vlan_filtering=0 bridge: Unicast IPv4 to macvlan MAC address [ OK ] TEST: VLAN over vlan_filtering=0 bridge: Unicast IPv4 to unknown MAC address [ OK ] TEST: VLAN over vlan_filtering=0 bridge: Unicast IPv4 to unknown MAC address, promisc [ OK ] TEST: VLAN over vlan_filtering=0 bridge: Unicast IPv4 to unknown MAC address, allmulti [ OK ] TEST: VLAN over vlan_filtering=0 bridge: Multicast IPv4 to joined group [ OK ] TEST: VLAN over vlan_filtering=0 bridge: Multicast IPv4 to unknown group [XFAIL] reception succeeded, but should have failed TEST: VLAN over vlan_filtering=0 bridge: Multicast IPv4 to unknown group, promisc [ OK ] TEST: VLAN over vlan_filtering=0 bridge: Multicast IPv4 to unknown group, allmulti [ OK ] TEST: VLAN over vlan_filtering=0 bridge: Multicast IPv6 to joined group [ OK ] TEST: VLAN over vlan_filtering=0 bridge: Multicast IPv6 to unknown group [XFAIL] reception succeeded, but should have failed TEST: VLAN over vlan_filtering=0 bridge: Multicast IPv6 to unknown group, promisc [ OK ] TEST: VLAN over vlan_filtering=0 bridge: Multicast IPv6 to unknown group, allmulti [ OK ] TEST: VLAN over vlan_filtering=1 bridge: Unicast IPv4 to primary MAC address [ OK ] TEST: VLAN over vlan_filtering=1 bridge: Unicast IPv4 to macvlan MAC address [ OK ] TEST: VLAN over vlan_filtering=1 bridge: Unicast IPv4 to unknown MAC address [ OK ] TEST: VLAN over vlan_filtering=1 bridge: Unicast IPv4 to unknown MAC address, promisc [ OK ] TEST: VLAN over vlan_filtering=1 bridge: Unicast IPv4 to unknown MAC address, allmulti [ OK ] TEST: VLAN over vlan_filtering=1 bridge: Multicast IPv4 to joined group [ OK ] TEST: VLAN over vlan_filtering=1 bridge: Multicast IPv4 to unknown group [XFAIL] reception succeeded, but should have failed TEST: VLAN over vlan_filtering=1 bridge: Multicast IPv4 to unknown group, promisc [ OK ] TEST: VLAN over vlan_filtering=1 bridge: Multicast IPv4 to unknown group, allmulti [ OK ] TEST: VLAN over vlan_filtering=1 bridge: Multicast IPv6 to joined group [ OK ] TEST: VLAN over vlan_filtering=1 bridge: Multicast IPv6 to unknown group [XFAIL] reception succeeded, but should have failed TEST: VLAN over vlan_filtering=1 bridge: Multicast IPv6 to unknown group, promisc [ OK ] TEST: VLAN over vlan_filtering=1 bridge: Multicast IPv6 to unknown group, allmulti [ OK ] Output bridge_vlan_unaware.sh TEST: ping [ OK ] TEST: ping6 [ OK ] TEST: FDB learning [ OK ] TEST: Unknown unicast flood [ OK ] TEST: Unregistered multicast flood [ OK ] Output bridge_vlan_aware.sh TEST: ping [ OK ] TEST: ping6 [ OK ] TEST: FDB learning [ OK ] TEST: Unknown unicast flood [ OK ] TEST: Unregistered multicast flood [ OK ] INFO: Add and delete a VLAN on bridge port lan2 TEST: ping [ OK ] TEST: ping6 [ OK ] TEST: Externally learned FDB entry - ageing & roaming [ OK ] TEST: FDB entry in PVID for VLAN-tagged with other TPID [FAIL] FDB entry was not learned when it should TEST: Reception of VLAN with other TPID as untagged [FAIL] Packet was not forwarded when it should TEST: Reception of VLAN with other TPID as untagged (no PVID) [FAIL] Packet was forwarded when should not [ For Vladimir, I still have to implement fdb_isolation but posting to start the ball rolling for the multiple subsystem this patch affect and for the dubious DT schema ] Changes v10: - Entire rework to MFD + split to MDIO, EFUSE, SWITCH separate drivers - Drop EEE OPs (while Russell finish RFC for EEE changes) - Use new pcs_inpand OPs - Drop AN restart function and move to pcs_config - Enable assisted_learning and disable CPU learn (preparation for fdb_isolation) - Move EFUSE read in Internal PHY driver to .config to handle EPROBE_DEFER (needed now that NVMEM driver is register externall instead of internally to switch node) Changes v9: - Error out on using 5G speed as currently not supported - Add missing MAC_2500FD in phylink mac_capabilities - Add comment and improve if condition for an8855_phylink_mac_config Changes v8: - Add port Fast Age support - Add support for Port Isolation - Use correct register for Learning Disable - Add support for Ageing Time OP - Set default PVID to 0 by default - Add mdb OPs - Add port change MTU - Fix support for Upper VLAN Changes v7: - Fix devm_dsa_register_switch wrong export symbol Changes v6: - Drop standard MIB and handle with ethtool OPs (as requested by Jakub) - Cosmetic: use bool instead of 0 or 1 Changes v5: - Add devm_dsa_register_switch() patch - Add Reviewed-by tag for DT patch Changes v4: - Set regmap readable_table static (mute compilation warning) - Add support for port_bridge flags (LEARNING, FLOOD) - Reset fdb struct in fdb_dump - Drop support_asym_pause in port_enable - Add define for get_phy_flags - Fix bug for port not inititially part of a bridge (in an8855_setup the port matrix was always cleared but the CPU port was never initially added) - Disable learning and flood for user port by default - Set CPU port to flood and learning by default - Correctly AND force duplex and flow control in an8855_phylink_mac_link_up - Drop RGMII from pcs_config - Check ret in "Disable AN if not in autoneg" - Use devm_mutex_init - Fix typo for AN8855_PORT_CHECK_MODE - Better define AN8855_STP_LISTENING = AN8855_STP_BLOCKING - Fix typo in AN8855_PHY_EN_DOWN_SHIFT - Use paged helper for PHY - Skip calibration in config_init if priv not defined Changes v3: - Out of RFC - Switch PHY code to select_page API - Better describe masks and bits in PHY driver for ADC register - Drop raw values and use define for mii read/write - Switch to absolute PHY address - Replace raw values with mask and bits for pcs_config - Fix typo for ext-surge property name - Drop support for relocating Switch base PHY address on the bus Changes v2: - Drop mutex guard patch - Drop guard usage in DSA driver - Use __mdiobus_write/read - Check return condition and return errors for mii read/write - Fix wrong logic for EEE - Fix link_down (don't force link down with autoneg) - Fix forcing speed on sgmii autoneg - Better document link speed for sgmii reg - Use standard define for sgmii reg - Imlement nvmem support to expose switch EFUSE - Rework PHY calibration with the use of NVMEM producer/consumer - Update DT with new NVMEM property - Move aneg validation for 2500-basex in pcs_config - Move r50Ohm table and function to PHY driver Christian Marangi (9): dt-bindings: nvmem: Document support for Airoha AN8855 Switch EFUSE dt-bindings: net: Document support for Airoha AN8855 Switch Virtual MDIO dt-bindings: net: dsa: Document support for Airoha AN8855 DSA Switch dt-bindings: mfd: Document support for Airoha AN8855 Switch SoC mfd: an8855: Add support for Airoha AN8855 Switch MFD net: mdio: Add Airoha AN8855 Switch MDIO Passtrough nvmem: an8855: Add support for Airoha AN8855 Switch EFUSE net: dsa: Add Airoha AN8855 5-Port Gigabit DSA Switch driver net: phy: Add Airoha AN8855 Internal Switch Gigabit PHY .../bindings/mfd/airoha,an8855-mfd.yaml | 185 ++ .../bindings/net/airoha,an8855-mdio.yaml | 86 + .../net/dsa/airoha,an8855-switch.yaml | 105 + .../bindings/nvmem/airoha,an8855-efuse.yaml | 123 + MAINTAINERS | 17 + drivers/mfd/Kconfig | 9 + drivers/mfd/Makefile | 1 + drivers/mfd/airoha-an8855.c | 279 ++ drivers/net/dsa/Kconfig | 9 + drivers/net/dsa/Makefile | 1 + drivers/net/dsa/an8855.c | 2308 +++++++++++++++++ drivers/net/dsa/an8855.h | 783 ++++++ drivers/net/mdio/Kconfig | 9 + drivers/net/mdio/Makefile | 1 + drivers/net/mdio/mdio-an8855.c | 113 + drivers/net/phy/Kconfig | 5 + drivers/net/phy/Makefile | 1 + drivers/net/phy/air_an8855.c | 267 ++ drivers/nvmem/Kconfig | 11 + drivers/nvmem/Makefile | 2 + drivers/nvmem/an8855-efuse.c | 63 + include/linux/mfd/airoha-an8855-mfd.h | 41 + 22 files changed, 4419 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/airoha,an8855-mfd.yaml create mode 100644 Documentation/devicetree/bindings/net/airoha,an8855-mdio.yaml create mode 100644 Documentation/devicetree/bindings/net/dsa/airoha,an8855-switch.yaml create mode 100644 Documentation/devicetree/bindings/nvmem/airoha,an8855-efuse.yaml create mode 100644 drivers/mfd/airoha-an8855.c create mode 100644 drivers/net/dsa/an8855.c create mode 100644 drivers/net/dsa/an8855.h create mode 100644 drivers/net/mdio/mdio-an8855.c create mode 100644 drivers/net/phy/air_an8855.c create mode 100644 drivers/nvmem/an8855-efuse.c create mode 100644 include/linux/mfd/airoha-an8855-mfd.h