Page MenuHomeFreeBSD

qcom_mdio: add initial IPQ4018 MDIO support
ClosedPublic

Authored by adrian on Jan 30 2022, 9:48 PM.
Tags
None
Referenced Files
F168687032: D34110.id102362.diff
Sat, Aug 29, 3:22 PM
F168656646: D34110.id.diff
Sat, Aug 29, 11:29 AM
F168652025: D34110.id102304.diff
Sat, Aug 29, 10:59 AM
F168643311: D34110.id102137.diff
Sat, Aug 29, 10:04 AM
F168643201: D34110.id102204.diff
Sat, Aug 29, 10:03 AM
F168640450: D34110.id102207.diff
Sat, Aug 29, 9:40 AM
F168627627: D34110.diff
Sat, Aug 29, 8:05 AM
Unknown Object (File)
Sat, Aug 22, 5:26 PM
Subscribers

Details

Summary

This adds support for the IPQ4018/IPQ4019 MDIO bus. This is used to
talk to external PHYs and switches. (There's an internal switch
in the IPQ4018/IPQ4019 as well, but it's accessible via MMIO/AXI.)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44237
Build 41125: arc lint + arc unit

Event Timeline

sys/dev/qcom_mdio/qcom_mdio_ipq4018.c
295

1/ Does it needs to be that early ? INTERRUPT is really early in the boot, we have BUS_PASS_SUPPORTDEV that usually work for driver like that.
2/ Do you really need to be on simplebus and ofwbus ? In the DTS it's under /soc which is simple-bus compatible so I don't think you need the ofwbus declaration.

mdio and ofw* part looks good, only two questions for me.

adrian added inline comments.
sys/dev/qcom_mdio/qcom_mdio_debug.h
35

....... whoops, i should fix that

This revision is now accepted and ready to land.Feb 2 2022, 7:35 AM
This revision now requires review to proceed.Feb 3 2022, 5:19 AM
This revision is now accepted and ready to land.Feb 3 2022, 9:20 AM
This revision was automatically updated to reflect the committed changes.