Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2920916pxb; Tue, 24 Aug 2021 10:38:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9xiv/T+sKVyPuoD+wKm4xDu3KxpLEHef/l7fjMibOTrKiQqdWk0JqUt/AJ+N0glLFhtjE X-Received: by 2002:a02:5442:: with SMTP id t63mr5720641jaa.7.1629826691901; Tue, 24 Aug 2021 10:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629826691; cv=none; d=google.com; s=arc-20160816; b=MNp1v7PWsZmLdHVhpc4nGKCNJpde4P5lcPEZpFZ+2qqGt5uVZ3Sjz7YwMxBOKiYdMx 48F4LNA2Nbj+L1OWIGmmVYRjos4qHN1/Be1Y6KDuTxD+TwcFkGns/PYCPMQqExsP+ciy e4UTrrQMxOIP3wYSftSO0M6w+kyycmSDG/balH0KMZko+T3zPXblv9u7a5UL2HI1INL+ SK8hYww+m1TBRJwzSzqn7iVc3MiPXOtAixcfHKwJny4XNb++vfyKKOLKxMgy05L8WBm0 SMfe09Ry0AmzpprFkndFF2q+aRhwuhxUVY2JsynDh37MSWz2sA/jkMiJTxupxBD351xa JfbA== 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=ddSRRJSISjB4Wlq4q89ZvNlLXEwjC2D2D8mqvZX8bJQ=; b=vkL4bXMf5vO6rQnhbuV1CkGFGP3uccOsJ5v23FHYQMBs4DGThwAH/ekMSBsaxHoPTr xqbOggUl0zDYQwvINmobUcR2lGBtUDENqzb3hqcjBP63UADoRyGni+r+aakYxaFiX3n/ BmZbPn+r5zPT/IyFr9a8NYDZpC7qGRNYDXLLN+OWTm8sU09ByOfg/NRvfRVwHC9iHqlw NzWdvdZNlNizFEnVE2WHu1QiDZWsJg1kWohwHIYi8Ld8zw+j8+uq9IcF+fxeAHb0smfG me+ga3kXoS4azS28v2hogm83eSbMsduDI9E35s2W92aBbzTwO9FCL+LQFBt1u8ACLjS3 mbVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kZGdHKNb; 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 p31si21609094jac.95.2021.08.24.10.37.59; Tue, 24 Aug 2021 10:38:11 -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=kZGdHKNb; 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 S241520AbhHXRiD (ORCPT + 99 others); Tue, 24 Aug 2021 13:38:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:40672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242109AbhHXReh (ORCPT ); Tue, 24 Aug 2021 13:34:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8EE9661BBE; Tue, 24 Aug 2021 17:06:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824800; bh=cU9QmO1LiYcxrXOpyuYREOW5jkqBYf3CEvYfa6/YzVQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kZGdHKNbFxDAg7SZqCC8a4lW9zGSmxmPqe+YEStIzVOCISgUiG2gTcJf98htuWMJC HuhDd4vqkGbE9ruymllP+3h9zpYDpOSfV6UzZrrABjmJlDv23lfcVQmiH3NKPhtbRi i+rgnR2OxlS9lLyouWpbS4hjwfkTOTrU9HFhTrtBa8z20DL8vav9PFJA7m0b7IlMes y9nJRoIR7VxiPPdtGi36LE+lRCzWmlp1qftXDvxvsWNQWLFqU2+DLbzgOt1V1KVyjM 2vLEA5VWSuROIqA30Eho1uK6ou6tmWUMriZEp9U5RBFxrPEJfguHnVcifC6ivPKdKN 1eZS+TNlIXGXA== 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.9 24/43] ARM: dts: am43x-epos-evm: Reduce i2c0 bus speed for tps65218 Date: Tue, 24 Aug 2021 13:05:55 -0400 Message-Id: <20210824170614.710813-25-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824170614.710813-1-sashal@kernel.org> References: <20210824170614.710813-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.9.281-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-4.9.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 4.9.281-rc1 X-KernelTest-Deadline: 2021-08-26T17:06+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 21918807c9f6..f42a92391289 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