Wiki Home » vmx53 » i2c

i2c

Last modified by Administrator on 2015/01/17 19:50

Examples

How to modify i2c speed

Device tree

Initial SOC configuration is part the following device tree source files

  • arch/arm/boot/dts/imx53.dtsi

Shared module configuration is part the following device tree source files

  • arch/arm/boot/dts/imx53-vmx53.dtsi

Specific module configuration is part of device tree source files

  • arch/arm/boot/dts/imx53-vmx53-557.dts
  • arch/arm/boot/dts/imx53-vmx53-668.dts
  • arch/arm/boot/dts/imx53-vmx53-779.dts
Usually only the single module HW configuration needs to be edited.

Bus: I2C 1

I2C speed: 50 kHz

&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1_2>;
clock-frequency = <50000>;
status = "okay";
}

I2C speed: 100 kHz (Default)

&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1_2>;
status = "okay";
}

I2C speed: 400 kHz

&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1_2>;
clock-frequency = <400000>;
status = "okay";
}
Tags:
Created by Administrator on 2015/01/17 12:35

This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.1 - Documentation