All of lore.kernel.org
 help / color / mirror / Atom feed
From: okash.khawaja@gmail.com (Okash Khawaja)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Free electrons course wii nunchuk and BBB i2c connection DTS
Date: Sun, 31 Jan 2016 12:02:12 +0000	[thread overview]
Message-ID: <20160131120212.GA4804@bytefire-computer> (raw)

Hi,

In this free-electrons course http://free-electrons.com/training/kernel/
it talks about setting up i2c between beagle bone black and nintendo wii
nunchuk with UEXT connector. To do that I created the DTS which I have 
put at the end of this email. It doesn't seem to be working. When I send
some bytes to the device which is on i2c1, I get "omap_i2c 4802a000.i2c:
timeout waiting for bus ready" message.

Feel free to ask details. Any help will be appreciated.

Thanks,
Okash

/dts-v1/;

#include "am33xx.dtsi"
#include "am335x-bone-common.dtsi"

/ {
        model = "TI AM335x BeagleBone Black";
        compatible = "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx";
};

&i2c1 {
        status = "okay";
        clock-frequency = <100000>;

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

&am33xx_pinmux {
        pinctrl-names = "default";
        pinctrl-0 = <&i2c1_pins>;
        i2c1_pins: pinmux_i2c1_pins {
                pinctrl_single,pins = <
                        0x158 (PIN_INPUT_PULLUP | MUX_MODE2) /* spi0_d1.i2c1_sda */
                        0x15c (PIN_INPUT_PULLUP | MUX_MODE2) /* spi0_cs0.i2c1_scl */
                >;
        };
};

                 reply	other threads:[~2016-01-31 12:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160131120212.GA4804@bytefire-computer \
    --to=okash.khawaja@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.