All of lore.kernel.org
 help / color / mirror / Atom feed
* Free electrons course wii nunchuk and BBB i2c connection DTS
@ 2016-01-31 12:02 Okash Khawaja
  0 siblings, 0 replies; only message in thread
From: Okash Khawaja @ 2016-01-31 12:02 UTC (permalink / raw)
  To: kernelnewbies

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 */
                >;
        };
};

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-01-31 12:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-31 12:02 Free electrons course wii nunchuk and BBB i2c connection DTS Okash Khawaja

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.