Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1680564pxj; Wed, 19 May 2021 11:18:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7umeyYS/QLrljJddukjjDnOhFZNuAfLg+x8UFUtO6yLOM5jD1ziaKEQTZZuMdldpbzLbe X-Received: by 2002:a05:6402:1ac7:: with SMTP id ba7mr346657edb.299.1621448337715; Wed, 19 May 2021 11:18:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621448337; cv=none; d=google.com; s=arc-20160816; b=z8WWc3XO9RTsSl3Uy7rNuwizsDepy0mgI8kI2YrREIo5n+ZbDwUuSgnAbQfTjgEZOt o5nD38jJxo/Svvtujc2nTKGDj63CufBtrNCwfXoFgpGDZqXYuuFZ7El0MQ3IfjQdO5Ju KpNMx/aauC+v2/8FH9LPTwvomDpAyOF7qcb7OTaCpFlGgX9Rsk2tNdbBDQytO8vBPPIR 4vv2h3L/RzuDKM7qtSFmaAwsr4KF1jQuEhe3rW2kWEIPLQaRsusc+qt+shVR+Ce4zyRi 8haQmQIbaBaOaPEd4Ss1X6LpUINBtq91qrBDVrbFMuOhT/LlL6JvYA8aZyvwQKraM0f3 MKWg== 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=vurGL64Q3SxR/3rC1VvdPqxLLlL5m2GaEVxxxuUXcnk=; b=NPDdD5cFyEcBCvS5v1Luz+ShELcdHfw1mnWHcLaOX1HI/H13om/w0Uyt4V1TVy5Bcm XT5GiIWfGkGOK2y9YRajIcQFJIaPg34XsGcZPWdw6kwQBvVBo7CYZwlT4zMGMHrpvHGw yU1R1bO64QDLOfsNrvKT3hIUnFPXyVMb7MkG5mFywOrg4vs6jWf6JK+qEmVd8NPe5j2d NSOfIjUBVsCAapZdPa+IW2l9DD85z4IJaxHNQe/5fDZOziLXBusiyyWItBng3TUa8jZu 542WnnW3MoTymq/R390QQ00ON2vCgV3rLt+1JHGXaq0bIrQLxwvg9m3e7scruuHiso9n Frqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ADC6wtP2; 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 w16si15915368edc.238.2021.05.19.11.18.34; Wed, 19 May 2021 11:18:57 -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=ADC6wtP2; 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 S245003AbhERO64 (ORCPT + 99 others); Tue, 18 May 2021 10:58:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244591AbhERO6q (ORCPT ); Tue, 18 May 2021 10:58:46 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30949C06138B for ; Tue, 18 May 2021 07:57:25 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id q5so10585459wrs.4 for ; Tue, 18 May 2021 07:57:25 -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=vurGL64Q3SxR/3rC1VvdPqxLLlL5m2GaEVxxxuUXcnk=; b=ADC6wtP2Uy28k6oVzgFz3m7h+EKlhA/HZv6l3f85y9KwFUpxLWRtNp4Z2S1XCyYiNn /MtYGElEOf3XT15Zb16RvoCYb26HsPmfLLWh0ioZPt1KUHckECCiqmzk3uCRt6XRpNOL x+ijhif8boPjZQkpGhW85RTvrPjyd/NgsEB2C7CrCLiLdBmiQS2iGl6oaUFyjgUcZ5hF 0dK4ktiJL6shb6c//mDf6Q6i3UyXvqP8cuBzioqFIcRxw80SzzbWKFpnS8QAmkNhhSGl P/qYAbILrnu6yKoQWTDtAS1WXwp7/uoalDTBj6Y3wDaSnygUAZIcHQfr5/+eEbFnZejv BVBg== 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=vurGL64Q3SxR/3rC1VvdPqxLLlL5m2GaEVxxxuUXcnk=; b=IOaNKYKrlI2Sz6kPQXGfV9rYaWVyMNTU56sZiI2yYS7VsaliWrJxYtkKz2Li7tuQvN yEfesMX3yhNejtte1IH+VeszMy04fZ2NCitoo9rtNGXFsYQvhPwL81cyuvlvvT4lCJv8 O0sMdGGvJEVSd61Z+vws/PDIr1kWGcNF7FWo/DgZXoYodqXAFon0m4IsWC1sbzurqOJZ mgslCpZ7zIiwtjfY05BCzSJD9dtBBLmNZHH62fjdMcwD2jZU63Yu8qt0gf3nDUsjp+Ud BHrIVV/7Cawk6huSDp1pdetrNZdVVfW+BezlwNIXbxkMEL9goKuH6kwxwjKMCgUsujIp xJAg== X-Gm-Message-State: AOAM530v26evYLI8goz9hyJns2sQ41TGt7khHyqLAeP1JtChEbLK9fQI cKZbKYBogb0Mr5gusWN9fB4u/A== X-Received: by 2002:a5d:5249:: with SMTP id k9mr3866068wrc.301.1621349843897; Tue, 18 May 2021 07:57:23 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id a18sm2928386wmb.13.2021.05.18.07.57.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 07:57:23 -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 3/3] i2c: i2c-mt65xx: add MT8365 SoC support Date: Tue, 18 May 2021 16:55:22 +0200 Message-Id: <20210518145522.2420135-3-fparent@baylibre.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210518145522.2420135-1-fparent@baylibre.com> References: <20210518145522.2420135-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 --- 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