This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM4378: SPI0可以使用但SPI4不可使用

Part Number: AM4378

我在设备树文件中,添加了SPI0和SPI4的设备结点,如图片1所示。然后会在/dev目录下生成spidev1.0和spidev2.0,我在我的应用程序中调用/dev/spidev1.0来调用SPI0,然后连接SPI0的相关引脚,通过ioctl接口来进行SPI通信,SPI0是可以正常使用的。

但是当我在程序中只更改/dev/spidev1.0为/dev/spidev2.0时,并连接了SPI4的相关引脚,就不能进行SPI通信了。

我用spidev_test测试程序短接SPI4的收发引脚时,是可以收到数据的,但为什么我的应用程序中不能调用SPI4呢?

应用程序中的相关代码如下所示:

spi0.device = "/dev/spidev2.0"

spi->fd_spi = open(spi->device,O_RDWR | O_NONBLOCK)

调用ioctl代码:

ret=ioctl(fd,SPI_IOC_MESSAGE(1),&tr)

我想解决一下SPI4不可以调用的问题,非常感谢!

  • am4378是master吗?您目前是tx/rx短接是可以收到数据,但是与slave端设备无法通信是吗?

    spi1和spi4引脚接法都是相同的吗?主要是D0/D1脚。

  • 对,都是相同的,我只是把spidev1.0换成了2.0,然后把引脚换了,然后就不能通信了,我发现好像是在应用程序中调用ioctl那一步出的问题,但测试程序中也会有ioctl接口,短接时没问题,但到了我的程序中就会在这一步卡死。

  • 对,AM4378是master

  • 我需要咨询相关工程师再给您回复。

  • 好的,期待您的回复。

  • 将代码修改为 spidev@4, reg =<0x4>试一下。

    如果不是这个问题的话

    1、请将启动log贴出来看一下,是否有异常。

    2、spi0和spi4是同时使用的还是单独使用的?

    3、slave端接的什么设备?

  • 您好,我现在好像可以使用SPI4了,但是传输的前一段时间数据会乱,过一段时间就会恢复正常,我不知道是能用还是不能用,但应该是通了。

    按照您的更改后,perror报错:Bad file descriptor

    1.log在我插入的附件中

    6518.log.txt
    [    0.338375] media: Linux media interface: v0.10
    [    0.338456] Linux video capture interface: v2.00
    [    0.338520] pps_core: LinuxPPS API ver. 1 registered
    [    0.338530] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.338567] PTP clock support registered
    [    0.339504] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.339843] Advanced Linux Sound Architecture Driver Initialized.
    [    0.341076] Switched to clocksource timer1
    [    0.353197] NET: Registered protocol family 2
    [    0.354127] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.354187] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.354254] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.354356] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.354379] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.354564] NET: Registered protocol family 1
    [    0.354947] RPC: Registered named UNIX socket transport module.
    [    0.354962] RPC: Registered udp transport module.
    [    0.354971] RPC: Registered tcp transport module.
    [    0.354979] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.355020] PCI: CLS 0 bytes, default 64
    [    0.357747] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.357854] audit: initializing netlink subsys (disabled)
    [    0.357917] audit: type=2000 audit(0.340:1): initialized
    [    0.365649] VFS: Disk quotas dquot_6.6.0
    [    0.365888] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.368245] NFS: Registering the id_resolver key type
    [    0.368310] Key type id_resolver registered
    [    0.368320] Key type id_legacy registered
    [    0.368402] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
    [    0.370430] NET: Registered protocol family 38
    [    0.370510] io scheduler noop registered
    [    0.370529] io scheduler deadline registered
    [    0.370602] io scheduler cfq registered (default)
    [    0.373393] pinctrl-single 44e10800.pinmux: 199 pins at pa f9e10800 size 796
    [    0.376259] pwm-backlight backlight: GPIO lookup for consumer enable
    [    0.376281] pwm-backlight backlight: using device tree for GPIO lookup
    [    0.376300] of_get_named_gpiod_flags: can't parse 'enable-gpios' property of node '/backlight[0]'
    [    0.376313] of_get_named_gpiod_flags: can't parse 'enable-gpio' property of node '/backlight[0]'
    [    0.376324] pwm-backlight backlight: using lookup tables for GPIO lookup
    [    0.376338] pwm-backlight backlight: lookup for GPIO enable failed
    [    0.376359] backlight supply power not found, using dummy regulator
    [    0.378696] 4832a000.dss supply vdda_video not found, using dummy regulator
    [    0.378829] OMAP DSS rev 2.0
    [    0.379332] omapdss_dss 4832a000.dss: bound 4832a400.dispc (ops dispc_component_ops)
    [    0.381548] panel-dpi display: GPIO lookup for consumer enable
    [    0.381569] panel-dpi display: using device tree for GPIO lookup
    [    0.381586] of_get_named_gpiod_flags: can't parse 'enable-gpios' property of node '/display[0]'
    [    0.381598] of_get_named_gpiod_flags: can't parse 'enable-gpio' property of node '/display[0]'
    [    0.381610] panel-dpi display: using lookup tables for GPIO lookup
    [    0.381624] panel-dpi display: lookup for GPIO enable failed
    [    0.382421] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [    0.383836] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    0.388051] omap_uart 44e09000.serial: no wakeirq for uart0
    [    0.388076] of_get_named_gpiod_flags: can't parse 'rts-gpio' property of node '/ocp/serial@44e09000[0]'
    [    0.388096] omap_uart 44e09000.serial: No clock speed specified: using default: 48000000
    [    0.388279] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a OMAP UART0
    [    1.133761] console [ttyO0] enabled
    [    1.138136] omap_uart 481aa000.serial: no wakeirq for uart5
    [    1.144146] of_get_named_gpiod_flags: parsed 'rts-gpio' property of node '/ocp/serial@481aa000[0]' - status (0)
    [    1.144185] omap_uart 481aa000.serial: No clock speed specified: using default: 48000000
    [    1.152931] 481aa000.serial: ttyO5 at MMIO 0x481aa000 (irq = 31, base_baud = 3000000) is a OMAP UART5
    [    1.163454] [drm] Initialized drm 1.1.0 20060810
    [    1.181759] brd: module loaded
    [    1.190991] loop: module loaded
    [    1.195666] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.204402] omap2_mcspi 48030000.spi: registered master spi1
    [    1.204713] spi spi1.0: setup: speed 48000000, sample leading edge, clk normal
    [    1.204741] spi spi1.0: setup mode 0, 8 bits/w, 48000000 Hz max --> 0
    [    1.205322] omap2_mcspi 48030000.spi: registered child spi1.0
    [    1.205901] omap2_mcspi 48345000.spi: registered master spi2
    [    1.206079] spi spi2.0: not using DMA for McSPI (-19)
    [    1.211538] spi spi2.0: setup: speed 48000000, sample leading edge, clk normal
    [    1.211562] spi spi2.0: setup mode 0, 8 bits/w, 48000000 Hz max --> 0
    [    1.212129] omap2_mcspi 48345000.spi: registered child spi2.0
    [    1.271141] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    1.277612] davinci_mdio 4a101000.mdio: detected phy mask ffffffef
    [    1.285120] Atheros 8035 ethernet 4a101000.mdio:04: GPIO lookup for consumer reset
    [    1.285144] Atheros 8035 ethernet 4a101000.mdio:04: using lookup tables for GPIO lookup
    [    1.285159] Atheros 8035 ethernet 4a101000.mdio:04: lookup for GPIO reset failed
    [    1.285178] libphy: 4a101000.mdio: probed
    [    1.289435] davinci_mdio 4a101000.mdio: phy[4]: device 4a101000.mdio:04, driver Atheros 8035 ethernet
    [    1.300127] cpsw 4a100000.ethernet: Detected MACID = 6c:c3:74:49:9e:79
    [    1.308043] cpsw 4a100000.ethernet: cpsw: Detected MACID = 6c:c3:74:49:9e:7b
    [    1.317390] mousedev: PS/2 mouse device common for all mice
    [    1.323487] i2c /dev entries driver
    [    1.328889] omap_hsmmc 48060000.mmc: GPIO lookup for consumer cd
    [    1.328910] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [    1.328974] of_get_named_gpiod_flags: parsed 'cd-gpios' property of node '/ocp/mmc@48060000[0]' - status (0)
    [    1.329051] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.334073] omap_hsmmc 48060000.mmc: GPIO lookup for consumer wp
    [    1.334090] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [    1.334105] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@48060000[0]'
    [    1.334118] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@48060000[0]'
    [    1.334130] omap_hsmmc 48060000.mmc: using lookup tables for GPIO lookup
    [    1.334144] omap_hsmmc 48060000.mmc: lookup for GPIO wp failed
    [    1.361553] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer cd
    [    1.361573] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
    [    1.361589] of_get_named_gpiod_flags: can't parse 'cd-gpios' property of node '/ocp/mmc@481d8000[0]'
    [    1.361602] of_get_named_gpiod_flags: can't parse 'cd-gpio' property of node '/ocp/mmc@481d8000[0]'
    [    1.361614] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
    [    1.361627] omap_hsmmc 481d8000.mmc: lookup for GPIO cd failed
    [    1.361642] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer wp
    [    1.361653] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
    [    1.361665] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@481d8000[0]'
    [    1.361677] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@481d8000[0]'
    [    1.361688] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
    [    1.361700] omap_hsmmc 481d8000.mmc: lookup for GPIO wp failed
    [    1.391562] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.398672]  remoteproc0: wkup_m3 is available
    [    1.403487]  remoteproc0: Note: remoteproc is still under development and considered experimental.
    [    1.413013]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [    1.426626] oprofile: no performance counters
    [    1.431510] oprofile: using timer interrupt.
    [    1.436414] Initializing XFRM netlink socket
    [    1.440979] NET: Registered protocol family 17
    [    1.445815] NET: Registered protocol family 15
    [    1.450666] Key type dns_resolver registered
    [    1.455445] omap_voltage_late_init: Voltage driver support not added
    [    1.462649] cpu cpu0: of_pm_voltdm_notifier_register: Failed to get cpu0 regulator/voltdm: -517
    [    1.471922] cpu cpu0: cpu0 clock notifier not ready, retry
    [    1.478140] ThumbEE CPU extension supported.
    [    1.482726] Registering SWP/SWPB emulation handler
    [    1.490946] omapdrm omapdrm.0: DMM not available, disable DMM support
    [    1.499356] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    1.506452] [drm] No driver support for vblank timestamp query.
    [    1.559337] Console: switching to colour frame buffer device 100x30
    [    1.581307] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
    [    1.587574] omapdrm omapdrm.0: registered panic notifier
    [    1.621116] [drm] Initialized omapdrm 1.0.0 20110917 on minor 0
    [    1.641310] rtc-ds1307: probe of 0-0068 failed with error -5
    [    1.668041] omap_i2c 44e0b000.i2c: bus 0 rev0.12 at 100 kHz
    [    1.675752] omap_i2c 4802a000.i2c: bus 1 rev0.12 at 100 kHz
    [    1.683046] omap_hsmmc 48060000.mmc: GPIO lookup for consumer cd
    [    1.683067] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [    1.683129] of_get_named_gpiod_flags: parsed 'cd-gpios' property of node '/ocp/mmc@48060000[0]' - status (0)
    [    1.683196] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.688095] omap_hsmmc 48060000.mmc: GPIO lookup for consumer wp
    [    1.688108] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [    1.688122] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@48060000[0]'
    [    1.688135] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@48060000[0]'
    [    1.688147] omap_hsmmc 48060000.mmc: using lookup tables for GPIO lookup
    [    1.688160] omap_hsmmc 48060000.mmc: lookup for GPIO wp failed
    [    1.688854]  remoteproc0: powering up wkup_m3
    [    1.693552]  remoteproc0: Booting fw image am335x-pm-firmware.elf, size 219803
    [    1.702261]  remoteproc0: remote processor wkup_m3 is now up
    [    1.708268] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x191
    [    1.722103] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer cd
    [    1.722124] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
    [    1.722141] of_get_named_gpiod_flags: can't parse 'cd-gpios' property of node '/ocp/mmc@481d8000[0]'
    [    1.722155] of_get_named_gpiod_flags: can't parse 'cd-gpio' property of node '/ocp/mmc@481d8000[0]'
    [    1.722167] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
    [    1.722181] omap_hsmmc 481d8000.mmc: lookup for GPIO cd failed
    [    1.722196] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer wp
    [    1.722207] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
    [    1.722218] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@481d8000[0]'
    [    1.722230] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@481d8000[0]'
    [    1.722241] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
    [    1.722252] omap_hsmmc 481d8000.mmc: lookup for GPIO wp failed
    [    1.761566] cpu cpu0: of_pm_voltdm_notifier_register: Fail calculating voltage latency[950000<->1325000]:-22
    [    1.772359] cpu cpu0: of_pm_voltdm_notifier_register: Fail calculating voltage latency[950000<->1325000]:-22
    [    1.786100] hctosys: unable to open rtc device (rtc0)
    [    1.800899] ALSA device list:
    [    1.804160]   No soundcards found.
    [    1.808246] Waiting for root device PARTUUID=ca74a542-02...
    [    1.834782] mmc1: MAN_BKOPS_EN bit is not set
    [    1.842557] mmc1: new high speed MMC card at address 0001
    [    1.848713] mmcblk0: mmc1:0001 Q2J54A 3.59 GiB 
    [    1.853717] mmcblk0boot0: mmc1:0001 Q2J54A partition 1 16.0 MiB
    [    1.860083] mmcblk0boot1: mmc1:0001 Q2J54A partition 2 16.0 MiB
    [    1.867596]  mmcblk0: p1 p2 p3
    [    2.119570] EXT4-fs (mmcblk0p2): recovery complete
    [    2.125116] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    2.133773] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    2.141187] devtmpfs: mounted
    [    2.144841] Freeing unused kernel memory: 276K (c08af000 - c08f4000)
    [    2.319911] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [    2.936986] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    2.962149] of_get_named_gpiod_flags: parsed 'gpios' property of node '/volume_keys@0/switch@1[0]' - status (0)
    [    2.962203] of_get_named_gpiod_flags: parsed 'gpios' property of node '/volume_keys@0/switch@2[0]' - status (0)
    [    2.962660] input: volume_keys@0 as /devices/platform/volume_keys@0/input/input0
    [    2.991167] cfg80211: Calling CRDA to update world regulatory domain
    [    3.026150] NET: Registered protocol family 10
    [    3.038966] omap-aes 53501000.aes: OMAP AES hw accel rev: 0.1
    [    3.050931] omap-sham 53100000.sham: hw accel on OMAP rev 0.0
    [    3.073126] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    3.180366] udevd[122]: starting version 3.2.1
    [    3.192902] random: udevd urandom read with 32 bits of entropy available
    [    3.244480] udevd[123]: starting eudev-3.2.1
    [    3.572329] ov2659 0-0030: GPIO lookup for consumer pwrdn
    [    3.572349] ov2659 0-0030: using device tree for GPIO lookup
    [    3.572362] of_get_named_gpiod_flags: can't parse 'pwrdn-gpios' property of node '/ocp/i2c@44e0b000/ov2659@30[0]'
    [    3.572370] of_get_named_gpiod_flags: can't parse 'pwrdn-gpio' property of node '/ocp/i2c@44e0b000/ov2659@30[0]'
    [    3.572377] ov2659 0-0030: using lookup tables for GPIO lookup
    [    3.572386] ov2659 0-0030: lookup for GPIO pwrdn failed
    [    3.575972] ov2659 0-0030: Sensor detection failed (3030, 0)
    [    3.596683] input: tps65218_pwrbutton as /devices/platform/44000000.ocp/44e0b000.i2c/i2c-0/0-0024/44e0b000.i2c:tps65218@24:power-button/input/input1
    [    3.618332] ov2659 1-0030: GPIO lookup for consumer pwrdn
    [    3.618353] ov2659 1-0030: using device tree for GPIO lookup
    [    3.618366] of_get_named_gpiod_flags: can't parse 'pwrdn-gpios' property of node '/ocp/i2c@4802a000/ov2659@30[0]'
    [    3.618375] of_get_named_gpiod_flags: can't parse 'pwrdn-gpio' property of node '/ocp/i2c@4802a000/ov2659@30[0]'
    [    3.618382] ov2659 1-0030: using lookup tables for GPIO lookup
    [    3.618391] ov2659 1-0030: lookup for GPIO pwrdn failed
    [    3.630392] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [    3.634308] ov2659 1-0030: Sensor detection failed (3030, 0)
    [    3.645408] input: ti-tsc as /devices/platform/44000000.ocp/44e0d000.tscadc/TI-am335x-tsc/input/input2
    [    3.656561] of_get_named_gpiod_flags: parsed 'tp_int' property of node '/ocp/i2c@4802a000/ft0x5x_ts@38[0]' - status (0)
    [    3.656605] of_get_named_gpiod_flags: parsed 'tp_resetn' property of node '/ocp/i2c@4802a000/ft0x5x_ts@38[0]' - status (0)
    [    3.656611] tp reset gpio=119
    [    3.671615] ft5x0x id: 0xF830
    [    3.696090] input: ft5x06_ts as /devices/virtual/input/input3
    [    3.697043] sgtl5000: probe of 1-000a failed with error -121
    [    3.703521] ft5x0x_ts_init successful
    [    3.717958] CAN device driver interface
    [    3.729816] c_can_platform 481cc000.can: c_can_platform device registered (regs=fa1cc000, irq=261)
    [    3.748146] c_can_platform 481d0000.can: c_can_platform device registered (regs=fa1d0000, irq=262)
    [    3.972805] omap-des 53701000.des: OMAP DES hw accel rev: 0.33
    [    4.018624] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led@0[0]' - status (0)
    [    4.018836] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led@1[0]' - status (0)
    [    4.019024] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led@2[0]' - status (0)
    [    4.019146] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/led@3[0]' - status (0)
    [    4.067722] PM: bootloader does not support rtc-only!
    [    5.192965] usbcore: registered new interface driver usbfs
    [    5.193963] usbcore: registered new interface driver hub
    [    5.194897] usbcore: registered new device driver usb
    [    5.208488] dwc3 48390000.usb: otg: primary host xhci-hcd.0.auto registered
    [    5.208514] dwc3 48390000.usb: otg: shared host xhci-hcd.0.auto registered
    [    5.208522] dwc3 48390000.usb: otg: can't start till gadget registers
    [    5.209325] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [    5.209365] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
    [    5.209975] xhci-hcd xhci-hcd.1.auto: hcc params 0x0238f06d hci version 0x100 quirks 0x00210010
    [    5.210030] xhci-hcd xhci-hcd.1.auto: irq 301, io mem 0x483d0000
    [    5.210196] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    5.210208] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    5.210216] usb usb1: Product: xHCI Host Controller
    [    5.210223] usb usb1: Manufacturer: Linux 4.1.18 xhci-hcd
    [    5.210230] usb usb1: SerialNumber: xhci-hcd.1.auto
    [    5.212735] hub 1-0:1.0: USB hub found
    [    5.212802] hub 1-0:1.0: 1 port detected
    [    5.214322] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [    5.214351] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
    [    5.214481] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [    5.214590] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
    [    5.214601] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    5.214608] usb usb2: Product: xHCI Host Controller
    [    5.214616] usb usb2: Manufacturer: Linux 4.1.18 xhci-hcd
    [    5.214623] usb usb2: SerialNumber: xhci-hcd.1.auto
    [    5.215957] hub 2-0:1.0: USB hub found
    [    5.216015] hub 2-0:1.0: 1 port detected
    [    5.990998] net eth0: initializing cpsw version 1.15 (0)
    [    6.071734] net eth0: phy found : id is : 0x4dd072
    [    6.079004] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [    6.100901] net eth1: initializing cpsw version 1.15 (0)
    [    6.118672] libphy: PHY 4a101000.mdio:01 not found
    [    6.151319] net eth1: phy 4a101000.mdio:01 not found on slave 1
    [    6.160469] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [    6.161832] cfg80211: Calling CRDA to update world regulatory domain
    [    6.675575] 
                   
                   
                   *******************
                   register dev success
    [    6.675665] request gpio irq success
                   *******************
                   
    
    [    9.072152] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [    9.072226] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [    9.301306] 8021q: 802.1Q VLAN Support v1.8
    [    9.301367] 8021q: adding VLAN 0 to HW filter on device eth0
    [    9.301461] 8021q: adding VLAN 0 to HW filter on device eth1
    [    9.311504] cfg80211: Calling CRDA to update world regulatory domain
    [   11.165511] spidev spi2.0: not using DMA for McSPI (-19)
    [   11.174699] There is't a process to receive the spi0 signal
    [   11.177025] spidev spi2.0: setup: speed 48000000, sample trailing edge, clk normal
    [   11.177057] spidev spi2.0: setup mode 1, 8 bits/w, 48000000 Hz max --> 0
    [   11.177066] spidev spi2.0: spi mode 1
    [   11.177246] spidev spi2.0: not using DMA for McSPI (-19)
    [   11.186902] spidev spi2.0: setup: speed 48000000, sample trailing edge, clk normal
    [   11.186928] spidev spi2.0: setup mode 1, 8 bits/w, 48000000 Hz max --> 0
    [   11.186937] spidev spi2.0: 8 bits per word
    [   11.187070] spidev spi2.0: not using DMA for McSPI (-19)
    [   11.196182] spidev spi2.0: setup: speed 9600000, sample trailing edge, clk normal
    [   11.196203] spidev spi2.0: setup mode 1, 8 bits/w, 10000000 Hz max --> 0
    [   11.200232] gpio-114 (sysfs): gpiod_request: status -16
    [   11.200247] export_store: status -16
    [   11.219115] send_sync_signal kill SIGIO
    [   11.226398] spidev spi2.0: setup: speed 9600000, sample trailing edge, clk normal
    [   11.253853] spidev spi2.0: setup: speed 48000000, sample trailing edge, clk normal
    [   11.297812] send_sync_signal kill SIGIO
    [   11.299606] spidev spi2.0: setup: speed 9600000, sample trailing edge, clk normal
    [   11.327272] spidev spi2.0: setup: speed 48000000, sample trailing edge, clk normal
    [   12.461247] cfg80211: Calling CRDA to update world regulatory domain
    [   12.991201] random: nonblocking pool is initialized
    [   15.611208] cfg80211: Calling CRDA to update world regulatory domain
    [   15.631040] send_sync_signal kill SIGIO
    [   15.635827] spidev spi2.0: setup: speed 9600000, sample trailing edge, clk normal
    [   15.668959] spidev spi2.0: setup: speed 48000000, sample trailing edge, clk normal
    [   15.700488] gpio-116 (sysfs): gpiod_request: status -16
    [   15.700523] export_store: status -16
    
    

    2.SPI4和SPI0都是单独测试的

    3.slave端接的是STM32F407VET6