From patchwork Tue Oct 29 11:07:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksij Rempel X-Patchwork-Id: 13854735 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E83D205120 for ; Tue, 29 Oct 2024 11:07:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730200079; cv=none; b=LBkOUugkDV2Z42FdVFBBks4UwqeK3aXVAALOUH2+o4Q4QNSl9SXS7+GBEXzyt+YJ38RhlAzP3QMN1LudX7zuLEbGVwtIu8L7GEkW6M5l9mbuiJqZIde9OW4IQuVGi6k+wiZWu6P6t0JxLn8DXHeQii+LZStKNzjVsc7aQJKjVxY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730200079; c=relaxed/simple; bh=nne9ECk0gMlTRKihMz4/HQ1nubsmnQnQKzaX9Y5yncw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=rC06gl+zPJnlvvME2ta9BbH58VJnaAP8Kct28aUm27hN2iaejETL4jXOiRh42hPw9URjF4Sca+oFZW3cvzOcnRaBg9mspRK+Ft3nKo9dkanHHiQsJeKVrbIl+AzvVkyBVcjrcQyum46DWEaHnApmuSti9tbaAcb0q6WEWRKSPig= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t5k4V-0008Eq-BW; Tue, 29 Oct 2024 12:07:35 +0100 Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1t5k4T-0010yo-27; Tue, 29 Oct 2024 12:07:33 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1t5k4T-008IKg-1r; Tue, 29 Oct 2024 12:07:33 +0100 From: Oleksij Rempel To: "David S. Miller" , Andrew Lunn , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , Woojung Huh , Arun Ramadoss , Conor Dooley , Krzysztof Kozlowski , Rob Herring Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com, "Russell King (Oracle)" , devicetree@vger.kernel.org, Marek Vasut Subject: [PATCH net-next v2 0/5] Side MDIO Support for LAN937x Switches Date: Tue, 29 Oct 2024 12:07:27 +0100 Message-Id: <20241029110732.1977064-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org This patch set introduces support for an internal MDIO bus in LAN937x switches, enabling the use of a side MDIO channel for PHY management while keeping SPI as the main interface for switch configuration. changelogs are added to separate patches. Oleksij Rempel (5): dt-bindings: net: dsa: ksz: add internal MDIO bus description dt-bindings: net: dsa: ksz: add mdio-parent-bus property for internal MDIO net: dsa: microchip: Refactor MDIO handling for side MDIO access net: dsa: microchip: cleanup error handling in ksz_mdio_register net: dsa: microchip: add support for side MDIO interface in LAN937x .../bindings/net/dsa/microchip,ksz.yaml | 20 ++ drivers/net/dsa/microchip/ksz_common.c | 192 +++++++++++++-- drivers/net/dsa/microchip/ksz_common.h | 59 +++++ drivers/net/dsa/microchip/lan937x.h | 2 + drivers/net/dsa/microchip/lan937x_main.c | 226 ++++++++++++++++-- drivers/net/dsa/microchip/lan937x_reg.h | 4 + 6 files changed, 471 insertions(+), 32 deletions(-) --- 2.39.5