[linux-sunxi] Re: H3 openwrt with 4.4 kernel

2016-02-22 Thread boobopipc
If the EMAC hardware of H3 is same like A31, I think according to this documentation http://www.stlinux.com/kernel/network/phy-howto There is no need to handle phy because it's a generic driver for MII PHY. There is already a glue patch for sunxy device in linux 4.4 for stmmac driver. So the only

[linux-sunxi] Re: H3 openwrt with 4.4 kernel

2016-02-22 Thread boobopipc
Hi, Sorry sure I done an mistake here : //ADD - EMAC Clock Register defaut value 0x58000 - need reset bit 16 (power up) emac_clk_reg_rst: reset@01c3 { #reset-cells = <1>; compatible = "allwinner,sun6i-a31-ahb1-reset";

[linux-sunxi] Re: H3 openwrt with 4.4 kernel

2016-02-21 Thread boobopipc
Hi About H3 internal phy, i seeing that in H3 datasheet, maybe it 's help someone to make it work : EMAC Clock Register defaut value (H3 datasheet V1.1 page 153) 0b1011000 --- 0x58000 CLK_SEL 24mhz = 1 led POL high active = 0 shutdown = 1 (bit 16) Internal PHY = 1 In my pepito opin