Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2917504pxb; Tue, 24 Aug 2021 10:33:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycbfKjXjxrd6J28Owyxf3Ye1eP1hbF1mGcs+O4lDh+IqFaJmOm0mQlPotFTfi7R4tskmvq X-Received: by 2002:a6b:e712:: with SMTP id b18mr32010724ioh.186.1629826389422; Tue, 24 Aug 2021 10:33:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629826389; cv=none; d=google.com; s=arc-20160816; b=ojzkz1VJKdFTEqyE2DBU14TNcZzco34BNkHA9Mij1pHB8L3QQ9i4DtaI+QEpJHI/K8 OOLbil+SIYozMRq3w+um51C1lhHoEun684iZg0Jj80lEM94IuhKzl/ftm1aRIYPusW1K yzUBRyKXxEhnh0DTte7SgitQFiPgsb6OhJNAOesb6tWsHa8mDedhwdlwlAP0ozBeLCQZ 531Chf8NfWYtNll5QuiC7YFAkOFiRMmFPCpFqAsfHUN//gvZrdU1Vh4d6fhFsWsBJYU9 IpK4HEphL0t+5X6cSE38Kk6IozKMqA8g+0hIOaZsF01mDReF4d2dzpQdNQudjf88iwBg N+2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mmFH3rtr5TpSVbGTl78TYp+ATa9sUy3O5TLiLvwhpbE=; b=R7fHRVSCnJM1Fvt3miYqac8dVSS+P/TYHXh+hxwHuga09X326gSWdV8shVzB5isieC njNCdZZs/N55xKuVsx6SbMIZMAyRLn9kf5QjVijZ7pv1NI83lJFGFlu2ajjOIxYb57ER Hw1CryNzIXcMDYJ7HqW1s/rI5VzKAmsxWJ9e7xWgVfRHSR7+Svo9w0h3FP3BPufDOnFN hmEbmikiCvUmWgSt8zhhBKlKQAX9u/RGIBlJJyNeXVvcivYDz4WoTzuvn4BxLwpHKU0f MJCVHyods8HpdzYvo6JF/hLP1R3IktrF3NoLUzJdtPC3z4PKA3g27EAm5i2S72QZ4heG EIbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V80vRkHz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y5si17177096ion.91.2021.08.24.10.32.56; Tue, 24 Aug 2021 10:33:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V80vRkHz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241456AbhHXRc6 (ORCPT + 99 others); Tue, 24 Aug 2021 13:32:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:35160 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239733AbhHXRaD (ORCPT ); Tue, 24 Aug 2021 13:30:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8CF5561B48; Tue, 24 Aug 2021 17:05:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824737; bh=TmRaknQ/+uPAoF/VnGCfCnrkIPRMKcViO2PEo6DbAVQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V80vRkHzUq72xXZXb+AEXq01nnu1mDag4DQT58Vp83MVieqJfDRTSGgWZ5MJx859u 3ApAwOh44hIxdg/X1qiKE0xlJGg7vZp0YeixFQqH9nWOdQaCdLSRT3cnJjTz+c+RWF YjWPw8k7kFwxQqlgFJXLgqS8PS0jkOlA5jWomj/1hGhrdFLNXhzfrfipVrOKciAhxH dWexd6aPTYxejIZcyB1KjJzNS/DnMxpQj8WcYrp/KJIawmn07nib0Q7upqQavX2Ez6 pz2ib6synx1j5zXT15qAvx2fWCKPzQBtasJfoMgcyR83Yrv2zWqt2ctaoTLl/+zh6U pVM8VqKY8OlrA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Dave Gerlach , Kevin Hilman , Tony Lindgren , Sasha Levin Subject: [PATCH 4.14 40/64] ARM: dts: am43x-epos-evm: Reduce i2c0 bus speed for tps65218 Date: Tue, 24 Aug 2021 13:04:33 -0400 Message-Id: <20210824170457.710623-41-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824170457.710623-1-sashal@kernel.org> References: <20210824170457.710623-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.14.245-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-4.14.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 4.14.245-rc1 X-KernelTest-Deadline: 2021-08-26T17:04+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dave Gerlach [ Upstream commit 20a6b3fd8e2e2c063b25fbf2ee74d86b898e5087 ] Based on the latest timing specifications for the TPS65218 from the data sheet, http://www.ti.com/lit/ds/symlink/tps65218.pdf, document SLDS206 from November 2014, we must change the i2c bus speed to better fit within the minimum high SCL time required for proper i2c transfer. When running at 400khz, measurements show that SCL spends 0.8125 uS/1.666 uS high/low which violates the requirement for minimum high period of SCL provided in datasheet Table 7.6 which is 1 uS. Switching to 100khz gives us 5 uS/5 uS high/low which both fall above the minimum given values for 100 khz, 4.0 uS/4.7 uS high/low. Without this patch occasionally a voltage set operation from the kernel will appear to have worked but the actual voltage reflected on the PMIC will not have updated, causing problems especially with cpufreq that may update to a higher OPP without actually raising the voltage on DCDC2, leading to a hang. Signed-off-by: Dave Gerlach Signed-off-by: Kevin Hilman Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- arch/arm/boot/dts/am43x-epos-evm.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts b/arch/arm/boot/dts/am43x-epos-evm.dts index c4279b0b9f12..437e8d2dcc70 100644 --- a/arch/arm/boot/dts/am43x-epos-evm.dts +++ b/arch/arm/boot/dts/am43x-epos-evm.dts @@ -411,7 +411,7 @@ status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins>; - clock-frequency = <400000>; + clock-frequency = <100000>; tps65218: tps65218@24 { reg = <0x24>; -- 2.30.2