From patchwork Thu Apr 6 21:41:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 13204248 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D59FBC77B6C for ; Thu, 6 Apr 2023 21:41:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Message-ID:Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=b/w+58CgMgPxwzEz1wDCtqfEVfdVjCsV9YvLiQe/kQc=; b=PdbDi+8NPmujj0nHK2+EzZC2/R 3ISK3tSCXKtgSB+tOnXkmAixthplk/OWCbiUpOZrJj58Tm672wfbPnt+xX+iJKv5hhcPHgmWYxk42 tf+vQvp+7fsZvL2Fcfl0HVPD0AnpFz7Xv2+bPJuDrlcOvzcwMmlPMq3vbrs+zaauC3luzlGQYYKc/ CnzHWjFygK7uIDZq1rwsVI/OC8TH2PD0hJ7mm9K5cLY1csCT50+NZEtNpEnZsLTlWg88TlSDdN4cN VSdb/Fd9GDFEevPu/AqfwprQMWKgQnOcmLEIu2K8ajR7qyl0v2FOijGHu89LMhCqOAXlr44f8NtgA 37Cd4S8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pkXMJ-008f1X-2m; Thu, 06 Apr 2023 21:41:31 +0000 Received: from fudo.makrotopia.org ([2a07:2ec0:3002::71]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pkXMH-008f0C-0D; Thu, 06 Apr 2023 21:41:30 +0000 Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1pkXMB-0004rF-36; Thu, 06 Apr 2023 23:41:24 +0200 Date: Thu, 6 Apr 2023 22:41:18 +0100 From: Daniel Golle To: linux-i2c@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Qii Wang , Rob Herring , Krzysztof Kozlowski , AngeloGioacchino Del Regno , Matthias Brugger , Sam Shih Subject: [PATCH 0/2] i2c: i2c-mt65xx: add support for MT7981 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230406_144129_100846_D1A1A049 X-CRM114-Status: UNSURE ( 7.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Add support for the I2C units found in the MediaTek MT7981 and MT7988 SoCs. Just like other recent MediaTek I2C units that also uses v3 register offsets (which differ from v2 only by OFFSET_SLAVE_ADDR being 0x94 instead of 0x4). Corresponding patch in MediaTek's SDK: https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/472dc5cf11d4359cb3e3f80577dba22df0696e43/target/linux/mediatek/patches-5.4/0901-i2c-busses-add-mt7981-support.patch Changes since v1: * add missing commit description * add link to patch in MediaTek's SDK to cover letter Daniel Golle (2): i2c: mediatek: add support for MT7981 SoC dt-bindings: i2c: i2c-mt65xx: add binding for MT7981 SoC .../devicetree/bindings/i2c/i2c-mt65xx.yaml | 1 + drivers/i2c/busses/i2c-mt65xx.c | 13 +++++++++++++ 2 files changed, 14 insertions(+) base-commit: e134c93f788fb93fd6a3ec3af9af850a2048c7e6