From patchwork Mon Apr 10 16:19:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 7965 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2016539vqo; Mon, 10 Apr 2023 09:44:02 -0700 (PDT) X-Google-Smtp-Source: AKy350Z4x3wp02zHQxSq5ini9bR9zsm1h9H3hN2uj9WMHfUKNB8dh8+/4ieMZce+H2FzOd0Arw0E X-Received: by 2002:a50:fa96:0:b0:504:8b91:5cc7 with SMTP id w22-20020a50fa96000000b005048b915cc7mr5780814edr.11.1681145041879; Mon, 10 Apr 2023 09:44:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681145041; cv=none; d=google.com; s=arc-20160816; b=GN98RP3wuYg6SAIKGmbPb8SzXOE+yZytXBT0XmUgFCNQ50nIhcz7FMTRXpW/MCNB2x iv+RfjXxogw9GgbMR+fa38SVLsshG7sKCTCMeu84m2Z4Qe3FfBn5Bw7DNvSqMkPBkTqc 4hJuSMUMEwRBT2QO7b28Ndl3hYH3gfc1znHhfS44uoN1cpOujk6JAHxhoMCdMvj4UFed MnnBtBMRRTyebXBIC5fkEW+Jp6j1xP+TGMFM8vv4Qaf2Ipht2Vyxf0zTgs95dGolKsaN SA7KQIEnlMpLmVM6eL9rBGQ+q/nrn9kDymv1ihEubT/m/gGZShDpHzxfAlXZm8QkZoI0 JBKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date; bh=PfjhdfUqhNdWDXkS6wpQJmFbKDtFfNdoftXgajcPRcE=; b=CBcY7hC5+ko/7zEh/pqXQaZYQNHTveuvsAniulvS6xxZPfJcccMu5vLJYSfbpaJiZG Z6Stv1AODH46s19oSjfyMQR8OrDH2MRxAmtcbi6Uu6mcbyghQh3cKvZHZ4cD91wJpa1b IUSYmB7CSEN2JTzBPxxtGXvzheor+F7IfYqVqpujPgvdEx2/gnT0ImY0SBpZF1qFUwPb 2qATPqK/X7r9cms38ZMxV0tlMp8a9HU3P2as0fhSDrcIw1NFmbM+wk0urHENVtMT6ONr 9XBXREYaAP3L7QS+bhVw+gWl8iRjRtUGadly+ghsN4GdEd1z6XWwaMHRC+5dcfjOshOa xv2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id vv11-20020a170907a68b00b0092c848d8805si9484942ejc.217.2023.04.10.09.43.37; Mon, 10 Apr 2023 09:44:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230236AbjDJQTY (ORCPT + 99 others); Mon, 10 Apr 2023 12:19:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbjDJQTW (ORCPT ); Mon, 10 Apr 2023 12:19:22 -0400 Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB88A131; Mon, 10 Apr 2023 09:19:18 -0700 (PDT) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96) (envelope-from ) id 1pluEZ-0004v2-1O; Mon, 10 Apr 2023 18:19:11 +0200 Date: Mon, 10 Apr 2023 17:19:05 +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 v3 0/2] i2c: i2c-mt65xx: add support for MT7981 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762808343464330015?= X-GMAIL-MSGID: =?utf-8?q?1762808343464330015?= 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 commit 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 v2: * bindings come before patches using them * remove reduntant word 'bindings' from dt-bindings commit Changes since v1: * add missing commit description * add link to commit in MediaTek's SDK to cover letter Daniel Golle (2): dt-bindings: i2c: i2c-mt65xx: add MediaTek MT7981 SoC i2c: mediatek: add support 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