Free electrons course wii nunchuk and BBB i2c connection DTS
Okash Khawaja
okash.khawaja at gmail.com
Sun Jan 31 07:02:12 EST 2016
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 */
>;
};
};
More information about the Kernelnewbies
mailing list