Difference between revisions of "i.MX53 SODIMM I2C"

From Voipac Wiki
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:i.MX53 SODIMM PC - Development kit]]
+
[[Category:i.MX53 SODIMM PC - Development Kit]]
 
[[Category:i.MX53 SODIMM PC Peripherals]]
 
[[Category:i.MX53 SODIMM PC Peripherals]]
 
<!-- -->
 
<!-- -->
Line 8: Line 8:
 
=== Locating configuration file ===
 
=== Locating configuration file ===
  
The initial SOC configuration is part the following device tree source file:
+
The initial CPU configuration is part the following device tree source file:
 
* arch/arm/boot/dts/imx53.dtsi
 
* arch/arm/boot/dts/imx53.dtsi
 
<br />
 
<br />
 
Shared module configuration can be found in the following file:
 
Shared module configuration can be found in the following file:
 
* arch/arm/boot/dts/imx53-vmx53.dtsi
 
* arch/arm/boot/dts/imx53-vmx53.dtsi
<br /><br />
+
<br />
The specific module configuration customised to i.MX53 SODIMM PC Module configurations is part of these device tree source files:
+
The specific module configuration customised for i.MX53 SODIMM PC Module is part of these device tree source files:
 
* i.MX53 SODIMM PC Module Max: arch/arm/boot/dts/imx53-vmx53-557.dts
 
* i.MX53 SODIMM PC Module Max: arch/arm/boot/dts/imx53-vmx53-557.dts
 
* i.MX53 SODIMM PC Module Pro: arch/arm/boot/dts/imx53-vmx53-668.dts
 
* i.MX53 SODIMM PC Module Pro: arch/arm/boot/dts/imx53-vmx53-668.dts
 
* i.MX53 SODIMM PC Module Basic: arch/arm/boot/dts/imx53-vmx53-779.dts
 
* i.MX53 SODIMM PC Module Basic: arch/arm/boot/dts/imx53-vmx53-779.dts
<br /><br />
+
<br />
'''''Note:''''' In most cases a single file needs to be edited.
+
'''''Note:''''' In most cases just a single file edit is needed to apply modifications.
  
 
=== I2C bus speed adjustment ===
 
=== I2C bus speed adjustment ===

Latest revision as of 22:49, 23 October 2021

Modifying I2C bus speed

Locating configuration file

The initial CPU configuration is part the following device tree source file:

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


Shared module configuration can be found in the following file:

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


The specific module configuration customised for i.MX53 SODIMM PC Module is part of these device tree source files:

  • i.MX53 SODIMM PC Module Max: arch/arm/boot/dts/imx53-vmx53-557.dts
  • i.MX53 SODIMM PC Module Pro: arch/arm/boot/dts/imx53-vmx53-668.dts
  • i.MX53 SODIMM PC Module Basic: arch/arm/boot/dts/imx53-vmx53-779.dts


Note: In most cases just a single file edit is needed to apply modifications.

I2C bus speed adjustment

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";
}