Skip to content

imx6: init ENET RGMII TX clock source#39

Open
rustyx wants to merge 1 commit intonxp-imx:lf-6.12.yfrom
rustyx:imx6qp-enet-fec-tx-fix
Open

imx6: init ENET RGMII TX clock source#39
rustyx wants to merge 1 commit intonxp-imx:lf-6.12.yfrom
rustyx:imx6qp-enet-fec-tx-fix

Conversation

@rustyx
Copy link
Copy Markdown

@rustyx rustyx commented Jan 19, 2026

This sets GPR5[9] (ENET_TXCLK_SEL) correctly on imx6 "plus" products, similar to how it was done in the 5.4 branch (see commit 05f69cb).

On imx6 "plus" products (imx6dp, imx6qp) when GPR1[21] (ENET_CLK_SEL) is set to internal ENET TX clock, GPR5[9] (ENET_TXCLK_SEL) further controls if the clock is sourced from the pad loopback (enet_pad) or directly from internal PLL (enet_ref). The latter is important for configurations where GPIO_16 pad is used for purposes other than ENET_REF_CLK.

@rustyx rustyx force-pushed the imx6qp-enet-fec-tx-fix branch from 8dc1fe2 to 27f9f62 Compare February 9, 2026 20:54
Set GPR5[9] on imx6dp/qp to select clock from internal PLL_enet when
ENET_REF_CLK pad has a different function than ENET_TX_CLK.

Signed-off-by: Rustam Abdullaev <rustamabd@gmail.com>
@rustyx rustyx force-pushed the imx6qp-enet-fec-tx-fix branch from 27f9f62 to f6f4015 Compare March 16, 2026 16:12
@rustyx rustyx changed the title MLK-10463-1 ARM: imx: init ENET RGMII tx clock source imx6: init ENET RGMII tx clock source Mar 16, 2026
@rustyx rustyx changed the title imx6: init ENET RGMII tx clock source imx6: init ENET RGMII TX clock source Mar 16, 2026
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