内核版本是6.12.35
内核日志如下:
[ 0.264623] dwmac-sun8i 4500000.ethernet: IRQ eth_wake_irq not found
[ 0.268356] ehci-platform 4200000.usb: irq 36, io mem 0x04200000
[ 0.272992] dwmac-sun8i 4500000.ethernet: IRQ eth_lpi not found
[ 0.273002] dwmac-sun8i 4500000.ethernet: IRQ sfty not found
[ 0.273382] dwmac-sun8i 4500000.ethernet: PTP uses main clock
[ 0.275620] hub 2-0:1.0: 1 port detected
[ 0.281819] dwmac-sun8i 4500000.ethernet: Current syscon value is not the default 58000 (expect 0)
[ 0.303961] ehci-platform 4200000.usb: USB 2.0 started, EHCI 1.00
[ 0.314219] dwmac-sun8i 4500000.ethernet: No HW DMA feature register supported
[ 0.319352] hub 1-0:1.0: USB hub found
[ 0.323451] dwmac-sun8i 4500000.ethernet: RX Checksum Offload Engine supported
[ 0.329956] hub 1-0:1.0: 1 port detected
[ 0.339431] dwmac-sun8i 4500000.ethernet: COE Type 2
[ 0.623933] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 0.629268] dwmac-sun8i 4500000.ethernet: TX Checksum insertion supported
[ 0.815287] hub 1-1:1.0: USB hub found
[ 0.819142] dwmac-sun8i 4500000.ethernet: Normal descriptors
[ 0.827001] hub 1-1:1.0: 4 ports detected
[ 0.835403] dwmac-sun8i 4500000.ethernet: Chain mode enabled
[ 1.263936] usb 1-1.3: new high-speed USB device number 3 using ehci-platform
[ 1.537277] dwmac-sun8i 4500000.ethernet: EMAC reset timeout
[ 1.542964] dwmac-sun8i 4500000.ethernet eth0: stmmac_dvr_remove: removing driver
[ 1.584892] dwmac-sun8i 4500000.ethernet: probe with driver dwmac-sun8i failed with error -110
设备树配置如下:
&emac {
pinctrl-0 = <&rmii_pg_clk25m_pins>;
pinctrl-names = "default";
phy-mode = "rmii";
phy-handle = <&ip101gr>;
phy-supply = <®_3v3>;
clocks = <&ccu CLK_BUS_EMAC>,<&ccu CLK_EMAC_25M>;
clock-names = "stmmaceth","ephy25m";
use_ephy25m = <1>;
status = "okay";
};
&mdio{
status = "okay";
reset-assert-us = <10000>;
reset-post-delay-us = <150000>;
reset-deassert-us = <150000>;
reset-gpios = <&pio 6 6 GPIO_ACTIVE_LOW>; /* PG6 */
ip101gr: ethernet-phy@0 {
// compatible = "ethernet-phy-ieee802.3-c22";
// compatible = "ethernet-phy-id001c.c816";
compatible = "ethernet-phy-id0243.0c54","ethernet-phy-ieee802.3-c22";
reg = <0>;
};
};
现在的问题是我没办法识别出PHY,而且用示波器去看EPHY-25M引脚也没有时钟输出,问一下主线内核该怎么开启内部时钟输出?
离线