forked from openwrt/openwrt
[AN7563PT] LAN/WAN non-functional #10
Open
opened 2026-05-07 04:50:20 +00:00 by shubhamvis98
·
14 comments
No Branch/Tag Specified
airoha_en7523
main
v23.05.6
v24.10.2
v24.10.1
v24.10.0
v24.10.0-rc7
v24.10.0-rc6
v24.10.0-rc5
v24.10.0-rc4
v24.10.0-rc3
v24.10.0-rc2
v24.10.0-rc1
v23.05.5
v22.03.7
v23.05.4
v23.05.3
v22.03.6
v23.05.2
v23.05.1
v23.05.0
v23.05.0-rc4
v23.05.0-rc3
v23.05.0-rc2
v23.05.0-rc1
v21.02.7
v22.03.5
v21.02.6
v22.03.4
v22.03.3
v21.02.5
v22.03.2
v22.03.1
v21.02.4
v22.03.0
v22.03.0-rc6
v22.03.0-rc5
v22.03.0-rc4
v22.03.0-rc3
v22.03.0-rc2
v22.03.0-rc1
v21.02.3
v19.07.10
v19.07.9
v21.02.2
v21.02.1
v21.02.0
v21.02.0-rc4
v19.07.8
v21.02.0-rc3
v21.02.0-rc2
v21.02.0-rc1
v19.07.7
v19.07.6
v19.07.5
v18.06.9
v19.07.4
v19.07.3
v19.07.2
v18.06.8
v18.06.7
v19.07.1
v19.07.0
v18.06.6
v19.07.0-rc2
v18.06.5
v19.07.0-rc1
v18.06.4
v18.06.3
v17.01.7
v18.06.2
v17.01.6
v18.06.1
v18.06.0
v17.01.5
v18.06.0-rc2
v18.06.0-rc1
v17.01.4
v17.01.3
v17.01.2
v17.01.1
v17.01.0
v17.01.0-rc2
v17.01.0-rc1
reboot
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Low
4
The priority is low
Priority
Medium
3
The priority is medium
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
No labels
Milestone
No items
No Milestone
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: airoha_en7523/openwrt#10
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
As discussed on github issue, Here are the vendor-provided dts and the decompiled fdt extracted from the running firmware:
AN7563PT is more similar to AN7581 then EN7523. We need a new pinctrl driver for this hardware. Besides that most of the AN7581 stuff should be possible to reuse.
Thanks @merbanan,
I'll try to build with the AN7581 dts source as suggested and let you know.
a good part of the dtsi shares it with the an7581, but it is an armV7, it has
some similarities with an7523, but a good part of the an7581 can be used with
the an7552, in addition the an7552 will need to change some things in the
ethernet driver for it to work, as we have some different bits
The board I have has a separate WAN port instead of sharing the same switch as the LAN port. In the stock firmware, there is a kernel module named
ae_wanthat manages the WAN port. I found the source code for ae_wan in the airoha_sdk repository. So, do I need to upstream this driver/source code to make the WAN port work?And after putting the switch node in dts the lan port can be seen up when plugged but no traffic is passing.
A good portion of the ae_wan is already in airoha_eth.c; you'll have to retrieve some bits and addresses and update them in airoha_eth, just like in the an7523, which has some different bits than the an7581/an7583
Regarding the external Ethernet port, you can use an Ethernet port from the mdio, it's probably an EN8811 connected there. You'll have to create a node in dts for it, probably the same as the others devices
Thanks, I'll give it a try.
This airoha_sdk file is from an7551, so it already includes the drivers for an7552
@shubhamvis98 can you take a picture or look at the pcb near the wan port?
@merbanan left one is the wan port.
ok, if you build an image with mdio tools you check the actual mdio bus with the mdio command to identify the phy chip
Thanks, I'll try and let you know.
The dts should look like the an7581 gemtek wan interface. The en7523 port have not tested the gdm2 data path. There might be some muxes missing also.
Some work for both U-Boot and kernel on AN7563 / AN7552 can be found at https://github.com/xinyooo/openwrt/tree/openwrt-an7552