提交 3c56909e 编写于 作者: D Dinh Nguyen

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: NAlan Tull <atull@kernel.org>
Signed-off-by: NDinh Nguyen <dinguyen@kernel.org>
上级 5b5ada57
...@@ -130,13 +130,13 @@ ...@@ -130,13 +130,13 @@
}; };
&i2c1 { &i2c1 {
speed-mode = <0>;
status = "okay"; status = "okay";
/* /*
* adjust the falling times to decrease the i2c frequency to 50Khz * adjust the falling times to decrease the i2c frequency to 50Khz
* because the LCD module does not work at the standard 100Khz * because the LCD module does not work at the standard 100Khz
*/ */
clock-frequency = <100000>;
i2c-sda-falling-time-ns = <6000>; i2c-sda-falling-time-ns = <6000>;
i2c-scl-falling-time-ns = <6000>; i2c-scl-falling-time-ns = <6000>;
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
&i2c0 { &i2c0 {
status = "okay"; status = "okay";
speed-mode = <0>; clock-frequency = <100000>;
adxl345: adxl345@0 { adxl345: adxl345@0 {
compatible = "adi,adxl345"; compatible = "adi,adxl345";
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
&i2c0 { &i2c0 {
status = "okay"; status = "okay";
speed-mode = <0>; clock-frequency = <100000>;
stmpe1: stmpe811@41 { stmpe1: stmpe811@41 {
compatible = "st,stmpe811"; compatible = "st,stmpe811";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册