Skip to content

Commit 5bd78c0

Browse files
phy: ti: gmii-sel: Add support for CPSW9G GMII SEL in J721e
Each of the CPSW9G ports in J721e support additional modes like QSGMII. Add a new compatible for J721e to support the additional modes. In TI's J721e, each of the CPSW9G ethernet interfaces can act as a QSGMII main or QSGMII-SUB port. The QSGMII main interface is responsible for performing auto-negotiation between the MAC and the PHY while the rest of the interfaces are designated as QSGMII-SUB interfaces, indicating that they will not be taking part in the auto-negotiation process. Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com> Reviewed-by: Roger Quadros <rogerq@kernel.org> Link: https://lore.kernel.org/r/20221026074532.109220-4-s-vadapalli@ti.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 3b66ab6 commit 5bd78c0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

drivers/phy/ti/phy-gmii-sel.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,15 @@ struct phy_gmii_sel_soc_data phy_gmii_sel_cpsw5g_soc_j7200 = {
218218
.num_qsgmii_main_ports = 1,
219219
};
220220

221+
static const
222+
struct phy_gmii_sel_soc_data phy_gmii_sel_cpsw9g_soc_j721e = {
223+
.use_of_data = true,
224+
.regfields = phy_gmii_sel_fields_am654,
225+
.extra_modes = BIT(PHY_INTERFACE_MODE_QSGMII),
226+
.num_ports = 8,
227+
.num_qsgmii_main_ports = 2,
228+
};
229+
221230
static const struct of_device_id phy_gmii_sel_id_table[] = {
222231
{
223232
.compatible = "ti,am3352-phy-gmii-sel",
@@ -243,6 +252,10 @@ static const struct of_device_id phy_gmii_sel_id_table[] = {
243252
.compatible = "ti,j7200-cpsw5g-phy-gmii-sel",
244253
.data = &phy_gmii_sel_cpsw5g_soc_j7200,
245254
},
255+
{
256+
.compatible = "ti,j721e-cpsw9g-phy-gmii-sel",
257+
.data = &phy_gmii_sel_cpsw9g_soc_j721e,
258+
},
246259
{}
247260
};
248261
MODULE_DEVICE_TABLE(of, phy_gmii_sel_id_table);

0 commit comments

Comments
 (0)