From patchwork Tue Jan 17 08:49:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 44560 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1641424wrn; Tue, 17 Jan 2023 00:54:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXu3dx50tzzmS/glQfuhjXNS7vfNW+wFerid6MwryJLaCmElbL7KcZcz3g5KMpaxAqBl9fL/ X-Received: by 2002:a17:902:a418:b0:194:a6e0:3ba with SMTP id p24-20020a170902a41800b00194a6e003bamr2106103plq.54.1673945663664; Tue, 17 Jan 2023 00:54:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673945663; cv=none; d=google.com; s=arc-20160816; b=BI1Cpz2ikUvioUN5TC5BZEdulI3eWCO5NvR7P1UnW4fB0bGM6zn0Nb+xd3lynkUQXH IPkIXGoUvO6hTXCd+4Bh1QdBo8fstJM6dKWKOQWs0oB3/hpedeY+gHWcyFoMnNR/BAUE I3DaVygTr25EKgReVAX9hOXLmyr2VxLuNM2zC3sFzloF4wDmJHZYJm8qdj5ZLLxdbliN R9+wTwqJeAsIPDd3uqQFtM09QUP6T8rrMryuJPlNHkUG19UDC7HvudPviB85IYTuf2TQ OEkeOHPy0hUGpaMM3MJIiIHPzVwsDMnVya6rsEAN4Gxfo64L55+fpTH43Ej/XepjNwoJ qWrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Km72Ozc/Vyrr+VItW0cIHsd+mEJlhUZtzVcHQEBHbFs=; b=Ug/H5gxM85PihG+JXyHA9cDfk9pL734dotiuwiEUkfukhz+chMx7x4Hfw2zTbK52SM o/bIR9wGy82kj+X5WDYM3ke41jC/jfCFzoHuK4O2r8+MXdZNbfvGo+jxOGS1THn/FOut ijOocImIW6VQSZYu4EeR/7npQtw6c//AfAPtXzamPEUTcQqEVNZHqpD7b6YTCUitT0Ra FdYdOnGK3Tuc7Ve24RZETCGelMUR0ZV4nlcG3zO3AVQUvvqEou9o7tXHPwRd2+YU0eTR 1hlwiico77oSbTsdJ1VMGiBve+sKGxQZp8T9+3HzqOKgWO+yBNSgjR9BRAoAMMDM4rYF TmgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=n4vNbGfK; 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 e2-20020a17090301c200b00175449cf6f8si34571841plh.606.2023.01.17.00.54.11; Tue, 17 Jan 2023 00:54:23 -0800 (PST) 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; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=n4vNbGfK; 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 S236292AbjAQIuJ (ORCPT + 99 others); Tue, 17 Jan 2023 03:50:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236233AbjAQIt6 (ORCPT ); Tue, 17 Jan 2023 03:49:58 -0500 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6813193DD for ; Tue, 17 Jan 2023 00:49:54 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id j17so3115095wms.0 for ; Tue, 17 Jan 2023 00:49:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Km72Ozc/Vyrr+VItW0cIHsd+mEJlhUZtzVcHQEBHbFs=; b=n4vNbGfK5yIRIrJ7BDPqX63H6uYWeoZyYRGtVklWvA9PhGfM3w7Ee+JhxK/Sl4zc6H HPN04G4R0M0gvg8RWqPkTL+gXCRONRFd/JnKiZDKyTSuE8ZK8d5ezCL+0Ls4OEtmrw3t EtJsvGVvlfYftDXeQAZWOpNFdEjMQgFdOPaiT1BQrm38mQaaRbWutoC0M5vxmFEAkaqB o8r8OhRTqZ3q0YLTeJVAiWaOQQif5AOLtyPFJ5Nzqtj3/QkfWGmCshaLmZZ7yx/eoFoa raojrixCerAWcnK6YqR8KQA+liKnjfrzDE9dkqjQHSHfaYseHsjeh45hDUJh1/RZa3pK rqhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Km72Ozc/Vyrr+VItW0cIHsd+mEJlhUZtzVcHQEBHbFs=; b=Cg0wxIYjyKNVQ0V4eXJJOJcjxxg1IUSOwvXmNgpyIYftllbxnACIQXSYkk/5/F0KlA U0YtiCYMzbezWjkFe+O0e8fq8DnspXect4CBpQHq3ZDShh3KMXPh9CVpOW5ujGo2sPM0 phs9ucAbw2QF26tQ3H7wdjdNY3XgQx23QVMJIXqon00yvze7n6oJENSICJ1dM4CjsZdA ff92kGaVIfE+N1XAsfo2IiDV1moZKS1wjNVPoBOjyFb72skjnGeJ+9oBNmvFE3zQ7Mr7 2mNXY0v2tRNENzUa7n1jFb/K6C+SirdTWvP7WTJWRrZGhvkVp8AhG9T3CXVMPk9fX3Mc WWtQ== X-Gm-Message-State: AFqh2ko/2JXBaLsCK2VDl9EuQXkgtkeqSFsyn9D66NOC+ijjEKU2G5nq 9EqXDiLKy94kptP2lQebfUaDVw== X-Received: by 2002:a05:600c:4b9a:b0:3da:fcdc:cafd with SMTP id e26-20020a05600c4b9a00b003dafcdccafdmr2228805wmp.13.1673945393232; Tue, 17 Jan 2023 00:49:53 -0800 (PST) Received: from [127.0.1.1] (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id i14-20020a05600c354e00b003d1d5a83b2esm45040928wmq.35.2023.01.17.00.49.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 00:49:52 -0800 (PST) From: Alexandre Mergnat Date: Tue, 17 Jan 2023 09:49:39 +0100 Subject: [PATCH 1/4] dt-bindings: i2c: i2c-mt65xx: add binding for MT8365 SoC MIME-Version: 1.0 Message-Id: <20221122-mt8365-i2c-support-v1-1-4aeb7c54c67b@baylibre.com> References: <20221122-mt8365-i2c-support-v1-0-4aeb7c54c67b@baylibre.com> In-Reply-To: <20221122-mt8365-i2c-support-v1-0-4aeb7c54c67b@baylibre.com> To: Rob Herring , Qii Wang , Krzysztof Kozlowski , Matthias Brugger Cc: linux-i2c@vger.kernel.org, Rob Herring , Fabien Parent , linux-arm-kernel@lists.infradead.org, Alexandre Mergnat , Kevin Hilman , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=964; i=amergnat@baylibre.com; h=from:subject:message-id; bh=0qPQE4yGfoxCGQFTIge9uLlrCOrdE3u8zE/R7eutZWA=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBjxmEuhQT6QRyWEmit8/G/GCW6H47F2HxOTGT1ZSuo cCY6uaaJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCY8ZhLgAKCRArRkmdfjHURfVYD/ wPXcEZODLRlSW4k/1YFHhTcK/f/a+xBbyKmw7B+fxBkQshi6gAAca4Vx1oQP8hItEnTBMh1H0MjQrk cuom0S7kl6s2OSi99RSu0Jm6lNzfEYsuqy0goln16eaBQWfHegUSut6ijRDixWoR0dI2qspXDlTGwE D4+A2ziNmP6ZWD1b8Io0wn7Zj+jOobK0ua+K4QJamBy607Ud5yIDdujnxd49aByRs2M6vq3+VFNGK2 w2hR7m/kcjOFKJBaTKPRH2qqy8q4g6XnBlywN3UddrYZd3AX78aili1D2Nz5iRQfxbS4QUyuIhOi/h STjL9hoD7IFDAVHme3rCR1pivB3P6yJ4MeTD8Qq1abKY9EVn8IqGClDKkUt5kwdepHbNKT5HZeEXVM AJsd0f58rNZ9a9Z7Ch5oLrfEHfAl+w4huIGNe7gOxG+C+hubVq5wC5ITKA3DzYM/WC5s9d54L9TN9i JQvddXyndMunjjA5QHEH/MP3m2tqQ8/Yaawx2MjJzHLdRnUZ6nqPrSHOYsNdI/5+doCYK15T2Hn+JZ Vwlw4tj2pzfCBfOveUX2c3cGCQ0UJnZ4yaS6d8X8kiEw4hQlrtoZIQn0DFNsliEde1L8nkk0pcHvPU jDsePkJb43AtoIavas5keLUwk9oe26laD4onZtjTszzuuJZyntve4KFxoeMQ== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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?1755259248234190280?= X-GMAIL-MSGID: =?utf-8?q?1755259248234190280?= From: Fabien Parent Add binding documentation for the MT8365 I2C controllers. Signed-off-by: Fabien Parent Acked-by: Rob Herring Signed-off-by: Alexandre Mergnat Reviewed-by: AngeloGioacchino Del Regno --- Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml b/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml index 421563bf576c..72ae2e01cf22 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml +++ b/Documentation/devicetree/bindings/i2c/i2c-mt65xx.yaml @@ -41,6 +41,10 @@ properties: - mediatek,mt6797-i2c - mediatek,mt7623-i2c - const: mediatek,mt6577-i2c + - items: + - enum: + - mediatek,mt8365-i2c + - const: mediatek,mt8168-i2c - items: - enum: - mediatek,mt8195-i2c From patchwork Tue Jan 17 08:49:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 44557 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1641213wrn; Tue, 17 Jan 2023 00:53:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXvRkUYYwN9/oLPcuEvfi3alVmBdmDmvGPL/A7tonGA89QEhDtHtw5U/Sh1DUlOILscyHltZ X-Received: by 2002:a17:902:f0d1:b0:192:8c85:54fa with SMTP id v17-20020a170902f0d100b001928c8554famr21425911pla.31.1673945621412; Tue, 17 Jan 2023 00:53:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673945621; cv=none; d=google.com; s=arc-20160816; b=YlsGgt1+HjLlsEkPqM94OXbAasB4v6Mxeeg0zX6BH9Ghx3jy4iTfwBHEf3py1qL3pQ 2/BSaBBZksIxXvAI7HQoi+QiuYvUnuoxCwmrxetTG+yBRhv472HGrIw0LBA8uye4frU8 1zfycDRM/2Vg0WVAvJRyTjMuNStyby318/WHJPx6E8083GeuHzd77UWAhe8fUtdaxw/P wkrKDM6rXGhf38/uUWHOI/MmIUPwP3DqEoFjTTdiKL6iwAdENzlwXRgxjoIFedfVb2jq w77PT63W0Sb7WX5dxLauRBflwT+0Dj0x9HaTucRC5ii98NpVgLPZ9obTFJJRxjb6KLdV BHKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=UgoXPu1A6G8aOhAjG7a8w9p9zygyaf4s9I2TGoeTltI=; b=wI5aOs2aN+hbP98AWWYEgSZSm6LnJJcUQYPpGd40k/1EEw7ZqWHshxA3UmDs0h9Qjk Fi0lFhaKUFKy/pfccKk0JjOlUXxorFKeZtxcV3Vr6zmtIjhYJ0KcFolwRcPEt/gPKONY qdOY+Ci3qWHB+k+/+nrcCly4GRBTkP5Ojn8I23WoHCSGbv5b5Ud24lfL2kFkzgkprgPx hPJFeVOcVDwiz959DfMYQGnaPEAu4lJn2NbJVAWOoA+zmRXEeJg87uCYBpgVx5qMJLgI 7D83eCXLE8iY/iokNzokLeLlNncFxHr5fx0uBoUhNnCvk3x+cWBSW9235LhIAy4dcnBz htog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=br0AnOeq; 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 h6-20020a170902f70600b001929d758436si31835138plo.609.2023.01.17.00.53.29; Tue, 17 Jan 2023 00:53:41 -0800 (PST) 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; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=br0AnOeq; 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 S236283AbjAQIuC (ORCPT + 99 others); Tue, 17 Jan 2023 03:50:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236231AbjAQIt6 (ORCPT ); Tue, 17 Jan 2023 03:49:58 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A469B1A4BB for ; Tue, 17 Jan 2023 00:49:55 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id f12-20020a7bc8cc000000b003daf6b2f9b9so4272570wml.3 for ; Tue, 17 Jan 2023 00:49:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=UgoXPu1A6G8aOhAjG7a8w9p9zygyaf4s9I2TGoeTltI=; b=br0AnOeqEeTM0zui1xtg65KTyJzkss2Hnbj0igYV+z0AGaL3ZPigHUjl7LH+iLh9s1 UOB99NxhPyHnEsOZVigJagAIQdCNDM2VGavpVH2lMZ3z+yD6qwJEyMoveeDWBxbUqK1F ZKd6b348eIeht3C4jJGN/IKf7ngNYLfIvhM+kYHnXHC3NiJwyEm8Fr6ePhAtv0EJDw9+ 0lLq1byDElzyt9jUJUycc2iMsgzJFGfmU80f3gJS/4PvmB58O80F1a2Pi/2l5im6rhd8 MA+/y6l65ytx5H5LPYhF4dATSTXFK61F+/PKAoEaAe0AOW9chItrcYys7vlS4nVfIBrg pn4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UgoXPu1A6G8aOhAjG7a8w9p9zygyaf4s9I2TGoeTltI=; b=0VjPm7mY+Gap/OM/Ef9JfgdFnILwpX+cnhc4ww/ujOVm9GWrEDd/kex6TWqEwPRxmP UOKUfSebNzoUvygJr54CWhl+dJQAlCbx6U+czxyiY9yaLxQhSLaoTZRDc+Qx0I4tkWCV aCjeQEiXGk6FISDvVAP9Nto746nM4IWE8xzLCjg0CbwLn8B4U9p+Pvuddw3+WylPwRm5 UQy3uCEKOCS2MCIbARRvyJ90QQ0+sGhTyjx44VcVWRSoPGU5eFUiSvXsvM+6rDaITpr+ y35vrKhhsQ8fKO565ziJIKdPCHFFB2upmiJH7IVBlRPqRouZI7Fws4/xsRaPV18h2FuJ zTrg== X-Gm-Message-State: AFqh2kqTz0CF6gVZvPsKX0GA9z6rVjVYLXp/6R7ZQFTmTUPyXpdTEHFQ j4iGUEaIVLKkrlNVGCf/sBTgLA== X-Received: by 2002:a05:600c:4928:b0:3da:909f:1f6b with SMTP id f40-20020a05600c492800b003da909f1f6bmr2465111wmp.1.1673945394216; Tue, 17 Jan 2023 00:49:54 -0800 (PST) Received: from [127.0.1.1] (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id i14-20020a05600c354e00b003d1d5a83b2esm45040928wmq.35.2023.01.17.00.49.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 00:49:53 -0800 (PST) From: Alexandre Mergnat Date: Tue, 17 Jan 2023 09:49:40 +0100 Subject: [PATCH 2/4] arm64: dts: mediatek: add i2c support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20221122-mt8365-i2c-support-v1-2-4aeb7c54c67b@baylibre.com> References: <20221122-mt8365-i2c-support-v1-0-4aeb7c54c67b@baylibre.com> In-Reply-To: <20221122-mt8365-i2c-support-v1-0-4aeb7c54c67b@baylibre.com> To: Rob Herring , Qii Wang , Krzysztof Kozlowski , Matthias Brugger Cc: linux-i2c@vger.kernel.org, Rob Herring , Fabien Parent , linux-arm-kernel@lists.infradead.org, Alexandre Mergnat , Kevin Hilman , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2508; i=amergnat@baylibre.com; h=from:subject:message-id; bh=pLPRl4jPAYZIqf1fe/JXLH5pg1d46bBPCeqWhQgjHKU=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBjxmEucJi1q1NdT5HmNXnp5kIxA1c+e049A9ok+evg 5QXuV6uJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCY8ZhLgAKCRArRkmdfjHURVrmD/ 4gskZjdw09f2tZ7bUHTkY/CVV7XUZSvc78gwOs2ISy6/sqNimRoXdAbaoO1qZEnZA8x73UFSv2cnNi +5FANiQKHS47maGYzC2OIaMnxsmhy8KvLsvsmgt45YoEb8t0LW5Erq8eYEWlB0qW4XzcfMloK2DZBo NkTlDS65SDy2FvvGJOyhmSXS0RGUzjnFz2AXv9ATc30Ne3VCoWdMn8t4kdESqovn4qWcxpAspbEX9S /vb/CeAquacvmUw90GvgcmZ7lOYWMlir36wYnHRrvpkEEwkhT9ibp4fRljjS9AHD9HvsJBV8aBvlJr nq9BkyYFSpmpnJhvDrmDiYlPjJ/uLM8urevXr95JSLe9hL03WuS/NcVgft99n081xCJ6da44ERbDrN MwcIeb0Qp78Guz6iICSbmkr0IChMmfZTeSm06oWPL63yLAzA2IbFCqIbe0H0a9CEW8c6k3VVMZAF7X 5AhvgKdFJyHKaKlHpkl98w02jfFPRIKSKve0BN3Do0GwmfgicJSDded41vqU9vJ6gMPOvWe7wqVqsg Jllv4HfdHSwJFNwsONhbi+jbEPMzxFIFHdxK7A5GyS23UawCdMu9yeth4hWlSN7TO0zd4otLV69q52 VqcBsbxU2S3VwSZLVsv5piHR5MIGFrontdbYQKgIiU5nwWCzvRK2LU7+0sfw== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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?1755259203812045481?= X-GMAIL-MSGID: =?utf-8?q?1755259203812045481?= There are four I2C master channels in MT8365 with a same HW architecture. Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 60 ++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index a32f2b7507be..3c2819bd32af 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -282,6 +282,66 @@ pwm: pwm@11006000 { clock-names = "top", "main", "pwm1", "pwm2", "pwm3"; }; + i2c0: i2c@11007000 { + compatible = "mediatek,mt8365-i2c", + "mediatek,mt8168-i2c"; + reg = <0 0x11007000 0 0xa0>, + <0 0x11000080 0 0x80>; + interrupts = ; + clock-div = <1>; + clocks = <&infracfg CLK_IFR_I2C0_AXI>, + <&infracfg CLK_IFR_AP_DMA>; + clock-names = "main", "dma"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c1: i2c@11008000 { + compatible = "mediatek,mt8365-i2c", + "mediatek,mt8168-i2c"; + reg = <0 0x11008000 0 0xa0>, + <0 0x11000100 0 0x80>; + interrupts = ; + clock-div = <1>; + clocks = <&infracfg CLK_IFR_I2C1_AXI>, + <&infracfg CLK_IFR_AP_DMA>; + clock-names = "main", "dma"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c2: i2c@11009000 { + compatible = "mediatek,mt8365-i2c", + "mediatek,mt8168-i2c"; + reg = <0 0x11009000 0 0xa0>, + <0 0x11000180 0 0x80>; + interrupts = ; + clock-div = <1>; + clocks = <&infracfg CLK_IFR_I2C2_AXI>, + <&infracfg CLK_IFR_AP_DMA>; + clock-names = "main", "dma"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c3: i2c@1100f000 { + compatible = "mediatek,mt8365-i2c", + "mediatek,mt8168-i2c"; + reg = <0 0x1100f000 0 0xa0>, + <0 0x11000200 0 0x80>; + interrupts = ; + clock-div = <1>; + clocks = <&infracfg CLK_IFR_I2C3_AXI>, + <&infracfg CLK_IFR_AP_DMA>; + clock-names = "main", "dma"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + spi: spi@1100a000 { compatible = "mediatek,mt8365-spi", "mediatek,mt7622-spi"; reg = <0 0x1100a000 0 0x100>; From patchwork Tue Jan 17 08:49:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 44558 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1641331wrn; Tue, 17 Jan 2023 00:54:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXvkRFW6QW3RHIxCYI5O+nm9Z1/kDDS1xVlo0tcC7AFRXQNXrh0/on4BPgQt45Dyuebp5zR2 X-Received: by 2002:a17:902:c10d:b0:185:441e:4cfc with SMTP id 13-20020a170902c10d00b00185441e4cfcmr2902418pli.44.1673945645525; Tue, 17 Jan 2023 00:54:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673945645; cv=none; d=google.com; s=arc-20160816; b=WHUg25Btji6TYfZfeQJZgAnrTo2Woq1Y0JRsKDfUS8052B1EWfkwwAc2rzGFlsxzy0 /nRMqE/XJ8GV1QwaYNzQ/bAXIiySrPA/26FQc846xR+4Z9wT96HTqKV4NOO+AGf6CSwO 1eiELmNh+/xkXSvaY/2SSYfEcIGxAHT1IvkoWEmFwSQGEnBoDaaet5zYQ+MrMBJM0fN9 edS+QDur6Wxh07UdVVF/eFhNKTyPPayPpq2BV2EA6GdM623nft0L+A361kF2PTAT80vF M9V06nOd9ZiGLPjQXCXlowyen0a0J0ZcZ7Q4L7gmBmbwrYXcu+1jcuj1oA3ywA1NhN3/ Zj6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=vY1pR8A7OW80xkAZYg++krO0fJkxZ30BhhNRiI4WE+4=; b=msTM22z3mv0WBmzEMkDpqWhD9CwFH8QWw0IjhW0ub9l6/X+0vwbVn4D5XFhNF+to2E xYsqOJIrFsvykqsXe/GAERWuoW5gtzywswdGsKWUpa6xddLHqyS4gF+ISAqxwaFCuw3P EYXUYlG0VtzJi6PJf/EB7ZDm1NbjMngMjH3Epf5nEtZoFvynwakTx4/4tR67ai2CotlR BoqwFoEsULcYILRFPC3UCKZkw477MYPEi3n2dz/8NXdZy3KmNVE0X1SHindvyBWcGM99 ndlhHCdfV6qIoAie6pYf3JjbsqDWScTXlwMAki7DWb6EKgHutsK/nbiQzvqpjp6ENPes kHfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=AZ8IcZTP; 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 ix18-20020a170902f81200b0019471f1dee8si12370109plb.492.2023.01.17.00.53.54; Tue, 17 Jan 2023 00:54:05 -0800 (PST) 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; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=AZ8IcZTP; 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 S235848AbjAQIuS (ORCPT + 99 others); Tue, 17 Jan 2023 03:50:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235735AbjAQIt7 (ORCPT ); Tue, 17 Jan 2023 03:49:59 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9EDD22DE2 for ; Tue, 17 Jan 2023 00:49:56 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id bi26-20020a05600c3d9a00b003d3404a89faso4932936wmb.1 for ; Tue, 17 Jan 2023 00:49:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=vY1pR8A7OW80xkAZYg++krO0fJkxZ30BhhNRiI4WE+4=; b=AZ8IcZTPMXsufFN2kXO3HRi0ZvdFnnGQ2th1Ro9B226rdQQ9Xel2dmYM/oQFtw7oNK vpKamG8ugf9p9+/xOGR2r1aaHyM5yBTGRSjMXlGQdyqHRRwSpURDHqjtpQAf3rULEo8+ j8j/QezFDU6aFt0dKO3/CWdYa7wKaZBfaRVFDjagWtWYsQoHglP/3ZMpRGurpy8JwimG WiPJaD6IIDRt1Ok/7mkDQJye4rXHCzTYKIdL7nvDFm2tWMYoap9OBGUlZLFumPLJ+8Ge xFxnHiBDcmIEONVN1/Ig8MeUGsL8G/kcEL7txjup5DjRTLNQM3Lbe2eJhiPdFEDEJvfR 0S8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vY1pR8A7OW80xkAZYg++krO0fJkxZ30BhhNRiI4WE+4=; b=nil5gQyUXORCrZs0z8XbTQg/B3yI6NDEeJELUDhDm52Ni6K10L+JoqcWoV7/SWJnsa RziS5tVhSvUBm0gSRHACSKaHekeAp1Ij8bgUkn2OBPaMDNeFmN3LzVvnQWkMMiForlA5 ITFTbBZ4fwbf3mJgbCljWkG/XA/9x7iJzVUkPu154TwsATDGg8moks4r56kUTaWlWUsG 5j3zyrS5QgSTizcuZhynpsutOetA0Fme1tyjqQrzXufkvX6pT7fW6KytB/dcwqu9YwXu mgXAhmkLLZ7WfgvzknAnjVsaRCVJdhLOKJNnLKZAewd1Unir7q6ikTLsmTiDZ0LHchCI nywg== X-Gm-Message-State: AFqh2kozOEEr6KjZ1SVuHS42i7aHVqldwOoH2HOroc+9jMBly99ZTf7K +SjMM38zsIR98kTp49+f3PI3jA== X-Received: by 2002:a05:600c:511f:b0:3d0:bd9:edd4 with SMTP id o31-20020a05600c511f00b003d00bd9edd4mr2266161wms.0.1673945395322; Tue, 17 Jan 2023 00:49:55 -0800 (PST) Received: from [127.0.1.1] (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id i14-20020a05600c354e00b003d1d5a83b2esm45040928wmq.35.2023.01.17.00.49.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 00:49:54 -0800 (PST) From: Alexandre Mergnat Date: Tue, 17 Jan 2023 09:49:41 +0100 Subject: [PATCH 3/4] arm64: dts: mediatek: enable i2c0 for mt8365-evk board MIME-Version: 1.0 Message-Id: <20221122-mt8365-i2c-support-v1-3-4aeb7c54c67b@baylibre.com> References: <20221122-mt8365-i2c-support-v1-0-4aeb7c54c67b@baylibre.com> In-Reply-To: <20221122-mt8365-i2c-support-v1-0-4aeb7c54c67b@baylibre.com> To: Rob Herring , Qii Wang , Krzysztof Kozlowski , Matthias Brugger Cc: linux-i2c@vger.kernel.org, Rob Herring , Fabien Parent , linux-arm-kernel@lists.infradead.org, Alexandre Mergnat , Kevin Hilman , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1340; i=amergnat@baylibre.com; h=from:subject:message-id; bh=VOgzUWYZ5LqJIocyR/msYYzp26C90wB0hqeJ/d6bEGk=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBjxmEu/1ATFrLnz4wZ5FHf5BjXYBtuHu6+qKyasU1/ oquOHiOJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCY8ZhLgAKCRArRkmdfjHURRfJEA Cc8GST/9irlHGIql2YtIHfbd9HQu1ah91IpB36SZWBJ1g9wwyeKf717wTh56hqNAk1XtGyWlCWaKUg dqIYRlZUB3HgoB0Mp6rgZLakIRV8+Nuz2GrLGcOqfRJDK8qUIQRY8WFHC38AbnQ+aqOkXsWqcRBbPu UnNJ6rR93Wzz4HuEQBx/PfZObcu/XlPvZgQ8zVvbbkDsvjm6viTW7RSEW1Epqrg2d3tgD7f7VzZhUP 47+m5NgJRAiy/2gp3hyn6OE9w5TfRm1fQ8TThmZRTusk/bmozRM5N4wDuQqcmxRumio69SCQDjyc09 XkQ8fPIp0fA8Yc0T+b19ftVXI/FEoTrOvUYvYoF6FFb3yfGZPrsfuWGRA38IEXVTH7KP0YZsYFajQQ G9UJtyrFB/ray4flboMovBDwOkdoUGflFSf/dPhTF3RlvxBVhzCGH23BsZHClZcoVpKHowuljXTws4 TWdqBz/Uq4gE41F9a3DUzMH8tbejAgu5Kcvb4FlIMPOuBkERVVb/jaWcXnjsG1aOlmu7NbIE7OtgJ5 OJrzLRYCZq5BF6cKyxtEL5/KCYwt7MA958VDbeR5phILWFgh7tTnh0P5ilQvRgrbFVoS5hwKvEuW2d TpjzBvM+1lYxsEadLGbHFyVT53ay0BQSFGlhw4HlxvoFj6K3jCUahD9T4Mdw== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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?1755259229215055468?= X-GMAIL-MSGID: =?utf-8?q?1755259229215055468?= Enable the I2C0 bus provides communication with: - The integrated RT9466 Switching Battery Charger. - The integrated MT6691 LP4X buck for VDDQ. - The integrated MT6691 LP4X buck for VDD2. - The pin header, to plug external I2C devices. Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts index 275ea3a0e708..d5d76a7dbd82 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts @@ -88,6 +88,15 @@ optee_reserved: optee@43200000 { }; }; +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; + clock-frequency = <100000>; + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; +}; + &pio { gpio_keys: gpio-keys-pins { pins { @@ -97,6 +106,16 @@ pins { }; }; + i2c0_pins: i2c0 { + pins_i2c { + pinmux = , + ; + mediatek,pull-up-adv = <3>; + mediatek,drive-strength-adv = <00>; + bias-pull-up; + }; + }; + uart0_pins: uart0-pins { pins { pinmux = , From patchwork Tue Jan 17 08:49:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 44559 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1641377wrn; Tue, 17 Jan 2023 00:54:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXuSZiXygGz33xQjjKhXbJpojkNlmtBkNhfHsln0WHzCYD7mDqGREx1VUHO2yIpD5ayGpuzA X-Received: by 2002:a05:6a20:139b:b0:b8:6d47:225b with SMTP id w27-20020a056a20139b00b000b86d47225bmr3439959pzh.6.1673945654335; Tue, 17 Jan 2023 00:54:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673945654; cv=none; d=google.com; s=arc-20160816; b=MX5RTWRiN1h94inpL3TOPgvpvnaXpVlCGFcWom9FtLzfCkTqdhvmgxEZUpaV8sCq5X Y5D4leWjdPzIf99ltwrlDpcfwoD3dtaSuho/+/sXxY+CYE4IYuUh2QSzr+NB5QtquHIu dsFeE3P8V15B4zqO6b6LO5q7P2XiFbIc4KpK0fuUmOKn0wPEQSK8WK1pgsUc+AtVuxA7 41zc4KqBuM4z6uL3Q+v+8hxzLT3bRN7MgxR3f8jEeKxM0YZ8Yp3Sn/tH9FiSkwHEGEDZ PGNWrXrIzqujhpVfLKAI2PpghBkhFJMpB0KckLql+keVKuzJRsxn9Jex0z+XcPYf5lFo kF9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=GnntDb2wSxyksznyUK9vORluc24yy6XtA4jjRHLcBuk=; b=N/dmPabmBozLZ9Yg33nJRW0IoaMqoKJaaAPeTeaHZS/N7HE/vzJWMBrAwxBwBf5O7d 0D4pfrzya8py4t7+2MH4m7iXpaRvxjCuqq/7xfjxfjinwhfxeJvzy9STdyx4SzqJxYF0 UHmGv9XK2jkvp7lBxeaZ4ahwKFycPGnkO2R4oILPVD4T3H8YYit/+nrOw+NIOwDf53IA OlAMdbr0wf1pPwWkH8K3T2Ksp14XTDSVq3fh8952Rt2JAC8NMQOTWC2o0GU7n5E1Fj2i bSbSFKYyXcu7UHvKJsytueXow6Mc4Ovg890cW53hm4KnKJGpQJ5v170o0AT/TWrW4I3a HWww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=LYUV60Vq; 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 i1-20020a63e901000000b004a227152324si30439263pgh.839.2023.01.17.00.54.02; Tue, 17 Jan 2023 00:54:14 -0800 (PST) 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; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=LYUV60Vq; 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 S236162AbjAQIuW (ORCPT + 99 others); Tue, 17 Jan 2023 03:50:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236242AbjAQIt7 (ORCPT ); Tue, 17 Jan 2023 03:49:59 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6DFE2365D for ; Tue, 17 Jan 2023 00:49:57 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id m5-20020a05600c4f4500b003db03b2559eso1797864wmq.5 for ; Tue, 17 Jan 2023 00:49:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=GnntDb2wSxyksznyUK9vORluc24yy6XtA4jjRHLcBuk=; b=LYUV60VqALvvzk6MilzChbMVqyD/B0GIA7z7QQD9RC9k/FTRraa9aq3o9DhdmmF3iq bEZxLJ/EPaEukjPDguwckMzwT4iZWzklaDDCcm8uvmRbfgEzQZ6BypnK+5qR13RDCnuo g/NoNBxqzf6YLnbLdMwkvsPYPgpfMg1IVWEfSQM4dsbIHLnsghP853ZEx8x80OXMesKO Gu6CisBcCKzX5DE471QmgAykmNMIdj+swGJPBP7wSz0pf8//+a8SQFDGZUzGW+MnbWQ+ 84Q0DSLD8KCf7zQKe08zeZA1GxLvcYKM7P0/3YWWTFKmdYhwcXPB8+J9/t/YfUwb6Dp9 NQvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GnntDb2wSxyksznyUK9vORluc24yy6XtA4jjRHLcBuk=; b=joBvJi99KJCa2P4+1/9XJIbVME76q5xaWGCrgiup4myObCf0JyBRcIr/TuZcQ5TFyP y1ZmduXv4aXrwRiDquXqy1r/a1qougFyK8dcuQY9EaUzodBLPqzNL8luj7m8C86kpkbR FLkXxh6S1ZCEYciV3tZTxgUu9jYXcFdnoQaSXhgh4jFXOHB0+vZgPBkLesk514T60hlB A/+OWoF+LqvfXS7Qo6GDgVxaAgk77DivMrqKWblQmt7jqj9hLxLbCbUyFV7A5uGyBbVE iHNopedDXbu+sDZvNkOa43CmyKZ/4vYgDknC4tJkEfCH2xOj9EGCvmEOsxvo+oDk9hdo 7Lzw== X-Gm-Message-State: AFqh2kot48k/986Oy0t4omCj78qPn7g8rdyyf+7bTYaw99coSkC2eEso Ry9k0RJcjBWP5D6Lo2Enz0/J7w== X-Received: by 2002:a05:600c:920:b0:3da:22a6:7b6b with SMTP id m32-20020a05600c092000b003da22a67b6bmr2225151wmp.13.1673945396215; Tue, 17 Jan 2023 00:49:56 -0800 (PST) Received: from [127.0.1.1] (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id i14-20020a05600c354e00b003d1d5a83b2esm45040928wmq.35.2023.01.17.00.49.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 00:49:55 -0800 (PST) From: Alexandre Mergnat Date: Tue, 17 Jan 2023 09:49:42 +0100 Subject: [PATCH 4/4] i2c: i2c-mt65xx: add MT8365 SoC support MIME-Version: 1.0 Message-Id: <20221122-mt8365-i2c-support-v1-4-4aeb7c54c67b@baylibre.com> References: <20221122-mt8365-i2c-support-v1-0-4aeb7c54c67b@baylibre.com> In-Reply-To: <20221122-mt8365-i2c-support-v1-0-4aeb7c54c67b@baylibre.com> To: Rob Herring , Qii Wang , Krzysztof Kozlowski , Matthias Brugger Cc: linux-i2c@vger.kernel.org, Rob Herring , Fabien Parent , linux-arm-kernel@lists.infradead.org, Alexandre Mergnat , Kevin Hilman , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1454; i=amergnat@baylibre.com; h=from:subject:message-id; bh=TWV0BAft8RkOG5xbYhjbDPUS/3D2IDzrN9QH/A7cKxU=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBjxmEuVzYMtofJIUJ5oFTa3W0oKUDkqaKLoTvfJXnh 0IBK/E2JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCY8ZhLgAKCRArRkmdfjHURcOQEA DBqTEdZxCLimcj4ODKJJMfctwwdA7ZiAVFTtdGMWA71M/U79w8cFUVxFHSXnTn47gSHeFVcpiyFjaI DM0uhFv5NDrZdV3SvNjHSaHSCDFeQE+N5c9Uzhc431ttuJryYIry72+ioFiUOTnA+U/JDGaD1M7a9m 7tL5AJP/pd6FzUpK/mV+KL/oRcSU45dHzjB2WbXsafsVh0yoMAoH2ONYHbYsE9VACpkQs8w11L7I6f MgM+zhIRh9TzyVGZ4uL9mRIOgiVqSkRJgNyPnFKCVgpa89Dv+rxu0+Uc7ZJ9OaOXnAAw6+GIvFrF7B FMDPiQ89s5gm9KpDwc9Mq/QcKfGm6J9gpPGiMo8mMOx6Jjwl2Pe4PFrbj/CH7lGxINvxSdbUcOkZTL 1kUybTF+GoV300oW3Vfqd36rJNPg5T4A2obypuNuBiZ3UTueo+NATNKkWnJc+MxMy92nY4enQJ4TP2 JKVX1z0A1FPrgtwj1B9IsKKaaK30kPyFuVZSIgLNpXQ5FqeHn9VQAypE9CUnNJdzDZBnOCaLYMeRmu XVLDdGgM/IsiHN6asVJvJMCpLe2H9voep8GpiI6rPdNcDDd9IQkkdOMROkZRyRto73sWYT2RlbZTwD GFFhgWu5qafDgyJWt1h1f8uSQDUo7fjIA0XyiyGP/zssH+KUXbMKkrEWIf/A== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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?1755259238611007905?= X-GMAIL-MSGID: =?utf-8?q?1755259238611007905?= From: Fabien Parent Add support for I2C on MT8365 SoCs. Signed-off-by: Fabien Parent Signed-off-by: Alexandre Mergnat --- 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 d80e59340d97..2c9dbb42861a 100644 --- a/drivers/i2c/busses/i2c-mt65xx.c +++ b/drivers/i2c/busses/i2c-mt65xx.c @@ -511,6 +511,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 }, @@ -523,6 +536,7 @@ static const struct of_device_id mtk_i2c_of_match[] = { { .compatible = "mediatek,mt8186-i2c", .data = &mt8186_compat }, { .compatible = "mediatek,mt8188-i2c", .data = &mt8188_compat }, { .compatible = "mediatek,mt8192-i2c", .data = &mt8192_compat }, + { .compatible = "mediatek,mt8365-i2c", .data = &mt8365_compat }, {} }; MODULE_DEVICE_TABLE(of, mtk_i2c_of_match);