I2C controller getting timed out

64 views
Skip to first unread message

deepak srinivasan

unread,
Nov 25, 2015, 1:29:33 PM11/25/15
to BeagleBoard
Hi all

I am trying to learn device drivers following tutorials from free-electrons on BBB rev 4C
I followed their tutorial trying to enable i2c1 and connecting it to a Nintendo Nunchuk,

My pinmux configuration

        i2c1_pins: pinmux_i2c1_pins {
                pinctrl-single,pins = <
                        0x158 0x32      /* SPI0_D1 */
                        0x15C 0x32       /*  SPI0_CS0 */
                >;
        };

I also enabled I2C-1 by

&i2c1 {

        pinctrl-names = "default";
        pinctrl-0 = <&i2c1_pins>;

        status = "okay";
        clock-frequency = <100000>;

        nunchuk: nunchuk@52 {
                compatible = "nintendo, nunchuk";
                reg = <0x52>;
        };
};

While running $i2detect -r 1, I get connection timed out error on the expected address (0x52)
I was using the Nunchuk before, so I believe there is no problem with slave device

Can someone help by pointing out what error I am doing

regards
deepak

Madhu K

unread,
Mar 6, 2017, 12:07:04 AM3/6/17
to BeagleBoard
Hi Deepak,

Did you solve your problem?

Even I am facing same issue, is there any solution you have to solve this issue?

Thanks & regards,
Madhu
Reply all
Reply to author
Forward
0 new messages