EMAC on port H in Allwinner A20

Started by dpierleo, February 03, 2020, 06:33:46 PM

Previous topic - Next topic

dpierleo

Hi,

I am working with an A20-SOM204 mounted in a custom board.
At the moment I am still working with a legacy kernel because I have some problems to modify device tree in order to enable our hardware.

So I am using the last legacy official image from olimex:
Armbian_5.41_Olimex-som204-a20_Ubuntu_xenial_default_3.4.113_desktop.

I need to disable gmac and enable emac that in som204 has signals connected on port H.
I did not manage to do it!
I modified the FEX in order to disable gmac and enable emac:

[gmac_para]
gmac_used = 0

[emac_para]
emac_used = 1
emac_rxd3 = port:PH08<3><default><default><default>
emac_rxd2 = port:PH09<3><default><default><default>
emac_rxd1 = port:PH10<3><default><default><default>
emac_rxd0 = port:PH11<3><default><default><default>
emac_txd3 = port:PH14<3><default><default><default>
emac_txd2 = port:PH15<3><default><default><default>
emac_txd1 = port:PH16<3><default><default><default>
emac_txd0 = port:PH17<3><default><default><default>
emac_rxclk = port:PH18<3><default><default><default>
emac_rxerr = port:PH19<3><default><default><default>
emac_rxdV = port:PH20<3><default><default><default>
emac_mdc = port:PH21<3><default><default><default>
emac_mdio = port:PH22<3><default><default><default>
emac_txen = port:PH23<3><default><default><default>
emac_txclk = port:PH24<3><default><default><default>
emac_crs = port:PH25<3><default><default><default>
emac_col = port:PH26<3><default><default><default>
emac_txerr = port:PH27<3><default><default><default>
emac_reset = port:PC18<1><default><default><default>

but it does not work!

During the boot the system says:

Quotesunxi_emac Using mii phy on PortA

just as if it used PortA instead of PortH. How is it possible? Is a problem of emac's driver? Or did I do some errors in FEX modification?
It does not depend on hardware of our board because I do tests also with your evaluation board A20-SOM204-EVB and likewise the issue occurs.

Thanks in advance