-
Notifications
You must be signed in to change notification settings - Fork 3
Fix SC59x Ethernet PHY descriptions and ADIN PHY Driver #130
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
base: adi-u-boot-2025.10.y
Are you sure you want to change the base?
Changes from all commits
733bf5c
fa81698
3df9721
917b8e2
036effb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -171,15 +171,15 @@ | |
| ð0 { | ||
| compatible = "adi,sc59x-dwmac-eqos"; | ||
| reg = <0x31040000 0x10000>; | ||
| phy-handle = <&dp83867>; | ||
| phy-handle = <&adin1300>; | ||
| phy-mode = "rgmii-id"; | ||
|
|
||
| mdio { | ||
| compatible = "snps,dwmac-mdio"; | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
|
|
||
| dp83867: ethernet-phy@0 { | ||
| adin1300: ethernet-phy@0 { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this doesn't look right. the PHY is on the carrier board, not the SoM |
||
| compatible = "ethernet-phy-ieee802.3-c22"; | ||
| reg = <0>; | ||
| }; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,26 +11,20 @@ void adi_somcrr_enable_ethernet(void) | |
| { | ||
| struct gpio_desc *eth1; | ||
| struct gpio_desc *eth1_reset; | ||
| struct gpio_desc *gige_reset; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this commit should be ordered after the update to the DT, or reworded as such, since in the commit message it suggests that the reset has already been put there |
||
|
|
||
| if (!gpio_hog_lookup_name("eth1-en", ð1)) | ||
| dm_gpio_set_value(eth1, 1); | ||
| if (!gpio_hog_lookup_name("eth1-reset", ð1_reset)) | ||
| dm_gpio_set_value(eth1_reset, 0); | ||
| if (!gpio_hog_lookup_name("gige-reset", &gige_reset)) | ||
| dm_gpio_set_value(gige_reset, 0); | ||
| } | ||
|
|
||
| void adi_somcrr_disable_ethernet(void) | ||
| { | ||
| struct gpio_desc *eth1; | ||
| struct gpio_desc *eth1_reset; | ||
| struct gpio_desc *gige_reset; | ||
|
|
||
| if (!gpio_hog_lookup_name("eth1-en", ð1)) | ||
| dm_gpio_set_value(eth1, 0); | ||
| if (!gpio_hog_lookup_name("eth1-reset", ð1_reset)) | ||
| dm_gpio_set_value(eth1_reset, 1); | ||
| if (!gpio_hog_lookup_name("gige-reset", &gige_reset)) | ||
| dm_gpio_set_value(gige_reset, 1); | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what u-boot policy is on whether to require this compatible or not, but worth a look