ARM: dts: socfpga: set the i2c frequency

Use 'clock-frequency' binding for the i2c node that will put the I2C driver
into the standard operating mode. 'speed-mode' was not a valid binding for
the I2C driver, remove it.

Signed-off-by: Alan Tull <atull@kernel.org>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
This commit is contained in:
Dinh Nguyen 2017-05-09 09:21:08 -05:00
parent 5b5ada57e4
commit 3c56909ec2
3 changed files with 3 additions and 3 deletions

View File

@ -130,13 +130,13 @@ a10sr_rst: reset-controller {
};
&i2c1 {
speed-mode = <0>;
status = "okay";
/*
* adjust the falling times to decrease the i2c frequency to 50Khz
* because the LCD module does not work at the standard 100Khz
*/
clock-frequency = <100000>;
i2c-sda-falling-time-ns = <6000>;
i2c-scl-falling-time-ns = <6000>;

View File

@ -86,7 +86,7 @@ &gpio2 {
&i2c0 {
status = "okay";
speed-mode = <0>;
clock-frequency = <100000>;
adxl345: adxl345@0 {
compatible = "adi,adxl345";

View File

@ -58,7 +58,7 @@ &gpio2 { /* GPIO 58..66 (HLGPI 0..13 at offset 13) */
&i2c0 {
status = "okay";
speed-mode = <0>;
clock-frequency = <100000>;
stmpe1: stmpe811@41 {
compatible = "st,stmpe811";