]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: socfpga: set the i2c frequency
authorDinh Nguyen <dinguyen@kernel.org>
Tue, 9 May 2017 14:21:08 +0000 (09:21 -0500)
committerDinh Nguyen <dinguyen@kernel.org>
Fri, 23 Jun 2017 14:29:13 +0000 (09:29 -0500)
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>
arch/arm/boot/dts/socfpga_arria10_socdk.dtsi
arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts
arch/arm/boot/dts/socfpga_cyclone5_mcvevk.dts

index 94e088473823bcc7bc6e0644930cdb4cb1f1bc06..3a32de9ded3b6b49b8bcf66118419a05190f45fb 100644 (file)
 };
 
 &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>;
 
index 7b49395452b6f0133fcb7e67a52c4b84c0dbaaa4..b280e6494193885aba2ca44e9ad3eb9902a2bb57 100644 (file)
@@ -86,7 +86,7 @@
 
 &i2c0 {
        status = "okay";
-       speed-mode = <0>;
+       clock-frequency = <100000>;
 
        adxl345: adxl345@0 {
                compatible = "adi,adxl345";
index 21e397287e295a082d28528e92e3bc6a0cab82b8..c2eb88aab8b30f66a368522651bac40183ceb0b6 100644 (file)
@@ -58,7 +58,7 @@
 
 &i2c0 {
        status = "okay";
-       speed-mode = <0>;
+       clock-frequency = <100000>;
 
        stmpe1: stmpe811@41 {
                compatible = "st,stmpe811";