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.

TDA2SX: Facing issue with I2C5 pinmux

Part Number: TDA2SX

Hi All,

I am working on TDA2xx Custom board.

I am facing issue with I2C5 Muxing.

Here my I2C muxing information in Device tree

i2c5_pins_default: i2c5_pins_default {
                pinctrl-single,pins = <
                        0x54   (PIN_INPUT | MUX_MODE7) /* i2c5_sda.i2c5_sda */
                        0x50   (PIN_INPUT | MUX_MODE7) /* i2c5_scl.i2c5_scl */
                >;
        };
&i2c5 {
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&i2c5_pins_default>;
        clock-frequency = <400000>;
};

But,I2C5 not working,its giving "omap_i2c 4807c000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/i2c5_pins_default, deferring probe"

Please give some inputs to solve this issue.

Thanks & Regards,

Sankar.

  • Hi Sankar,

    It seems like you  have not kept the pinmux DT node under the pinmux device node.

    Please make sure that the i2c5_pins_default should be a child of &dra7_pmx_core

    Regards,

    NIkhil D

  • Hi Nikhil,

    Thanks for you reply.

    I2C5 is working fine,now I am facing issue with audio muxing.

    In my custom board I am using MCASP2 lines for audio.

    Here my MCASP2 audio muxing in uboot "mux_data.h"

    {MCASP2_ACLKX, (M0 | PIN_INPUT_PULLDOWN)},
    {MCASP2_FSX, (M0 | PIN_INPUT_SLEW)},  

    {MCASP2_AXR0, (M0 | PIN_INPUT_SLEW)},
    {MCASP2_AXR1, (M0 | PIN_INPUT_SLEW | VIRTUAL_MODE6)},

    My codec driver is loaded,but while playing the audio I am not able to see any data on the MCASP2 line in oscilloscope.

    I am doubting on MCASP2 muxing,can you please confirm ?

    Thanks & Regards.

    Sankar.

  • Hi Sankar,

    Please make sure if the audio pinmux is done correctly or not?

    You can run omaponf to read the registers and verify result against expected values.

    If the pinmux is fine, you should close this thread and create a new one, so that audio expert will be able to help you with mcasp.

    Regards,

    Nikhil D

  • Hi Nikhil,

    I am getting below output

    root@dra7xx-evm:~# omapconf dump mcasp2  
    OMAPCONF (rev v1.73-17-g578778b built Thu Dec 28 05:15:12 IST 2017)

    HW Platform:
      Generic DRA74X (Flattened Device Tree)
      DRA75X ES2.0 GP Device (STANDARD performance (1.5GHz))
      TPS659038  ES2.2

    SW Build Details:
      Build:
        Version:  _____                    _____           _         _   
      Kernel:
        Version: 4.4.84-00027-g018eb62-dirty
        Author: root@lpz-ee211103
        Toolchain: gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02)
        Type: #79 SMP PREEMPT
        Date: Thu Sep 26 12:09:02 IST 2019

    omapconf: mcasp2 is not active, cannot proceed further
    root@dra7xx-evm:~# omapconf show mcasp2                                                                                                        
    OMAPCONF (rev v1.73-17-g578778b built Thu Dec 28 05:15:12 IST 2017)

    HW Platform:
      Generic DRA74X (Flattened Device Tree)
      DRA75X ES2.0 GP Device (STANDARD performance (1.5GHz))
      TPS659038  ES2.2

    SW Build Details:
      Build:
        Version:  _____                    _____           _         _   
      Kernel:
        Version: 4.4.84-00027-g018eb62-dirty
        Author: root@lpz-ee211103
        Toolchain: gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02)
        Type: #79 SMP PREEMPT
        Date: Thu Sep 26 12:09:02 IST 2019

    omapconf: mcasp2 is not active, cannot proceed further
     

    MCASP2 is not active,means pinmux having problem ?

    Thanks & Regards,

    Sankar.

  • Hi,

    I asked you to dump the pinmux registers. Find the address of that and use

    omapconf dump <start_addr> <end_addr>

    Nikhil D