Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tpetazzoni/dc54cae9a84cd8e3742190f4b2939e67 to your computer and use it in GitHub Desktop.
Save tpetazzoni/dc54cae9a84cd8e3742190f4b2939e67 to your computer and use it in GitHub Desktop.
#include "am335x-boneblack-wireless.dts"
&am33xx_pinmux {
i2c1_pins: pinmux_i2c1_pins {
pinctrl-single,pins = <
AM33XX_PADCONF(AM335X_PIN_SPI0_D1, PIN_INPUT_PULLUP, MUX_MODE2) /* spi0_d1.i2c1_sda */
AM33XX_PADCONF(AM335X_PIN_SPI0_CS0, PIN_INPUT_PULLUP, MUX_MODE2) /* spi0_cs0.i2c1_scl */
>;
};
};
&i2c1 {
status = "okay";
clock-frequency = <100000>;
pinctrl-0 = <&i2c1_pins>;
pinctrl-names = "default";
nunchuk@52 {
compatible = "nintendo,nunchuk";
reg = <0x52>;
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment