Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2632085pxj; Mon, 14 Jun 2021 03:33:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvnHWoMujjH7IX8x4i3hRDLtvJQ6yIgXzdStuqI3nvA2xKSXW2NH6P/xwr9pKK7dcWD800 X-Received: by 2002:a17:906:f849:: with SMTP id ks9mr14115956ejb.402.1623666812260; Mon, 14 Jun 2021 03:33:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623666812; cv=none; d=google.com; s=arc-20160816; b=rXOjw4hy8SclL15oLPNFZpiygNRMsQmO7MV3boAf9eHQ2foQx00UVyTtUl9eAPjeym UQ9tLJtYyG9TP3ajfym92rap5qgTxRoeoqoYZq6d7mJUixlxFxepy+SojJHwCR/ZPieq ZRs341D1N/VlOu8BGrW/nJ77BcczzowgC1YPi8elSPvmplM2jRyZVgY/fkhWZWReceMz nrNDKUKOrNChedjdI2feP2bTIdHetxH7P7ZFysy5vgyNkccUuGdNNWlqzkmkgO9SvYTU tRTYZrkVUhRoH00rvlME16riT6aeZCuKA+a9QCDYguLU3mIW/4CCcdE6gtFBcW8Sxd9k qc+A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9z6wVTPpnUAjklRztFcm/eHKIUytf9xORtbSYqC7oIY=; b=M6T1Q76qfNK/+Vei+OWqzwYGsKK4LO2FtkqprxXrzQgk4i9uhDh3mXrLw/w2RXg2Es 3hR97inf2/viZ1nK52V9nXfi5XdsUAW8R+dzBL7VyrWOV/eHKFmSBI6HVFmxl8ajpxcu gWGDElnK2skVOwukzEzSLSdd6g2lTyLL6B+YDDDcV+cfE+DXOY2Yahz4Ez76UMRpu5bZ tUNq9H7rJ2QVyGDcMfxhG8pw171XVSWrFsHf17vjwGPGh2gBJ62UmoYl43ouCv2vnwXn oqkpWUfokNl1Y3FPkKN1uygRVF99ggJCidYcwzBqY4rF+ikg5GJIj61GeB/MG7n/wKDB ZuVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sQV9KrUt; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x19si11394582ejs.382.2021.06.14.03.33.09; Mon, 14 Jun 2021 03:33:32 -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=@linuxfoundation.org header.s=korg header.b=sQV9KrUt; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233215AbhFNKdO (ORCPT + 99 others); Mon, 14 Jun 2021 06:33:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:38674 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232861AbhFNKb4 (ORCPT ); Mon, 14 Jun 2021 06:31:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 61DA9611C1; Mon, 14 Jun 2021 10:29:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623666593; bh=Wxtvq9eHMKPN54ne+ZQrK/BlFetohqLhABaJbiMUsWE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sQV9KrUtoYhDU1KJFFDFBhDPYo5foXAh/r7GLh5xEnZgacyVDqYP9bgEyYNlAPqzd jQOOjkOLoVFgkePJg8CrSvNcsyUGzDvvNH7QUYx7dx7yyf5khqvdPVS1G8SWa5skyZ LJ0HQquNqK3HbRHazKigAnUuH/5QThBVxTaEXc9U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chris Packham , Michael Ellerman , Wolfram Sang , Sasha Levin Subject: [PATCH 4.4 15/34] powerpc/fsl: set fsl,i2c-erratum-a004447 flag for P2041 i2c controllers Date: Mon, 14 Jun 2021 12:27:06 +0200 Message-Id: <20210614102642.078248318@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210614102641.582612289@linuxfoundation.org> References: <20210614102641.582612289@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chris Packham [ Upstream commit 7adc7b225cddcfd0f346d10144fd7a3d3d9f9ea7 ] The i2c controllers on the P2040/P2041 have an erratum where the documented scheme for i2c bus recovery will not work (A-004447). A different mechanism is needed which is documented in the P2040 Chip Errata Rev Q (latest available at the time of writing). Signed-off-by: Chris Packham Acked-by: Michael Ellerman Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- arch/powerpc/boot/dts/fsl/p2041si-post.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/p2041si-post.dtsi b/arch/powerpc/boot/dts/fsl/p2041si-post.dtsi index 51e975d7631a..8921f17fca42 100644 --- a/arch/powerpc/boot/dts/fsl/p2041si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/p2041si-post.dtsi @@ -389,7 +389,23 @@ }; /include/ "qoriq-i2c-0.dtsi" + i2c@118000 { + fsl,i2c-erratum-a004447; + }; + + i2c@118100 { + fsl,i2c-erratum-a004447; + }; + /include/ "qoriq-i2c-1.dtsi" + i2c@119000 { + fsl,i2c-erratum-a004447; + }; + + i2c@119100 { + fsl,i2c-erratum-a004447; + }; + /include/ "qoriq-duart-0.dtsi" /include/ "qoriq-duart-1.dtsi" /include/ "qoriq-gpio-0.dtsi" -- 2.30.2