I am trying to bring up spi interfaces on TIAm3359-EVMSSK board. On my yocto image modified the dtb file am335x_evmssk.dtb as below
spi0_pins: spi0_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x950, PIN_OUTPUT | MUX_MODE0) /* spi0_sclk.spi0_sclk */
AM33XX_IOPAD(0x954, PIN_OUTPUT_PULLUP | MUX_MODE0) /* spi0_d0.spi0_d0 */
AM33XX_IOPAD(0x958, PIN_INPUT | MUX_MODE0) /* spi0_d1.spi0_d1 */
AM33XX_IOPAD(0x95c, PIN_OUTPUT | MUX_MODE0) /* spi0_cs0.spi0_cs0 */
>;
};
spi1_pins: spi1_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x990, PIN_INPUT_PULLUP | MUX_MODE3) /* spi1_sclk */
AM33XX_IOPAD(0x994, PIN_INPUT_PULLUP | MUX_MODE3) /* spi1_d0 */
AM33XX_IOPAD(0x998, PIN_OUTPUT_PULLUP | MUX_MODE3) /* spi1_d1 */
AM33XX_IOPAD(0x99C, PIN_OUTPUT_PULLUP | MUX_MODE3) /* spi1_cs0 */
>;
};
&spi0
{
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins>;
ti,pindir-d0-out-d1-in = <1>;
status = "okay";
spidev@0
{
compatible = "linux,spidev";
spi-max-frequency = <48000000>;
reg = <0x0>;
status = "okay";
};
};
&spi1
{
pinctrl-names = "default";
pinctrl-0 = <&spi1_pins>;
ti,pindir-d0-out-d1-in = <1>;
status = "okay";
spidev@1
{
compatible = "linux,spidev";
spi-max-frequency = <48000000>;
reg = <0x0>;
status = "okay";
};
};
Enabled the kernel configuration accordingly. I can see device file /dev/spi0.0 for spi0 interface. there is no device file for spi1 interface.
I am seeing a kernel panic on boot up. Please let me know whats the problem with bringing up spi1 interfcace.
kernel panic bootup.
12.295418] tlv320aic3x-codec 0-001b: Too high supply voltage(s) AVDD: 3300000, DVDD: 5000000
[ 12.307465] spidev spi0.0: buggy DT: spidev listed directly in DT
[ 12.313640] ------------[ cut here ]------------
[ 12.366030] omap_rtc 44e3e000.rtc: registered as rtc0
[ 12.457741] WARNING: CPU: 0 PID: 106 at drivers/spi/spidev.c:730 spidev_probe+0x1c0/0x1d4 [spidev]
[ OK ] Found device /dev/ttyS0.
[ 12.605100] Modules linked in: spidev(+) rtc_omap musb_am335x snd_soc_tlv320aic3x omap_wdt ti_am335x_tscadc bluetooth ecdh_generic sch_fq_codel
[FAILED] Failed to start GNU Zebra routing manager.
See 'systemctl status zebra.service' for details.
[DEPEND] Dependency failed for RIP routing daemon for IPv6.
[ 12.804704] CPU: 0 PID: 106 Comm: systemd-udevd Not tainted 4.19.25-g85f9077a5f #1
[DEPEND] Dependency failed for OSPF routing daemon.
[DEPEND] Dependency failed for RIP routing daemon.
[DEPEND] Dependency failed for OSPF routing daemon for IPv6.
[DEPEND] Dependency failed for IS-IS routing daemon.
[DEPEND] Dependency failed for BGP routing daemon.
[ 12.960784] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 13.025157] Backtrace:
[ 13.027684] [<c010cb64>] (dump_backtrace) from [<c010ced4>] (show_stack+0x18/0x1c)
[ 13.186781] r7:00000009 r6:00000000 r5:bf0b34c0 r4:00000000
[ 13.192513] [<c010cebc>] (show_stack) from [<c08a4114>] (dump_stack+0x24/0x28)
[ 13.222965] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[ 13.231064] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[ 13.337046] remoteproc remoteproc0: wkup_m3 is available
[ 13.343661] omap-aes 53500000.aes: will run requests pump with realtime priority
[ 13.380902] [<c08a40f0>] (dump_stack) from [<c012aa80>] (__warn+0xe0/0xf8)
[ 13.416915] remoteproc remoteproc0: powering up wkup_m3
[ 13.453573] PM: Cannot get wkup_m3_ipc handle
[ 13.466009] [<c012a9a0>] (__warn) from [<c012aae0>] (warn_slowpath_null+0x48/0x50)
[ 13.473637] r9:bf0b4028 r8:00000000 r7:00000000 r6:bf0b1374 r5:000002da r4:bf0b34c0
[ 13.552192] PM: Cannot get wkup_m3_ipc handle
[ 13.563778] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 242904
[ 13.597924] asoc-simple-card sound: tlv320aic3x-hifi <-> 4803c000.mcasp mapping ok
[ 13.676794] remoteproc remoteproc0: remote processor wkup_m3 is now up
[ 13.676820] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
[ 13.718213] asoc-simple-card sound: ASoC: no DMI vendor name!
[ 13.729405] [<c012aa98>] (warn_slowpath_null) from [<bf0b1374>] (spidev_probe+0x1c0/0x1d4 [spidev])
[ 13.828921] PM: Cannot get wkup_m3_ipc handle
[ 13.865189] r6:bf0b4018 r5:cf5c2000 r4:cf5c2000
[ 13.869903] [<bf0b11b4>] (spidev_probe [spidev]) from [<c05f83dc>] (spi_drv_probe+0x84/0xa8)
[ OK ] Started Network Name Resolution.
[ 14.015717] r9:bf0b4028 r8:00000000 r7:00000000 r6:bf0b4018 r5:00000000 r4:cf5c2000
[ 14.023558] [<c05f8358>] (spi_drv_probe) from [<c058c3e0>] (really_probe+0x1fc/0x2c0)
[ 14.177127] r7:00000000 r6:c0d7f048 r5:cf5c2000 r4:c0d7f044
[ 14.182863] [<c058c1e4>] (really_probe) from [<c058c648>] (driver_probe_device+0x68/0x180)
[ 14.315216] r10:c0d03048 r9:ce33df38 r8:00000000 r7:c058c760 r6:cf5c2034 r5:bf0b4028
[ 14.323103] r4:cf5c2000 r3:00000000
[ 14.417728] [<c058c5e0>] (driver_probe_device) from [<c058c844>] (__driver_attach+0xe4/0xe8)
[ 14.485996] r9:ce33df38 r8:00000000 r7:c058c760 r6:cf5c2034 r5:bf0b4028 r4:cf5c2000
[ 14.493853] [<c058c760>] (__driver_attach) from [<c058a338>] (bus_for_each_dev+0x7c/0xbc)
[ 14.612796] r7:c058c760 r6:bf0b4028 r5:c0d03048 r4:cf593230
[ 14.667312] [<c058a2bc>] (bus_for_each_dev) from [<c058bd20>] (driver_attach+0x24/0x28)
[ 14.724768] r7:00000000 r6:ce510c80 r5:c0d33b64 r4:bf0b4028
[ 14.770026] [<c058bcfc>] (driver_attach) from [<c058b7b8>] (bus_add_driver+0x1c4/0x208)
[ 14.837220] [<c058b5f4>] (bus_add_driver) from [<c058d284>] (driver_register+0x7c/0x110)
[ 14.902227] r7:bf0b7000 r6:00000000 r5:bf0b4000 r4:bf0b4028
[ 14.934763] [<c058d208>] (driver_register) from [<c05f8318>] (__spi_register_driver+0x60/0x64)
[ 15.003805] r5:bf0b4000 r4:bf0b4240
[ 15.041370] [<c05f82b8>] (__spi_register_driver) from [<bf0b7098>] (spidev_init+0x98/0x1000 [spidev])
[ 15.115663] [<bf0b7000>] (spidev_init [spidev]) from [<c0102640>] (do_one_initcall+0x84/0x1b0)
[ 15.124340] r6:ffffe000 r5:c0d03048 r4:c0d49000
[ 15.224732] [<c01025bc>] (do_one_initcall) from [<c019f9dc>] (do_init_module+0x68/0x214)
[ 15.298778] r8:ce18ba00 r7:ce18b9c0 r6:ce18bac0 r5:00000002 r4:bf0b4080
[ 15.360520] [<c019f974>] (do_init_module) from [<c01a1ea0>] (load_module+0x2274/0x2454)
[ 15.417197] r7:ce18b9c0 r6:00000002 r5:00000002 r4:bf0b4080
[ 15.422933] [<c019fc2c>] (load_module) from [<c01a22dc>] (sys_finit_module+0xcc/0xe4)
[ 15.545222] r10:0000017b r9:ce33c000 r8:c0101204 r7:00000006 r6:b6eef660 r5:00000000
[ 15.553109] r4:c0d03048
[ 15.635182] [<c01a2210>] (sys_finit_module) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[ 15.643436] Exception stack(0xce33dfa8 to 0xce33dff0)
[ 15.755692] dfa0: 00000000 00000000 00000006 b6eef660 00000000 00020000
[ 15.763933] dfc0: 00000000 00000000 00000000 0000017b 00000000 00000001 00000000 004b6a78
[ 15.899250] dfe0: be9f42d0 be9f42c0 b6ee9969 b6ddff72
[ 15.904354] r7:0000017b r6:00000000 r5:00000000 r4:00000000
[ 15.996641] ---[ end trace 11c9bba8830a1141 ]---
[ 16.062123] PM: bootloader does not support rtc-only!
[ 16.666925] TI-am335x-tsc TI-am335x-tsc.0.auto: ti,charge-delay not specified
[ 16.674470] input: ti-tsc as /devices/platform/ocp/44e0d000.tscadc/TI-am335x-tsc.0.auto/input/input1
[ 16.763736] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
[ 16.887760] usbcore: registered new interface driver usbfs
[ 16.893348] usbcore: registered new interface driver hub
[ 16.902577] am335x-phy-driver 47401300.usb-phy: Linked as a consumer to regulator.0
[ 16.980500] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator
[ 17.015607] usbcore: registered new device driver usb