> QCS615 (Talos) uses an ETHQOS controller which is extremely similar to > the QCS404 version, but unlike QCS404 its RGMII clock source supports > the 25 MHz and 2.5 MHz rates used at 100M and 10M with PHY-managed > delays. > > Add a dedicated qcom,qcs615-ethqos match and descriptor and enable > phy_managed_delays so rgmii-id uses the DLL-bypass configuration. > > The bypass sequence has been tested on three QCS615 board designs, > two with a Micrel KSZ9031 PHY and one with a TI DP83867 PHY. The > existing compatible binding and qcom,qcs404-ethqos fallback remain > unchanged. > > Signed-off-by: Mohd Ayaan Anwar Reviewed-by: Lorenzo Bianconi > --- > v4: this is a new commit which ensures that the phy managed delays only > affect actually tested hardware (Shikra and QCS615). > --- > drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > index a7fdba73da2b..790159ae1be7 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > @@ -250,6 +250,13 @@ static const struct ethqos_emac_driver_data emac_v2_3_0_data = { > .setup = ethqos_hlos_setup, > }; > > +static const struct ethqos_emac_driver_data qcs615_data = { > + .rgmii_config_loopback_en = true, > + .phy_managed_delays = true, > + .has_emac_ge_3 = false, > + .setup = ethqos_hlos_setup, > +}; > + > static const struct ethqos_emac_por emac_v2_1_0_por[] = { > { .offset = RGMII_IO_MACRO_CONFIG, .value = 0x40C01343 }, > { .offset = SDCC_HC_REG_DLL_CONFIG, .value = 0x2004642C }, > @@ -1116,6 +1123,7 @@ static int qcom_ethqos_probe(struct platform_device *pdev) > > static const struct of_device_id qcom_ethqos_match[] = { > { .compatible = "qcom,qcs404-ethqos", .data = &emac_v2_3_0_data}, > + { .compatible = "qcom,qcs615-ethqos", .data = &qcs615_data}, > { .compatible = "qcom,sa8255p-ethqos", .data = &emac_v4_0_0_scmi_data}, > { .compatible = "qcom,sa8775p-ethqos", .data = &emac_v4_0_0_data}, > { .compatible = "qcom,sc8280xp-ethqos", .data = &emac_v3_0_0_data}, > > -- > 2.34.1 >