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.

TDA4VE-Q1: online sysconfig tool generating wrong .dtsi

Part Number: TDA4VE-Q1
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi champs,

it looks like the online sysconfig tool is generating the wrong offset address for WKUP_PADCONFIG registers:

from datasheet

ball B25: MCU_SPI0_D1
PADCFG:
WKUP_PADCONFIG_42
0x4301C0A8

from generated .dtsi file

J721S2_WKUP_IOPAD(0x040, PIN_INPUT, 7) /* (B25) MCU_SPI0_D1.WKUP_GPIO0_69 */

Thanks and kind regards,

one and zero

  • Hello,

    The generated .dtsi will contain address offsets specific to Linux. This is because the device .dtsi splits the WKUP pinmux region into four different regions. Please see https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/arch/arm/dts/k3-j721s2-mcu-wakeup.dtsi.

    Here are the four regions and respective adjustments.

    • 0x4301C000: no adjustment
    • 0x4301C038: .dtsi offset = offset from 0x4301C000 - 0x038
    • 0x4301C068: .dtsi offset = offset from 0x4301C000 - 0x068
    • 0x4301C190: .dtsi offset = offset from 0x4301C000 - 0x190

    In this case, WKUP_PADCONFIG_42 belongs to the third region and therefore has an effective offset of 0x040 in the generated .dtsi.

    Regards,
    Mark