Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1345848rwb; Thu, 19 Jan 2023 09:24:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXsmgiwqx1cvgAH3qs70IbAFm1tT8cEow4hk2fuP4rqwuZeWBL2iTXmWsLGo5kgvXUFNM6PS X-Received: by 2002:a05:6402:289a:b0:47e:5b70:dea5 with SMTP id eg26-20020a056402289a00b0047e5b70dea5mr11058719edb.18.1674149092045; Thu, 19 Jan 2023 09:24:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674149092; cv=none; d=google.com; s=arc-20160816; b=buanezdxfOy9PtD50nVLH294EMuS/jkNGWBLN6Kql5I0BA+KANyVokyzOE0RyMd5fM qUrzaiZC9aN1QHZ451zPAx/kAN4ncKnYcfb7Rg0sNf2+mvJLCyNB+amUogpYKtoJ8LAv PJdVjzpnw+4Sn254HwL2eQNQTgX9HfZPiqFfv1/q5v1WAesjxKp5qs2M5hsuQI2TOVBc h9ztlqcDvhXPhI7YWi3yCRakS/jXIYY/TJtkpD4jFRK7/AY+SJYk6iaMZe80kiK0Y82j Y2tjkIn/gMVPj4u35PwCUwx95YG12HQQvEOFF6JlUv3G91S8tOj/hlpkM5tCr1eiC36z Qzxg== 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=vY1pR8A7OW80xkAZYg++krO0fJkxZ30BhhNRiI4WE+4=; b=XW30vP72TXmnGAmAhPePX9nhSj3pdvowbIxJfLfuJxlFOpDOuFuaCwwxAPmEN3Govq R2FN7y86+pJsXzXwSbzotekiAqP5alvUbE8wMCZctlvab1ibB05QHHldj2MfWQCJD/Or n9h7T7xW8A6wKU2F4QYZdqcRLVLxeriNG/6PV2gClNftsS85XSuCVSsxV/ZhYW9KIIfr QyaSUDAa9XZZgSscvL/l3SOdle6Y0pVXHN+qq+E41bBxiQoFKuaDxF4BFG9x+88sHtMM gHw4l8oWFRYXpNBOY+lLSqhlxs+x7tjGVqTB3pHuhoo/Idgb5nAr8AKPPIbZSdJOcYoG RuEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b="P65lYM/d"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xj1-20020a170906db0100b007a072b8240csi29898237ejb.927.2023.01.19.09.24.40; Thu, 19 Jan 2023 09:24:52 -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="P65lYM/d"; 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 S230110AbjASRJ2 (ORCPT + 46 others); Thu, 19 Jan 2023 12:09:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229818AbjASRJS (ORCPT ); Thu, 19 Jan 2023 12:09:18 -0500 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 8B63F5B91 for ; Thu, 19 Jan 2023 09:09:16 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id b7so2531009wrt.3 for ; Thu, 19 Jan 2023 09:09:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; 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=vY1pR8A7OW80xkAZYg++krO0fJkxZ30BhhNRiI4WE+4=; b=P65lYM/d/tq/Tl+523m0GHYdBPr1YEqPOFcgIGr7Fb3OmHUpAzkHxBwCvneoSkKqSA cN0C1PdoheStFj4oa4A9us8dMWFJn7V+qQYlsv37VHnvy1GYHeegrbBb0cBJ1c0kyVzm QCvRRVTGBRpngeUjZifN4H6yV9v0BpllFhZvtPnyMwPnPPjI76H5wBeVC6JlND4/YIQp GHn2y2tC18K5hsmJ/YGbBCbCLWg/wKzrdV5V2kR1EL9Z8mwfqxXhcTGYB8lOD4x6oGV6 P6DNeaV4536ihL0rpi7B/3oCM2OY1hdr3f1tmb8ZjZm2tEA5cizIF3FwtEtHFHD9Phya uARw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=vY1pR8A7OW80xkAZYg++krO0fJkxZ30BhhNRiI4WE+4=; b=BXWv5ma/AWyXPbdKg6i2sds/OTkg++9hC/1Opc4vkScILK8Mz25Gha8Eaje3UZ+voh K9A2MUtMtCaxtnOZpTO+G37+Q7aPszpJ7DwQKNVLMROOsXAiw0kJtDmSfxXzei1QOLmn NH4CFYVJxY5Ap2FBU6imSfZR9k2tGG+VaOgQ9d3mm70gJtSNqS2g+rXoEUtxWjCkbut/ lCsIsNKLTy50OEhGwlrcel5VHs1oH76urKKEB3uIfid0FqAlV5Mi/ZyiGdhJrzmmalWe xTu5ZMjPgh44jmlZrKUQY2Mx3E/3uh5XRkHvIQMdJjnABrvbYDnBTSvlQSaUbj9wQlP2 78dA== X-Gm-Message-State: AFqh2kqAPAS15Ty8XuPL8BmVWm/yJNLEAqlCJf+Zp527tj9fOYcmsDG4 zcNVCxHvhc7c9g5F2lNfqJCzjQ== X-Received: by 2002:adf:e841:0:b0:2bd:bf01:5c3 with SMTP id d1-20020adfe841000000b002bdbf0105c3mr10191130wrn.61.1674148155117; Thu, 19 Jan 2023 09:09:15 -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 bu9-20020a056000078900b002be1dcb6efbsm8738701wrb.9.2023.01.19.09.09.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 09:09:14 -0800 (PST) From: Alexandre Mergnat Date: Thu, 19 Jan 2023 18:08:54 +0100 Subject: [PATCH v2 3/3] arm64: dts: mediatek: enable i2c0 for mt8365-evk board MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20221122-mt8365-i2c-support-v2-3-e4c7c514e781@baylibre.com> References: <20221122-mt8365-i2c-support-v2-0-e4c7c514e781@baylibre.com> In-Reply-To: <20221122-mt8365-i2c-support-v2-0-e4c7c514e781@baylibre.com> To: Qii Wang , Rob Herring , Krzysztof Kozlowski , Matthias Brugger Cc: linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alexandre Mergnat , Fabien Parent , Rob Herring , linux-i2c@vger.kernel.org, AngeloGioacchino Del Regno , devicetree@vger.kernel.org X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1340; i=amergnat@baylibre.com; h=from:subject:message-id; bh=VOgzUWYZ5LqJIocyR/msYYzp26C90wB0hqeJ/d6bEGk=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBjyXk2ouw0TaK/YymL8/LwYG7zbgNsYWk7Sm4QaG1v Hq9eNMeJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCY8l5NgAKCRArRkmdfjHURZhID/ 9Uub2bUuBaf78i7z9ZyRrS0l1yJ8Bdey5zQzK/4aK8mPTm5Nl9fubCpzirBoXEG8bhSVJjvmZwyo1G RaJkZfkeBqgLOJKpWVHZNGWpoGrsrNBkJoWkhNvK2qfqsOrK1w2RIbO8lefpgWEyvDM3JRCEW/WDJc i0pj+XSJSlvga7oQPj9FmDe9blRKUlGJDJTa2RQvdpsD+RE+Cq2wK75i0s0+Qmi6JEW8QcWXLIroNv lgqeZRqvP4ZBHWeQ6zRF/u+lyUNHKnRR4jU9DIM5f7xBmwQT3rAEdrRck4Px0Peb8tBqrov38SNyq9 A70WPxxZ8VFGSC1FkhuROcCV61CNyfxQSdAI9eKlmzav2RDqVbTjBSX+5jxcbLsd+gS2kS5rWWlFiE 8psXIUQHk9FxSOt0knnWdNgq2oMQ9MkBrmh3xDVJVKkCzBm1DJ/89cXh+Ems3p1VUYNt3MHOXIDDeM 1SQoV1em6g9NpHeegLBV1V/zKJ7D2+6avO1l9p2Ay8/4GZHtSOosLIQn2i0iT1mIgiXVZ3fFTv1SLK Ck+g+gNQ+/TN0hXC0qiPja3qxrwsuv1EnANH9SEJMt2OLgrXDyUV5yHWgRwmbBCWt/mfsh7+mbL31H 80CefxZZyl5wX20zlkLw5zEso3Vz3EOdA4uXryCmzG3y74NAbfq2W1SSwkVw== 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 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 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts index 275ea3a0e708..d5d76a7dbd82 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts @@ -88,6 +88,15 @@ optee_reserved: optee@43200000 { }; }; +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; + clock-frequency = <100000>; + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; +}; + &pio { gpio_keys: gpio-keys-pins { pins { @@ -97,6 +106,16 @@ pins { }; }; + i2c0_pins: i2c0 { + pins_i2c { + pinmux = , + ; + mediatek,pull-up-adv = <3>; + mediatek,drive-strength-adv = <00>; + bias-pull-up; + }; + }; + uart0_pins: uart0-pins { pins { pinmux = , -- b4 0.10.1