phy不工作

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

phy不工作

262 Views
longbin
Contributor II

以前我使用L4.1.15版本时,板子上的PHY(KSZ8041)是正常工作,但是更改成L4.19.98后,板子上的PHY就不工作,测MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1引脚并没有波形输出。我的dts如下:

longbin_0-1655697761584.png

longbin_1-1655697805129.png

输出信息如下:

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.35-g7590c7af1-dirty (longbin@ubuntu) (gcc version 7.3.0 (GCC)) #3 SMP PREEMPT Mon Jun 20 11:11:18 CST 2022
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Freescale i.MX6 ULL 14x14 EVK Board
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] OF: reserved mem: failed to allocate memory for node 'linux,cma'
[ 0.000000] On node 0 totalpages: 65536
[ 0.000000] Normal zone: 512 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 65536 pages, LIFO batch:15
[ 0.000000] random: get_random_bytes called from start_kernel+0xa0/0x404 with crng_init=0
[ 0.000000] percpu: Embedded 19 pages/cpu @(ptrval) s48908 r8192 d20724 u77824
[ 0.000000] pcpu-alloc: s48908 r8192 d20724 u77824 alloc=19*4096
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk1p2 rootwait rw
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 244880K/262144K available (9216K kernel code, 586K rwdata, 2812K rodata, 1024K init, 891K bss, 17264K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0x90800000 - 0xff800000 (1776 MB)
lowmem : 0x80000000 - 0x90000000 ( 256 MB)
pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
.text : 0x(ptrval) - 0x(ptrval) (10208 kB)
.init : 0x(ptrval) - 0x(ptrval) (1024 kB)
.data : 0x(ptrval) - 0x(ptrval) ( 587 kB)
.bss : 0x(ptrval) - 0x(ptrval) ( 892 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] Switching to timer-based delay loop, resolution 333ns
[ 0.000019] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
[ 0.000060] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
[ 0.000091] I-pipe, 3.000 MHz clocksource, wrap in 1431655 ms
[ 0.000125] clocksource: ipipe_tsc: mask: 0xffffffffffffffff max_cycles: 0x1623fa770, max_idle_ns: 881590404476 ns
[ 0.003725] Interrupt pipeline (release #5)
[ 0.004054] Console: colour dummy device 80x30
[ 0.004126] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
[ 0.004165] pid_max: default: 32768 minimum: 301
[ 0.004503] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.004536] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.005863] CPU: Testing write buffer coherency: ok
[ 0.006574] /cpus/cpu@0 missing clock-frequency property
[ 0.006614] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.060821] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.080853] rcu: Hierarchical SRCU implementation.
[ 0.121092] smp: Bringing up secondary CPUs ...
[ 0.121125] smp: Brought up 1 node, 1 CPU
[ 0.121147] SMP: Total of 1 processors activated (6.00 BogoMIPS).
[ 0.121164] CPU: All CPU(s) started in SVC mode.
[ 0.122842] devtmpfs: initialized
[ 0.134387] Duplicate name in lcdif@21c8000, renamed to "display#1"
[ 0.138302] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.139247] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.139302] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.139731] pinctrl core: initialized pinctrl subsystem
[ 0.142244] NET: Registered protocol family 16
[ 0.142953] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.151544] cpuidle: using governor menu
[ 0.167339] vdd3p0: supplied by regulator-dummy
[ 0.168768] cpu: supplied by regulator-dummy
[ 0.170127] vddsoc: supplied by regulator-dummy
[ 0.172122] mxs_phy 20c9000.usbphy: Linked as a consumer to regulator.1
[ 0.173472] mxs_phy 20ca000.usbphy: Linked as a consumer to regulator.1
[ 0.199557] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.199588] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.199814] I-pipe: disabling SMP code
[ 0.205331] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[ 0.206237] imx6ul-pinctrl 2290000.iomuxc-snvs: no groups defined in /soc/aips-bus@2200000/iomuxc-snvs@2290000
[ 0.206269] imx6ul-pinctrl 2290000.iomuxc-snvs: initialized IMX pinctrl driver
[ 0.210188] imx rpmsg driver is registered.
[ 0.290512] SCSI subsystem initialized
[ 0.293022] libata version 3.00 loaded.
[ 0.293618] usbcore: registered new interface driver usbfs
[ 0.293765] usbcore: registered new interface driver hub
[ 0.294049] usbcore: registered new device driver usb
[ 0.297340] i2c i2c-0: IMX I2C adapter registered
[ 0.297386] i2c i2c-0: can't use DMA, using PIO instead.
[ 0.299010] i2c i2c-1: IMX I2C adapter registered
[ 0.299054] i2c i2c-1: can't use DMA, using PIO instead.
[ 0.299678] pps_core: LinuxPPS API ver. 1 registered
[ 0.299700] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.299760] PTP clock support registered
[ 0.302756] MIPI CSI2 driver module loaded
[ 0.305661] clocksource: Switched to clocksource ipipe_tsc
[ 0.305976] VFS: Disk quotas dquot_6.6.0
[ 0.306160] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.331112] NET: Registered protocol family 2
[ 0.332698] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[ 0.332770] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.332849] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.332939] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.333172] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.333241] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.333596] NET: Registered protocol family 1
[ 0.365398] RPC: Registered named UNIX socket transport module.
[ 0.365423] RPC: Registered udp transport module.
[ 0.365439] RPC: Registered tcp transport module.
[ 0.365453] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.382062] Bus freq driver module loaded
[ 0.384870] [Xenomai] scheduling class idle registered.
[ 0.384895] [Xenomai] scheduling class rt registered.
[ 0.385123] I-pipe: head domain Xenomai registered.
[ 0.390895] [Xenomai] Cobalt v3.1
[ 0.390925] Initialise system trusted keyrings
[ 0.391375] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[ 0.416392] NFS: Registering the id_resolver key type
[ 0.416476] Key type id_resolver registered
[ 0.416496] Key type id_legacy registered
[ 0.416598] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.417877] fuse init (API version 7.27)
[ 0.442594] Key type asymmetric registered
[ 0.442623] Asymmetric key parser 'x509' registered
[ 0.442680] io scheduler noop registered
[ 0.442701] io scheduler deadline registered
[ 0.443118] io scheduler cfq registered (default)
[ 0.443144] io scheduler mq-deadline registered
[ 0.443163] io scheduler kyber registered
[ 0.444929] imx-weim 21b8000.weim: Driver registered.
[ 0.454032] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[ 0.454286] pwm-backlight backlight: Linked as a consumer to regulator.0
[ 0.463916] mxsfb 21c8000.lcdif: 21c8000.lcdif supply lcd not found, using dummy regulator
[ 0.464135] mxsfb 21c8000.lcdif: Linked as a consumer to regulator.0
[ 0.572162] Console: switching to colour frame buffer device 100x30
[ 0.586860] sii902x bound to mxs-lcdif from 21c8000.lcdif
[ 0.653493] mxsfb 21c8000.lcdif: initialized
[ 0.657087] imx-sdma 20ec000.sdma: Falling back to syfs fallback for: imx/sdma/sdma-imx6q.bin
[ 0.667248] mxs-dma 1804000.dma-apbh: initialized
[ 0.673487] 2018000.serial: ttymxc6 at MMIO 0x2018000 (irq = 18, base_baud = 5000000) is a IMX
[ 0.675226] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 19, base_baud = 5000000) is a IMX
[ 1.285488] console [ttymxc0] enabled
[ 1.290378] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 63, base_baud = 5000000) is a IMX
[ 1.299755] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 64, base_baud = 5000000) is a IMX
[ 1.309077] 21f0000.serial: ttymxc3 at MMIO 0x21f0000 (irq = 65, base_baud = 5000000) is a IMX
[ 1.318280] 21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 66, base_baud = 5000000) is a IMX
[ 1.327583] 2288000.serial: ttymxc7 at MMIO 0x2288000 (irq = 71, base_baud = 5000000) is a IMX
[ 1.371040] imx-rng 2284000.rngb: iMX RNG Registered.
[ 1.375628] imx sema4 driver is registered.
[ 1.380145] [drm] Initialized vivante 1.0.0 20120216 for platform:Vivante GCCore on minor 0
[ 1.387490] [drm] Initialized vivante 1.0.0 20120216 on minor 0
[ 1.418069] brd: module loaded
[ 1.440532] loop: module loaded
[ 1.444595] at24 0-0050: 8192 byte 24c64 EEPROM, writable, 64 bytes/write
[ 1.460641] libphy: Fixed MDIO Bus: probed
[ 1.464399] CAN device driver interface
[ 1.471203] fec 2188000.ethernet: 2188000.ethernet supply phy not found, using dummy regulator
[ 1.478898] fec 2188000.ethernet: Linked as a consumer to regulator.0
[ 1.527088] pps pps0: new PPS source ptp0
[ 1.530198] fec 2188000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
[ 1.539011] fec 2188000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: 12:5e:58:38:5f:1d
[ 1.549011] libphy: fec_enet_mii_bus: probed
[ 1.565296] fec 2188000.ethernet eth0: registered PHC device 0
[ 1.572263] usbcore: registered new interface driver kaweth
[ 1.576910] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.582170] ehci-mxc: Freescale On-Chip EHCI Host driver
[ 1.586909] usbcore: registered new interface driver usb-storage
[ 1.591875] usbcore: registered new interface driver usbserial_generic
[ 1.597494] usbserial: USB Serial support registered for generic
[ 1.602389] usbcore: registered new interface driver usb_ch9344
[ 1.607329] ch9344: USB serial driver for ch9344/ch348.
[ 1.611281] ch9344: V1.9Beta On 2022.04
[ 1.613949] usbcore: registered new interface driver option
[ 1.618559] usbserial: USB Serial support registered for GSM modem (1-port)
[ 1.624352] usbcore: registered new interface driver usb_ehset_test
[ 1.632312] usbmisc_imx 2184800.usbmisc: 2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
[ 1.641260] usbmisc_imx 2184800.usbmisc: Linked as a consumer to regulator.0
[ 1.649395] imx_usb 2184000.usb: 2184000.usb supply vbus not found, using dummy regulator
[ 1.656617] imx_usb 2184000.usb: Linked as a consumer to regulator.0
[ 1.665649] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 1.669448] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[ 1.695772] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 1.702090] hub 1-0:1.0: USB hub found
[ 1.704703] hub 1-0:1.0: 1 port detected
[ 1.720343] imx_usb 2184200.usb: 2184200.usb supply vbus not found, using dummy regulator
[ 1.727735] imx_usb 2184200.usb: Linked as a consumer to regulator.0
[ 1.736748] ci_hdrc ci_hdrc.1: EHCI Host Controller
[ 1.740459] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[ 1.775802] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[ 1.781936] hub 2-0:1.0: USB hub found
[ 1.784546] hub 2-0:1.0: 1 port detected
[ 1.803389] input: 20cc000.snvs:snvs-powerkey as /devices/soc0/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0
[ 1.938683] Goodix-TS 1-005d: ID 911, version: 1060
[ 1.942588] Goodix-TS 1-005d: Falling back to syfs fallback for: goodix_911_cfg.bin
[ 1.955916] rtc-rx8025t 0-0032: rx8025t_get_time: read 0x41 0x40 0x03 0x10 0x21 0x04 0x22
[ 1.955951] rtc-rx8025t 0-0032: rx8025t_get_time: date 41s 40m 3h 21md 3m 122y
[ 1.956461] rtc-rx8025t 0-0032: rtc core: registered rx8025t as rtc0
[ 1.963060] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-rtc-lp as rtc1
[ 1.972358] i2c /dev entries driver
[ 1.983794] sdhci: Secure Digital Host Controller Interface driver
[ 1.988986] sdhci: Copyright(c) Pierre Ossman
[ 1.992074] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.033518] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[ 2.050196] random: fast init done
[ 2.067760] usbcore: registered new interface driver usbhid
[ 2.072075] usbhid: USB HID core driver
[ 2.080905] NET: Registered protocol family 26
[ 2.086351] NET: Registered protocol family 10
[ 2.104389] Segment Routing with IPv6
[ 2.108834] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 2.121409] NET: Registered protocol family 17
[ 2.124631] can: controller area network core (rev 20170425 abi 9)
[ 2.132194] NET: Registered protocol family 29
[ 2.137715] can: raw protocol (rev 20170425)
[ 2.140723] can: broadcast manager protocol (rev 20170425 t)
[ 2.145129] can: netlink gateway (rev 20170425) max_hops=1
[ 2.152343] 8021q: 802.1Q VLAN Support v1.8
[ 2.155299] lib80211: common routines for IEEE802.11 drivers
[ 2.159877] mmc1: new DDR MMC card at address 0001
[ 2.164398] lib80211_crypt: registered algorithm 'NULL'
[ 2.164418] lib80211_crypt: registered algorithm 'WEP'
[ 2.164432] lib80211_crypt: registered algorithm 'CCMP'
[ 2.164444] lib80211_crypt: registered algorithm 'TKIP'
[ 2.164527] Key type dns_resolver registered
[ 2.168969] cpu cpu0: Linked as a consumer to regulator.2
[ 2.173356] cpu cpu0: Linked as a consumer to regulator.3
[ 2.179010] mmcblk1: mmc1:0001 88A398 7.28 GiB
[ 2.183603] mmcblk1boot0: mmc1:0001 88A398 partition 1 4.00 MiB
[ 2.190472] cpu cpu0: running cpufreq without cooling device: 0
[ 2.196313] mmcblk1boot1: mmc1:0001 88A398 partition 2 4.00 MiB
[ 2.201345] mmcblk1rpmb: mmc1:0001 88A398 partition 3 4.00 MiB, chardev (243:0)
[ 2.217407] Loading compiled-in X.509 certificates
[ 2.224725] mmcblk1: p1 p2 p3
[ 2.268068] imx_thermal 2000000.aips-bus:tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C
[ 2.280777] rtc-rx8025t 0-0032: rx8025t_get_time: read 0x42 0x40 0x03 0x10 0x21 0x04 0x22
[ 2.280797] rtc-rx8025t 0-0032: rx8025t_get_time: date 42s 40m 3h 21md 3m 122y
[ 2.280851] rtc-rx8025t 0-0032: setting system clock to 2022-04-21 03:40:42 UTC (1650512442)
[ 2.288496] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 2.299404] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 2.304890] platform regulatory.0: Falling back to syfs fallback for: regulatory.db
[ 2.312177] can-3v3: disabling
[ 2.313954] VSD_3V3: disabling
[ 2.341509] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.348648] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 2.354702] devtmpfs: mounted
[ 2.358226] Freeing unused kernel memory: 1024K
[ 2.361737] Run /sbin/init as init process
[ 2.365806] usb 2-1: new high-speed USB device number 2 using ci_hdrc
[ 2.569298] systemd[1]: systemd 237 running in system mode. (-PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
[ 2.593633] usb_ch9344 2-1:1.0: ttyCH9344USB from 0 - 3: ch9344 device attached.
[ 2.600524] systemd[1]: Detected architecture arm.
[ 2.646954] systemd[1]: Set hostname to <yada>.
[ 2.655271] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.660945] systemd[1]: Initializing machine ID from random generator.
[ 2.970097] systemd[1]: File /lib/systemd/system/systemd-journald.service:35 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[ 2.986278] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[ 3.309738] random: systemd: uninitialized urandom read (16 bytes read)
[ 3.316384] systemd[1]: Created slice User and Session Slice.
[ 3.346155] random: systemd: uninitialized urandom read (16 bytes read)
[ 3.352078] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 3.386184] systemd[1]: Reached target Swap.
[ 3.416240] systemd[1]: Reached target Remote File Systems.
[ 3.835541] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[ 4.839824] systemd-journald[129]: Received request to flush runtime journal from PID 1
[ 8.958397] cfg80211: failed to load regulatory.db
[ 9.571094] imx-sdma 20ec000.sdma: loaded firmware 3.4
[ 9.829019] input: Goodix Capacitive TouchScreen as /devices/soc0/soc/2100000.aips-bus/21a4000.i2c/i2c-1/1-005d/input/input1
[ 13.821264] EXT4-fs (mmcblk1p3): mounted filesystem with ordered data mode. Opts: (null)
[ 43.454951] random: crng init done
[ 43.457076] random: 7 urandom warning(s) missed due to ratelimiting

 

我的问题在哪里?为什么ENET1_REF_CLK1不输出波形???

0 Kudos
0 Replies