From patchwork Mon Dec 9 13:44:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 13899820 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 9A48BE7717D for ; Mon, 9 Dec 2024 13:47:00 +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=3CCZU7ENicgu34MA/g4zY6ZxU8yzmdvxXC+8cIzH1yg=; b=2ZURrcGdSWbanLz4inYgCUSKgg UAb/ThcnIr+M9Ynx30WADk5cKEA592GVJ9hY8LBRTgbiyBV4OlW1eKYWr+UHIC6Twz9DkUcbZXVFB c29Um9POPlcuO35Cb0vWfIEFEFC1QSsT1hkg/BUKLaBrltCRX3tBJm0qXDS66Z5e8Yp/04zkxI3kF i8deanDdy/0yEG8GLrhf0cbKjFaxUYZ1vupi0Onmeakq/fa+mFARlUKj0aTj1UfwOWedmMjll2V/j ARKYQKBd9vbxKeiPwcJtzDNP2iLypnhv/JcXGuvowIlqkV5ljgvsR/LL9tioJYPhsv9NVNgs+sWtX ivij+Lyg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tKe63-000000083q5-2g4J; Mon, 09 Dec 2024 13:46:47 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tKe50-000000083Wb-08su; Mon, 09 Dec 2024 13:45:43 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-434e406a547so14524915e9.3; Mon, 09 Dec 2024 05:45:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733751940; x=1734356740; 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=3CCZU7ENicgu34MA/g4zY6ZxU8yzmdvxXC+8cIzH1yg=; b=hCOyKHcn0c5srClOYsAlP8MqSTzgZ1lKoOGpW0Aem/Xug6GatBrO+T0uYhEw6hGfMv mv7r4Q8Pv4beUot14d8J4yPb9PqI37V/bhB1r9iUbndbnSB4oZYgTtyTsc5D0keznpCY bHgGLmJNaKOnLgmXV73tWqgk9FP5b8bdYvGgV6KHiWcPljDzn6aNSZc20xmQ1ZzgW3jo PBqPJpWnEHaqj0xKJRYgzh2WIb+Bk5n2euKuYpit4ESFc5tonDcQOqgapyeJwrSz/zhK ZI51AN508GQdLb8qIEu6PZhYEQyFpDzJrynmtCg3oL1pE3QO7mZvN3jkLSpcZM2WXZh7 0svg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733751940; x=1734356740; 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=3CCZU7ENicgu34MA/g4zY6ZxU8yzmdvxXC+8cIzH1yg=; b=JlwzqyOyqZQbqWXmJA8IW3mGwZCtDeNZB8ypNuVgWK+Wt5w/FtOYq37A39TUP3iOk2 qvcyVM1iQBPx0lRCS0l0zn2fbEL4L5Qk094CsjshbVXm2Edh9aLNeYW9YGr5hPA6lCqF +/CWTWOGXAjZpm/Pl2XsGlANWRdoaz8vntFZ8rXDgCU1Hdn6yI0Q3OfOGnu+50eEUzc/ 3mWMyio/vc0PvDrgF8lgGOqZpb1gdsFXOOqkCTCJah6B9AV9pEnwW8U320/Oc7q4jTCL 7OIslBFGBrstheBLdbgC34NQZBORq1j7tzQ31ItYa1UH+/U34TmuSIgbsWu40a+91Abq t11Q== X-Forwarded-Encrypted: i=1; AJvYcCVyg5kAqxumeSx8ooL1LV3BK4BGWK2Gs8c33B68Bw9pSL4EOykVlOSUZzP8CT4ehjCag82OqxtUlUqJUP1bz6zo@lists.infradead.org, AJvYcCVzVP2vC/3c35gBYmqDmYkv348jBmUJgAiVowJTNI3mf+BPD2euRCO62ropqDqZ/n2BmPdzMddC1A46JPnFeaM=@lists.infradead.org X-Gm-Message-State: AOJu0YzHclR49jMlvuvxEuQDi9f8PLliN5kRlWTyO41XdO2IoDgBUnFB 1W7L7h8Up6dGv7n5zOq5wcsADTOEMkN1xh/8LzHtaA9n7BnlU85b X-Gm-Gg: ASbGncvP+WaLAWVDAdEbxQ+ab7ubLC5GfZ06ultS3WVTvB5J/7APBRAJaYl3rlA7fcx IuR028scTpuozSiBwOJ15GY9AeMtonM5lBlLK9iSYoEhQRwA3UVbJa9pHhLcD1m+Xmv+EH7Crz0 WHAclNI4fq7oXdVHfRTGPr6Hr+kGFLM+ZU2nBteCV4Q/l3CXDLR9KHyyqwAdM3rSXONS1tYtN79 bvdiwTn95EHuRImoWf+DnWdIxt57uWnfdJnWDjqCy7oLsx2tOuGcKpa2dPdK5S5r5DVt3cQaVon tmljIgbYW6UCTbFJ68I= X-Google-Smtp-Source: AGHT+IFk95UETcn66UjgCu8jJgNbA54TVXKtC2Dzef9aZupiSoxKaMi7bWHjdB6hZp5z6jfcRPFaSQ== X-Received: by 2002:a05:600c:5101:b0:434:e2ea:fc94 with SMTP id 5b1f17b1804b1-434fff42653mr4558095e9.11.1733751939474; Mon, 09 Dec 2024 05:45:39 -0800 (PST) Received: from localhost.localdomain (93-34-91-161.ip49.fastwebnet.it. [93.34.91.161]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-434f30bceadsm62705135e9.41.2024.12.09.05.45.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 05:45:38 -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 v11 0/9] net: dsa: Add Airoha AN8855 support Date: Mon, 9 Dec 2024 14:44:17 +0100 Message-ID: <20241209134459.27110-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-20241209_054542_070447_CB97EA09 X-CRM114-Status: UNSURE ( 8.09 ) 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 v11: - Address reviews from Christophe (spell mistake + dev_err_probe) - Fix kconfig dependency for MFD driver (depends on MDIO_DEVICE instead of MDIO) (indirectly fix link error for mdio APIs) - Fix copy-paste error for MFD driver of_table - Fix compilation error for PHY (move NVMEM to .config) - Drop unneeded NVMEM node from MDIO example schema (from Andrew) - Adapt MFD example schema to MDIO reg property restrictions 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 externally 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 | 178 ++ .../bindings/net/airoha,an8855-mdio.yaml | 56 + .../net/dsa/airoha,an8855-switch.yaml | 105 + .../bindings/nvmem/airoha,an8855-efuse.yaml | 123 + MAINTAINERS | 17 + drivers/mfd/Kconfig | 10 + drivers/mfd/Makefile | 1 + drivers/mfd/airoha-an8855.c | 278 ++ drivers/net/dsa/Kconfig | 9 + drivers/net/dsa/Makefile | 1 + drivers/net/dsa/an8855.c | 2310 +++++++++++++++++ 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, 4384 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