meba: lan966x: forward PHY SPI register access to board_info accessors#21
Open
vjardin wants to merge 1 commit into
Open
meba: lan966x: forward PHY SPI register access to board_info accessors#21vjardin wants to merge 1 commit into
vjardin wants to merge 1 commit into
Conversation
vjardin
added a commit
to vjardin/mesa
that referenced
this pull request
Jul 9, 2026
api.meba_phy_spi_read/write: forward to the application-provided board_info spi_read/spi_write accessors. Boards without spi accessors get a MESA_RC_NOT_IMPLEMENTED, as before. Signed-off-by: Vincent Jardin <vjardin@free.fr> --- misc information: pushed to: microchip-ung#21 depends on: microchip-ung#17 (runtime PHY-only mode; first commit of PR microchip-ung#21's stack) supersedes: microchip-ung#20 (closed 2026-07-08: rework onto meba/src/lan966x requested by Microchip)
vjardin
added a commit
to vjardin/mesa
that referenced
this pull request
Jul 9, 2026
Signed-off-by: Vincent Jardin <vjardin@free.fr> --- misc information: pushed to: microchip-ung#21 depends on: microchip-ung#17 (runtime PHY-only mode; first commit of PR microchip-ung#21's stack) supersedes: microchip-ung#20 (closed 2026-07-08: rework onto meba/src/lan966x requested by Microchip)
Author
|
following a live review with @BlockoS ; this dirty patch of the eds2 board could be avoided by creating a mesa_void board that supports the phy only case (mepa) without any switch. Please, @HoratiuVultur : would it make a better sense ? Can we propose such mesa_void ? I'll finalize some few topics and try to propose this alternate by early next week (or sooner if possible). |
vjardin
added a commit
to vjardin/mesa
that referenced
this pull request
Jul 9, 2026
Support the MEPA PHYs (LAN80xx) without a switch instance. It can be used with 2 modes: either thru direct access to a /dev/spidev or thru a proxy that centralize the access to the /dev/spidev in order to support many users of the same MEPA PHY. Fake few models for the purposes of this phy-only case: the board conf answers select the EDS2 board (pcb 0x8385) with the LAN8814 plugin module in slot A, so the board comes up with 4 ports (base port 0) matching the '-P' PHY slot router. It was tested with a LAN8024 target. Signed-off-by: Vincent Jardin <vjardin@free.fr> --- misc information: pushed to: microchip-ung/sw-mepa#11 (sw-mepa original) microchip-ung#17 status: sw-mepa PR microchip-ung#11 closed 2026-07-03 by Microchip (HoratiuVultur): "a PR in MESA was open for this, I will add my comments there" -- review continues on mesa PR microchip-ung#17. integration (vj_integration_allPR): cherry-picked from: vj_shared_phy_only @ 42ad66e pull request: microchip-ung#17 (open; also the first commit of PR microchip-ung#21's stack)
vjardin
added a commit
to vjardin/mesa
that referenced
this pull request
Jul 9, 2026
api.meba_phy_spi_read/write: forward to the application-provided board_info spi_read/spi_write accessors. Boards without spi accessors get a MESA_RC_NOT_IMPLEMENTED, as before. Signed-off-by: Vincent Jardin <vjardin@free.fr> --- misc information: pushed to: microchip-ung#21 depends on: microchip-ung#17 (runtime PHY-only mode; first commit of PR microchip-ung#21's stack) supersedes: microchip-ung#20 (closed 2026-07-08: rework onto meba/src/lan966x requested by Microchip) integration (vj_integration_allPR): cherry-picked from: vj_eds2_board_v2 @ 739211c pull request: microchip-ung#21 (open)
vjardin
added a commit
to vjardin/mesa
that referenced
this pull request
Jul 9, 2026
Signed-off-by: Vincent Jardin <vjardin@free.fr> --- misc information: pushed to: microchip-ung#21 depends on: microchip-ung#17 (runtime PHY-only mode; first commit of PR microchip-ung#21's stack) supersedes: microchip-ung#20 (closed 2026-07-08: rework onto meba/src/lan966x requested by Microchip) integration (vj_integration_allPR): cherry-picked from: vj_eds2_board_v2 @ fd8e9fe pull request: microchip-ung#21 (open)
vjardin
added a commit
to vjardin/mesa
that referenced
this pull request
Jul 9, 2026
Support the MEPA PHYs (LAN80xx) without a switch instance. It can be used with 2 modes: either thru direct access to a /dev/spidev or thru a proxy that centralize the access to the /dev/spidev in order to support many users of the same MEPA PHY. Fake few models for the purposes of this phy-only case: the board conf answers select the EDS2 board (pcb 0x8385) with the LAN8814 plugin module in slot A, so the board comes up with 4 ports (base port 0) matching the '-P' PHY slot router. It was tested with a LAN8024 target. Signed-off-by: Vincent Jardin <vjardin@free.fr> --- misc information: pushed to: microchip-ung/sw-mepa#11 (sw-mepa original) microchip-ung#17 status: sw-mepa PR microchip-ung#11 closed 2026-07-03 by Microchip (HoratiuVultur): "a PR in MESA was open for this, I will add my comments there" -- review continues on mesa PR microchip-ung#17. integration (vj_integration_allPR): cherry-picked from: vj_shared_phy_only @ 42ad66e pull request: microchip-ung#17 (open; also the first commit of PR microchip-ung#21's stack)
vjardin
added a commit
to vjardin/mesa
that referenced
this pull request
Jul 9, 2026
api.meba_phy_spi_read/write: forward to the application-provided board_info spi_read/spi_write accessors. Boards without spi accessors get a MESA_RC_NOT_IMPLEMENTED, as before. Signed-off-by: Vincent Jardin <vjardin@free.fr> --- misc information: pushed to: microchip-ung#21 depends on: microchip-ung#17 (runtime PHY-only mode; first commit of PR microchip-ung#21's stack) supersedes: microchip-ung#20 (closed 2026-07-08: rework onto meba/src/lan966x requested by Microchip) integration (vj_integration_allPR): cherry-picked from: vj_eds2_board_v2 @ 739211c pull request: microchip-ung#21 (open)
vjardin
added a commit
to vjardin/mesa
that referenced
this pull request
Jul 9, 2026
Signed-off-by: Vincent Jardin <vjardin@free.fr> --- misc information: pushed to: microchip-ung#21 depends on: microchip-ung#17 (runtime PHY-only mode; first commit of PR microchip-ung#21's stack) supersedes: microchip-ung#20 (closed 2026-07-08: rework onto meba/src/lan966x requested by Microchip) integration (vj_integration_allPR): cherry-picked from: vj_eds2_board_v2 @ fd8e9fe pull request: microchip-ung#21 (open)
Author
|
implementation notes:
meba_void -> board with a phy only that sets for instance 4 ports |
api.meba_phy_spi_read/write: forward to the application-provided board_info spi_read/spi_write accessors. Boards without spi accessors get a MESA_RC_NOT_IMPLEMENTED, as before. Signed-off-by: Vincent Jardin <vjardin@free.fr> --- misc information: pushed to: microchip-ung#21 supersedes: microchip-ung#20 (closed 2026-07-08: rework onto meba/src/lan966x requested by Microchip) note: standalone since the 2026-07-10 rework -- this PR no longer stacks on PR microchip-ung#17 and no longer carries the eds2 25G demo app (superseded by PR microchip-ung#17's void-board PHY-only app). meba_phy_spi_read/write and the board_info spi_read/spi_write accessors are stock v2026.06; this commit only wires them together on the lan966x MEBA for real EDS2 setups.
Author
|
It is standalone now since the last push and since thesuperseded by the PHY-only application on the This forwarding remains useful on its own for real EDS2 setups running the stock lan966x MEBA with SPI-attached PHYs. |
vjardin
added a commit
to vjardin/mesa
that referenced
this pull request
Jul 10, 2026
api.meba_phy_spi_read/write: forward to the application-provided board_info spi_read/spi_write accessors. Boards without spi accessors get a MESA_RC_NOT_IMPLEMENTED, as before. Signed-off-by: Vincent Jardin <vjardin@free.fr> --- misc information: pushed to: microchip-ung#21 supersedes: microchip-ung#20 (closed 2026-07-08: rework onto meba/src/lan966x requested by Microchip) note: standalone since the 2026-07-10 rework -- this PR no longer stacks on PR microchip-ung#17 and no longer carries the eds2 25G demo app (superseded by PR microchip-ung#17's void-board PHY-only app). meba_phy_spi_read/write and the board_info spi_read/spi_write accessors are stock v2026.06; this commit only wires them together on the lan966x MEBA for real EDS2 setups. integration (vj_integration_allPR): cherry-picked from: vj_eds2_board_v2 @ 21b1572 pull request: microchip-ung#21 (open)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It is a rework of #20 thanks to @HoratiuVultur 's comments.
There is a dependency on #17 that has been imported here since we cannot handle pull request over pull request with github.