From patchwork Tue Apr 2 12:35:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?UWlpIFdhbmcgKOeOi+eQqik=?= X-Patchwork-Id: 10881511 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B8BBB13B5 for ; Tue, 2 Apr 2019 12:36:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F6BC27F60 for ; Tue, 2 Apr 2019 12:36:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9372C28305; Tue, 2 Apr 2019 12:36:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4476827F92 for ; Tue, 2 Apr 2019 12:36:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=RNoPon6lp17zHph/y+Lhelcu6w6RRIPIUwQNjrg3Vus=; b=APe55wQ8ldE+kw A1eXjQ7Ie1UlU4e7Yr6aRjQdHaLL/TccAfHD8ZgsDHbRWvNQGAlEc2dXES5lRWvVV+L9AIWy+BQyO 7+JpWt0WzZzDH/XrKKCrGss2X7JTjLsTo9fJnrsMSVW+HaiCrip5XivhX3Lw0RG2VHpoJhioXsnFD rRloSjznVUb4zMxxXFHRwwTUeWL1Hhj377tqZ6QxRf0/TlG85E09yH84YsnX/8AEcZLvwx/Fcy+Sv M9+ZBlKyb1dQnTurIBElJ/CobI02zoRk4lb++/AKIZtq0xb1KaXMXAwvC4g+Ocf32rUKx7wio3saM eY700zU3HwHVzCFvm5kg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBIed-0002xW-7a; Tue, 02 Apr 2019 12:36:39 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBIeL-0002dH-OF; Tue, 02 Apr 2019 12:36:23 +0000 X-UUID: e0c113b96e6541bdb5efb236a7059418-20190402 X-UUID: e0c113b96e6541bdb5efb236a7059418-20190402 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 424504174; Tue, 02 Apr 2019 04:36:10 -0800 Received: from mtkmbs03n1.mediatek.inc (172.21.101.181) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 2 Apr 2019 05:36:09 -0700 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs03n1.mediatek.inc (172.21.101.181) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 2 Apr 2019 20:36:07 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 2 Apr 2019 20:36:06 +0800 From: Qii Wang To: Subject: [PATCH RESEND v6 0/6] add i2c support for mt8183 Date: Tue, 2 Apr 2019 20:35:54 +0800 Message-ID: <1554208560-14817-1-git-send-email-qii.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190402_053621_788574_9AD871A8 X-CRM114-Status: UNSURE ( 7.60 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, qii.wang@mediatek.com, srv_heupstream@mediatek.com, robh@kernel.org, leilk.liu@mediatek.com, xinping.qian@mediatek.com, linux-kernel@vger.kernel.org, liguo.zhang@mediatek.com, linux-mediatek@lists.infradead.org, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This series are based on 5.1-rc1 and the patch https://patchwork.kernel.org/patch/10856987/(for dts) We provide six patches to support mt8183 IC. Main changes compared to v5: --add i2c controller nodes in mt8183.dtsi --add a note that old i2c controllers also have I2C_ARB_LOST bit --add a flag(ltiming_adjust) to avoid unnecessary settings --add Reviewed-by from Rob Herring, Nicolas and Matthias Main changes compared to v4: --modify the commit of arb clock dt-binding --split a patch(3/3) into three(3/5 4/5 5/5) Main changes compared to v3: --remove the patches which have been applied to for-next --remove i2c fallback for i3c controller Main changes compared to v2: --update commit message --add Reviewed-by from Rob Herring, Nicolas and Sean Main changes compared to v1: --remove useless dt-binding for mt7629 --split a patch into two(2/6 3/6) --muti-user feature was dropped Qii Wang (6): i2c: mediatek: Add offsets array for new i2c registers dt-bindings: i2c: Add Mediatek MT8183 i2c binding i2c: mediatek: Add arb clock in i2c driver i2c: mediatek: Add i2c and apdma sync in i2c driver i2c: mediatek: Add i2c support for MediaTek MT8183 dts: arm64: mt8183: Add I2C nodes Documentation/devicetree/bindings/i2c/i2c-mtk.txt | 4 +- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 192 ++++++++++++++++ drivers/i2c/busses/i2c-mt65xx.c | 255 ++++++++++++++++----- 3 files changed, 389 insertions(+), 62 deletions(-)