Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2897986pxb; Tue, 24 Aug 2021 10:07:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxz5xA88wXHc3CE928ZeL2eCNIF0aZFFmb2DPePmqRVYv1NHC3ts6GadteTYaVQLJpBfPj9 X-Received: by 2002:a02:84c2:: with SMTP id f60mr34994606jai.133.1629824862012; Tue, 24 Aug 2021 10:07:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629824862; cv=none; d=google.com; s=arc-20160816; b=m+9PcyEwj2Uu2HN9P7HMh2/JOTijMtLYXhZDF2/IwuY7JdN/ABsNKu/3YXhnI33h2q eIk960rGnuIVCuKarAHHl/+MpJhQzJruJzheguDfHHmYnOOs6qfGHkfK/B4cbW0EcGDd 6JzZGxjhknACFj0poZ1fiu18yu6VP2qexh8SRLp9GsnBqnqAtw6ttxh40ADxPq8rKFJW RwwypDSNMDWZcrEyifeYJQigbhoucoC9limsbxRZzDM2QODDksCmZNNmo446K0aa4MV5 OWqy6/xqQU3Q61aF9RQFZjQ+ZR0WEX+ya7Kc++jDY/gF+TPzbrAW70UmCTSQogst046a eWDg== 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=DnrKpXBYVV3oWiX7y7dfcxbokcKFN/yvuPyPlBkOJAU=; b=fiWL6riY3q4cLZ77CFa1GqDpuxbmXXsbotxPwGYrbthAoLzzr8K2BrjiTxSkvMwZad ryEXBif2emJOFVugMZEJ69oLAC0BVq+Eo5828Do4zNX0PnHBv+5akSrVzL4PaWQAePoL phX/vAZBdPFMJbVvjEJd3NIET7Cg5CsOxDLjtZf/4sQHUc2/helxXX5iv9NXMVAP8skh 7WVA0tEg4Rt7S4aPxEYkwB9DXicfYCuiPZ9XWX9THgNDra1wQ7o+KsVqGCmFlDNi7lAc oEYWITzr0W3xJ38gyU/ff5D7okmjPkDWpUsGYoAKdf2caJ/c9qExvBLQb5aJrzMOO73H wHcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V+RestEB; 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 d4si18473260jak.4.2021.08.24.10.07.26; Tue, 24 Aug 2021 10:07:42 -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=V+RestEB; 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 S234848AbhHXRH2 (ORCPT + 99 others); Tue, 24 Aug 2021 13:07:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:46234 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239716AbhHXREs (ORCPT ); Tue, 24 Aug 2021 13:04:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CF4A361528; Tue, 24 Aug 2021 16:59:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824370; bh=hmiAuGvDMEHw/MPDXtTgBIuj2w4uBIlK6gNECyNFkcQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V+RestEB9yRHZTMNvMWGUxNW7d74EC+RJqc5vLPJz1GZYPToOmpfMxMVo77dpSUxB E0uGlm8UeMEqUJqL07NMTM+tZLFB0yhfDc9L8K/xYZ6uhRM97gxL3FpvGb+wkCsq/y +s+6AgEDO6gQkL/vyIxkWQApuuiLxJ6eM1sjQUjsEW9JKV8zFUp2oNaxj9rIG8gbl6 MVLHBl44butnYh9wHW+Y5HjNeX1TDoW6uhGOPzVDn3aQUr5mGna+dPMqODyPhQyfet c2AjXg3pG/I0wgmPAfsB6dytdvVxmRgwqKVNDiol2kW/69hx1IN9HIyhSJH2utAdTD fakaxYtfYXQZA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Dave Gerlach , Kevin Hilman , Tony Lindgren , Sasha Levin Subject: [PATCH 5.10 20/98] ARM: dts: am43x-epos-evm: Reduce i2c0 bus speed for tps65218 Date: Tue, 24 Aug 2021 12:57:50 -0400 Message-Id: <20210824165908.709932-21-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824165908.709932-1-sashal@kernel.org> References: <20210824165908.709932-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.10.61-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.10.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.10.61-rc1 X-KernelTest-Deadline: 2021-08-26T16:58+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 8b696107eef8..d2aebdbc7e0f 100644 --- a/arch/arm/boot/dts/am43x-epos-evm.dts +++ b/arch/arm/boot/dts/am43x-epos-evm.dts @@ -582,7 +582,7 @@ status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins>; - clock-frequency = <400000>; + clock-frequency = <100000>; tps65218: tps65218@24 { reg = <0x24>; -- 2.30.2