From patchwork Tue Jan 17 08:49:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 4099 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1641395wrn; Tue, 17 Jan 2023 00:54:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXvWqxg/SyQ3mIMbvNTPN9Xwq9sXbyAF/+ukKClK97v3IkYFNBYWi1uzBqseF1rdh7aw6i4H X-Received: by 2002:a05:6a20:1a9d:b0:b6:3708:7be7 with SMTP id ci29-20020a056a201a9d00b000b637087be7mr1382998pzb.34.1673945658026; Tue, 17 Jan 2023 00:54:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673945658; cv=none; d=google.com; s=arc-20160816; b=FKs+jG1jwfJnimIh6Zaa0gYLMGZUxdFu5LD0p2A/cKpFf4klgH0eO7OMXUUb+rgL9T m4YWs9GTAdS5swY+VEHyUZvGAWb2FQiMW5EAZsmAkzXsCm/Zmp8cwE3w1SHwrTXO6EMY ug5fmiJ2pOqaxS0gZG55pT2D/DcN5rvKngd2O+cb9Ikk3Gs6t+zzA0m8siYoD47nOXc9 7QJVhWVtTlDqS2tRA7Pk86rFQS2K5jYgIQ9qJ1IPWAqTbMruLiNKNtJbH+c2V0m5Vh8g JEy9xCSkE8GBKIdi3PyxReo3Xh4xAR1LB5gQdOUNnbI3ZNFxVTaU6Bjfh6c/pE1vd791 MM2w== 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=xEPydhr2aJe8xzx6UgSq+GSHo/q8fq5XeTbPFG+Ef1E=; b=Bod7L+9545xBw644DfmryxY/1gPpcjIlfB760QdrpDsfvnxvyF8w3pTA9b1tFmUB8L mvfAZVCeu4jBqdmFeWSbabCt+/Z5XvmW0941B+n6Kjh1WSH3i+0TL9d8gX8MX9XjJgdn oh742bx+KMNT/eeiWNNuJ8KjG81TkD86ECMOrYzJHeNfeM0sc3apoRNJfxkcE4B1wTh0 IjCutFqq4Swl+uHAS51ZTGw/f43+lshM/RAF4mFyufm3xLAgwU/OeMTB3DJDZcIuSeko rZNkaQYa2/JFAYBqQ115aBgFrEirWtRd9XtL0BecCEOwS6EYNgKkFrGVo8UGbfVp/hUz 438Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=D0itoJxI; 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 z6-20020a170902ccc600b001898141f0edsi32445226ple.159.2023.01.17.00.54.06; Tue, 17 Jan 2023 00:54:18 -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=D0itoJxI; 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 S236247AbjAQIuO (ORCPT + 99 others); Tue, 17 Jan 2023 03:50:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236201AbjAQItz (ORCPT ); Tue, 17 Jan 2023 03:49:55 -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 93FB91815B for ; Tue, 17 Jan 2023 00:49:53 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id m15so449169wms.4 for ; Tue, 17 Jan 2023 00:49:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=cc:to:message-id:date:from:content-transfer-encoding:mime-version :subject:from:to:cc:subject:date:message-id:reply-to; bh=xEPydhr2aJe8xzx6UgSq+GSHo/q8fq5XeTbPFG+Ef1E=; b=D0itoJxIvbRfYUK3B5ms/XaDaAgZnGY5zgdjySULjRRJ6vYM/x0RiUColU4unA0VaN ByhXyO5UQK2La4ZNt8CRrFelaZ8rvunJmOOVwXHvh3m4ENM34qNqN6cmjNm14zdHu5Va wsQD5iSq0PRJNzqN/SdAooWVP7PicxCSzeiWTP4Qnvva4UvxmPcpG0ujokKFsj4X94YT 2KMCY4+6ht5GkA35kKaxCp7EdOOmaT10k8kDAvRT+MHtud+c9cSY+y/4CJWloNZbbPlh xDDlr6W3AYeZm2ZrMnEnWChN7hhdZeyNVLd5fTgWrFT5xbQzLkA8225TqpXHnHdQPOct Jj7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=xEPydhr2aJe8xzx6UgSq+GSHo/q8fq5XeTbPFG+Ef1E=; b=gwFAiMvggE660+Bf0GFrolAiU6mnRuxuPDiMW+433D1nUyVh1D4QJX/BrYLvSR8QpU b1bY/NyP5oz3AxjTxnqovSFF+uVHRnRBGrVM4k5gUKgTWnT+iaLTVjJVbmSieieZN3O/ YKMYe1QZwJXAVi6OKA8XckBRBMHpd9nfILhCOHlRTDln3jee4cMOTedqUfjG5RO/SXb5 IMloAYbcH7Ni83Ixpn0PeNxM0TXFQZIXOCMkacicx6rUMG+QJsrmnA3fwaqlIo1GLBwS LyN+ECRkOxWeCXYh31HAZMkOIt6GbcfdZ5VvaX4HJn9Sot1mtiz1rEFxHhYCXf+oCmw1 cGxw== X-Gm-Message-State: AFqh2krKr0niFSRoWmj8IGw46CL//hkl91oBvlohqk/pbWMID7jcMLIB E8IeYiMvdJygZckECB6ROFezOw== X-Received: by 2002:a05:600c:510d:b0:3da:f719:50cd with SMTP id o13-20020a05600c510d00b003daf71950cdmr2191897wms.18.1673945392066; Tue, 17 Jan 2023 00:49:52 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 00:49:51 -0800 (PST) Subject: [PATCH 0/4] Add MediaTek MT8365 I2C support MIME-Version: 1.0 X-b4-tracking: H4sIACJhxmMC/w3LOwqAMAwA0KtIZgM2fhBvE2vUgNbSVBfx7nZ8w3vBJKkYTNULSR41vUKBqyvwO4 dNUJdioIbIOSI889gOPSp5tDvGK2VcfdONC9PghKHEmU1wThz8Xmq4j+P7fvHsOjlpAAAA From: Alexandre Mergnat Date: Tue, 17 Jan 2023 09:49:38 +0100 Message-Id: <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=1865; i=amergnat@baylibre.com; h=from:subject:message-id; bh=ZoJ6rFEEnxpa0J0RlavE7BjLWGiNdDKCFRMWyH2/oXo=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBjxmEuo0/5O0tijs4XtUwu7qjPT93h9gaGCUQJLBYC 0i1KUJSJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCY8ZhLgAKCRArRkmdfjHURXnbEA C6WBFcTFNKOgskrR1zywVwx4DgxxlM+D3fnWhJS2FBR6Oxh/jffkrs4Lot/UYQLPC3e4d5o9u+lPnm LHzxa8DhULC3qnZflArXOx7nntaGEvC87HJtYslq5rh8KWgN8Oc+32CUxhi/LfzJ9JLxScEUwFHAQc p0SSHYITj9hFPZg0ZHbW32lOUoStOih9SRloS/EzEwjYjSpYyuiuQUJpECsH23i+UfVcl5XIQi+nkV Pv6mH/Q0TFRDElRt9oN/uOE9zJPX/R+IicRCabRDj0APkq3XFOMJI3ArnvaL0r1J2E22ybjPBoDjYE SYNSQRwfT+ZLSbp2MJfGeOmMLviEzFlVFDMf1KFenaGHXGeB/G9joeHDGH+Ys9KYW8ypc4O7mgmSgN w8Xli6MPi1RcE+eytXECEL10k3sQ2Whs3ljJEnBQ0s1qymV2jkRunIynL8WVtR+HuCw02mrgw8i3x/ 9Zk/lo59vZJw4LrW/yEAi9635fA9XYJWcUguMxZiNu9Psb61eDusrAPMxfGeLaaX1zAUcw7VcWnZCr 2qZfh1PQyCxqh0ISFxG1Wo9zVBeeFO3b9Zni88ZLRN85GP7yN9RzSCcJbsIcPYebI021SshlglZPR7 vwrSYCJOsHQyFY8UcSSfxfZqIuHjPCCrKoyxvjkWaFnxhR9jfJnNOaLi39Rg== 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?1755259242186690271?= X-GMAIL-MSGID: =?utf-8?q?1755259242186690271?= 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: Kevin Hilman Cc: Rob Herring Signed-off-by: Alexandre Mergnat --- Alexandre Mergnat (2): arm64: dts: mediatek: add i2c support for mt8365 SoC arm64: dts: mediatek: enable i2c0 for mt8365-evk board Fabien Parent (2): dt-bindings: i2c: i2c-mt65xx: add binding for MT8365 SoC i2c: i2c-mt65xx: add MT8365 SoC support .../devicetree/bindings/i2c/i2c-mt65xx.yaml | 4 ++ arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 19 +++++++ arch/arm64/boot/dts/mediatek/mt8365.dtsi | 60 ++++++++++++++++++++++ drivers/i2c/busses/i2c-mt65xx.c | 14 +++++ 4 files changed, 97 insertions(+) --- base-commit: 8b6cfcce3ce939db11166680a57253c39110f07e change-id: 20221122-mt8365-i2c-support-fc048da261ea Best regards,