Commit Graph
4 Commits
Author SHA1 Message Date
Jesse Hills cd9c3d2eee [ethernet] Validate the shared spi bus via the standard spi device schema
Replaces the hand-rolled bus lookup in _final_validate_spi with
spi.final_validate_device_schema, which also enforces mosi_pin on the
shared bus (previously only miso_pin was checked), plus an
id_declaration_match_schema check that the bus uses a hardware
interface. Errors now anchor to the referenced spi: block.
2026-08-25 16:22:07 +12:00
Jesse Hills 288bf3713f [ethernet] Add spi_id option to attach SPI chips to a shared spi bus
SPI ethernet chips always initialized their own SPI host, so they could
not coexist with other peripherals on the same physical pins. Boards
like the M5Stack CoreS3 put the LCD, SD slot, and expansion bus on one
multi-drop SPI bus, so attaching an ethernet base there was impossible.

With spi_id set, the ethernet component skips spi_bus_initialize() and
adds its device to the referenced hardware spi bus instead; the pins and
host come from that bus. Without spi_id, behavior is unchanged.
2026-08-20 13:54:45 +12:00
2184ec2928 [ethernet] Add CH390 SPI ethernet support (#18226)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2026-08-10 12:24:16 -05:00
rwalker777pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>kbx81Claude Opus 4.7J. Nick Koston
deba7a1f0c [ethernet][network][wifi] Add network priority for multi-interface support (#14255)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: kbx81 <kbx81x@gmail.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2026-07-22 20:55:04 -05:00