From patchwork Tue Mar 7 12:41:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 6233 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2413452wrd; Tue, 7 Mar 2023 05:01:10 -0800 (PST) X-Google-Smtp-Source: AK7set+HO1rQFYb8s7MaKqJ97pwchJom/WVQJZLR0NMlrRr0fld195PPxqelSqsh8Zxvl0pi/Eza X-Received: by 2002:a17:907:c08b:b0:8ae:b083:6ceb with SMTP id st11-20020a170907c08b00b008aeb0836cebmr16463465ejc.72.1678194070375; Tue, 07 Mar 2023 05:01:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678194070; cv=none; d=google.com; s=arc-20160816; b=vPCCoaf0JYyeI0DQsqlxxy2SnCD8sYvMLHM+Qj5J3IE724Bj3xqA7YO6t9narnp3j7 0Axwf2xEgdZxVkoPokWqknRcKBe2k79VH3KL6Q+22jZts316Qp5dW/Yx4guY1QvqmH9U FFROWCjal5yL2gh4NwXZZViKlSwctNTcDqrkrF4UqT2mXM5FQNX+Ax8mVVcywOBxpBcG Nx2AEPLJ3Ilj/9LhXTpTa2nAcp/mmvG4TJixWTM9+wQEYvO1RMH69G8xjvtMHq60UdkY 3wWu9OOL/5YBRocgm3zFusV8EfmVNSkEYpJIboAW+o01vmPI8mCzJDV7Zrzn+NUf3xqk kRXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:date:from :content-transfer-encoding:mime-version:subject:dkim-signature; bh=GzFpHewBbWomyUEZaNFYjKbbfeAnvvHjKQLmFN5JziA=; b=P2XECrMx6l7QD2fW4aU+7rA++Slv+3zB91mXUx6iudk5fmluBCqZRTfaks7hT5tPBQ sa+9+c23736LylOYidY26bVAuyijHYz+uNSp+crWb70V+4l4rs3o/0IGhEnGJmOpBBVg sdU/hQoiYg+7t31l13yirUxms/bVfns+lLBfjvMqtRqYJ2d44f+7nhQsdEmFfsFMPW+v g/ltQcCA/EwKlhFi5UfD7J9hGIYJM23IyHL38FWf9RbSJJYt097/GI1HrQGGPAK0WLJr 2Zin2XLo6CmzWEfDtlemLIGTbkcjWgnensnpdQvRtAzkCDO1TzhEN9raGSSfg+XC3Se7 2cbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=pWFdX7+c; 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 ch10-20020a170906c2ca00b008c4de1a4c2asi2107013ejb.718.2023.03.07.05.00.37; Tue, 07 Mar 2023 05:01:10 -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=pWFdX7+c; 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 S229669AbjCGMlZ (ORCPT + 99 others); Tue, 7 Mar 2023 07:41:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbjCGMlT (ORCPT ); Tue, 7 Mar 2023 07:41:19 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29C187B980 for ; Tue, 7 Mar 2023 04:41:17 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id h11so11971792wrm.5 for ; Tue, 07 Mar 2023 04:41:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678192875; h=cc:to:message-id:date:from:content-transfer-encoding:mime-version :subject:from:to:cc:subject:date:message-id:reply-to; bh=GzFpHewBbWomyUEZaNFYjKbbfeAnvvHjKQLmFN5JziA=; b=pWFdX7+c5EOEOwB2Sus+3hAhRmLvU+gopv2ej+x3B89Rr5abFSju2fpdvdfF1olE/H saEbdPxxjh2MN8qTSMqGIQ31qe2pns/O+l1w+0R2vaEOFikuZu95X8hjc2p6RIQNmPfG tR+y4rmArhNxEqCQ8G5HUXCmTNEcQlnENDIIMLB6Y7CRiH6yJKhZzdikTaQCE1ubEV06 q0TI2zzSwCuxHHPo83aNIXT4snctKLaPQMZqKMbrTnDLfAFWpJ3AIyuKymmZ72gac8Jx KBlN8mj6SKdWGCXaDLTfU1iu+5ZGamjKWPXHUpQel60qCT+DHcGb59QfRr+Lrr2ONE5p tPXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678192875; h=cc:to:message-id:date:from:content-transfer-encoding:mime-version :subject:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GzFpHewBbWomyUEZaNFYjKbbfeAnvvHjKQLmFN5JziA=; b=vuEvBUp06+XwW3cP+bVKyI3j6PZEFGfKEnNzGGaGNLyZw+WiuIfYSAlF1UGXIwlHLT XVNWxTF6hKGzoWKusVkjSuQH0JyGdQAp0uA0cHrJ1WrClzvxjT7x0AD4fUmUEgXrUGW/ 2fqe/gevmqRQcQA2GWnOzbXTzLj/giMcvXlAFqb0Px/iRb1+UAF9B5/M8zXCNeEYmQ0s hb7ilYUy+5osD0J79tbj58Ew7HU/30e4BJm9pWuY0XR599N+1E9XPKJSGFZalYmnv/+6 mb2YAwiHiMLJhvMfQBJYqytsJRPfMRHWw35V6e/BxX5kN7O/UKxnfW8GiehZgOQJtomj YAcg== X-Gm-Message-State: AO0yUKWK8p07CirtzdPeCPqijn2YCdl2ZnVkBEZNsVkMEJddwIwxeLg9 vq1CIwU6vzfdhJcvEtEI47SKBQ== X-Received: by 2002:a05:6000:149:b0:2cb:3deb:c014 with SMTP id r9-20020a056000014900b002cb3debc014mr8783527wrx.28.1678192875604; Tue, 07 Mar 2023 04:41:15 -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 w9-20020a05600018c900b002c5a1bd5280sm12434670wrq.95.2023.03.07.04.41.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 04:41:15 -0800 (PST) Subject: [PATCH v4 0/2] Add MediaTek MT8365 I2C support MIME-Version: 1.0 X-b4-tracking: H4sIAOIwB2QC/4XNQQqDMBAF0KuUrJuSjDGxXfUepYskjjWgRhIVRLx7hy5Lqavhf/hvNpYxBczsdt pYwiXkEAcK6nxivrXDC3moKTMQAFIC8H6qCl3yAJ7neRxjmnjjhapqC1qiZTR0NiN3yQ6+pekwdx2V bchTTOvn0SLpPP6ai+SCK4vO+FJ5bdzd2bULLuHFx549SVzgWAFSUHlCpEJTyR9KcawUpNj66pwURt em+VL2fX8DtbpxSEgBAAA= From: Alexandre Mergnat Date: Tue, 07 Mar 2023 13:41:06 +0100 Message-Id: <20221122-mt8365-i2c-support-v4-0-885ad3301d5a@baylibre.com> To: Rob Herring , Krzysztof Kozlowski , Qii Wang , Matthias Brugger Cc: linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, AngeloGioacchino Del Regno , devicetree@vger.kernel.org, Alexandre Mergnat , Fabien Parent , Rob Herring , linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2255; i=amergnat@baylibre.com; h=from:subject:message-id; bh=ngJR3lDpq2gN4aGwVDBwin795hLgOGEZuPdchMq4YZ0=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzDqxV1g5ocgwAedExTzYHgfPI4QlFkE4r5Faz6e TS5VfdCJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAcw6gAKCRArRkmdfjHURZBXD/ 9ph7eGz7u8HMJ+qKPI1mu8b6Hg4hhgoUdPrn5VchtVJAOJxKJi9L5ODgDmvPMYuP8pzEUB4E+qAz7O vxZQK+YoM0vYdQNWwFlZP4LPzRuG0dXvvB5s3J4xSicSMiPHylBAFb0GnDq3/bu1vWcBRWj+MExsRT GKMIkVhAHM8AcWGtBy82Fh02qWXGx5IVr56fVDc5/ZszzwpJHVJstuE9hii1vGmPxkIeIpn4wyNoy5 r0wG7zEioS+r9BbIIJQmED/ixkbzyIR0a3p245nYHxtAmxn6ojVp7WJI4oCIm3w7+o1jSuXSBPXgs/ WjceUhk8vyNMpTu/6I4NMppqDfIhJvzlh6fH+kAt5nlbUv4ftt/fC+qRmuAKII1Fij8a4EvoWaQaxK QU7CAwYlIF8fVXoX6lTFcYJRDEi85hoQjpZiRWAM6xiN4H77EyXygAEHckMqv/DBOCWqr3vKE4IKeJ VhUwXoJJ0GGxlbmL54ef1W2EwlHM07S6/wlbfv0WwM1Y3Wy2m75aGRGRcFWTHxkrnIrWaL0oGGGlbe PS6SoYax/vjtX9yqV5U8x28J/5ZHqeAca9gBdQOoZFFLX+ZazmQnDR+i1Jsr4jh+hzAOQ5GWDa/r4h os3c4rQ0WIT3iZltM/6KsmQuaFliKt6+ADoICS5wBN5iSPkULW3KUSD85OKA== 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?1759714025203869606?= X-GMAIL-MSGID: =?utf-8?q?1759714025203869606?= Hi, This patch series adds I2C support for MT8365-EVK board. The I2C-0 is enabled, it can be used through the board pin header, as described directly on the PCB. This series depends to another one which add support for MT8365 SoC and EVK board. Link [1] One patch has been cherry-picked from [2], so I've addressed the comment and kept the trailer. Regards, Alex [1]: https://lore.kernel.org/linux-mediatek/20230101220149.3035048-1-bero@baylibre.com/ [2]: https://lore.kernel.org/all/20220531135026.238475-2-fparent@baylibre.com/ To: Qii Wang To: Rob Herring To: Krzysztof Kozlowski To: Matthias Brugger Cc: linux-i2c@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-mediatek@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: Fabien Parent Cc: Rob Herring Cc: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- Changes in v4: - Fix some properties order. - Remove the useless properties. - Link to v3: https://lore.kernel.org/r/20221122-mt8365-i2c-support-v3-0-ad9bb1076d7f@baylibre.com Changes in v3: - Rebased to v6.3-rc1. - Move i2c3 node to be consistent with the SoC address order. - Link to v2: https://lore.kernel.org/r/20221122-mt8365-i2c-support-v2-0-e4c7c514e781@baylibre.com Changes in v2: - Drop the patch which do useless change in i2c-mt65xx.c driver. - Change 2 lines compatible/reg in oneline. - Link to v1: https://lore.kernel.org/r/20221122-mt8365-i2c-support-v1-0-4aeb7c54c67b@baylibre.com --- Alexandre Mergnat (2): arm64: dts: mediatek: add i2c support for mt8365 SoC arm64: dts: mediatek: enable i2c0 for mt8365-evk board arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 17 ++++++++++ arch/arm64/boot/dts/mediatek/mt8365.dtsi | 48 +++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) --- base-commit: 5c6b974d24c21a6aa5d8b524067d7d9bc7fcc4f2 change-id: 20221122-mt8365-i2c-support-fc048da261ea Best regards,