|
Hi,
I look at src, it 's seem there is no definition of ethernet hardware in sun8i-h3.dtsi so start hard thing for novice like me!
With help of the hard work of Loboris, I notice the ethernet hardware use gmac driver and on openwrt side (sun6i-a31.dtsi) i find the same register address base, also same in sunxi_geth.h (loboris working kernel) :
- #if defined(CONFIG_ARCH_SUN8I)
- #define GETH_BASE 0x01c30000
Copy code
So maybe we can verify register used in sun6i-a31.dtsi (openwrt) with exelent Loboris work on ethernet support and try to make it work on H3?
Maybe there is another hardware difference...
trunk/build_dir/target-arm_cortex-a8+vfpv3_musl-1.1.12_eabi/linux-sunxi/linux-4.4/arch/arm/boot/dts/sun6i-a31.dtsi
Something usefull for ethernet support or g_ether via otg
- gmac: ethernet@01c30000 {
- compatible = "allwinner,sun7i-a20-gmac";
- reg = <0x01c30000 0x1054>;
- interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
- interrupt-names = "macirq";
- clocks = <&ahb1_gates 17>, <&gmac_tx_clk>;
- clock-names = "stmmaceth", "allwinner_gmac_tx";
- resets = <&ahb1_rst 17>;
- reset-names = "stmmaceth";
- snps,pbl = <2>;
- snps,fixed-burst;
- snps,force_sf_dma_mode;
- status = "disabled";
- #address-cells = <1>;
- #size-cells = <0>;
- };
- usb_otg: usb@01c19000 {
- compatible = "allwinner,sun6i-a31-musb";
- reg = <0x01c19000 0x0400>;
- clocks = <&ahb1_gates 24>;
- resets = <&ahb1_rst 24>;
- interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
- interrupt-names = "mc";
- phys = <&usbphy 0>;
- phy-names = "usb";
- extcon = <&usbphy 0>;
- status = "disabled";
- };
Copy code
How to find the equivalent dtsi information (register) in loboris kernel? I look for about OTG because the datasheet of H3 is empty for this section |
|