arm64: dts: lx2160a: Fix incorrect I2C clock divider
authorChuanhua Han <chuanhua.han@nxp.com>
Tue, 6 Aug 2019 08:42:23 +0000 (16:42 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 19 Aug 2019 14:04:50 +0000 (16:04 +0200)
Lx2160a platform, the i2c input clock is actually platform pll CLK / 16
(this is the hardware connection), other clock divider can not get the
correct i2c clock, resulting in the output of SCL pin clock is not
accurate.

Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com>
Acked-by: Li Yang <leoyang.li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

index 4720a8e..408e0ec 100644 (file)
                        reg = <0x0 0x2000000 0x0 0x10000>;
                        interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
                        clock-names = "i2c";
-                       clocks = <&clockgen 4 7>;
+                       clocks = <&clockgen 4 15>;
                        scl-gpio = <&gpio2 15 GPIO_ACTIVE_HIGH>;
                        status = "disabled";
                };
                        reg = <0x0 0x2010000 0x0 0x10000>;
                        interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
                        clock-names = "i2c";
-                       clocks = <&clockgen 4 7>;
+                       clocks = <&clockgen 4 15>;
                        status = "disabled";
                };
 
                        reg = <0x0 0x2020000 0x0 0x10000>;
                        interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
                        clock-names = "i2c";
-                       clocks = <&clockgen 4 7>;
+                       clocks = <&clockgen 4 15>;
                        status = "disabled";
                };
 
                        reg = <0x0 0x2030000 0x0 0x10000>;
                        interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
                        clock-names = "i2c";
-                       clocks = <&clockgen 4 7>;
+                       clocks = <&clockgen 4 15>;
                        status = "disabled";
                };
 
                        reg = <0x0 0x2040000 0x0 0x10000>;
                        interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
                        clock-names = "i2c";
-                       clocks = <&clockgen 4 7>;
+                       clocks = <&clockgen 4 15>;
                        scl-gpio = <&gpio2 16 GPIO_ACTIVE_HIGH>;
                        status = "disabled";
                };
                        reg = <0x0 0x2050000 0x0 0x10000>;
                        interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
                        clock-names = "i2c";
-                       clocks = <&clockgen 4 7>;
+                       clocks = <&clockgen 4 15>;
                        status = "disabled";
                };
 
                        reg = <0x0 0x2060000 0x0 0x10000>;
                        interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
                        clock-names = "i2c";
-                       clocks = <&clockgen 4 7>;
+                       clocks = <&clockgen 4 15>;
                        status = "disabled";
                };
 
                        reg = <0x0 0x2070000 0x0 0x10000>;
                        interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
                        clock-names = "i2c";
-                       clocks = <&clockgen 4 7>;
+                       clocks = <&clockgen 4 15>;
                        status = "disabled";
                };