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.

TDA4VM: WKUP_GPIO0 could't be initialized successfully on PSDK7.0 because of the conflict between sysfw and dts.

Part Number: TDA4VM

Hi,This is Nathan

I found the wkup_gpio0 could't be initialized successfully on PSDK7.0.

The number of resources that wkup_gpio_intr by devm_ti_sci_get_resource is 4,but the irq number of wkup_gpio0 is 6.Is this a bug or I miss something?

Best regards
Nathan

  • Hi Nathan,

    Yes this is a bug. You can use the below information to address the issue.

    I have attached the patched (same as in https://e2e.ti.com/support/processors/f/791/t/924900) and the built sysfw.itb.patched from my setup. Rename the sysfw.itb.patched to sysfw.itb and copy to the BOOT/ and then boot the board.

    You can build the same by applying the 2 patched. I see the git repo for the k3-image-gen-2020.04a is corrupted in the SDK7.0. Run the following:

    # Applying patches
    
    cd <SDK_INSTALL_PATH>/board-support/k3-image-gen-2020.04a
    
    rm –rf .git
    
    git init
    
    git add .
    
    git commit –sm “SDK baselined commit”
    
    git am <PATH_TO_ATTACHED_PATCHED>/*
    
    git log                                      <- you should see 2 patches as attached
    
     
    
    #building sysfw.itb
    
    cd <SDK_INSTALL_PATH>
    
    make sysfw-image

    You will then be able to find the sysfs entry for wkuo_gpio0 as highlighted in the below logs. Now when you have the GPIO chip you can follow the https://e2e.ti.com/support/processors/f/791/t/918654 on how to toggle it from user space.

    Regards,

    Karan

     

    LOGS:
    
    -------
    
    root@j7-evm:~# find /proc/device-tree/__symbols__/ | grep gpio
    
    /proc/device-tree/__symbols__/main_gpio_intr
    
    /proc/device-tree/__symbols__/main_gpio7
    
    /proc/device-tree/__symbols__/main_gpio5
    
    /proc/device-tree/__symbols__/wkup_gpio0
    
    /proc/device-tree/__symbols__/main_gpio3
    
    /proc/device-tree/__symbols__/main_gpio1
    
    /proc/device-tree/__symbols__/gpio_keys
    
    /proc/device-tree/__symbols__/wkup_gpio_intr
    
    /proc/device-tree/__symbols__/main_gpio6
    
    /proc/device-tree/__symbols__/wkup_gpio1
    
    /proc/device-tree/__symbols__/main_gpio4
    
    /proc/device-tree/__symbols__/main_gpio2
    
    /proc/device-tree/__symbols__/main_gpio0
    
    root@j7-evm:~#
    
    root@j7-evm:~# cat /proc/device-tree/__symbols__/wkup_gpio0
    
    /interconnect@100000/interconnect@28380000/gpio@42110000
    
    root@j7-evm:~#
    
    root@j7-evm:~# ls -la /sys/class/gpio/
    
    total 0
    
    drwxr-xr-x    2 root     root             0 Jun 17 14:17 .
    
    drwxr-xr-x   62 root     root             0 Jun 17 14:17 ..
    
    --w-------    1 root     root         65536 Jun 17 14:17 export
    
    lrwxrwxrwx    1 root     root             0 Jun 17 14:17 gpiochip216 -> ../../devices/platform/interconnect@100000/601000.gpio/gpio/gpiochip216
    
    lrwxrwxrwx    1 root     root             0 Jun 17 14:17 gpiochip252 -> ../../devices/platform/interconnect@100000/600000.gpio/gpio/gpiochip252
    
    lrwxrwxrwx    1 root     root             0 Jun 17 14:17 gpiochip380 -> ../../devices/platform/interconnect@100000/interconnect@100000:interconnect@28380000/42110000.gpio/gpio/gpiochip380
    
    lrwxrwxrwx    1 root     root             0 Jun 17 14:17 gpiochip464 -> ../../devices/platform/interconnect@100000/2030000.i2c/i2c-5/5-0020/gpio/gpiochip464
    
    lrwxrwxrwx    1 root     root             0 Jun 17 14:17 gpiochip472 -> ../../devices/platform/interconnect@100000/2000000.i2c/i2c-3/3-0022/gpio/gpiochip472
    
    lrwxrwxrwx    1 root     root             0 Jun 17 14:17 gpiochip496 -> ../../devices/platform/interconnect@100000/2000000.i2c/i2c-3/3-0020/gpio/gpiochip496
    
    --w-------    1 root     root         65536 Jun 17 14:17 unexport

    Patches: /cfs-file/__key/communityserver-discussions-components-files/791/3583.patches.zip

    Built sysfw.itb from my setup: /cfs-file/__key/communityserver-discussions-components-files/791/sysfw.itb.patched.zip