From patchwork Mon Mar 6 13:47: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: 13161469 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 848C7C64EC4 for ; Mon, 6 Mar 2023 15:49:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Message-Id:Date:From:MIME-Version :Subject:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=TN5SUjjsH4duJABnxOL7C8IXxuu29Eu/t37+qBoBIpQ=; b=28R6NJjsy5DLp0 WgxtmwxuON14pRlYS6OoaUjsila81wQUGXQG77/VXLrBPOYWtIEedIWb4zMEUYwxym6IMUqq+sVu/ EZr3v387m5h4iv2B3BC8zFn1EqUBUJhkBHXROBSPPN8jCycXvDhlpa3T2Lt+f26GAwf3S+KI8hR6+ KoZvRikQwX81cGKQilTx3kPjCNTBlPWRuoX37M9Zq70e1+OvDnodhkdqzJNwJEl4ZzVhxrrTYBpdI pVdTHbsSkHXzhehrD9qF1zjOHv3fpTe0YcgRRTM3rsPCfQoQjzY7HBrbRnLiXeuoYN1H9A1iOWPCC zPildKZlX0jjBt3DwJHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZD4f-00DgMJ-32; Mon, 06 Mar 2023 15:48:30 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZD2w-00DfJh-8q for linux-arm-kernel@bombadil.infradead.org; Mon, 06 Mar 2023 15:46:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:Message-Id:Date:From: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=7yqvjSJOfmMKr1X7pi/yKdN0p0WXNRNNDU8eJl008Xs=; b=YF4nDbnDkkmhWTp9km0g2jx2gc sUBGhnoGkMJUfFieex0R1W72zp0q18RfIZiSJvACb7asOliuZQIxW8dfS6FvOtN0ESqe2caUtauJ6 /FCGw686O4+4MM6u+Rcd+eBKNpckN2QCUa7K28PqWZdH4G9tId/f3W2Iidoy8B/0jWYxyvV0AxFc5 i2Eb2p0RSxqOI5EE52yOI0P/kpqwS9Xk8XhsLcamIwTXsy/XGCEu1uV/Fcm0lkfiOj808UBdrc8qa WpEKe50HORU0JpcQFmLx6btzuc4JDWkR86WMsz4Y3uuivla25AsT9zDPvCqJv30RN+RZWQ1VduzrO d1M71/ZQ==; Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pZBBy-00Ggrk-1O for linux-arm-kernel@lists.infradead.org; Mon, 06 Mar 2023 13:47:57 +0000 Received: by mail-ed1-x531.google.com with SMTP id a25so38998822edb.0 for ; Mon, 06 Mar 2023 05:47:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678110471; h=cc:to:message-id:date:from:content-transfer-encoding:mime-version :subject:from:to:cc:subject:date:message-id:reply-to; bh=7yqvjSJOfmMKr1X7pi/yKdN0p0WXNRNNDU8eJl008Xs=; b=EB/+WfYhrgIpmSaPtWHbtJG4qfTEY783c5DFRkcwuTtmnIm74+gVpGfhg5c/CcBv4M ij+SIQ7tWinDvhA9dSRCBGkq6WqqrpHmvKrh9mr6sWmx8bidqr2ihuRaJEiFpfFaAy+J dgdjyeoNT+1SW8ibSvP9jz6DoHYM5TCelxmSBjDVIw//1VQ/HZN4KUOPFuI8Z3Jcl6B0 NbU97bB0BJazJRSiMpyDOLOlmhxLTjoA75/QW9iajVUzOdLdN/trOopEyBEmipcVJzbx JC7yeRcl3EmPavvOfPwDYe4X8sPqyaxA+zSepCgAjvM1Z5+YNvwWZc0/oqx+grY1ul0N TnYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678110471; 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=7yqvjSJOfmMKr1X7pi/yKdN0p0WXNRNNDU8eJl008Xs=; b=MM5tk6MYG+R/0eUe5DBwHJeqetMQ6LzxfwdhxPvjUSJ0f3NQ5ss6Q/GMePP3wiTrwo TZpbJyKsnYxeX1CFYM39b0T+X5jwKUKZ0eJYw6htXArm41yJ06o+WTIqCwJ/rqL78W5Z p9UI1qYT79XWHU3hAJyaAcySw4vqbEMt/f15ZJIP/7bN8Upl2z/sx3k8gp0MUTONWsXn LgRXp7IH25xjrRhEk8ReL8L3ODg9lunhRQku9xsg1FhBXxG4AUeShmPeDZ6aXFyc7HBH +iEnMYyemELahN5ULMLOsGJ1WVjOJlVvmUcuFsicXzqgteZJz8ykgUyPqyb0U4GH71kg onYw== X-Gm-Message-State: AO0yUKUiS94Tx57mH+WUbxxi193Qogx4j8W3/GtVHv1s9UXD9IAbns2L VPAgBBsJDa+qk63OZVHWeWUj/Q== X-Google-Smtp-Source: AK7set8e1MakN8+Mg4z6v5F+hlOxZs6gMD33KgMLuFHNsgvVhZQnoSalhDio/qK13oweQwZTfLrIBg== X-Received: by 2002:a17:906:b15:b0:8b1:383d:cd50 with SMTP id u21-20020a1709060b1500b008b1383dcd50mr10556760ejg.48.1678110470773; Mon, 06 Mar 2023 05:47:50 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id y64-20020a50bb46000000b004bc2d1c0fadsm5193293ede.32.2023.03.06.05.47.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Mar 2023 05:47:50 -0800 (PST) Subject: [PATCH v3 0/2] Add MediaTek MT8365 I2C support MIME-Version: 1.0 X-b4-tracking: H4sIAP7uBWQC/4XNTQqDMBAF4KtI1p1ixvhDV71H6SKZTmtAjSQaEPHuHbrsol0N78H7ZleJo+ekLs WuImeffJgkVKdCUW+nF4N/SFZYImqNCOPSVU0NHgnSOs8hLvCk0nQPi41mq2TobGJw0U7Uy3Rah0HK 3qclxO3zKGs5t59m1lCCsexaqg01rbs6uw3eRT5TGNVdxIz/FRSFDQmiDbed/lKO43gDCL2l6gIBAA A= From: Alexandre Mergnat Date: Mon, 06 Mar 2023 14:47:42 +0100 Message-Id: <20221122-mt8365-i2c-support-v3-0-ad9bb1076d7f@baylibre.com> To: Qii Wang , Matthias Brugger , Krzysztof Kozlowski , Rob Herring Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, AngeloGioacchino Del Regno , Alexandre Mergnat , Rob Herring , linux-mediatek@lists.infradead.org X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2074; i=amergnat@baylibre.com; h=from:subject:message-id; bh=hfD5vVYRCGXPNMT+jA4ETz34GbWOZ3lcpTxfO3jv7sA=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBe8FVScw8Ldx5KbA53YVxKhr5MCW85i7oiiBmw53 wzNoK4KJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAXvBQAKCRArRkmdfjHURZyUD/ 9VeQopiSWM4snlYxEIYa09+Hy208zhn2gfrnovTlsQ/bZCzi012GQTQJduLhrxCpmNrAAeiBoGahq7 4V36PBCzWKjos7BNgd6zrQaaYf6luco3Ry+jGBqkNj8RfiX5CcR8lcdMM+W3oNdadEZgw6/zJif2ll onQK5z5RVDW6itAwoTzdwCsmyVw2i9ET9BxdN47icX2YbKlHFcXqlaRqAdnCSLW0uAzD/wzIwKvwm8 1U1ZbCvj7nw7baGQIpGQqetOlyy7Kd0lqj/mL/vquIQjC4kc8BfFZsnGsa3jN8rydsPd3svqqOftcZ CQV9hcc11bFbvxnNUrE13MkuKfTj6KcBelJlzIhN+cIyEBSuBFPy/yrCQfGGhWUuqvZgK2zsVYCEy9 H3eu4td4aIJyTZGvj+5amiEyrV3kczAfCEhhpOWLhQ4goD9FDPfUVa+3PrXbEVQq0dspD1VLTcdQCZ 33YqyuGOMFi5z1tTqdfszFCRWujMzgGy1ZOFxjBoTDpGi1gV9FdZnryK9HH2zScsLcLhKMrYaH08hr NbowGRcngZ5a8clCm/rprngS/ge9FKZQOK7egSz86321+TqnJt33XPqsehpUhdF2kH0+mMZMcdcM2S L3eH0t/jQrP/Y3C93CRS1zWD7GWNSJ718uoIYW93OCtkyIANIqJo9x5CpOhA== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230306_134754_699466_3F583CB2 X-CRM114-Status: GOOD ( 13.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 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 | 19 +++++++++++ arch/arm64/boot/dts/mediatek/mt8365.dtsi | 52 +++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) --- base-commit: 5c6b974d24c21a6aa5d8b524067d7d9bc7fcc4f2 change-id: 20221122-mt8365-i2c-support-fc048da261ea Best regards,