Skip to content

Commit 0934f44

Browse files
committed
phy: ti: gmii-sel: Add support for CPSW9G GMII SEL in J784S4
JIRA: https://issues.redhat.com/browse/RHEL-44742 commit efd6588 Author: Siddharth Vadapalli <s-vadapalli@ti.com> Date: Fri Mar 31 11:55:20 2023 +0530 phy: ti: gmii-sel: Add support for CPSW9G GMII SEL in J784S4 Each of the CPSW9G ports in TI's J784S4 SoC support modes such as QSGMII. Add a new compatible for it and allow the usage of "ti,qsgmii-main-ports" property for J784S4. Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com> Reviewed-by: Roger Quadros <rogerq@kernel.org> Link: https://lore.kernel.org/r/20230331062521.529005-2-s-vadapalli@ti.com Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
1 parent f94387f commit 0934f44

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
@@ -235,6 +235,15 @@ struct phy_gmii_sel_soc_data phy_gmii_sel_cpsw9g_soc_j721e = {
235235
.num_qsgmii_main_ports = 2,
236236
};
237237

238+
static const
239+
struct phy_gmii_sel_soc_data phy_gmii_sel_cpsw9g_soc_j784s4 = {
240+
.use_of_data = true,
241+
.regfields = phy_gmii_sel_fields_am654,
242+
.extra_modes = BIT(PHY_INTERFACE_MODE_QSGMII),
243+
.num_ports = 8,
244+
.num_qsgmii_main_ports = 2,
245+
};
246+
238247
static const struct of_device_id phy_gmii_sel_id_table[] = {
239248
{
240249
.compatible = "ti,am3352-phy-gmii-sel",
@@ -264,6 +273,10 @@ static const struct of_device_id phy_gmii_sel_id_table[] = {
264273
.compatible = "ti,j721e-cpsw9g-phy-gmii-sel",
265274
.data = &phy_gmii_sel_cpsw9g_soc_j721e,
266275
},
276+
{
277+
.compatible = "ti,j784s4-cpsw9g-phy-gmii-sel",
278+
.data = &phy_gmii_sel_cpsw9g_soc_j784s4,
279+
},
267280
{}
268281
};
269282
MODULE_DEVICE_TABLE(of, phy_gmii_sel_id_table);

0 commit comments

Comments
 (0)