@@ -70,6 +70,7 @@ struct ti_dp83867_config {
70
70
uint32_t ti_rx_internal_delay ;
71
71
uint32_t ti_tx_internal_delay ;
72
72
enum dp83826_interface phy_iface ;
73
+ enum phy_link_speed default_speeds ;
73
74
#if DT_ANY_INST_HAS_PROP_STATUS_OKAY (reset_gpios )
74
75
const struct gpio_dt_spec reset_gpio ;
75
76
#endif
@@ -575,6 +576,9 @@ static int phy_ti_dp83867_init(const struct device *dev)
575
576
#endif /* DT_ANY_INST_HAS_PROP_STATUS_OKAY(int_gpios) */
576
577
phy_ti_dp83867_monitor_work_handler (& data -> phy_monitor_work .work );
577
578
579
+ /* Advertise default speeds */
580
+ phy_ti_dp83867_cfg_link (dev , config -> default_speeds , 0 );
581
+
578
582
return 0 ;
579
583
}
580
584
@@ -607,6 +611,7 @@ static DEVICE_API(ethphy, ti_dp83867_phy_api) = {
607
611
.ti_tx_internal_delay = DT_INST_PROP_OR(n, ti_tx_internal_delay, \
608
612
DP83867_RGMII_RX_CLK_DELAY_INV), \
609
613
.phy_iface = DT_INST_ENUM_IDX(n, ti_interface_type), \
614
+ .default_speeds = PHY_INST_GENERATE_DEFAULT_SPEEDS(n), \
610
615
RESET_GPIO(n) INTERRUPT_GPIO(n)}; \
611
616
\
612
617
static struct ti_dp83867_data ti_dp83867_##n##_data; \
0 commit comments