From patchwork Mon Mar 11 05:40:34 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: 10846715 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 2A44F6C2 for ; Mon, 11 Mar 2019 05:41:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 112CE28E19 for ; Mon, 11 Mar 2019 05:41:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0479828ED5; Mon, 11 Mar 2019 05:41:59 +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 AAF2128E19 for ; Mon, 11 Mar 2019 05:41:58 +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=JFuRuc5WuvNTuG5l19n7SeBq32p7qdjzREj8jHDeaBg=; b=UOgVSg3plXAq6J Ts+4tcbE4VRMYUNJwYVImM5MpBWQcHZ993O+FIzXoiY79bqWdw8OBbJj/0Lx6zLg09faRi4RDF+Yx ZafNeIPz+fDQedo3Hw6LhXuHo8+O0er6oJZBs0Empi6fi8TOy/6uuB91iDdSuBeglzOFLo5Fhvyge sqO17zwih/bmpzMwhxPDrqfUZDWOIrmzkS+tgnNyAV07JjXB4U2GF6/NHUpGx7ICfdDPReI483tpW givax5fM6N23Ew8kpF3i3+ZJMC6zZMe6ViJFpLsw84AYAyaong+j+eEOLYsSf7l6DLsQePm9+o6f3 XBI8cRPr/Bph0cOWCJKg==; 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 1h3Dh2-0003p8-ES; Mon, 11 Mar 2019 05:41:44 +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 1h3Dgc-0003Dj-TL; Mon, 11 Mar 2019 05:41:20 +0000 X-UUID: e1aeb525b58a4bb1a7a3f5baca810309-20190310 X-UUID: e1aeb525b58a4bb1a7a3f5baca810309-20190310 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 872614755; Sun, 10 Mar 2019 21:41:11 -0800 Received: from mtkmbs03n2.mediatek.inc (172.21.101.182) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sun, 10 Mar 2019 22:41:09 -0700 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs03n2.mediatek.inc (172.21.101.182) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 11 Mar 2019 13:41:01 +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; Mon, 11 Mar 2019 13:41:00 +0800 From: Qii Wang To: Subject: [PATCH v6 0/6] add i2c support for mt8183 Date: Mon, 11 Mar 2019 13:40:34 +0800 Message-ID: <1552282840-12778-1-git-send-email-qii.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-TM-SNTS-SMTP: 49EEDC9833C41D4A7A8C635CE863D998353A8222888F30AB380AA5CFE76CA8682000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190310_224118_946529_23941DA2 X-CRM114-Status: UNSURE ( 7.10 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This series are based on 5.0-rc1(i2c/for-next) and these series http://lists.infradead.org/pipermail/linux-mediatek/2019-February/017570.html http://lists.infradead.org/pipermail/linux-mediatek/2019-February/017320.html http://lists.infradead.org/pipermail/linux-mediatek/2019-January/017196.html 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 | 190 ++++++++++++++++ drivers/i2c/busses/i2c-mt65xx.c | 255 ++++++++++++++++------ 3 files changed, 387 insertions(+), 62 deletions(-)