Commit 4d3e72b1 authored by Dinh Nguyen's avatar Dinh Nguyen

ARM: dts: socfpga: set desired i2c clock on Cyclone5 and Arria5 devkits

The I2C LCD display on the Cyclone5 and Arria5 devkits is only capable of
the standard 100 kHz clock. Set the "clock-frequency" of the I2C node
to be 100000.
Signed-off-by: default avatarDinh Nguyen <dinguyen@kernel.org>
parent 55b0f44c
...@@ -98,6 +98,14 @@ &gpio2 { ...@@ -98,6 +98,14 @@ &gpio2 {
&i2c0 { &i2c0 {
status = "okay"; status = "okay";
clock-frequency = <100000>;
/*
* adjust the falling times to decrease the i2c frequency to 50Khz
* because the LCD module does not work at the standard 100Khz
*/
i2c-sda-falling-time-ns = <5000>;
i2c-scl-falling-time-ns = <5000>;
eeprom@51 { eeprom@51 {
compatible = "atmel,24c32"; compatible = "atmel,24c32";
......
...@@ -98,6 +98,14 @@ &gpio2 { ...@@ -98,6 +98,14 @@ &gpio2 {
&i2c0 { &i2c0 {
status = "okay"; status = "okay";
clock-frequency = <100000>;
/*
* adjust the falling times to decrease the i2c frequency to 50Khz
* because the LCD module does not work at the standard 100Khz
*/
i2c-sda-falling-time-ns = <5000>;
i2c-scl-falling-time-ns = <5000>;
eeprom@51 { eeprom@51 {
compatible = "atmel,24c32"; compatible = "atmel,24c32";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment