Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp667432pxj; Thu, 20 May 2021 19:26:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyF8yiKudXxz2wyOoI1ql6SSTj3RLBjue4I+R1u9uktmw4kujTirDeifdVXOFNBBjyrwQGN X-Received: by 2002:a02:7354:: with SMTP id a20mr837622jae.94.1621563979209; Thu, 20 May 2021 19:26:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621563979; cv=none; d=google.com; s=arc-20160816; b=Pooaqew0RegaWL8DZXcTFVFqnbdDGppK2yk3Bp0FgzOHI/7SWFEsgbTHLwVtxZ/MUT Q3TdclzdNY6oJ8XBOibxOntuMJidf/IFgEPFi8u7OhR25JdG7I47q/aWhtnexqoj0bMl k845Kyxbs0V0R6cvx+iCAQd7/EHoD8PvJoEJSnz+HVNDOflvOSoFh5I58zx+1/n3r5RH 8UOnPfv7ALLz9+PR4rjRq0cr4hnM7+mb5cV2vssEFh0hFtquMaUUfVQvomkmZZR2ZwDS Nhal0H7jQhcuZiODTbASZ+ixJ0uW3X9/1PbSYsFOUPGWDG7M0sa+IpjgUCnXJf1XeTPU UKbA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SYtTHed5+bcflT7W1MwJxVtTplHwdof5DPlJCzKg/GU=; b=h8EoreqH1UrstmPaDobH/jcdW+0UeLlKNSivvF16jnYmfathljietw9IRHz5SFAncZ uN8J2clSREpCL5Q37PUKUbElBdDq4QU3b4BYwtitA6ijtOdtcOwU2OdXcS/Q3KOPyoJL FKAsEVbOD8A1cj+Rq+irjORb0xhw9jlMzwt0A5YfJGg9dCoMQnlIwFKbF3waKA1r4RKT x8SUjpB9+jLyclvikDbUEDoleR6BRe7RNgohfHlnMvq8rS9Lp/fp8DvFC24PUPYm+G5O boD4m266dW2SGqUS2rXsq+wgAnjhki6I3j1m3VJvoVb2DI5fHxJ3p5ppC2HUgaoMUVy6 5j4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=wHzSjTiw; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w12si4441033ill.144.2021.05.20.19.26.06; Thu, 20 May 2021 19:26:19 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=wHzSjTiw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233937AbhETMZo (ORCPT + 99 others); Thu, 20 May 2021 08:25:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232382AbhETMZR (ORCPT ); Thu, 20 May 2021 08:25:17 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 154E5C0AF780 for ; Thu, 20 May 2021 04:21:13 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id z130so8948214wmg.2 for ; Thu, 20 May 2021 04:21:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SYtTHed5+bcflT7W1MwJxVtTplHwdof5DPlJCzKg/GU=; b=wHzSjTiwKXBcRbEJoWYfBbHsBACdQyin173EJ35ibk/Le84pDQz22+ydLN+s2rjISy I+JQrHpSULjWpslolZhZ5oNzuFn6Jm4Xfez874QzyEF3o1vjZLDKl5RfL6iEpjDpTU6E GsWAE200CVFWmzZB0jBnSHQiysNZqmuHA4QBYeUZNk7kY6BB8Z9W7JH+a6/3a+lWNf1q aiDoJJPNe7khmZ6EHXZO1bhn6GXd4F7Hp/o3NyaiFDPEhbKCcue5aqXjPfe0cBmp8TKB DNHKneadShb9fVu0FQOnKh4P481VVKGXrk6C+/s6sN3zz62tMKeeqha/+VCFc2gHYup/ yVdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SYtTHed5+bcflT7W1MwJxVtTplHwdof5DPlJCzKg/GU=; b=hHxrezSJjRCLIF6bc9/kzY34gDUH9ZKRX7vooOw9sFhQvIPLYroawapJUPoY7l9NA8 W1NZKggodiqfV9Tl1DOSmLwA5ZdEbSjQrpokX0nQ/MJpdjiZ2hml0GApkBst0LKUEO8q N1m8DvcA4zALS4Rd77Nj3Ooc7x9u0a+xleix3/E713dGtLy98IIN66BC8HRezJa1+mT+ N8GemvfngSMBKrg9/w7w6E/fkNiGctNspXEaMl9o2GPMZfJMSwkF7BqQZFfLlcGGYNR7 7r9d5u6U4ZLqLu5yvmv58x7kerF5dJbfyRD4UXKS7lRNIAoHjsTDhqLq4CHLLuuDhcHr l1Lw== X-Gm-Message-State: AOAM533X0fCVefLZuzAnOishkUyuXXUUhoRBeoVuDN6gaSec77VGkJny +OI8cEAcJ0uwsLxsD8eqcmR8moAQ+j0V2A== X-Received: by 2002:a05:600c:5c1:: with SMTP id p1mr1599688wmd.10.1621509671651; Thu, 20 May 2021 04:21:11 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id o11sm2756646wrq.93.2021.05.20.04.21.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 May 2021 04:21:11 -0700 (PDT) From: Fabien Parent To: Qii Wang , Matthias Brugger Cc: mkorpershoek@baylibre.com, Fabien Parent , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/4] i2c: i2c-mt65xx: add MT8365 SoC support Date: Thu, 20 May 2021 13:21:04 +0200 Message-Id: <20210520112106.77190-3-fparent@baylibre.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520112106.77190-1-fparent@baylibre.com> References: <20210520112106.77190-1-fparent@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for I2C on MT8365 SoCs. Signed-off-by: Fabien Parent --- v2: No change drivers/i2c/busses/i2c-mt65xx.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65xx.c index 5ddfa4e56ee2..0e6ad84e0e47 100644 --- a/drivers/i2c/busses/i2c-mt65xx.c +++ b/drivers/i2c/busses/i2c-mt65xx.c @@ -404,6 +404,19 @@ static const struct mtk_i2c_compatible mt8192_compat = { .max_dma_support = 36, }; +static const struct mtk_i2c_compatible mt8365_compat = { + .regs = mt_i2c_regs_v1, + .pmic_i2c = 0, + .dcm = 1, + .auto_restart = 1, + .aux_len_reg = 1, + .timing_adjust = 1, + .dma_sync = 1, + .ltiming_adjust = 0, + .apdma_sync = 0, + .max_dma_support = 33, +}; + static const struct of_device_id mtk_i2c_of_match[] = { { .compatible = "mediatek,mt2712-i2c", .data = &mt2712_compat }, { .compatible = "mediatek,mt6577-i2c", .data = &mt6577_compat }, @@ -412,6 +425,7 @@ static const struct of_device_id mtk_i2c_of_match[] = { { .compatible = "mediatek,mt8173-i2c", .data = &mt8173_compat }, { .compatible = "mediatek,mt8183-i2c", .data = &mt8183_compat }, { .compatible = "mediatek,mt8192-i2c", .data = &mt8192_compat }, + { .compatible = "mediatek,mt8365-i2c", .data = &mt8365_compat }, {} }; MODULE_DEVICE_TABLE(of, mtk_i2c_of_match); -- 2.31.1