TDA4VEN-Q1: i2c issue

Part Number: TDA4VEN-Q1

Tool/software:

Dear experts

I have enabled the i2C0 device on both the MCU20 and the kernel dts.

const i2c0       = i2c.addInstance();
i2c0.$name                      = "CONFIG_I2C0";
i2c0.useWakeupDomainPeripherals = false;
i2c0.bitRate                    = "400KHZ";
i2c0.I2C.$assign                = "I2C0";
i2c0.I2C.SCL.$suggestSolution               = "I2C0_SCL";
i2c0.I2C.SDA.$suggestSolution               = "I2C0_SDA";

&main_i2c0 {
	pinctrl-names = "default";
	pinctrl-0 = <&main_i2c0_pins_default>;
	clock-frequency = <400000>;
	status = "okay";
	bootph-all;
...
}

Even if I don't use i2c0 for any reading or writing on MCU20(just design it on syscfg file), the i2c system will get stuck when using I2c0 in the kernel.

root@j722s-evm:~# i2cdetect -y -r 1
-- [ 4087.100091] omap_i2c 20010000.i2c: controller timed out

This is a waveform of quantity


If I2C0 is not enabled on MCU20, I2C0 can be used normally under the kernel.
It seems to be conflicting with each other, which is not a normal phenomenon. Is there a solution?

Thanks.

  • Hi,

    I have assigned your thread to the appropriate engineer, thank you for your patience.

    Thanks,

    Neehar

  • Hi,

    We cannot have 2 cores controlling the same module in HW. Pleased disable in one of the cores & then try.

    - Keerthy

  • Hi,

     I used i2C0 on MCU 20 and it should also be able to be turned off correctly.

    So there should be no conflict .

    Additionally, there is no such issue on the tad4veco. 

  • So there should be no conflict .

    You can take a dump of I2C registers with & without I2C instance enabled on the MCU side. Check if something is off.

    Also:

    root@j722s-evm:~# i2cdetect -y -r 1
    -- [ 4087.100091] omap_i2c 20010000.i2c: controller timed out

    The timeout is form I2C1:

    main_i2c1: i2c@20010000 {
    compatible = "ti,am64-i2c", "ti,omap4-i2c";
    reg = <0x00 0x20010000 0x00 0x100>;
    interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
    #address-cells = <1>;
    #size-cells = <0>;
    power-domains = <&k3_pds 103 TI_SCI_PD_EXCLUSIVE>;
    clocks = <&k3_clks 103 2>;
    clock-names = "fck";
    status = "disabled";
    };

    i2C0 device o

    This is i2c@20000000. So many be you are not looking at the right instance in Linux.

    'dmesg | grep i2c' will give the right instance numbers.

    - Keerthy

  • Hi, 

    Which registers should I check? I'm not very familiar with these registers.

    I use i2dect to detect bus 1 because I have also enabled wkup's i2c, so bus 0 is  the wkup domain's i2c and bus 1 is  the main domain i2c0.
    If I turn off wkup i2c,  i2cdect will use bus 0, and the result will be the same.  It gets stuck.

  • Can you please run the below command:

    'dmesg | grep i2c'

    Share the output. This will confirm which instance is mapped to MAIN_I2C0.

    - Keerthy

  • Hi,
    root@j722s-evm:~# dmesg | grep i2c
    [ 0.835517] i2c_dev: i2c /dev entries driver
    [ 1.032942] omap_i2c 2b200000.i2c: bus 0 rev0.12 at 400 kHz
    [ 1.039804] omap_i2c 20000000.i2c: bus 1 rev0.12 at 400 kHz

    I have also tried enabling i2c1 on MCU 20, and then using i2cdetect bus 1 under the kernel, and the same phenomenon occurred. So this should not be directly related to which i2c it was.

  • Okay. Thanks as per the dmesg instance '1' is for main_i2c0. Can you try i2cdump on any of the known slave id?

    i2cdump -f -y 0x1 'slave_id'

    Slave id can be any of the device connected on main_i2c0.

    Best regards,

    Keerthy 

  • Hi

    Thanks for the reply. It also shows time out.

  • Hi,

    Can you dump the values of I2C pin mux registers for I2C_CLK & I2C_DATA lines?

    For example:

    /delete-property/ interrupts;
    main_i2c0_pins_default: main-i2c0-default-pins {
    pinctrl-single,pins = <
    J722S_IOPAD(0x01e0, PIN_INPUT_PULLUP, 0) /* (D23) I2C0_SCL */
    J722S_IOPAD(0x01e4, PIN_INPUT_PULLUP, 0) /* (B22) I2C0_SDA */
    >;
    bootph-all;
    };

    - Keerthy

  • Hi

    Yes,  

    pin:B22  and  pin:D23

  • The Pinmux settings look fine. I will try myself on the EVM and get back to you.

    - Keerthy

  • Be default from the Linux SDK i was able to access main_i2c0 slave id 0x48 registers.

    Main_i2c0 controller registers start at 0x20000000. It will be worth comparing the register space when working and while not working.

    Best regards,

    Keerthy 

  • Hi, Keerthy

    The SDK defaults not enable main_i2C0 on MCU 20,
    If it is also enabled under MCU20,  there will be issues with using i2cdetect after kernel startup. You can have a try.

  • Hi,

    Request to check the Register values from 0x20000000 - 0x200000D4. With and without MCU20 enabling.

    - Keerthy

  • Hi,

    I have printed all the values of the relevant registers, and there are differences between them
    I'm not sure which one will have an impact.  Even if I overwrite it with an OK value, it cannot be restored  to normal.

    ng:

    ng.log
    [16-19-27.499]root@j722s-evm:~# ./s
    [16-19-27.520]/dev/mem opened.
    [16-19-27.522]Memory mapped at address 0xffff8afd5000.
    [16-19-27.525]Read at address  0x20000000 (0xffff8afd5000): 0x0000080C
    [16-19-27.531]/dev/mem opened.
    [16-19-27.534]Memory mapped at address 0xffff9a8b9000.
    [16-19-27.537]Read at address  0x20000004 (0xffff9a8b9004): 0x00005040
    [16-19-27.539]/dev/mem opened.
    [16-19-27.543]Memory mapped at address 0xffff86404000.
    [16-19-27.546]Read at address  0x20000008 (0xffff86404008): 0x00000000
    [16-19-27.548]/dev/mem opened.
    [16-19-27.554]Memory mapped at address 0xffff98595000.
    [16-19-27.557]Read at address  0x2000000C (0xffff9859500c): 0x00000000
    [16-19-27.559]/dev/mem opened.
    [16-19-27.565]Memory mapped at address 0xffffad74c000.
    [16-19-27.568]Read at address  0x20000010 (0xffffad74c010): 0x00000000
    [16-19-27.571]/dev/mem opened.
    [16-19-27.575]Memory mapped at address 0xffff97455000.
    [16-19-27.579]Read at address  0x20000014 (0xffff97455014): 0x00000000
    [16-19-27.581]/dev/mem opened.
    [16-19-27.584]Memory mapped at address 0xffffa1c14000.
    [16-19-27.587]Read at address  0x20000018 (0xffffa1c14018): 0x00000000
    [16-19-27.591]/dev/mem opened.
    [16-19-27.593]Memory mapped at address 0xffffbbfc9000.
    [16-19-27.599]Read at address  0x2000001C (0xffffbbfc901c): 0x00000000
    [16-19-27.602]/dev/mem opened.
    [16-19-27.604]Memory mapped at address 0xffff95c2b000.
    [16-19-27.612]Read at address  0x20000020 (0xffff95c2b020): 0x00000000
    [16-19-27.614]/dev/mem opened.
    [16-19-27.617]Memory mapped at address 0xffffb25fc000.
    [16-19-27.621]Read at address  0x20000024 (0xffffb25fc024): 0x00000100
    [16-19-27.623]/dev/mem opened.
    [16-19-27.625]Memory mapped at address 0xffffb84ec000.
    [16-19-27.632]Read at address  0x20000028 (0xffffb84ec028): 0x00000000
    [16-19-27.635]/dev/mem opened.
    [16-19-27.638]Memory mapped at address 0xffffb3122000.
    [16-19-27.644]Read at address  0x2000002C (0xffffb312202c): 0x00000000
    [16-19-27.646]/dev/mem opened.
    [16-19-27.648]Memory mapped at address 0xffffbf4f4000.
    [16-19-27.652]Read at address  0x20000030 (0xffffbf4f4030): 0x00000000
    [16-19-27.655]/dev/mem opened.
    [16-19-27.657]Memory mapped at address 0xffffa2994000.
    [16-19-27.659]Read at address  0x20000034 (0xffffa2994034): 0x0000636F
    [16-19-27.665]/dev/mem opened.
    [16-19-27.668]Memory mapped at address 0xffff84615000.
    [16-19-27.670]Read at address  0x20000038 (0xffff84615038): 0x00000000
    [16-19-27.673]/dev/mem opened.
    [16-19-27.676]Memory mapped at address 0xffffbc1a7000.
    [16-19-27.679]Read at address  0x2000003C (0xffffbc1a703c): 0x00000000
    [16-19-27.682]/dev/mem opened.
    [16-19-27.687]Memory mapped at address 0xffffb562e000.
    [16-19-27.690]Read at address  0x20000040 (0xffffb562e040): 0x00000000
    [16-19-27.692]/dev/mem opened.
    [16-19-27.699]Memory mapped at address 0xffff9936a000.
    [16-19-27.702]Read at address  0x20000044 (0xffff9936a044): 0x00000000
    [16-19-27.704]/dev/mem opened.
    [16-19-27.711]Memory mapped at address 0xffffb9975000.
    [16-19-27.714]Read at address  0x20000048 (0xffffb9975048): 0x00000000
    [16-19-27.716]/dev/mem opened.
    [16-19-27.719]Memory mapped at address 0xffffba054000.
    [16-19-27.722]Read at address  0x2000004C (0xffffba05404c): 0x00000000
    [16-19-27.724]/dev/mem opened.
    [16-19-27.727]Memory mapped at address 0xffff921b3000.
    [16-19-27.732]Read at address  0x20000050 (0xffff921b3050): 0x00000000
    [16-19-27.735]/dev/mem opened.
    [16-19-27.738]Memory mapped at address 0xffff9b39e000.
    [16-19-27.745]Read at address  0x20000054 (0xffff9b39e054): 0x00000000
    [16-19-27.748]/dev/mem opened.
    [16-19-27.751]Memory mapped at address 0xffffa1747000.
    [16-19-27.757]Read at address  0x20000058 (0xffffa1747058): 0x00000000
    [16-19-27.759]/dev/mem opened.
    [16-19-27.762]Memory mapped at address 0xffffa4940000.
    [16-19-27.765]Read at address  0x2000005C (0xffffa494005c): 0x00000000
    [16-19-27.767]/dev/mem opened.
    [16-19-27.770]Memory mapped at address 0xffffaa80c000.
    [16-19-27.776]Read at address  0x20000060 (0xffffaa80c060): 0x00000000
    [16-19-27.778]/dev/mem opened.
    [16-19-27.781]Memory mapped at address 0xffffb2efa000.
    [16-19-27.784]Read at address  0x20000064 (0xffffb2efa064): 0x00000000
    [16-19-27.788]/dev/mem opened.
    [16-19-27.789]Memory mapped at address 0xffff947b1000.
    [16-19-27.792]Read at address  0x20000068 (0xffff947b1068): 0x00000000
    [16-19-27.798]/dev/mem opened.
    [16-19-27.800]Memory mapped at address 0xffffb1f51000.
    [16-19-27.803]Read at address  0x2000006C (0xffffb1f5106c): 0x00000000
    [16-19-27.805]/dev/mem opened.
    [16-19-27.811]Memory mapped at address 0xffff8bc32000.
    [16-19-27.814]Read at address  0x20000070 (0xffff8bc32070): 0x00000000
    [16-19-27.816]/dev/mem opened.
    [16-19-27.821]Memory mapped at address 0xffff8d3f4000.
    [16-19-27.823]Read at address  0x20000074 (0xffff8d3f4074): 0x00000000
    [16-19-27.825]/dev/mem opened.
    [16-19-27.832]Memory mapped at address 0xffff8c87c000.
    [16-19-27.834]Read at address  0x20000078 (0xffff8c87c078): 0x00000000
    [16-19-27.836]/dev/mem opened.
    [16-19-27.845]Memory mapped at address 0xffffaee77000.
    [16-19-27.847]Read at address  0x2000007C (0xffffaee7707c): 0x00000000
    [16-19-27.850]/dev/mem opened.
    [16-19-27.852]Memory mapped at address 0xffff8215a000.
    [16-19-27.855]Read at address  0x20000080 (0xffff8215a080): 0x00000000
    [16-19-27.857]/dev/mem opened.
    [16-19-27.860]Memory mapped at address 0xffff80ee4000.
    [16-19-27.865]Read at address  0x20000084 (0xffff80ee4084): 0x00000000
    [16-19-27.868]/dev/mem opened.
    [16-19-27.871]Memory mapped at address 0xffffaae13000.
    [16-19-27.876]Read at address  0x20000088 (0xffffaae13088): 0x00000100
    [16-19-27.879]/dev/mem opened.
    [16-19-27.881]Memory mapped at address 0xffffaa2a4000.
    [16-19-27.887]Read at address  0x2000008C (0xffffaa2a408c): 0x00000000
    [16-19-27.890]/dev/mem opened.
    [16-19-27.892]Memory mapped at address 0xffff89c89000.
    [16-19-27.898]Read at address  0x20000090 (0xffff89c89090): 0x00000001
    [16-19-27.901]/dev/mem opened.
    [16-19-27.903]Memory mapped at address 0xffffbe4cb000.
    [16-19-27.912]Read at address  0x20000094 (0xffffbe4cb094): 0x00000000
    [16-19-27.914]/dev/mem opened.
    [16-19-27.917]Memory mapped at address 0xffffbbea0000.
    [16-19-27.919]Read at address  0x20000098 (0xffffbbea0098): 0x00000001
    [16-19-27.922]/dev/mem opened.
    [16-19-27.925]Memory mapped at address 0xffffb5cf1000.
    [16-19-27.927]Read at address  0x2000009C (0xffffb5cf109c): 0x000000A0
    [16-19-27.932]/dev/mem opened.
    [16-19-27.935]Memory mapped at address 0xffff9a413000.
    [16-19-27.937]Read at address  0x200000A0 (0xffff9a4130a0): 0x00000000
    [16-19-27.939]/dev/mem opened.
    [16-19-27.945]Memory mapped at address 0xffffa56a9000.
    [16-19-27.947]Read at address  0x200000A4 (0xffffa56a90a4): 0x00008000
    [16-19-27.949]/dev/mem opened.
    [16-19-27.954]Memory mapped at address 0xffffb2797000.
    [16-19-27.956]Read at address  0x200000A8 (0xffffb27970a8): 0x00000000
    [16-19-27.958]/dev/mem opened.
    [16-19-27.965]Memory mapped at address 0xffffb4091000.
    [16-19-27.968]Read at address  0x200000AC (0xffffb40910ac): 0x00000042
    [16-19-27.970]/dev/mem opened.
    [16-19-27.976]Memory mapped at address 0xffff81cc9000.
    [16-19-27.979]Read at address  0x200000B0 (0xffff81cc90b0): 0x00000009
    [16-19-27.981]/dev/mem opened.
    [16-19-27.984]Memory mapped at address 0xffffa366f000.
    [16-19-27.987]Read at address  0x200000B4 (0xffffa366f0b4): 0x00000009
    [16-19-27.990]/dev/mem opened.
    [16-19-27.992]Memory mapped at address 0xffffa062e000.
    [16-19-27.998]Read at address  0x200000B8 (0xffffa062e0b8): 0x00000003
    [16-19-28.002]/dev/mem opened.
    [16-19-28.004]Memory mapped at address 0xffff8780e000.
    [16-19-28.012]Read at address  0x200000BC (0xffff8780e0bc): 0x000041E0
    [16-19-28.014]/dev/mem opened.
    [16-19-28.016]Memory mapped at address 0xffffb32d7000.
    [16-19-28.021]Read at address  0x200000C0 (0xffffb32d70c0): 0x00008001
    [16-19-28.023]/dev/mem opened.
    [16-19-28.026]Memory mapped at address 0xffff93a55000.
    [16-19-28.031]Read at address  0x200000C4 (0xffff93a550c4): 0x00000000
    [16-19-28.035]/dev/mem opened.
    [16-19-28.037]Memory mapped at address 0xffff8d0c5000.
    [16-19-28.044]Read at address  0x200000C8 (0xffff8d0c50c8): 0x00000000
    [16-19-28.047]/dev/mem opened.
    [16-19-28.049]Memory mapped at address 0xffff92fbb000.
    [16-19-28.052]Read at address  0x200000CC (0xffff92fbb0cc): 0x00000000
    [16-19-28.054]/dev/mem opened.
    [16-19-28.057]Memory mapped at address 0xffff9d365000.
    [16-19-28.059]Read at address  0x200000D0 (0xffff9d3650d0): 0x00000000
    [16-19-28.061]/dev/mem opened.
    [16-19-28.065]Memory mapped at address 0xffffa505e000.
    [16-19-28.068]Read at address  0x200000D4 (0xffffa505e0d4): 0x00000000
    [16-19-28.071]/dev/mem opened.
    [16-19-28.076]Memory mapped at address 0xffff92305000.
    [16-19-28.078]Read at address  0x200000D8 (0xffff923050d8): 0x00000000
    [16-19-28.081]/dev/mem opened.
    [16-19-28.087]Memory mapped at address 0xffffad10b000.
    [16-19-28.090]Read at address  0x200000DC (0xffffad10b0dc): 0x00000000
    [16-19-28.092]/dev/mem opened.
    [16-19-28.099]Memory mapped at address 0xffff800ec000.
    [16-19-28.102]Read at address  0x200000E0 (0xffff800ec0e0): 0x00000000
    [16-19-28.105]/dev/mem opened.
    [16-19-28.111]Memory mapped at address 0xffff8ef74000.
    [16-19-28.114]Read at address  0x200000E4 (0xffff8ef740e4): 0x00000000
    [16-19-28.116]/dev/mem opened.
    [16-19-28.118]Memory mapped at address 0xffff9eae7000.
    [16-19-28.121]Read at address  0x200000E8 (0xffff9eae70e8): 0x00000000
    [16-19-28.123]/dev/mem opened.
    [16-19-28.126]Memory mapped at address 0xffffbd065000.
    [16-19-28.131]Read at address  0x200000EC (0xffffbd0650ec): 0x00000000
    [16-19-28.134]/dev/mem opened.
    [16-19-28.137]Memory mapped at address 0xffff8ad90000.
    [16-19-28.144]Read at address  0x200000F0 (0xffff8ad900f0): 0x00000000
    [16-19-28.147]/dev/mem opened.
    [16-19-28.149]Memory mapped at address 0xffff906b7000.
    [16-19-28.154]Read at address  0x200000F4 (0xffff906b70f4): 0x00000000
    [16-19-28.156]/dev/mem opened.
    [16-19-28.158]Memory mapped at address 0xffff9f968000.
    [16-19-28.165]Read at address  0x200000F8 (0xffff9f9680f8): 0x00000000
    [16-19-28.168]/dev/mem opened.
    [16-19-28.170]Memory mapped at address 0xffff9fae8000.
    [16-19-28.173]Read at address  0x200000FC (0xffff9fae80fc): 0x00000000
    [16-19-28.684]root@j722s-evm:~# 
    

    ok:

    4274.ok.log
    [16-09-07.507]root@j722s-evm:~# ./s
    [16-09-07.527]/dev/mem opened.
    [16-09-07.530]Memory mapped at address 0xffffbf196000.
    [16-09-07.532]Read at address  0x20000000 (0xffffbf196000): 0x0000080C
    [16-09-07.538]/dev/mem opened.
    [16-09-07.541]Memory mapped at address 0xffffb7e89000.
    [16-09-07.543]Read at address  0x20000004 (0xffffb7e89004): 0x00005040
    [16-09-07.545]/dev/mem opened.
    [16-09-07.550]Memory mapped at address 0xffffb6899000.
    [16-09-07.552]Read at address  0x20000008 (0xffffb6899008): 0x00000000
    [16-09-07.555]/dev/mem opened.
    [16-09-07.561]Memory mapped at address 0xffff8bf1e000.
    [16-09-07.563]Read at address  0x2000000C (0xffff8bf1e00c): 0x00000000
    [16-09-07.565]/dev/mem opened.
    [16-09-07.572]Memory mapped at address 0xffff92fb6000.
    [16-09-07.575]Read at address  0x20000010 (0xffff92fb6010): 0x00000001
    [16-09-07.577]/dev/mem opened.
    [16-09-07.583]Memory mapped at address 0xffff88abf000.
    [16-09-07.585]Read at address  0x20000014 (0xffff88abf014): 0x00000000
    [16-09-07.587]/dev/mem opened.
    [16-09-07.590]Memory mapped at address 0xffffbd457000.
    [16-09-07.594]Read at address  0x20000018 (0xffffbd457018): 0x00000000
    [16-09-07.596]/dev/mem opened.
    [16-09-07.599]Memory mapped at address 0xffff8cc0a000.
    [16-09-07.605]Read at address  0x2000001C (0xffff8cc0a01c): 0x00000000
    [16-09-07.607]/dev/mem opened.
    [16-09-07.610]Memory mapped at address 0xffff82d66000.
    [16-09-07.618]Read at address  0x20000020 (0xffff82d66020): 0x00000000
    [16-09-07.621]/dev/mem opened.
    [16-09-07.624]Memory mapped at address 0xffffb2d57000.
    [16-09-07.627]Read at address  0x20000024 (0xffffb2d57024): 0x00000000
    [16-09-07.630]/dev/mem opened.
    [16-09-07.632]Memory mapped at address 0xffffa3ffc000.
    [16-09-07.641]Read at address  0x20000028 (0xffffa3ffc028): 0x00000000
    [16-09-07.644]/dev/mem opened.
    [16-09-07.646]Memory mapped at address 0xffffa13c4000.
    [16-09-07.649]Read at address  0x2000002C (0xffffa13c402c): 0x00000000
    [16-09-07.652]/dev/mem opened.
    [16-09-07.654]Memory mapped at address 0xffff9f392000.
    [16-09-07.657]Read at address  0x20000030 (0xffff9f392030): 0x00000000
    [16-09-07.661]/dev/mem opened.
    [16-09-07.663]Memory mapped at address 0xffff8d0e9000.
    [16-09-07.665]Read at address  0x20000034 (0xffff8d0e9034): 0x0000636F
    [16-09-07.672]/dev/mem opened.
    [16-09-07.675]Memory mapped at address 0xffffa9afb000.
    [16-09-07.677]Read at address  0x20000038 (0xffffa9afb038): 0x00000000
    [16-09-07.679]/dev/mem opened.
    [16-09-07.683]Memory mapped at address 0xffff9696b000.
    [16-09-07.685]Read at address  0x2000003C (0xffff9696b03c): 0x00000000
    [16-09-07.688]/dev/mem opened.
    [16-09-07.694]Memory mapped at address 0xffffb622b000.
    [16-09-07.696]Read at address  0x20000040 (0xffffb622b040): 0x00000000
    [16-09-07.698]/dev/mem opened.
    [16-09-07.705]Memory mapped at address 0xffff9a42b000.
    [16-09-07.708]Read at address  0x20000044 (0xffff9a42b044): 0x00000000
    [16-09-07.710]/dev/mem opened.
    [16-09-07.718]Memory mapped at address 0xffff9f297000.
    [16-09-07.720]Read at address  0x20000048 (0xffff9f297048): 0x00000000
    [16-09-07.723]/dev/mem opened.
    [16-09-07.724]Memory mapped at address 0xffffacf4c000.
    [16-09-07.727]Read at address  0x2000004C (0xffffacf4c04c): 0x00000000
    [16-09-07.730]/dev/mem opened.
    [16-09-07.732]Memory mapped at address 0xffffbca86000.
    [16-09-07.741]Read at address  0x20000050 (0xffffbca86050): 0x00000000
    [16-09-07.743]/dev/mem opened.
    [16-09-07.745]Memory mapped at address 0xffff8534a000.
    [16-09-07.749]Read at address  0x20000054 (0xffff8534a054): 0x00000000
    [16-09-07.751]/dev/mem opened.
    [16-09-07.754]Memory mapped at address 0xffff84160000.
    [16-09-07.761]Read at address  0x20000058 (0xffff84160058): 0x00000000
    [16-09-07.764]/dev/mem opened.
    [16-09-07.766]Memory mapped at address 0xffffa9f26000.
    [16-09-07.773]Read at address  0x2000005C (0xffffa9f2605c): 0x00000000
    [16-09-07.775]/dev/mem opened.
    [16-09-07.778]Memory mapped at address 0xffffb8780000.
    [16-09-07.783]Read at address  0x20000060 (0xffffb8780060): 0x00000000
    [16-09-07.785]/dev/mem opened.
    [16-09-07.788]Memory mapped at address 0xffff9695e000.
    [16-09-07.790]Read at address  0x20000064 (0xffff9695e064): 0x00000000
    [16-09-07.794]/dev/mem opened.
    [16-09-07.796]Memory mapped at address 0xffff97826000.
    [16-09-07.798]Read at address  0x20000068 (0xffff97826068): 0x00000000
    [16-09-07.805]/dev/mem opened.
    [16-09-07.807]Memory mapped at address 0xffffb520f000.
    [16-09-07.809]Read at address  0x2000006C (0xffffb520f06c): 0x00000000
    [16-09-07.812]/dev/mem opened.
    [16-09-07.816]Memory mapped at address 0xffffb3e1b000.
    [16-09-07.818]Read at address  0x20000070 (0xffffb3e1b070): 0x00000000
    [16-09-07.820]/dev/mem opened.
    [16-09-07.827]Memory mapped at address 0xffffa4041000.
    [16-09-07.830]Read at address  0x20000074 (0xffffa4041074): 0x00000000
    [16-09-07.832]/dev/mem opened.
    [16-09-07.840]Memory mapped at address 0xffffa4379000.
    [16-09-07.843]Read at address  0x20000078 (0xffffa4379078): 0x00000000
    [16-09-07.845]/dev/mem opened.
    [16-09-07.850]Memory mapped at address 0xffffb81c2000.
    [16-09-07.852]Read at address  0x2000007C (0xffffb81c207c): 0x00000000
    [16-09-07.855]/dev/mem opened.
    [16-09-07.857]Memory mapped at address 0xffff80de9000.
    [16-09-07.861]Read at address  0x20000080 (0xffff80de9080): 0x00000000
    [16-09-07.863]/dev/mem opened.
    [16-09-07.865]Memory mapped at address 0xffff91c23000.
    [16-09-07.872]Read at address  0x20000084 (0xffff91c23084): 0x00000000
    [16-09-07.875]/dev/mem opened.
    [16-09-07.877]Memory mapped at address 0xffffbdab7000.
    [16-09-07.883]Read at address  0x20000088 (0xffffbdab7088): 0x00000000
    [16-09-07.885]/dev/mem opened.
    [16-09-07.888]Memory mapped at address 0xffff83cd5000.
    [16-09-07.894]Read at address  0x2000008C (0xffff83cd508c): 0x00000000
    [16-09-07.897]/dev/mem opened.
    [16-09-07.899]Memory mapped at address 0xffff8e387000.
    [16-09-07.905]Read at address  0x20000090 (0xffff8e387090): 0x00000001
    [16-09-07.908]/dev/mem opened.
    [16-09-07.910]Memory mapped at address 0xffff880f5000.
    [16-09-07.916]Read at address  0x20000094 (0xffff880f5094): 0x00000000
    [16-09-07.918]/dev/mem opened.
    [16-09-07.921]Memory mapped at address 0xffffb8ce9000.
    [16-09-07.923]Read at address  0x20000098 (0xffffb8ce9098): 0x00000003
    [16-09-07.927]/dev/mem opened.
    [16-09-07.930]Memory mapped at address 0xffffb8f86000.
    [16-09-07.932]Read at address  0x2000009C (0xffffb8f8609c): 0x00000081
    [16-09-07.940]/dev/mem opened.
    [16-09-07.944]Memory mapped at address 0xffffaec3e000.
    [16-09-07.946]Read at address  0x200000A0 (0xffffaec3e0a0): 0x00000000
    [16-09-07.948]/dev/mem opened.
    [16-09-07.952]Memory mapped at address 0xffffb622d000.
    [16-09-07.954]Read at address  0x200000A4 (0xffffb622d0a4): 0x00008000
    [16-09-07.956]/dev/mem opened.
    [16-09-07.960]Memory mapped at address 0xffff97158000.
    [16-09-07.963]Read at address  0x200000A8 (0xffff971580a8): 0x00000000
    [16-09-07.965]/dev/mem opened.
    [16-09-07.973]Memory mapped at address 0xffffb2a6e000.
    [16-09-07.975]Read at address  0x200000AC (0xffffb2a6e0ac): 0x00000023
    [16-09-07.977]/dev/mem opened.
    [16-09-07.983]Memory mapped at address 0xffff9ee34000.
    [16-09-07.985]Read at address  0x200000B0 (0xffff9ee340b0): 0x00000009
    [16-09-07.987]/dev/mem opened.
    [16-09-07.989]Memory mapped at address 0xffffa4057000.
    [16-09-07.995]Read at address  0x200000B4 (0xffffa40570b4): 0x00000009
    [16-09-07.998]/dev/mem opened.
    [16-09-08.001]Memory mapped at address 0xffffb98c2000.
    [16-09-08.005]Read at address  0x200000B8 (0xffffb98c20b8): 0x00000003
    [16-09-08.008]/dev/mem opened.
    [16-09-08.010]Memory mapped at address 0xffff8f04d000.
    [16-09-08.016]Read at address  0x200000BC (0xffff8f04d0bc): 0x000001E0
    [16-09-08.019]/dev/mem opened.
    [16-09-08.021]Memory mapped at address 0xffff948b4000.
    [16-09-08.027]Read at address  0x200000C0 (0xffff948b40c0): 0x00008003
    [16-09-08.030]/dev/mem opened.
    [16-09-08.032]Memory mapped at address 0xffff83582000.
    [16-09-08.040]Read at address  0x200000C4 (0xffff835820c4): 0x00000000
    [16-09-08.042]/dev/mem opened.
    [16-09-08.044]Memory mapped at address 0xffffae2a4000.
    [16-09-08.049]Read at address  0x200000C8 (0xffffae2a40c8): 0x00000000
    [16-09-08.052]/dev/mem opened.
    [16-09-08.054]Memory mapped at address 0xffff83faa000.
    [16-09-08.057]Read at address  0x200000CC (0xffff83faa0cc): 0x00000000
    [16-09-08.061]/dev/mem opened.
    [16-09-08.063]Memory mapped at address 0xffffb74db000.
    [16-09-08.065]Read at address  0x200000D0 (0xffffb74db0d0): 0x00000000
    [16-09-08.068]/dev/mem opened.
    [16-09-08.073]Memory mapped at address 0xffff80b29000.
    [16-09-08.075]Read at address  0x200000D4 (0xffff80b290d4): 0x00000000
    [16-09-08.078]/dev/mem opened.
    [16-09-08.083]Memory mapped at address 0xffff967f6000.
    [16-09-08.085]Read at address  0x200000D8 (0xffff967f60d8): 0x00000000
    [16-09-08.088]/dev/mem opened.
    [16-09-08.094]Memory mapped at address 0xffffbe71a000.
    [16-09-08.096]Read at address  0x200000DC (0xffffbe71a0dc): 0x00000000
    [16-09-08.100]/dev/mem opened.
    [16-09-08.104]Memory mapped at address 0xffffab020000.
    [16-09-08.107]Read at address  0x200000E0 (0xffffab0200e0): 0x00000000
    [16-09-08.110]/dev/mem opened.
    [16-09-08.118]Memory mapped at address 0xffffa8c10000.
    [16-09-08.121]Read at address  0x200000E4 (0xffffa8c100e4): 0x00000000
    [16-09-08.123]/dev/mem opened.
    [16-09-08.125]Memory mapped at address 0xffff89f5c000.
    [16-09-08.129]Read at address  0x200000E8 (0xffff89f5c0e8): 0x00000000
    [16-09-08.131]/dev/mem opened.
    [16-09-08.134]Memory mapped at address 0xffffbcc5b000.
    [16-09-08.139]Read at address  0x200000EC (0xffffbcc5b0ec): 0x00000000
    [16-09-08.142]/dev/mem opened.
    [16-09-08.144]Memory mapped at address 0xffffbe0da000.
    [16-09-08.150]Read at address  0x200000F0 (0xffffbe0da0f0): 0x00000000
    [16-09-08.153]/dev/mem opened.
    [16-09-08.155]Memory mapped at address 0xffff98778000.
    [16-09-08.160]Read at address  0x200000F4 (0xffff987780f4): 0x00000000
    [16-09-08.163]/dev/mem opened.
    [16-09-08.165]Memory mapped at address 0xffff9f90f000.
    [16-09-08.173]Read at address  0x200000F8 (0xffff9f90f0f8): 0x00000000
    [16-09-08.175]/dev/mem opened.
    [16-09-08.177]Memory mapped at address 0xffff7fe01000.
    [16-09-08.180]Read at address  0x200000FC (0xffff7fe010fc): 0x00000000
    

  • Thanks for the dump. I will analyse them and get back early next week.

  • I am very grateful for your help. Thanks,   Best regards.

  • Hi,

    [16-19-27.868]/dev/mem opened. | [16-09-07.875]/dev/mem opened.
    [16-19-27.871]Memory mapped at address 0xffffaae13000. | [16-09-07.877]Memory mapped at address 0xffffbdab7000.
    [16-19-27.876]Read at address 0x20000088 (0xffffaae13088): 0x00000100

    The Bus free IRQ status is set in not working logs.

    Can you try the same without I2C Init in Linux. basically disable linux i2c1 node & try.

    - Keerthy

  • hi,

    yes, I closed main_i2C0 in DTS and performed the same operation

    &main_i2c0 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_i2c0_pins_default>;
    	clock-frequency = <400000>;
    	status = "disabled";
    ......
    }

    no i2c, enable it in mcu20.

    no_i2c1_ng.log
    root@j722s-evm:~# i2cdetect -l 
    i2c-0   i2c             OMAP I2C adapter                        I2C adapter
    root@j722s-evm:~# 
    root@j722s-evm:~# 
    root@j722s-evm:~# 
    root@j722s-evm:~# ./s
    /dev/mem opened.
    Memory mapped at address 0xffffac00a000.
    Read at address  0x20000000 (0xffffac00a000): 0x0000080C
    /dev/mem opened.
    Memory mapped at address 0xffffa3247000.
    Read at address  0x20000004 (0xffffa3247004): 0x00005040
    /dev/mem opened.
    Memory mapped at address 0xffff98dc7000.
    Read at address  0x20000008 (0xffff98dc7008): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffadc7d000.
    Read at address  0x2000000C (0xffffadc7d00c): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff8dd6a000.
    Read at address  0x20000010 (0xffff8dd6a010): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffaeaf3000.
    Read at address  0x20000014 (0xffffaeaf3014): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffac01c000.
    Read at address  0x20000018 (0xffffac01c018): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff9a8f1000.
    Read at address  0x2000001C (0xffff9a8f101c): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffba9e9000.
    Read at address  0x20000020 (0xffffba9e9020): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff88d48000.
    Read at address  0x20000024 (0xffff88d48024): 0x00000100
    /dev/mem opened.
    Memory mapped at address 0xffff836cd000.
    Read at address  0x20000028 (0xffff836cd028): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff99f24000.
    Read at address  0x2000002C (0xffff99f2402c): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff84dcf000.
    Read at address  0x20000030 (0xffff84dcf030): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff857a2000.
    Read at address  0x20000034 (0xffff857a2034): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffa5cd9000.
    Read at address  0x20000038 (0xffffa5cd9038): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffb43ce000.
    Read at address  0x2000003C (0xffffb43ce03c): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff86c8f000.
    Read at address  0x20000040 (0xffff86c8f040): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff83842000.
    Read at address  0x20000044 (0xffff83842044): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff8d6b4000.
    Read at address  0x20000048 (0xffff8d6b4048): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffa70f5000.
    Read at address  0x2000004C (0xffffa70f504c): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffb0a03000.
    Read at address  0x20000050 (0xffffb0a03050): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffb7520000.
    Read at address  0x20000054 (0xffffb7520054): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffb7ef7000.
    Read at address  0x20000058 (0xffffb7ef7058): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff9b32d000.
    Read at address  0x2000005C (0xffff9b32d05c): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff99b40000.
    Read at address  0x20000060 (0xffff99b40060): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffad098000.
    Read at address  0x20000064 (0xffffad098064): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffadf48000.
    Read at address  0x20000068 (0xffffadf48068): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffa663b000.
    Read at address  0x2000006C (0xffffa663b06c): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffa6d12000.
    Read at address  0x20000070 (0xffffa6d12070): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffade8f000.
    Read at address  0x20000074 (0xffffade8f074): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff9039a000.
    Read at address  0x20000078 (0xffff9039a078): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffa99cf000.
    Read at address  0x2000007C (0xffffa99cf07c): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff8f542000.
    Read at address  0x20000080 (0xffff8f542080): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff8944c000.
    Read at address  0x20000084 (0xffff8944c084): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff9c922000.
    Read at address  0x20000088 (0xffff9c922088): 0x00000100
    /dev/mem opened.
    Memory mapped at address 0xffff80dc9000.
    Read at address  0x2000008C (0xffff80dc908c): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff82767000.
    Read at address  0x20000090 (0xffff82767090): 0x00000001
    /dev/mem opened.
    Memory mapped at address 0xffff90858000.
    Read at address  0x20000094 (0xffff90858094): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffb63a6000.
    Read at address  0x20000098 (0xffffb63a6098): 0x00000001
    /dev/mem opened.
    Memory mapped at address 0xffff9ff56000.
    Read at address  0x2000009C (0xffff9ff5609c): 0x00000057
    /dev/mem opened.
    Memory mapped at address 0xffff87d8a000.
    Read at address  0x200000A0 (0xffff87d8a0a0): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffacb72000.
    Read at address  0x200000A4 (0xffffacb720a4): 0x00008000
    /dev/mem opened.
    Memory mapped at address 0xffff97d40000.
    Read at address  0x200000A8 (0xffff97d400a8): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff8e9f2000.
    Read at address  0x200000AC (0xffff8e9f20ac): 0x00000042
    /dev/mem opened.
    Memory mapped at address 0xffff909f9000.
    Read at address  0x200000B0 (0xffff909f90b0): 0x00000007
    /dev/mem opened.
    Memory mapped at address 0xffff95f3c000.
    Read at address  0x200000B4 (0xffff95f3c0b4): 0x00000008
    /dev/mem opened.
    Memory mapped at address 0xffffa031c000.
    Read at address  0x200000B8 (0xffffa031c0b8): 0x0000000A
    /dev/mem opened.
    Memory mapped at address 0xffff959f4000.
    Read at address  0x200000BC (0xffff959f40bc): 0x000041E0
    /dev/mem opened.
    Memory mapped at address 0xffff84317000.
    Read at address  0x200000C0 (0xffff843170c0): 0x00008001
    /dev/mem opened.
    Memory mapped at address 0xffffbcd74000.
    Read at address  0x200000C4 (0xffffbcd740c4): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffb135b000.
    Read at address  0x200000C8 (0xffffb135b0c8): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff86b6e000.
    Read at address  0x200000CC (0xffff86b6e0cc): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffb29d0000.
    Read at address  0x200000D0 (0xffffb29d00d0): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffa306c000.
    Read at address  0x200000D4 (0xffffa306c0d4): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff96161000.
    Read at address  0x200000D8 (0xffff961610d8): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff8d703000.
    Read at address  0x200000DC (0xffff8d7030dc): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffa0842000.
    Read at address  0x200000E0 (0xffffa08420e0): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff85f2b000.
    Read at address  0x200000E4 (0xffff85f2b0e4): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff8147c000.
    Read at address  0x200000E8 (0xffff8147c0e8): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffaa420000.
    Read at address  0x200000EC (0xffffaa4200ec): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffbf5dc000.
    Read at address  0x200000F0 (0xffffbf5dc0f0): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff8e03d000.
    Read at address  0x200000F4 (0xffff8e03d0f4): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffa36a8000.
    Read at address  0x200000F8 (0xffffa36a80f8): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffbdbc1000.
    Read at address  0x200000FC (0xffffbdbc10fc): 0x00000000
    

    no i2c, and no enable it in mcu20.

    no_i2c1_ok.log
    root@j722s-evm:~# i2cdetect -l
    i2c-0   i2c             OMAP I2C adapter                        I2C adapter
    root@j722s-evm:~# 
    root@j722s-evm:~# 
    root@j722s-evm:~# 
    root@j722s-evm:~# ./s
    /dev/mem opened.
    Memory mapped at address 0xffff90971000.
    Read at address  0x20000000 (0xffff90971000): 0x0000080C
    /dev/mem opened.
    Memory mapped at address 0xffffa740d000.
    Read at address  0x20000004 (0xffffa740d004): 0x00005040
    /dev/mem opened.
    Memory mapped at address 0xffffa1b6f000.
    Read at address  0x20000008 (0xffffa1b6f008): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffaf96a000.
    Read at address  0x2000000C (0xffffaf96a00c): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffb310d000.
    Read at address  0x20000010 (0xffffb310d010): 0x00000001
    /dev/mem opened.
    Memory mapped at address 0xffffab985000.
    Read at address  0x20000014 (0xffffab985014): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffab31e000.
    Read at address  0x20000018 (0xffffab31e018): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff92d4e000.
    Read at address  0x2000001C (0xffff92d4e01c): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffb5c49000.
    Read at address  0x20000020 (0xffffb5c49020): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffb13fe000.
    Read at address  0x20000024 (0xffffb13fe024): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffaba46000.
    Read at address  0x20000028 (0xffffaba46028): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff8da3d000.
    Read at address  0x2000002C (0xffff8da3d02c): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff84253000.
    Read at address  0x20000030 (0xffff84253030): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffa55c9000.
    Read at address  0x20000034 (0xffffa55c9034): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff84ca7000.
    Read at address  0x20000038 (0xffff84ca7038): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff94fda000.
    Read at address  0x2000003C (0xffff94fda03c): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffba45e000.
    Read at address  0x20000040 (0xffffba45e040): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff8850f000.
    Read at address  0x20000044 (0xffff8850f044): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff93ec0000.
    Read at address  0x20000048 (0xffff93ec0048): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff91d46000.
    Read at address  0x2000004C (0xffff91d4604c): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff8d43c000.
    Read at address  0x20000050 (0xffff8d43c050): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff94bce000.
    Read at address  0x20000054 (0xffff94bce054): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffa6c4e000.
    Read at address  0x20000058 (0xffffa6c4e058): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff83fe2000.
    Read at address  0x2000005C (0xffff83fe205c): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffad196000.
    Read at address  0x20000060 (0xffffad196060): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffb8b5c000.
    Read at address  0x20000064 (0xffffb8b5c064): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff82047000.
    Read at address  0x20000068 (0xffff82047068): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffb9d6a000.
    Read at address  0x2000006C (0xffffb9d6a06c): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffb0fd7000.
    Read at address  0x20000070 (0xffffb0fd7070): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffb56f1000.
    Read at address  0x20000074 (0xffffb56f1074): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff80f14000.
    Read at address  0x20000078 (0xffff80f14078): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff9ef96000.
    Read at address  0x2000007C (0xffff9ef9607c): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff81917000.
    Read at address  0x20000080 (0xffff81917080): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff8fec3000.
    Read at address  0x20000084 (0xffff8fec3084): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffa9752000.
    Read at address  0x20000088 (0xffffa9752088): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff85a3c000.
    Read at address  0x2000008C (0xffff85a3c08c): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff7fe65000.
    Read at address  0x20000090 (0xffff7fe65090): 0x00000001
    /dev/mem opened.
    Memory mapped at address 0xffff8dd39000.
    Read at address  0x20000094 (0xffff8dd39094): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffba2dc000.
    Read at address  0x20000098 (0xffffba2dc098): 0x00000001
    /dev/mem opened.
    Memory mapped at address 0xffff9480a000.
    Read at address  0x2000009C (0xffff9480a09c): 0x00000003
    /dev/mem opened.
    Memory mapped at address 0xffff9ec64000.
    Read at address  0x200000A0 (0xffff9ec640a0): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff883a3000.
    Read at address  0x200000A4 (0xffff883a30a4): 0x00008200
    /dev/mem opened.
    Memory mapped at address 0xffffa9a29000.
    Read at address  0x200000A8 (0xffffa9a290a8): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffba87d000.
    Read at address  0x200000AC (0xffffba87d0ac): 0x00000023
    /dev/mem opened.
    Memory mapped at address 0xffff92f4f000.
    Read at address  0x200000B0 (0xffff92f4f0b0): 0x00000009
    /dev/mem opened.
    Memory mapped at address 0xffffbeeb4000.
    Read at address  0x200000B4 (0xffffbeeb40b4): 0x00000009
    /dev/mem opened.
    Memory mapped at address 0xffffa43f8000.
    Read at address  0x200000B8 (0xffffa43f80b8): 0x00000003
    /dev/mem opened.
    Memory mapped at address 0xffff82c5e000.
    Read at address  0x200000BC (0xffff82c5e0bc): 0x000001E0
    /dev/mem opened.
    Memory mapped at address 0xffff802e5000.
    Read at address  0x200000C0 (0xffff802e50c0): 0x00008001
    /dev/mem opened.
    Memory mapped at address 0xffff8972f000.
    Read at address  0x200000C4 (0xffff8972f0c4): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff9c14a000.
    Read at address  0x200000C8 (0xffff9c14a0c8): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff9d3c5000.
    Read at address  0x200000CC (0xffff9d3c50cc): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffaf608000.
    Read at address  0x200000D0 (0xffffaf6080d0): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff9536a000.
    Read at address  0x200000D4 (0xffff9536a0d4): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff97f0e000.
    Read at address  0x200000D8 (0xffff97f0e0d8): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffff94b57000.
    Read at address  0x200000DC (0xffff94b570dc): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffa5bd2000.
    Read at address  0x200000E0 (0xffffa5bd20e0): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffab62e000.
    Read at address  0x200000E4 (0xffffab62e0e4): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffa59f3000.
    Read at address  0x200000E8 (0xffffa59f30e8): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffa5c39000.
    Read at address  0x200000EC (0xffffa5c390ec): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffaaef2000.
    Read at address  0x200000F0 (0xffffaaef20f0): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffbb8b2000.
    Read at address  0x200000F4 (0xffffbb8b20f4): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffb0d29000.
    Read at address  0x200000F8 (0xffffb0d290f8): 0x00000000
    /dev/mem opened.
    Memory mapped at address 0xffffb7b4e000.
    Read at address  0x200000FC (0xffffb7b4e0fc): 0x00000000
    

    It shows them same diff in 0x20000088 

  •  I used i2C0 on MCU 20 and it should also be able to be turned off correctly.

    So when are you accessing the I2C0 from MCU2_0 and when are turning off from MCU2_0?

    If the turning off happens after Linux probe then there is a chance that Linux assumes its on but I2C is off.
    Can you disable turning off in MCU2_0?

    - Keerthy

  • HI,

    I just defined it in the sys file, I did not call  any read-write functions in MCU20, and it cannot be accessed in the kernel.

    1.Which API are you using to open the i2C0 device and close it?

    In addition, I referred to the SDK function of rtos and it seems that i2c was not turned off, only the handle was assigned null.

    2.my sdk version is 10.0, and What is your SDK version. 

    ti-processor-sdk-linux-adas-j722s-evm-10_00_00_08-Linux-x86-Install.bin  

    ti-processor-sdk-rtos-j722s-evm-10_00_00_05.tar.gz 

    Thank you very much for your reply.

  • Hello,

    I consulted our I2C expert. The recommendation was to strictly use it from one core. As everything depends how each core accesses.
    If MCU2_0 has to use before Linux then it has to cleanly shut off after its usage and Linux should re-init that. Otherwise behavior cannot
    be predicted.

    - Keerthy