From patchwork Tue Mar 7 12:41:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 65437 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2410506wrd; Tue, 7 Mar 2023 04:54:08 -0800 (PST) X-Google-Smtp-Source: AK7set9pdgJYfPLcWTYznQ62+NmcIQ2XeJHifGPnlJqEbyWHxepIOOQUHYbkqnXyMd0cHO56E1oC X-Received: by 2002:a17:90b:3a92:b0:233:b5c2:7d17 with SMTP id om18-20020a17090b3a9200b00233b5c27d17mr15081249pjb.23.1678193648015; Tue, 07 Mar 2023 04:54:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678193648; cv=none; d=google.com; s=arc-20160816; b=EJKqbW+2AAf9ZEbQOUzl8wZ/0Yb5ILtFD7jdknGf+dmmFcSf1nxWUtBcj/a/i2uVUh /Dtl3ijuHqfDitVwb24NTAhGNegJryvSjXfn50dDrk5ayyDb1FofWyiC3q78gr0IQElG q6+HD6Aew4seKtNmYL9f3FT6Fvwq1y+uivfgVZ2al1xWoXhfrxpFxaibfjMQsAQYawch IEwQ7aOmEEdYjB9w66iixmS23gBYhZ491tlqFwfiUM6XpZFeKiBb+OVkzMVJ9+eDBx+s mV2z0qMwg9/xfsB/wLp2jwXzvOU0L9sxsIQ43Mp8fu5dxT9Fj1XL7DCOkt6pNas7IO/u geqw== 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=y2OOo+pfMehtdt61ClnrNN4eJg07+4uqh4vAlRtdVDM=; b=i+r5jVVjTVm/oi9Juo6Tx8r9RLhNXpT1enpq9PsgzpcAHnPOTiILBD6ywAMTLxSApx SfVhOg2+dLeMYW4up87GkpN1mlPj1/9HCpSG2G3s982TWqWA4zEpzlmAUKXwao4j03pX hp+Fy+xqqsM9JiPfmj66gMwojMbfSOxBCsvL5pF23NQJfJr/pH69udORKf6kP62D2kNh UNI0um4seC7LaGI3BNHF3KqixdOSDMa47db3bQwtxHcY2Ow9i3uK51BvDt50JyUBaMWM /0Ti0f8GQ9UEELP6vuk8iWmV7D9CdOSkRXsodsoBIg+uIIsJC6ERi0laYhkGVkCH58At 21Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=t+iCrtVw; 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 bj19-20020a17090b089300b002340e196aa0si10653808pjb.176.2023.03.07.04.53.55; Tue, 07 Mar 2023 04:54:07 -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=t+iCrtVw; 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 S230027AbjCGMl2 (ORCPT + 99 others); Tue, 7 Mar 2023 07:41:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbjCGMlU (ORCPT ); Tue, 7 Mar 2023 07:41:20 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B2B27B11F for ; Tue, 7 Mar 2023 04:41:18 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id r18so11987370wrx.1 for ; Tue, 07 Mar 2023 04:41:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678192876; 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=y2OOo+pfMehtdt61ClnrNN4eJg07+4uqh4vAlRtdVDM=; b=t+iCrtVwYmXqVdAOWAa7/XjG7gzjZ1vHvBnEMS2znGVTMyY/buNzrsP8/TIwW0iy5A zjpZ/Lvp96EimEV4FcrjOQkEgmoYTtNy41KE4E0PDzFmlPUwLxzCPIVixOpiCDf+Mqo3 yblCliPsP5zKKFVn+L22jzucDeSuNs+7PUw8/EbKnbjwLciA6/wzNYulZ4vJsZOzEauF bvmrKczEh5fWp+1N0BPnhTsomwoelVr5vpPM/mzppRF9eKGHgEHG2AT3ghasCGIccV3p UlFp/JXPaHa87Qe7fW8/uZDcV4CGp4zCzgDEUMI8KMLlT6lpcN1BIkZg8cR7+vM3OKkZ aFlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678192876; 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=y2OOo+pfMehtdt61ClnrNN4eJg07+4uqh4vAlRtdVDM=; b=kv7N0bNr/9hi17HCiWs1k5WFerkiW4lztUaL3mM873y0SHlIB2MjTRZpwnHXJdzP4m HJgnqvJm7hmmwL5/61F8d69ADl4r5G8hCSQxwd1Mmwtvlc2ztqAvyS8AMYgcNkSNNIw4 WflHZ2dhCXihIe9vzHQk5yqAPedlio9WxXeA5lDSx9ug1dXObOzGM1awwMHU58Du59oj iQG5sUXNxf4Xw0LLOTTpRyT1DPwZ2MJiANW6dIc4Hf4PXsUvYK+ehj6CQ7qIqQYwf8aJ 94A4f5FN3DVlmTWWpcMTzoEs5MA1EIPXjsAj9Q7njnVoljclSkfbGUH58HsDmPKuNqzy NmqQ== X-Gm-Message-State: AO0yUKXy/NkKoHvzeLf5Bg8jRzDLJ+rVGvk9pqH0UaejLq3ShUMQNv9D dbBr7XzWHY0o0R4z/lZEPP33rQ== X-Received: by 2002:a5d:5746:0:b0:2c9:5dd8:2978 with SMTP id q6-20020a5d5746000000b002c95dd82978mr9414849wrw.59.1678192876653; Tue, 07 Mar 2023 04:41:16 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 04:41:16 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 13:41:07 +0100 Subject: [PATCH v4 1/2] arm64: dts: mediatek: add i2c support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20221122-mt8365-i2c-support-v4-1-885ad3301d5a@baylibre.com> References: <20221122-mt8365-i2c-support-v4-0-885ad3301d5a@baylibre.com> In-Reply-To: <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=2699; i=amergnat@baylibre.com; h=from:subject:message-id; bh=u+MtjyWPgh4jPQn4QvtpwirJ4T/DfAOJHsOpg52IJ9U=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzDqCiWuVUZenZTJHFBYtVy0B5IyQnJXC+uVZ9IP OirqWTuJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAcw6gAKCRArRkmdfjHURT4AD/ 9wYMx1vHjoOrKmlL7xjPDPSTvpxLJZf/NXsVj37zs7wt+ueBvxUem49Dxy1ChEA0UEip6Tt0x8r4tR Kd7nC8peqX2AoLfK7HFkiQ1QL8y1r1WC/IRQZofDQAwri2iN2TcTCaxKBiRttPQikbRycbw6xoR1Rq YvotJdmNGUOzxpi0lIURHfkWFSBG/2eNJRAr5cRXrxv1PkgXl7nGSNSNQU10P2pkXTA3+oE2FqxizR GGQNhUqN0PSzwnC3PsZomQgFCLnh+jj+yWgk3Ju6jSiDPdWFMYygAH7XiFtSNH6FrlODYqSDUZbiaC w3rRYdc25p47Q5W9d48jNpVvVguNx793pdG1Xqig5iYkGOID8+dJkza1mqQDSU/DB+R7PHt2WWxSNu kZlpVXSqgijHOqbYEE9jiKLSClpqHuKE10iODGIaYpQfVpCiNXNf+Ejz+iWdvuxguul+ta23esEnMU DVx9B5rcigh3xVI3nUOfybn8GqU+MCjHma5+m/bLOmIMHA4Ih3dh6PwT+laGOen53v/mH+jN9R1mLu XRcnvzSsk9v+FSW0b+yMeR8+6+mo4kRxtMhSbFho1HDCtbDdtGhcTf3fbHuI9/CfwNwnbAZgwnObPp bcLHAx37v+aHN4V1Q4UX8jT4Xe4WFNMj0yiu90hzQaqkKmUG//rn7BJlxAvg== 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?1759713582528310872?= X-GMAIL-MSGID: =?utf-8?q?1759713582528310872?= There are four I2C master channels in MT8365 with a same HW architecture. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 48 ++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index 15ac4c1f0966..b70f4d256f63 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -282,6 +282,42 @@ 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"; + }; + spi: spi@1100a000 { compatible = "mediatek,mt8365-spi", "mediatek,mt7622-spi"; reg = <0 0x1100a000 0 0x100>; @@ -295,6 +331,18 @@ spi: spi@1100a000 { 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"; + }; + ssusb: usb@11201000 { compatible = "mediatek,mt8365-mtu3", "mediatek,mtu3"; reg = <0 0x11201000 0 0x2e00>, <0 0x11203e00 0 0x0100>; From patchwork Tue Mar 7 12:41:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 65439 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2414270wrd; Tue, 7 Mar 2023 05:02:18 -0800 (PST) X-Google-Smtp-Source: AK7set999tQsbkCk3uCHL1mOu4l9zoGx85BTCmgmstcFhgWSe3CxGRwDTtGEKr8jv7f9QkWz8oJe X-Received: by 2002:a17:906:3ac1:b0:8af:1a8c:eaa0 with SMTP id z1-20020a1709063ac100b008af1a8ceaa0mr13575608ejd.75.1678194138345; Tue, 07 Mar 2023 05:02:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678194138; cv=none; d=google.com; s=arc-20160816; b=FbNDEFTkMnOxC776dDRqgv2yJf63wK6tCOWiXBlKRcxd2UDibqN+abQ/2aPmj9tOZq AeDAaR3N/KiWe0G+7cOm/ERa21mh/LDEIZFBS6fEYelJx2ymr+aqWXN+PNQoloK3+lZU ZBArCuzaHOXAJSKSFUghqdOJJljlPTDnT5mh2E210pl4ThBQCmuBCukm5qW062hQVE8Q ychKlPPc8NUpyv7bHKeck1qkDRTz6t1LsqtUF/QbPCs3dpNyNtTWpPw3uJ0Pm351J4st XY46Fm9UHFgWyqjkaa2JhfC7K4MyXsKiAecCQUqrl1/D5t9CuCUDoOyVVcG2lZZYXQM2 D4+Q== 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=Da3gycm9GaSOTxM2r6GKDW6btSTz1Fl+GtonHRy4OIs=; b=SD/+4cuJyZ2pysY7bxBFqMUM0J8zfZ7PxknWcD5p213nw2YSh4uwTCAblpbArnNZVj wYSjsCTd2J7I0ZUwz/t4OOYQtAsthqm5I+jCSyTKfrBWDoo03nm3k1+OqEqVKwXGR1v6 8m9OeXtGvVE2Twlj+K1d8BapNxkMSXpM+J3bFHq30MqQLNOQhUNZT27TKEpqlF9Ays4L QkXxYEeIc5hEok4JynBnhX0Xb2JG4aHB33wTzoNCKMKSLZpTMeCz1KvhP0NusnvXii1o gVK0r2kj6Egg3OKhhQb0w4XzDtETu/Q/sdwhbFnNaxOCr8rosX1QL/vp4TaPOuGoNN4o LixQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=CeuK0gBW; 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 bj22-20020a170906b05600b008dcca98e6easi1218631ejb.910.2023.03.07.05.01.53; Tue, 07 Mar 2023 05:02: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=CeuK0gBW; 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 S229986AbjCGMlc (ORCPT + 99 others); Tue, 7 Mar 2023 07:41:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229758AbjCGMlW (ORCPT ); Tue, 7 Mar 2023 07:41:22 -0500 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 664667C3E1 for ; Tue, 7 Mar 2023 04:41:18 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id q16so11986069wrw.2 for ; Tue, 07 Mar 2023 04:41:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678192877; 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=Da3gycm9GaSOTxM2r6GKDW6btSTz1Fl+GtonHRy4OIs=; b=CeuK0gBWMnnVxKXxuaS4TbHqVvqx/XcRViY6Ab8AN5ulApgZO1xLbviliDSE8SggCv 0oROsCCoztpy4OEIaM453xTfC+EaR6i6iWS+mzmQBhKyWMgaliV3Heff6IujzglBKc2d mpP0OgwLpfktzGbumYthAreBwgMeplwXW6dih2aPW13Bmi7Bg5hW9GMyFBuKKEzhUfrp WhIA+AJBhV4aRgMXikn4aEY96bWjucyydAZWpKz33v6QcC4MI0LsglG7EkX0JaLVbwjx /o5Wy6x0NNQAURfDWBOdjG6HznTOR31Gza8TyI7VHMWpBtWTuIGqcHga1x7bDUANvEZZ qpCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678192877; 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=Da3gycm9GaSOTxM2r6GKDW6btSTz1Fl+GtonHRy4OIs=; b=U7WOBTZYaD/24gF/VHtH7S7NHToRia5OzO/hs0KkiBMSYAa0VyET55oGQnYVyCQMlB 3G8yZYUVDJ1bKwnK6p2ZLml5Q+ko5VVctlwDLUstv/KgAxvkIeuhvkla2VdbYWa/u5hV vlevuiWPm7TM5L8t4GDeL7sgl57RrfkIMstUo5NG01KzoDvTtEWOop50hHCOVHzTVdzN RSp0Y0AiGD9XEzaP91dJ7nY6ZLRgjG5JkltqQI6Pm4sx6O0y7lSB6CdTAmuiFA6DIU4y XFiOBMsTkC5RSGW9/tmhVVeO5oRWXqYm4gwKJqAc5n/AiyYOfWBtVblscTPSFBLLw3Ho 7/Xg== X-Gm-Message-State: AO0yUKVmiCIvTxCt4u5vRVXjvkI6peBbnAhTeDEoS4epY3n1PGJjRD3k WM+h7oH2wyY4k3Fx92tzjliZxg== X-Received: by 2002:a5d:4ec5:0:b0:2c7:1e32:f7ff with SMTP id s5-20020a5d4ec5000000b002c71e32f7ffmr8350736wrv.16.1678192877556; Tue, 07 Mar 2023 04:41:17 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 04:41:17 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 13:41:08 +0100 Subject: [PATCH v4 2/2] arm64: dts: mediatek: enable i2c0 for mt8365-evk board MIME-Version: 1.0 Message-Id: <20221122-mt8365-i2c-support-v4-2-885ad3301d5a@baylibre.com> References: <20221122-mt8365-i2c-support-v4-0-885ad3301d5a@baylibre.com> In-Reply-To: <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=1291; i=amergnat@baylibre.com; h=from:subject:message-id; bh=/2/cjSO2mF7U+slihZOD76PFWiM0Jv1Qz+ElLd/bOnw=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzDqcQGDX7mF+2FUnSGPLDJyNAnKOn4NaJfOwzgl MmtGUVSJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAcw6gAKCRArRkmdfjHURYkYD/ 9KfGHtkTIXYn298xwf9hQ8ovbQgNJm4iLoD0gTwEbNJbtAQWcm+pf/kgA5UzVtT6LolXsRv6xkDDFg HtHgOj/0G6IQrF9O3BuUX7c1MW5ynG/CTjXxf/uYzlDG95t7NAQIxy7MzHKMlDur6zTNmVrks7GI5z s9EDsvMqQx1j+LBOv1Jj0Moq6vzCXrP4+LucyqXzSg7hMmXn7mRFalNAd+TJpN295ZFwwmL3Qg3EQs UnAuqUywmHwMWYxwRm9fFKutfibO2LvXfmQOs1Mgo+9NpQfuQxmtenzmqwqcvAyW0qhU/Ai8GFd5Wz w9/2JIXAN4K3kquecBWSkFZNGfux0VlX63Womo8TbX1mDWq3TNvNeH5g7mdqKdkccBF8XU2F7K/+5L 3s/7x3JaCafJg1A/ckS5I1+eeDleUiHGtk5ZNYYEWNTMJdi64+G3bhL6OeU1DZdCx/ACZJv+Qgn4ta HMdFJgqwFGG3qnM0TxbgjGoGFtYn1E1Y8DI1BNhHugJHGg/Em9usE2p/nZxShBJrRbM7VGxaMWb5Wh 2UsHNmnXEA8Qnu+FIL/w4Bi4o6PQw+AVgHrBxdDRscOaCeMd6axkQWAmFEsTSCiG7cMtwj+oAcSlI7 IYdbwUpMSrB7sIeFan52LlY4xfCjYz/+APqYAGG9BpSyF31DoOnVHpqvrHAg== 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?1759714096934849041?= X-GMAIL-MSGID: =?utf-8?q?1759714096934849041?= 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 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts index 4683704ea235..bfaee9a4a38b 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts @@ -87,6 +87,13 @@ optee_reserved: optee@43200000 { }; }; +&i2c0 { + clock-frequency = <100000>; + pinctrl-0 = <&i2c0_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + &pio { gpio_keys: gpio-keys-pins { pins { @@ -96,6 +103,16 @@ pins { }; }; + i2c0_pins: i2c0-pins { + pins { + bias-pull-up; + mediatek,drive-strength-adv = <0>; + mediatek,pull-up-adv = <3>; + pinmux = , + ; + }; + }; + uart0_pins: uart0-pins { pins { pinmux = ,