Skip to content

docs(linux): AM64x: Update CPSW documentation #337

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chintan013
Copy link

@chintan013 chintan013 commented Jul 1, 2025

CPSW interface associated with DP83869 PHY in AM64x needs to be brought up by adding a systemctl service. Update the documentation to mention the same.


.. note::

The DP83869 PHY associated with one of the CPSW interface("eth1" by default) is not included
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chintan013, please mention that this requirement is specific to the AM642-EVM or any board in general which uses the DP83968 PHY.

@chintan013 chintan013 force-pushed the am64x_cpsw_doc branch 2 times, most recently from 0da6523 to 11b6d84 Compare July 2, 2025 05:38
Comment on lines 19 to 22
The DP83869 PHY associated with one of the CPSW interface("eth1" by default) for AM642-EVM or
any board in general, does not have it's driver as a built-in module in the kernel, and not
getting probed during boot up. Therefore, the "eth1" interface must be brought up using the
commands provided above.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be shortened as follows:

Suggested change
The DP83869 PHY associated with one of the CPSW interface("eth1" by default) for AM642-EVM or
any board in general, does not have it's driver as a built-in module in the kernel, and not
getting probed during boot up. Therefore, the "eth1" interface must be brought up using the
commands provided above.
The DP83869 PHY (associated with the eth1 CPSW interface for AM642-EVM) is
not built into the kernel image. It is not available during early boot as
a result, and must be brought up using the commands provided above.

But I'm more concerned about what you mean here. If it's not built-in it should still be probed once the rootfs is defined and we can perform the usual dt parse and modprobe. This shouldn't change the behavior of the device in a way that requires the manual setup defined above.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chintan013 Can you please comment here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @StaticRocket, During boot time, PHY driver was probed after the script for bringing interface up executed. If we want to bring the interface UP during boot time we need to make changes to the udev script.

Thanks for reviewing the PR, I will apply your suggestions.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you doing this through udev anyway? We have systemd-networkd present. It should be more than capable of configuring your interfaces as outlined in the scripts shown here...

Copy link
Author

@chintan013 chintan013 Jul 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @StaticRocket, I have updated the documentation by enabling a systemctl service. For now it is in the documentation, but in the future release we will include it in the filesystem.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, that's objectively worse. Systemd-networkd should be more than capable of doing this. Why do you want to add more custom scripts and services to work around things already solved by a proper network manager that we already ship?

CPSW interface associated with DP83869 PHY in AM642-EVM needs to be
brought up by adding a systemctl script. Update the documentation to
mention the same.

Signed-off-by: Chintan Vankar <[email protected]>
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.

9 participants