Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers/imx-enet: Add support for ethernet in imxrt1170-evkb #99

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

julianuziemblo
Copy link

@julianuziemblo julianuziemblo commented Dec 9, 2024

Description

Add Ethernet support for iMX RT106x, merging the code with existing driver for iMX RT6UL/6ULL in drivers/imx-enet.c

Motivation and Context

JIRA: RTOS-963
This PR is not this big by itself - it contains changes from (#96).

Checks for target armv7a7-imx6ull-evk will not be passing because of the changes to handling the plo init script.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (refactoring, style fixes, git/CI config, submodule management, no code logic changes)

Enet init script now is required to include the PHY model used, which is needed when the same board contains multiple enet devices with different PHYs. More info: phoenix-rtos/phoenix-rtos-project#1247

How Has This Been Tested?

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing linter checks and tests passed.
  • My changes generate no new compilation warnings for any of the targets.

Special treatment

change code style to match coding conventions

JIRA: RTOS-507
refactor printfs with repeated format pattern into ephy_printf

JIRA: RTOS-507
first step to add separate implementation files for imx6ull and imxrt106x gpio

JIRA: RTOS-507
remove active value inversion in gpio_wait because the value is already being inverted in gpio_get

JIRA: RTOS-507
fix 7b90e8e:
- add _Atomic specifier to volatile vars used as atomics
- change operations on the vars to atomic_*

JIRA: RTOS-507
fix packet buffer handling for targets with page size less than packet buffer size

JIRA: RTOS-507
add PHY model specification to the ENET config string.
different config is needed when the target supports
different PHY model per ENET device.

JIRA: RTOS-963
Update README with appropriate information about
new changes to drivers/ephy and drivers/imx-enet.

JIRA: RTOS-963
drivers/ephy.c Show resolved Hide resolved
drivers/imx-enet-regs.h Show resolved Hide resolved
Copy link

github-actions bot commented Dec 9, 2024

Unit Test Results

7 958 tests  +233   7 414 ✅ +404   40m 31s ⏱️ + 3m 22s
  470 suites + 25     542 💤  - 173 
    1 files   ±  0       2 ❌ +  2 

For more details on these failures, see this check.

Results for commit 20981d2. ± Comparison against base commit b0964a1.

This pull request removes 729 and adds 962 tests. Note that renamed tests count towards both.
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.A
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.E
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.F
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.G
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.a
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.e
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.f
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.g
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.inf_nan_a
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.inf_nan_e
…
flash ‑ sparcv8leon-generic-qemu:flash
phoenix-rtos-tests/libc/scanf-advanced ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf-advanced.stdio_scanf_aefg.A
phoenix-rtos-tests/libc/scanf-advanced ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf-advanced.stdio_scanf_aefg.E
phoenix-rtos-tests/libc/scanf-advanced ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf-advanced.stdio_scanf_aefg.F
phoenix-rtos-tests/libc/scanf-advanced ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf-advanced.stdio_scanf_aefg.G
phoenix-rtos-tests/libc/scanf-advanced ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf-advanced.stdio_scanf_aefg.a
phoenix-rtos-tests/libc/scanf-advanced ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf-advanced.stdio_scanf_aefg.e
phoenix-rtos-tests/libc/scanf-advanced ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf-advanced.stdio_scanf_aefg.f
phoenix-rtos-tests/libc/scanf-advanced ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf-advanced.stdio_scanf_aefg.g
phoenix-rtos-tests/libc/scanf-advanced ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf-advanced.stdio_scanf_aefg.inf_nan_a
…
This pull request removes 137 skipped tests and adds 36 skipped tests. Note that renamed tests count towards both.
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.A
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.E
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.F
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.G
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.a
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.e
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.f
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.g
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.inf_nan_a
phoenix-rtos-tests/libc/scanf ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf.stdio_scanf_aefg.inf_nan_e
…
phoenix-rtos-tests/libc/scanf-advanced ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf-advanced.stdio_scanf_rest.m_brackets
phoenix-rtos-tests/libc/scanf-advanced ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf-advanced.stdio_scanf_rest.m_c
phoenix-rtos-tests/libc/scanf-advanced ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf-advanced.stdio_scanf_rest.m_s
phoenix-rtos-tests/libc/scanf-advanced ‑ armv7a7-imx6ull-evk:phoenix-rtos-tests/libc/scanf-advanced.stdio_scanf_squareBrackets.white_spaces
phoenix-rtos-tests/libc/scanf-advanced ‑ armv7a9-zynq7000-qemu:phoenix-rtos-tests/libc/scanf-advanced.stdio_scanf_rest.m_brackets
phoenix-rtos-tests/libc/scanf-advanced ‑ armv7a9-zynq7000-qemu:phoenix-rtos-tests/libc/scanf-advanced.stdio_scanf_rest.m_c
phoenix-rtos-tests/libc/scanf-advanced ‑ armv7a9-zynq7000-qemu:phoenix-rtos-tests/libc/scanf-advanced.stdio_scanf_rest.m_s
phoenix-rtos-tests/libc/scanf-advanced ‑ armv7a9-zynq7000-qemu:phoenix-rtos-tests/libc/scanf-advanced.stdio_scanf_squareBrackets.white_spaces
phoenix-rtos-tests/libc/scanf-advanced ‑ armv7a9-zynq7000-zedboard:phoenix-rtos-tests/libc/scanf-advanced.stdio_scanf_rest.m_brackets
phoenix-rtos-tests/libc/scanf-advanced ‑ armv7a9-zynq7000-zedboard:phoenix-rtos-tests/libc/scanf-advanced.stdio_scanf_rest.m_c
…

♻️ This comment has been updated with latest results.

ENET1 and ENET_1G on imxrt1170-evkb need their own, separate MDIO busses to work

JIRA: RTOS-963
Add information about iMX.RT1170's EVKB board's needed Ethernet config

JIRA: RTOS-963
@julianuziemblo julianuziemblo force-pushed the julianuziemblo/enet-imxrt1170-evkb branch from b3c7e8b to 20981d2 Compare December 10, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant