From patchwork Tue Mar 28 09:04:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 7317 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2072990vqo; Tue, 28 Mar 2023 02:09:12 -0700 (PDT) X-Google-Smtp-Source: AKy350azQFLGRZcx9WolYcSHAEBLyeeww+ZJrCTGGTTWdVgS4RjQv5HieOCCwMZOX1qxAEzUw7d9 X-Received: by 2002:a17:906:b4e:b0:92f:2c64:9d43 with SMTP id v14-20020a1709060b4e00b0092f2c649d43mr15583075ejg.68.1679994552741; Tue, 28 Mar 2023 02:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679994552; cv=none; d=google.com; s=arc-20160816; b=rrYyohrr+8PApI7ukAyt1tJB6wLFiIPTMSpiTMdoOMWKk4LesNfKwaoDLCs50dhyvO c0L0UNM5UEnJgW/YiSLim2xH3k7fv06vP+I0d46vLTUm3memQRNxMFVF4eLFlart1RNL mctCqd93GTGF3k7YB9l+k/v48hWH5onTlsvc2v4RLw++2di+M/UfwzewGEo3TU8sEK4+ lE5cpwdektBuOc48/TWcrm7HwgQRmDn7LNkxMu0J8JY4PV2zc18iw91TbgxQ8d5C9v32 RRqN5HWwkJlZNZDLbVyH/IYEdK1QBxXRFuKopgsQdSmzJHKT4ixuX/2kJizumD5PYzyr 0QwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=j2oNGFQ2BoJD5dwllsw51gKBnxPyzKrs4LFa7DNm8gk=; b=yvcfr5P77CIJ9+0l6xshRrNdHIS8G4Lv8+BJc9UqH7/a6q2EMFp/PXyk4NBSmGAtHa uXGofpFDBqO0NwsdWPsNjXSoivoMZcPbC0jiuqHDiaL4ygUnDayfne1Ev46qfnbeGmJw 4FFRQkbKs5XKe1W54+BNDi6FHM4GWmEfgNuFw88lpGTasrHkFZ6BLIxfvGIeLrqITfBA wfUGuwD1naYs3TnQdxb2VUlhKP0X0dTLH4EE8SqabsGX2Zfgy0EEzc7dzWyqw3kCcGFb AcHnZQ2BW+5tDUAhEJDRJgeup/kGY2HkyJ5yaUsLyckaBrEMtytO3t5S5D0wBrZW2eHb /Vqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=vwEhAhfS; 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 j4-20020a1709062a0400b0093c1b6a0a85si14220502eje.356.2023.03.28.02.08.48; Tue, 28 Mar 2023 02:09:12 -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; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=vwEhAhfS; 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 S232372AbjC1JFH (ORCPT + 99 others); Tue, 28 Mar 2023 05:05:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbjC1JFE (ORCPT ); Tue, 28 Mar 2023 05:05:04 -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 7745D49FA for ; Tue, 28 Mar 2023 02:05:02 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id l12so11321117wrm.10 for ; Tue, 28 Mar 2023 02:05:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1679994301; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=j2oNGFQ2BoJD5dwllsw51gKBnxPyzKrs4LFa7DNm8gk=; b=vwEhAhfSTnuopZUdA5Om9A6AtbAo0YNO/7p2/Y4a8XW+z4vE7bqGzKbusWFwd9nlq2 iE05SQpagXgf4Xfrq+njamVdlxS69++U5xVZ8Jg7rWW/j894/Q8HqlrHQMCQZpcbTPtz OevR5Q9sw52Hwp1Wr3g/dIo5weNt8eyZAL5JdaDJ7UWNjjMqfJYcFyQ6A9ZJzkQ3TDRd YH0UM/4d1N6scR7DdCqsjsHSYLuIn1AxklJ5JshwANxyaL6nlazk3eaCgHFyoD7HWbPe GNEDKZ1pL2ivSSrcIIEo7esgltl6YSqEEIKMwYiNvZtUuknDTBImG9obAqHwPA/kgMTV dTZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679994301; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=j2oNGFQ2BoJD5dwllsw51gKBnxPyzKrs4LFa7DNm8gk=; b=OyjMlu4k5K+QCQGEwshw/6GM4I4/LUbEqWdjKDeftQIe3eObh6MVCOdCW2kBvL4Myg jnCnOYv7ArIZ08CgJdMQIr7R9hwvmfeVfT2+7bs8jhk5JZD41EDS/RuYWrHshXBtBHaS W4ih1z2SOW0+u9Skk3L82fRsQK2TmYZo32fuIyBXzAwB3cplzq4knq9LJ5GiwYO9FSTu ifUGz8jsH4RrE3ZXKAt5Q1y9sVfY+ht0kryjfrPTcTviiwfB6aB+CZOGqf+xsi2l1+h5 CmMYzQ+aKSvv/XfDImBm6Uockf4tjUU9USUVZ17+5oiryoeCLLoKzzy5xaPLZt91qYGA uO3w== X-Gm-Message-State: AAQBX9eD//PSrGFNCi14m1I+QjsfGZP21ZephF/VYbXSpKC+rU9Crfgb haywxkKN/ArVCps616wQSdR5lw== X-Received: by 2002:a5d:4e10:0:b0:2ce:9877:84ae with SMTP id p16-20020a5d4e10000000b002ce987784aemr11104150wrt.16.1679994300882; Tue, 28 Mar 2023 02:05:00 -0700 (PDT) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id j10-20020adff00a000000b002d1bfe3269esm27102109wro.59.2023.03.28.02.04.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 02:05:00 -0700 (PDT) From: Alexandre Mergnat Subject: [PATCH v6 0/2] Add MediaTek MT8365 I2C support Date: Tue, 28 Mar 2023 11:04:46 +0200 Message-Id: <20221122-mt8365-i2c-support-v6-0-e1009c8afd53@baylibre.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAK+tImQC/4XOTYrDMAwF4KsUr+vB/3a76j1KF7KtNIY0KXYaK CV3r5jthMlKPMH7pA9rWAs2dj58WMWltDKNFNzxwFIP4x15yZSZEkpJqRR/zEE7y4tKvL2ez6n OvEvChAzKSQRGxQgNeawwpp6q42sYaNmXNk/1/XtokTSu/5qL5IIbwOiTNcn5eInwHkqs+JOmB 7uRuKh9RZGCJhEiDfogNxS9r2hSIJ9ilMK77LsNxewrhpQQLGSthcwWNhS7r1hSHJpOR2tO+s8 v67p+Abje57XUAQAA To: Qii Wang , Rob Herring , Krzysztof Kozlowski , Matthias Brugger Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Fabien Parent , Rob Herring , AngeloGioacchino Del Regno , Alexandre Mergnat X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2273; i=amergnat@baylibre.com; h=from:subject:message-id; bh=Qd8ErcwczvQ5zIjdmraFPn2SInm+jrQhAhyoMs7216I=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkIq27YnGWAX7xbAlgtqxGLvuwp8Qvu7n4mqAV47sL +pGTzneJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZCKtuwAKCRArRkmdfjHURdIvD/ 9XcR6zlzDTKLoo3D/zMqrEcMcOmMeeNzYCrl96gGy4TfxjmJ5YUHLUT6kGoBHjUMIetyAo01Bv69KC iFLTYH9xtCpLnrNU85r23khpJplZxv+HQcoOr7V1sVZJlZt5MZSudRquFN2ssXfgAwbYz6ECCzPT/V H6nqHIosB3zlav6OMffCyT/mAldrq0cQgzhZ0W8a1V5xrXdxg3SOSY0ksrWObrDYv6JFqJeFHRVVrS 3CNF/gobjumw3ZKJSslSeYtipBlSF6SokT8j651D30sKDF6dv1gk8Pn9dLqWKkXR1JaxhnPSLhvBAX qOJgUXThqIJ60d7HwXhZStIf8APTznrfrsEQnwHJ0XG29z4yEvFRl5VG9I1XcXStf74So9iRQSSHG0 OM9Cfasglhtpcyevq3Vwa/DvNGrWZ+B8Uwmb4ebYMMi74w6CRjyZMA/mu9EOu96Y6zFqE8Q66MlpR6 Kwe3EJLuejFDOyOmMVpUxO20nkM1EUbzgoi9vBm38L6SAkz4dyiKZLsgpUcEXJpWwqPeiZ71FR/jAj FuforHdrHETiysyuD60DjSzG5XwJgYmP0jLy4QVdrUIDec4GdB6UWHTR5kpxcpw16X18gIrloyPdAL Ty78fflnlRXuD7oSjG7gz+uRfBjoZWFHAsUMkRUSCeiUAuB+FiknHTTZrDlQ== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-Spam-Status: No, score=0.0 required=5.0 tests=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?1761601967939533391?= X-GMAIL-MSGID: =?utf-8?q?1761601967939533391?= 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] This dependancy has been applied by Matthias Brugger [3] 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/ [3]: https://lore.kernel.org/all/ed1f9faf-cb4f-9ff1-ab6b-813035a051bd@gmail.com/ Signed-off-by: Alexandre Mergnat --- Changes in v6: - Remove mediatek,pull-up-adv which is a deprecated pin-control property. - Link to v5: https://lore.kernel.org/r/20221122-mt8365-i2c-support-v5-0-6e4f3b54937f@baylibre.com Changes in v5: - Remove mediatek,drive-strength-adv which is a deprecated pin-control property. - Link to v4: https://lore.kernel.org/r/20221122-mt8365-i2c-support-v4-0-885ad3301d5a@baylibre.com 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 | 15 +++++++++ arch/arm64/boot/dts/mediatek/mt8365.dtsi | 48 +++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) --- base-commit: 5c6b974d24c21a6aa5d8b524067d7d9bc7fcc4f2 change-id: 20221122-mt8365-i2c-support-fc048da261ea Best regards,