]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: enetc: add ptp timer binding support for i.MX94
authorClark Wang <xiaoning.wang@nxp.com>
Wed, 29 Oct 2025 01:38:58 +0000 (09:38 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Oct 2025 01:44:19 +0000 (18:44 -0700)
commit1cd3f21c18c293392a8b4abcb1f0a51d7a9efe8c
tree4388788e77901b233fb9f2e9b64aeb8badb52d63
parentba5d7d45ce8eec93fafd171da110386f97ecfed4
net: enetc: add ptp timer binding support for i.MX94

The i.MX94 has three PTP timers, and all standalone ENETCs can select
one of them to bind to as their PHC. The 'ptp-timer' property is used
to represent the PTP device of the Ethernet controller. So users can
add 'ptp-timer' to the ENETC node to specify the PTP timer. The driver
parses this property to bind the two hardware devices.

If the "ptp-timer" property is not present, the first timer of the PCIe
bus where the ENETC is located is used as the default bound PTP timer.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Link: https://patch.msgid.link/20251029013900.407583-5-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/enetc/netc_blk_ctrl.c