From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dinh Nguyen Subject: Re: [PATCH] arm64: dts: stratix10: i2c clock running out of spec Date: Wed, 15 Aug 2018 10:08:24 -0500 Message-ID: References: <20180808154241.3760-1-atull@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20180808154241.3760-1-atull@kernel.org> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Alan Tull , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org List-Id: devicetree@vger.kernel.org On 08/08/2018 10:42 AM, Alan Tull wrote: > DesignWare I2C controller was observed running at 105.93kHz rather > than the specified 100kHz. Adjust device tree settings to bring it > within spec (a slightly conservative 98 MHz). > > Signed-off-by: Alan Tull > --- > arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts > index 6edc4fa..53cf195 100644 > --- a/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts > +++ b/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts > @@ -124,6 +124,8 @@ > &i2c1 { > status = "okay"; > clock-frequency = <100000>; > + i2c-sda-falling-time-ns = <890>; /* hcnt */ > + i2c-sdl-falling-time-ns = <890>; /* lcnt */ > > adc@14 { > compatible = "lltc,ltc2497"; > Applied! Thanks, Dinh