[AN7563PT] LAN/WAN non-functional #10

Open
opened 2026-05-07 04:50:20 +00:00 by shubhamvis98 · 14 comments

As discussed on github issue, Here are the vendor-provided dts and the decompiled fdt extracted from the running firmware:

As discussed on github [issue](https://github.com/Sirherobrine23/openwrt/issues/3), Here are the vendor-provided dts and the decompiled fdt extracted from the running firmware:
Owner

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.

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.
Author

Thanks @merbanan,
I'll try to build with the AN7581 dts source as suggested and let you know.

Thanks @merbanan, I'll try to build with the AN7581 dts source as suggested and let you know.
Owner

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

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
Author

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_wan that 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.

&switch {
        status = "okay";
        ports {
                port@4 {
                        label = "lan";
                        reg = <4>;
                        status = "okay";
                };
        };

        mdio {
                ethernet-phy@12 {
                        status = "okay";
                        reg = <12>;
                };
        };
};
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_wan` that manages the WAN port. I found the source code for ae_wan in the [airoha_sdk](https://sirherobrine23.com.br/airoha_an7523/airoha_sdk/src/branch/main/private) 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. ``` &switch { status = "okay"; ports { port@4 { label = "lan"; reg = <4>; status = "okay"; }; }; mdio { ethernet-phy@12 { status = "okay"; reg = <12>; }; }; }; ```
Owner

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

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
Owner

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

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
Author

Thanks, I'll give it a try.

Thanks, I'll give it a try.
Owner

This airoha_sdk file is from an7551, so it already includes the drivers for an7552

This airoha_sdk file is from an7551, so it already includes the drivers for an7552
Owner

@shubhamvis98 can you take a picture or look at the pcb near the wan port?

@shubhamvis98 can you take a picture or look at the pcb near the wan port?
Author

@merbanan left one is the wan port.

@merbanan left one is the wan port.
Owner

ok, if you build an image with mdio tools you check the actual mdio bus with the mdio command to identify the phy chip

ok, if you build an image with mdio tools you check the actual mdio bus with the mdio command to identify the phy chip
Author

Thanks, I'll try and let you know.

Thanks, I'll try and let you know.
Owner

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.

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.
Owner

Some work for both U-Boot and kernel on AN7563 / AN7552 can be found at https://github.com/xinyooo/openwrt/tree/openwrt-an7552

Some work for both U-Boot and kernel on AN7563 / AN7552 can be found at https://github.com/xinyooo/openwrt/tree/openwrt-an7552
Sign in to join this conversation.
4 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: airoha_en7523/openwrt#10