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.

SPI1 interface (/dev/spi1.0) is not comming up on am335x based SSK board after modifying dtb.

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

  • dmesg output.

    dmesg | grep "spi"
    [ 1.078452] pinctrl-single 44e10800.pinmux: pin PIN103 already requested by 48304100.ecap; cannot claim for 481a0000.spi
    [ 1.089585] pinctrl-single 44e10800.pinmux: pin-103 (481a0000.spi) status -22
    [ 1.096778] pinctrl-single 44e10800.pinmux: could not request pin 103 (PIN103) from group spi1_pins on device pinctrl-single
    [ 1.108153] omap2_mcspi 481a0000.spi: Error applying setting, reverse things back
    [ 1.115703] omap2_mcspi: probe of 481a0000.spi failed with error -22
    [ 12.300996] spidev spi0.0: buggy DT: spidev listed directly in DT
    [ 12.462064] WARNING: CPU: 0 PID: 111 at drivers/spi/spidev.c:730 spidev_probe+0x1c0/0x1d4 [spidev]
    [ 12.592224] Modules linked in: ecdh_generic(+) spidev(+) rtc_omap omap_wdt ti_am335x_tscadc musb_am335x snd_soc_tlv320aic3x sch_fq_codel
    [ 13.523105] [<c012aa98>] (warn_slowpath_null) from [<bf03f374>] (spidev_probe+0x1c0/0x1d4 [spidev])
    [ 13.733579] [<bf03f1b4>] (spidev_probe [spidev]) from [<c05f83dc>] (spi_drv_probe+0x84/0xa8)
    [ 13.947260] [<c05f8358>] (spi_drv_probe) from [<c058c3e0>] (really_probe+0x1fc/0x2c0)
    [ 14.766402] [<c058d208>] (driver_register) from [<c05f8318>] (__spi_register_driver+0x60/0x64)
    [ 14.834244] [<c05f82b8>] (__spi_register_driver) from [<bf045098>] (spidev_init+0x98/0x1000 [spidev])
    [ 14.939728] [<bf045000>] (spidev_init [spidev]) from [<c0102640>] (do_one_initcall+0x84/0x1b0)

  • Siva,

    siva nallamalli said:
    [ 1.078452] pinctrl-single 44e10800.pinmux: pin PIN103 already requested by 48304100.ecap; cannot claim for 481a0000.spi
    [ 1.089585] pinctrl-single 44e10800.pinmux: pin-103 (481a0000.spi) status -22
    [ 1.096778] pinctrl-single 44e10800.pinmux: could not request pin 103 (PIN103) from group spi1_pins on device pinctrl-single

    Well this kind of gives it away. 481a0000.spi means spi1 so there's a pin conflict. Try de-activating the ecap module in the DTS by adding something like this to your top-level DTS file...

    &epwmss0 {
        status = "disabled";
    };

    siva nallamalli said:
    &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";
    };
    };

    Also try setting spidev@0 here, as the 0 (unit address) usually should match the address in the 'reg' property of the node as per device tree specification.

    Regards, Andreas

  • I need to disable  epwmss2 in am335x_evmssk.dts file.  But this is disturbing my lcd touch screen. No output comming on Lcd. 

    &epwmss2 {
    status = "disabled";
    };

    &epwmss2 {
    status = "okay";

    ecap2: ecap@48304100 {
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&ecap2_pins>;
    };
    };

    ecap2_pins: backlight_pins {
    pinctrl-single,pins = <
    AM33XX_IOPAD(0x99c, MUX_MODE4) /* mcasp0_ahclkr.ecap2_in_pwm2_out */
    >;
    };

    I am getting huge errors in boot up log. Any ideas on how to enable spi1  with out touching lcd interface.

    Boot up log. 

    6.951039] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [ 6.965071] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 6.973284] omap_rtc 44e3e000.rtc: already running
    [ 6.978388] tlv320aic3x-codec 0-001b: Linked as a consumer to regulator.1
    [ 7.042502] tlv320aic3x-codec 0-001b: Too high supply voltage(s) AVDD: 3300000, DVDD: 5000000
    [ 7.051280] pwm-backlight backlight: Linked as a consumer to regulator.0
    [ 7.065371] omap_rtc 44e3e000.rtc: registered as rtc0
    [ 7.118105] spidev spi0.0: buggy DT: spidev listed directly in DT
    [ 7.124253] ------------[ cut here ]------------
    [ 7.131790] pwm-backlight backlight: Dropping the link to regulator.0
    [ 7.206544] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 7.212835] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 7.224994] WARNING: CPU: 0 PID: 91 at drivers/spi/spidev.c:730 spidev_probe+0x1c0/0x1d4 [spidev]
    [ 7.233925] Modules linked in: spidev(+) musb_am335x(+) rtc_omap(+) omap_wdt ti_am335x_tscadc snd_soc_tlv320aic3x(+) sch_fq_codel
    [ 7.356246] alloc_contig_range: [8a840, 8a841) PFNs busy
    [ 7.361777] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 7.433591] tilcdc 4830e000.lcdc: no encoders/connectors found
    [ 7.469965] CPU: 0 PID: 91 Comm: systemd-udevd Not tainted 4.19.25-g85f9077a5f #1
    [ 7.536293] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [ 7.582241] Hardware name: Generic AM33XX (Flattened Device Tree)
    [ 7.635448] pwm-backlight backlight: Linked as a consumer to regulator.0
    [ 7.642312] pwm-backlight backlight: Dropping the link to regulator.0
    [ 7.655048] Backtrace:
    [ 7.657565] [<c010cb64>] (dump_backtrace) from [<c010ced4>] (show_stack+0x18/0x1c)
    [ OK ] Started udev Coldplug all Devices.
    [ 7.742138] r7:00000009 r6:00000000 r5:bf0414c0 r4:00000000
    [ 7.787923] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 7.794217] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 7.801975] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [ 7.834081] [<c010cebc>] (show_stack) from [<c08a4114>] (dump_stack+0x24/0x28)
    [ 7.846361] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [ 7.888495] [<c08a40f0>] (dump_stack) from [<c012aa80>] (__warn+0xe0/0xf8)
    [ 7.916793] omap-aes 53500000.aes: will run requests pump with realtime priority
    [ 7.952305] alloc_contig_range: [8a840, 8a841) PFNs busy
    [ 7.959290] remoteproc remoteproc0: wkup_m3 is available
    [ 7.999901] [<c012a9a0>] (__warn) from [<c012aae0>] (warn_slowpath_null+0x48/0x50)
    [ 8.035712] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 8.041694] tilcdc 4830e000.lcdc: no encoders/connectors found
    [ 8.080389] remoteproc remoteproc0: powering up wkup_m3
    [ 8.086148] r9:bf042028 r8:00000000 r7:00000000 r6:bf03f374 r5:000002da r4:bf0414c0
    [ 8.093987] [<c012aa98>] (warn_slowpath_null) from [<bf03f374>] (spidev_probe+0x1c0/0x1d4 [spidev])
    [ 8.107324] PM: Cannot get wkup_m3_ipc handle
    [ 8.194095] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [ 8.216018] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 242904
    [ 8.224428] remoteproc remoteproc0: remote processor wkup_m3 is now up
    [ 8.231008] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
    [ 8.292156] pwm-backlight backlight: Linked as a consumer to regulator.0
    [ 8.300666] r6:bf042018 r5:cf533400 r4:cf533400
    [ 8.328905] [<bf03f1b4>] (spidev_probe [spidev]) from [<c05f83dc>] (spi_drv_probe+0x84/0xa8)
    [ 8.347726] pwm-backlight backlight: Dropping the link to regulator.0
    [ 8.408412] r9:bf042028 r8:00000000 r7:00000000 r6:bf042018 r5:00000000 r4:cf533400
    [ 8.426411] PM: bootloader does not support rtc-only!
    [ 8.432032] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 8.480898] [<c05f8358>] (spi_drv_probe) from [<c058c3e0>] (really_probe+0x1fc/0x2c0)
    [ 8.522030] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 8.539743] r7:00000000 r6:c0d7f048 r5:cf533400 r4:c0d7f044
    [ 8.583457] asoc-simple-card sound: tlv320aic3x-hifi <-> 4803c000.mcasp mapping ok
    [ 8.595288] alloc_contig_range: [8a840, 8a841) PFNs busy
    [ 8.610114] [<c058c1e4>] (really_probe) from [<c058c648>] (driver_probe_device+0x68/0x180)
    [ 8.664425] asoc-simple-card sound: ASoC: no DMI vendor name!
    [ 8.673057] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 8.695041] r10:c0d03048 r9:ce21df38 r8:00000000 r7:c058c760 r6:cf533434 r5:bf042028
    [ 8.702927] r4:cf533400 r3:00000000
    [ 8.718571] tilcdc 4830e000.lcdc: no encoders/connectors found
    [ 8.770891] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [ 8.815383] [<c058c5e0>] (driver_probe_device) from [<c058c844>] (__driver_attach+0xe4/0xe8)
    [ 8.823887] r9:ce21df38 r8:00000000 r7:c058c760 r6:cf533434 r5:bf042028 r4:cf533400
    [ 8.869766] pwm-backlight backlight: Linked as a consumer to regulator.0
    [ 8.922055] pwm-backlight backlight: Dropping the link to regulator.0
    [ 8.946113] [<c058c760>] (__driver_attach) from [<c058a338>] (bus_for_each_dev+0x7c/0xbc)
    [ 8.954353] r7:c058c760 r6:bf042028 r5:c0d03048 r4:cf534230
    [ 8.981292] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 9.029155] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 9.061389] [<c058a2bc>] (bus_for_each_dev) from [<c058bd20>] (driver_attach+0x24/0x28)
    [ 9.085867] alloc_contig_range: [8a840, 8a841) PFNs busy
    [ 9.116556] r7:00000000 r6:ce3c0480 r5:c0d33b64 r4:bf042028
    [ 9.122290] [<c058bcfc>] (driver_attach) from [<c058b7b8>] (bus_add_driver+0x1c4/0x208)
    [ 9.136202] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 9.142184] tilcdc 4830e000.lcdc: no encoders/connectors found
    [ 9.224182] [<c058b5f4>] (bus_add_driver) from [<c058d284>] (driver_register+0x7c/0x110)
    [ 9.259768] TI-am335x-tsc TI-am335x-tsc.0.auto: ti,charge-delay not specified
    [ 9.285174] r7:bf045000 r6:00000000 r5:bf042000 r4:bf042028
    [ 9.290920] [<c058d208>] (driver_register) from [<c05f8318>] (__spi_register_driver+0x60/0x64)
    [ 9.339384] input: ti-tsc as /devices/platform/ocp/44e0d000.tscadc/TI-am335x-tsc.0.auto/input/input1
    [ 9.398104] r5:bf042000 r4:bf042240
    [ 9.401772] [<c05f82b8>] (__spi_register_driver) from [<bf045098>] (spidev_init+0x98/0x1000 [spidev])
    [ 9.415577] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [ 9.424149] pwm-backlight backlight: Linked as a consumer to regulator.0
    [ 9.516191] [<bf045000>] (spidev_init [spidev]) from [<c0102640>] (do_one_initcall+0x84/0x1b0)
    [ 9.531162] pwm-backlight backlight: Dropping the link to regulator.0
    [ 9.581945] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 9.595198] r6:ffffe000 r5:c0d03048 r4:c0d49000
    [ 9.599892] [<c01025bc>] (do_one_initcall) from [<c019f9dc>] (do_init_module+0x68/0x214)
    [ 9.645636] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 9.690329] r8:ce3c2bc0 r7:ce3c2b80 r6:ce38a740 r5:00000002 r4:bf042080
    [ 9.698279] alloc_contig_range: [8a840, 8a841) PFNs busy
    [ 9.747396] alloc_contig_range: [8a843, 8a844) PFNs busy
    [ 9.760366] [<c019f974>] (do_init_module) from [<c01a1ea0>] (load_module+0x2274/0x2454)
    [ 9.789074] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 9.814969] r7:ce3c2b80 r6:00000002 r5:00000002 r4:bf042080
    [ 9.820706] [<c019fc2c>] (load_module) from [<c01a22dc>] (sys_finit_module+0xcc/0xe4)
    [ 9.848909] tilcdc 4830e000.lcdc: no encoders/connectors found
    [ 9.905056] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [ 9.913671] pwm-backlight backlight: Linked as a consumer to regulator.0
    [ 9.951121] r10:0000017b r9:ce21c000 r8:c0101204 r7:00000006 r6:b6f1c660 r5:00000000
    [ 9.995123] r4:c0d03048
    [ 9.997722] [<c01a2210>] (sys_finit_module) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
    [ 10.033723] pwm-backlight backlight: Dropping the link to regulator.0
    [ 10.093773] Exception stack(0xce21dfa8 to 0xce21dff0)
    [ 10.131019] dfa0: 00000000 00000000 00000006 b6f1c660 00000000 00020000
    [ 10.207911] dfc0: 00000000 00000000 00000000 0000017b 00000000 00000001 00000000 004ada78
    [ 10.241253] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
    [ 10.318373] dfe0: bebb42e0 bebb42d0 b6f16969 b6e0cf72
    [ 10.323476] r7:0000017b r6:00000000 r5:00000000 r4:00000000
    [ 10.353263] usbcore: registered new interface driver usbfs
    [ 10.375157] am335x-phy-driver 47401300.usb-phy: Linked as a consumer to regulator.0
    [ 10.415901] ---[ end trace b5b40fb5b0d9192e ]---
    [ 10.425885] usbcore: registered new interface driver hub
    [ 10.446306] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 10.452600] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 10.466309] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator
    [ 10.497174] spidev spi1.0: buggy DT: spidev listed directly in DT
    [ 10.503321] ------------[ cut here ]------------
    [ 10.517555] usbcore: registered new device driver usb
    [ 10.590029] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [ 10.604282] am335x-phy-driver 47401b00.usb-phy: Linked as a consumer to regulator.0
    [ 10.612728] alloc_contig_range: [8a840, 8a841) PFNs busy
    [ 10.635543] WARNING: CPU: 0 PID: 91 at drivers/spi/spidev.c:730 spidev_probe+0x1c0/0x1d4 [spidev]
    [ 10.644477] Modules linked in: musb_dsps(+) musb_hdrc udc_core usbcore phy_am335x(+) phy_generic usb_common phy_am335x_control ti_am335x_tsc snd_sol
    [ 10.689088] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 10.712885] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
    [ 10.730932] tilcdc 4830e000.lcdc: no encoders/connectors found
    [ 10.793509] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [ 10.808804] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
    [ 10.864979] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 10.872258] usb usb1: Product: MUSB HDRC host driver
    [ 10.885049] pwm-backlight backlight: Linked as a consumer to regulator.0
    [ 10.891902] pwm-backlight backlight: Dropping the link to regulator.0
    [ 10.969167] usb usb1: Manufacturer: Linux 4.19.25-g85f9077a5f musb-hcd
    [ 10.996918] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 11.003206] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 11.035176] usb usb1: SerialNumber: musb-hdrc.0
    [ 11.040194] CPU: 0 PID: 91 Comm: systemd-udevd Tainted: G W 4.19.25-g85f9077a5f #1
    [ 11.086010] hub 1-0:1.0: USB hub found
    [ 11.114972] hub 1-0:1.0: 1 port detected
    [ 11.119789] alloc_contig_range: [8a840, 8a841) PFNs busy
    [ 11.127707] Hardware name: Generic AM33XX (Flattened Device Tree)
    [ 11.133849] Backtrace:
    [ 11.181259] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [ 11.189224] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 11.215180] [<c010cb64>] (dump_backtrace) from [<c010ced4>] (show_stack+0x18/0x1c)
    [ 11.222811] r7:00000009 r6:00000000 r5:bf0414c0 r4:00000000
    [ 11.248095] tilcdc 4830e000.lcdc: no encoders/connectors found
    [ 11.260451] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
    [ 11.303827] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [ 11.330620] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
    [ 11.350672] [<c010cebc>] (show_stack) from [<c08a4114>] (dump_stack+0x24/0x28)
    [ 11.386846] pwm-backlight backlight: Linked as a consumer to regulator.0
    [ 11.393703] pwm-backlight backlight: Dropping the link to regulator.0
    [ 11.429461] [<c08a40f0>] (dump_stack) from [<c012aa80>] (__warn+0xe0/0xf8)
    [ 11.437396] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 11.444664] usb usb2: Product: MUSB HDRC host driver
    [ 11.498368] [<c012a9a0>] (__warn) from [<c012aae0>] (warn_slowpath_null+0x48/0x50)
    [ 11.548486] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 11.554761] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 11.562331] usb usb2: Manufacturer: Linux 4.19.25-g85f9077a5f musb-hcd
    [ 11.597452] r9:bf042028 r8:00000000 r7:00000000 r6:bf03f374 r5:000002da r4:bf0414c0
    [ 11.619388] usb usb2: SerialNumber: musb-hdrc.1
    [ 11.654122] [<c012aa98>] (warn_slowpath_null) from [<bf03f374>] (spidev_probe+0x1c0/0x1d4 [spidev])
    [ 11.670201] hub 2-0:1.0: USB hub found
    [ 11.688304] alloc_contig_range: [8a840, 8a841) PFNs busy
    [ 11.717584] hub 2-0:1.0: 1 port detected
    [ 11.744174] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 11.755238] r6:bf042018 r5:cf533c00 r4:cf533c00
    [ 11.759943] [<bf03f1b4>] (spidev_probe [spidev]) from [<c05f83dc>] (spi_drv_probe+0x84/0xa8)
    [ 11.798010] tilcdc 4830e000.lcdc: no encoders/connectors found
    [ 11.856315] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [ 11.881317] r9:bf042028 r8:00000000 r7:00000000 r6:bf042018 r5:00000000 r4:cf533c00
    [ 11.936692] pwm-backlight backlight: Linked as a consumer to regulator.0
    [ 11.951829] [<c05f8358>] (spi_drv_probe) from [<c058c3e0>] (really_probe+0x1fc/0x2c0)
    [ 12.005221] pwm-backlight backlight: Dropping the link to regulator.0
    [ 12.013152] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 12.029459] r7:00000000 r6:c0d7f048 r5:cf533c00 r4:c0d7f044
    [ 12.099323] [<c058c1e4>] (really_probe) from [<c058c648>] (driver_probe_device+0x68/0x180)
    [ 12.137632] remoteproc remoteproc1: 4a334000.pru is available
    [ 12.143541] pru-rproc 4a334000.pru: PRU rproc node pru@4a334000 probed successfully
    [ 12.179709] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 12.192775] r10:c0d03048 r9:ce21df38 r8:00000000 r7:c058c760 r6:cf533c34 r5:bf042028
    [ 12.225895] alloc_contig_range: [8a840, 8a841) PFNs busy
    [ 12.238412] r4:cf533c00 r3:00000000
    [ 12.242054] [<c058c5e0>] (driver_probe_device) from [<c058c844>] (__driver_attach+0xe4/0xe8)
    [ 12.263785] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 12.272037] remoteproc remoteproc2: 4a338000.pru is available
    [ 12.298887] tilcdc 4830e000.lcdc: no encoders/connectors found
    [ 12.308428] pru-rproc 4a338000.pru: PRU rproc node pru@4a338000 probed successfully
    [ 12.328841] r9:ce21df38 r8:00000000 r7:c058c760 r6:cf533c34 r5:bf042028 r4:cf533c00
    [ 12.339116] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [ 12.385305] [<c058c760>] (__driver_attach) from [<c058a338>] (bus_for_each_dev+0x7c/0xbc)
    [ 12.393545] r7:c058c760 r6:bf042028 r5:c0d03048 r4:cf5349b0
    [ 12.402977] pwm-backlight backlight: Linked as a consumer to regulator.0
    [ 12.425339] pwm-backlight backlight: Dropping the link to regulator.0
    [ 12.433320] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 12.442164] [<c058a2bc>] (bus_for_each_dev) from [<c058bd20>] (driver_attach+0x24/0x28)
    [ 12.455018] r7:00000000 r6:ce3c0480 r5:c0d33b64 r4:bf042028
    [ 12.460743] [<c058bcfc>] (driver_attach) from [<c058b7b8>] (bus_add_driver+0x1c4/0x208)
    [ 12.475486] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 12.495939] alloc_contig_range: [8a840, 8a841) PFNs busy
    [ 12.501381] [<c058b5f4>] (bus_add_driver) from [<c058d284>] (driver_register+0x7c/0x110)
    [ 12.511381] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 12.525013] r7:bf045000 r6:00000000 r5:bf042000 r4:bf042028
    [ 12.530750] [<c058d208>] (driver_register) from [<c05f8318>] (__spi_register_driver+0x60/0x64)
    [ 12.540675] tilcdc 4830e000.lcdc: no encoders/connectors found
    [ 12.556184] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [ 12.564770] pwm-backlight backlight: Linked as a consumer to regulator.0
    [ 12.589613] r5:bf042000 r4:bf042240
    [ 12.593278] [<c05f82b8>] (__spi_register_driver) from [<bf045098>] (spidev_init+0x98/0x1000 [spidev])
    [ 12.615198] pwm-backlight backlight: Dropping the link to regulator.0
    [ 12.622326] [<bf045000>] (spidev_init [spidev]) from [<c0102640>] (do_one_initcall+0x84/0x1b0)
    [ 12.645054] r6:ffffe000 r5:c0d03048 r4:c0d49000
    [ 12.649746] [<c01025bc>] (do_one_initcall) from [<c019f9dc>] (do_init_module+0x68/0x214)
    [ 12.675293] r8:ce3c2bc0 r7:ce3c2b80 r6:ce38a740 r5:00000002 r4:bf042080
    [ 12.682075] [<c019f974>] (do_init_module) from [<c01a1ea0>] (load_module+0x2274/0x2454)
    [ 12.693382] r7:ce3c2b80 r6:00000002 r5:00000002 r4:bf042080
    [ 12.705008] [<c019fc2c>] (load_module) from [<c01a22dc>] (sys_finit_module+0xcc/0xe4)
    [ 12.716788] r10:0000017b r9:ce21c000 r8:c0101204 r7:00000006 r6:b6f1c660 r5:00000000
    [ 12.735644] r4:c0d03048
    [ 12.738240] [<c01a2210>] (sys_finit_module) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
    [ 12.755524] Exception stack(0xce21dfa8 to 0xce21dff0)
    [ 12.760624] dfa0: 00000000 00000000 00000006 b6f1c660 00000000 00020000
    [ 12.785223] dfc0: 00000000 00000000 00000000 0000017b 00000000 00000001 00000000 004ada78
    [ 12.793460] dfe0: bebb42e0 bebb42d0 b6f16969 b6e0cf72
    [ 12.815274] r7:0000017b r6:00000000 r5:00000000 r4:00000000
    [ 12.820983] ---[ end trace b5b40fb5b0d9192f ]---
    [ 12.837284] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 12.843519] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 12.877506] alloc_contig_range: [8a840, 8a841) PFNs busy
    [ 12.896142] OF: graph: no port node found in /ocp/lcdc@4830e000
    [ 12.902123] tilcdc 4830e000.lcdc: no encoders/connectors found
    [ 12.926286] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [ 12.955186] pwm-backlight backlight: Linked as a consumer to regulator.0
    [ 12.962048] pwm-backlight backlight: Dropping the link to regulator.0

  • Hi Siva,

    siva nallamalli said:
    I need to disable  epwmss2 in am335x_evmssk.dts file.  But this is disturbing my lcd touch screen. No output comming on Lcd. 

    If you need both PWM-based backlight for your LCD and SPI1 you will need to resolve your pin assignment conflict. Have you really connected the PWM signal and the SPI1 CS signal to the same physical device pin??

    You can use the TI PinMux tool (https://www.ti.com/tool/PINMUXTOOL) to determine a suitable pin setting. Since your LCD is already connected and working it seems the easiest might be simply finding another pin to use for SPI1 CS purposes.

    Regards, Andreas

  • Now i am trying to enable spi on am335x evm board. I am using the same dtb.but i am not seeing /dev/spi0.1.   I loaded spidev module manually.                         Any thoughts around this.

                

  • siva nallamalli said:
    I am using the same dtb.but i am not seeing /dev/spi0.1

    You mean you are not seeing /dev/spi1.0?

    Let's look at this a bit closer. For this can you extract the actual active device tree file from your live system?

    1. Copy /sys/firmware/fdt to a media such as an SD card so you can transfer it to your host PC
    2. De-compile the fdt file back into device tree source using the DTC compiler on your host PC:
      dtc -I dtb fdt > fdt.dts
    3. Post the resulting file here

    Also post a complete boot log and any Kernel module manual load attempt logs that show:

    • How /dev/spi0 is probed successfully
    • How /dev/spi1 probe fails

    Regards, Andreas