From patchwork Wed Apr 26 10:49:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 677203 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 192B2C77B78 for ; Wed, 26 Apr 2023 10:49:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240367AbjDZKtn (ORCPT ); Wed, 26 Apr 2023 06:49:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240224AbjDZKtl (ORCPT ); Wed, 26 Apr 2023 06:49:41 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52061A1 for ; Wed, 26 Apr 2023 03:49:39 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f1950f5628so56433455e9.3 for ; Wed, 26 Apr 2023 03:49:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1682506178; x=1685098178; 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=kQ2ocTAU3w1gKmLb5aCBlSTPYDVel56Zbysqh02DwsU=; b=XnF9TRXDlY/DK+hthG/Blg3DT8/nuQKX0ruzN6TorxzikeyruZ4/vxjMDGX0QPwc0M f5VIsH1DBzXJt+aeESPe5YF5bE1UbkpC5sySC1kwvM2eQcoK75y8hlRjZcbeuD7Q7I+V NHy3+6UB2aQnRLL4EAG/m4/ozufa8QXrF7UiOMf6CK/0USkr8aBUUfk4RzNFJNlQ9p1W CiPCGZ4cdVCdbYDC1lGMrRUIm2M92MFZbqq6H89X+c8T7Za6uFQNveLsT3uiU34A+GX1 z7p2ZOn0dBcgCLIOPRtJ0mv1Yzhi3kfNMf+wOnFsHY6XKLjT0KkGd27R3Y+YnZpiirgP Mo6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682506178; x=1685098178; 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=kQ2ocTAU3w1gKmLb5aCBlSTPYDVel56Zbysqh02DwsU=; b=jn3hDSM+BC2pyRaR3FrqrSA0VLeDXUhUxF/CF87SAVrFFThmGPEjuzSaD+7EGNp+Zi uaDKhK0ZDkEvjq6N6q0T53bDiYWsz4LpQBHXTaoUHzfzkv0pZKerjPtvH8DcLRn/Cm7T c28345SMXdX+08OK/JUSxVMdkL/AmTuTJgN7GxzEHweFx0b0qy578DDJzrYB2tqhUtr3 Pf+aQ7aWjQy/F0tpzR9tRm5EsuZ4iGIDqgctlRtwuQX69AsdIZpM6u0aRHH0myMlvhG1 Cff59iaBjReVjp4uib00Q2enqLYGhVun9rrMJqV72lKUj5cL1aqDKlPO1D3rDG9O2BE9 KKHw== X-Gm-Message-State: AAQBX9cOc57fUNPUGB0ZlK0RcnCELB63Brs+ZqJW8CfFLUGryrVegKEi hZeFrNDt7XpfKG4f2Nkywgw3qg== X-Google-Smtp-Source: AKy350YS0RMYAbp2tq4KoRMWXe/tmDg25LdX/lZEi3WR4NrxuEmIAgG0m3L0wS2o8+Zw6pLwGW/q8Q== X-Received: by 2002:a1c:7918:0:b0:3f1:6942:e024 with SMTP id l24-20020a1c7918000000b003f16942e024mr13035866wme.27.1682506177702; Wed, 26 Apr 2023 03:49:37 -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 25-20020a05600c025900b003ed2c0a0f37sm17601988wmj.35.2023.04.26.03.49.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 03:49:37 -0700 (PDT) From: Alexandre Mergnat Date: Wed, 26 Apr 2023 12:49:01 +0200 Subject: [PATCH v6 01/12] arm64: defconfig: enable MT6357 regulator MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v6-1-8d6b1cfe7f29@baylibre.com> References: <20230203-evk-board-support-v6-0-8d6b1cfe7f29@baylibre.com> In-Reply-To: <20230203-evk-board-support-v6-0-8d6b1cfe7f29@baylibre.com> To: Catalin Marinas , Will Deacon , Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Alexandre Mergnat , Kevin Hilman X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=793; i=amergnat@baylibre.com; h=from:subject:message-id; bh=mrWNpoe4C/7P/FRc2t6J8feM9yfT9dI6dxq0LTHYw3M=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkSQG/qSDMgZ3r8fdgRPPg4FrVKd77rLRBKVCAHwRF uAyw4nuJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZEkBvwAKCRArRkmdfjHURSnKEA DG5y+5y/X+JV48T/DjWBISDlJgDT4FA7qzOZH0cDY5DVdhamwKYCcU8847ERf0DwGj78G0QefmdgKo szfrdw+b29JrZ888Ofi+sh1oHb3QpeVfhi7/AJVXB3Sf+Uh2bjQLV8bhKIUVXtundZymBw4HQ06WTD 5Bb/SmiwL8Ws0HtoYCX0Co9CjrgTsSAVXoS36Qx5hef1YFTOhf4d8ZtxPIJTn98YHS8Ii81K+Ac5Zd Iltu2Yl66GRonTMhTd99RUatBOnnYlimiXom1CRUewG4PhMud0w0PUB+13fpLXTr82WiNa5IEeJqlS 6PzGEYfCyHGfVcnAF7vZqJesFcdiAlcS1So1N9MVfOZOHpyQT6cL1NQCfG0e8k67EtrDv6LXuPEkwM KX7MgrCcXV5UsoW/9hJNqXX5ccC/MyB4g0x2Hr7ci/WRCY8optCd60IB00JxfxLLjmJzKeKbCrQZ3N /QCwnwwVB+qfz3MS3trWn2KcqB1oKS+4AjKjhsUR4RE7gVZvGJUrQl0QVcRmetH9rHkvjnsLDAfX3k udG7WVzdtKwr9xioRfJrjRnjTNpUFYcLi1BRT1p0MR+eO6Ht2ELKmU4ajGl7hEnuIYEKaiwwImowPs SRaJ66Hznhnhi8z9HRTrRZPUN9z+Nwg+60xYAqpHM8e5wHeV4lVDg6EQAC3g== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Enable the power regulator support of MediaTek MT6357 PMIC. This driver supports the control of different power rails of device through regulator interface. Tested-by: Kevin Hilman Signed-off-by: Alexandre Mergnat --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 7790ee42c68a..e4cb65889ae6 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -685,6 +685,7 @@ CONFIG_REGULATOR_MAX77620=y CONFIG_REGULATOR_MAX8973=y CONFIG_REGULATOR_MP8859=y CONFIG_REGULATOR_MT6315=m +CONFIG_REGULATOR_MT6357=y CONFIG_REGULATOR_MT6358=y CONFIG_REGULATOR_MT6359=y CONFIG_REGULATOR_MT6360=y From patchwork Wed Apr 26 10:49:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 677202 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27486C7EE25 for ; Wed, 26 Apr 2023 10:49:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240482AbjDZKtp (ORCPT ); Wed, 26 Apr 2023 06:49:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240059AbjDZKtm (ORCPT ); Wed, 26 Apr 2023 06:49:42 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E43AE67 for ; Wed, 26 Apr 2023 03:49:41 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3f1958d3a53so54599085e9.0 for ; Wed, 26 Apr 2023 03:49:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1682506180; x=1685098180; 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=ShVQ7cNiesOQxt+dSTilOr55/lZ8c9SXW92HkGaO08M=; b=LIJ+LAE6cCEv3GCpcMCf7nbM3MWtLk8VyZ+MpeaCfZ7APB5WFUaRuvX5cybmp5cApi eIK+AcBqJvw0E33Ir2VJlWcwB2LKusBjmftOqN56OaHSb+KixJZzhCYrFK4MDLeLLtas ko8ZM3e/8CrFxkrmJawETlrGr6jNLJ+fgx/jd6a++LMF2ib/2Sgx5KXBe384FC3l3ovX /nvQETMF/XjuDhty9omKNmjLw+ykWInv55gXK6FcAHepejB2qUI/bj88TXjazFsrUQYp Cfb6zIuVOjmifDda/23UGcl86D7CKHiISmV2V4/CJs4z91R281QcY24/JXjm8jJX+NXb y3ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682506180; x=1685098180; 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=ShVQ7cNiesOQxt+dSTilOr55/lZ8c9SXW92HkGaO08M=; b=PXWXdedb007m/TNS8CdQng1jp1pTqyMbtI1kCdt07R0ttz1tHrYjoWOfYp6PZ5K2F0 lHujh8TMZ6zTRWdUH1Mu6MzpOETqYElcvqtk1VfOPhRdNO/quJ/AFdPzBEcys0kcdgbN M4BN29MZOjjXJ4SbNRnBQ/a9+GOR1zz3ptGzObrNwPWgqRYqq1k5Aikkm8YKcV/u46Gy xejMSkCwoVUJ4PIpfXiYWX59zJOd+17Q/7DkDArHDAhhKHbD7Tu2HCp8fpohWvqx8EOE 83R72U2uh7XQSl7Kr9NV2d0KesKX5UbYRVKC5I4twtMGLmA/iz5Lp5cNJmaM/6PfRNIR FcpA== X-Gm-Message-State: AAQBX9em9jHkhLpFrrEYD1vvaXDQ7XDyPkNNn7fgQX5MB4fcdbiq1iua Fxd6FXXY8PPmmqLTna8PH+pFSA== X-Google-Smtp-Source: AKy350anvHq46IPAf3WZHrRBhZuA/L8gSKK464zrseouQqgnKKJNs9DiIi9Xiqev0eOqTQotEv9LbA== X-Received: by 2002:a05:600c:2291:b0:3f1:728a:1881 with SMTP id 17-20020a05600c229100b003f1728a1881mr12679478wmf.31.1682506180028; Wed, 26 Apr 2023 03:49:40 -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 25-20020a05600c025900b003ed2c0a0f37sm17601988wmj.35.2023.04.26.03.49.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 03:49:39 -0700 (PDT) From: Alexandre Mergnat Date: Wed, 26 Apr 2023 12:49:03 +0200 Subject: [PATCH v6 03/12] dt-bindings: watchdog: mediatek,mtk-wdt: add mt8365 MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v6-3-8d6b1cfe7f29@baylibre.com> References: <20230203-evk-board-support-v6-0-8d6b1cfe7f29@baylibre.com> In-Reply-To: <20230203-evk-board-support-v6-0-8d6b1cfe7f29@baylibre.com> To: Catalin Marinas , Will Deacon , Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Alexandre Mergnat , Krzysztof Kozlowski , Kevin Hilman X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1133; i=amergnat@baylibre.com; h=from:subject:message-id; bh=GDhk/m0fF5qCNCdcaWi8PVQeneypbzl/HHAsu/4aQ6E=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkSQG/6sFFOlnf1KIfZQ+od5rJyXR7vGiygFFg+eef AjVGfhOJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZEkBvwAKCRArRkmdfjHURfhND/ 0bwgOVuv6fifdPhYyFMYgQYwAK8YEEWQDVdai8A9vF3+/hng6WEf35wX8gCYmgzM6vAYTnEFqU7WrZ bH/AcqF7FId0O1ikOcwAUdYHh0P0dMW7pVceIfKF7HGOpGK1I6a1nmu4cPHGUriqLyWTb+UJckpKdf LbSgotnfCYrcNAEXY2HT8s9joGuoEL8WH5KGehF9M7c753KlxoEtD77dJ/GYfMDtFrtcjP9hW8OA8h 0CqkpCrgz5eR/wTa0UrBJyQWOB7TqxWbOL2WIEyltt+D9Dfr9fxx6CDY+vZ1ACk2uNC8INXV96AA4u eXM6PLP88cpLeLNFFta3rpIxbvyibVgq97XWSqzU/q77Ppx8ItE2wAOV05mSZ5oXkTURJlnuolIwjX 7QfuKSyqWepWjB5jPU95t08UyPwpVfm7+cJzdInOh0Iz5a3/pv2wzVYeyqpmOGKv85R51QznCs5Cyc WP0dyqLCSLKgpPc3L33WsTN/opglcHQ0F/NiDQ04WVlbLCyzbldN6VURUl6lNPi3dvArWbo0Xxncxt EBYTqBQ1J3TO00tgvmjXJ2qSH5tRnIzDDrnF/OytJ9d+rsxQd6n84q/0XOqey2q30FraE/mJbpcMKs 5/GCAaj0mfNC8eThYRuIMkAYSEFRGbv6yqEzOZ7EaIbKhAqmHoDyWqT9pt1g== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add binding description for mediatek,mt8365-wdt Acked-by: Krzysztof Kozlowski Reviewed-by: Matthias Brugger Reviewed-by: AngeloGioacchino Del Regno Tested-by: Kevin Hilman Reviewed-by: Guenter Roeck Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml b/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml index 55b34461df1b..66cacea8e47f 100644 --- a/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/mediatek,mtk-wdt.yaml @@ -38,6 +38,7 @@ properties: - mediatek,mt7623-wdt - mediatek,mt7629-wdt - mediatek,mt8173-wdt + - mediatek,mt8365-wdt - mediatek,mt8516-wdt - const: mediatek,mt6589-wdt From patchwork Wed Apr 26 10:49:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 677201 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27B2DC7EE21 for ; Wed, 26 Apr 2023 10:50:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230023AbjDZKuB (ORCPT ); Wed, 26 Apr 2023 06:50:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240480AbjDZKtp (ORCPT ); Wed, 26 Apr 2023 06:49:45 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B82E01FE1 for ; Wed, 26 Apr 2023 03:49:43 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f086770a50so46564835e9.2 for ; Wed, 26 Apr 2023 03:49:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1682506182; x=1685098182; 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=i+MV2YRPMb42Ec6VMXrDn54MdXbA5Kj57aOu4iXdrhk=; b=25Nzod8AU4qYFSkCvMZLHKZUCAimmEJz1CJiYrbOFIimjx4RXU37ipuhmlhIaxKglJ 7bK2TLm1s2YX/43jwLbQBmpIl/BsIat2N8WoUFTHwH5idsYYBiIbu+FgtsMfqUGkVpyg haJUs8+BWafhWxm8j1nIQgAKJuF+jsu+QKF1ZSaSBPY3ebzjSgDRETMmy5nf4XeHpia9 TFwdcR6p+tzmmIKMSsWTCN0hkgoe3cJ0Eda0Lkv9CQs+N0UlpKnA6VqaGP+A/1MNVQ8N xbBf/ADgvVd3OufWPGEvFUjLNU9pFLmdc++aFElnBpw5aL9gcEaQ+E40HkNdn/EOcRWr YHOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682506182; x=1685098182; 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=i+MV2YRPMb42Ec6VMXrDn54MdXbA5Kj57aOu4iXdrhk=; b=DD51AjYu2Zc67kngfLbGGsYZbBZkelm93zyYeaqTZ5hPbhUrnYKeK0w3SKcEs9P9C+ ckmBrO7j5H6t5ry22GvYGV0gMD3KNxBkIFx5eTE+uYNUwOFhB9DCW7SDoJZ4FHGF9pY2 ZzzdxRalOGPjAwpUwevAgerGQUCxh8vnrOe7XvvM7kEPpnCgzBZnWmDWgF4nHd3piCIW LyjvUQQa8U40Pbb6lXx5bO9nAv7X6n9a5wf2hPiMkkJOepT/OXsus5tGuf7P5mKpnyAG Ek01EWMVXK84RsU3X67MmGhp31PPgDQKsD3p9ZXLzkIAZ1ZNuzCElLJ0HGlcysWHDsTD ns4A== X-Gm-Message-State: AAQBX9dPLFIxNDdAvrsWCMmx4nUosUuQkNlTiE2gBrnIoKI/21hTz0FP lkwV7PKskOfndCcrYS02CVDr1Q== X-Google-Smtp-Source: AKy350ZsqXIA6dY/zcCkAn4eA6AnADYf5wsjoH0O5TQug54dyT+/wRZ5gGNhDP0aLZELRLUO1JQKgw== X-Received: by 2002:a7b:cbd9:0:b0:3f1:952c:3c70 with SMTP id n25-20020a7bcbd9000000b003f1952c3c70mr10898307wmi.40.1682506182141; Wed, 26 Apr 2023 03:49:42 -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 25-20020a05600c025900b003ed2c0a0f37sm17601988wmj.35.2023.04.26.03.49.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 03:49:41 -0700 (PDT) From: Alexandre Mergnat Date: Wed, 26 Apr 2023 12:49:05 +0200 Subject: [PATCH v6 05/12] arm64: dts: mediatek: add mt6357 PMIC support for mt8365-evk MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v6-5-8d6b1cfe7f29@baylibre.com> References: <20230203-evk-board-support-v6-0-8d6b1cfe7f29@baylibre.com> In-Reply-To: <20230203-evk-board-support-v6-0-8d6b1cfe7f29@baylibre.com> To: Catalin Marinas , Will Deacon , Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Alexandre Mergnat , Kevin Hilman X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1093; i=amergnat@baylibre.com; h=from:subject:message-id; bh=k4aaIXAKDcyErU7IaTZAPbHBHYNzTOzKpV3NgRmyt84=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkSQG/XO3wImOfkSs/V7BzeswXYzrfzBA/gpK6oOyH N9RR9ayJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZEkBvwAKCRArRkmdfjHURUHtD/ 9bwGPmZ80v1QqrJc78yl8L1dYH3ttxEwwnHAsb5LbV7rubQNUr6T5URp30LcHI1FKYjzSEIhTxLYv2 Ol74OmRcBVIJrVk6ZVRDdG6+GE9D2Bt5aJX+qayY6DpttRJsnVreWYNPI1tqK7H9hF/o0MV6odU3H9 6QVqfna9Jaz0AgG7U6N6oE6k4wkeYa8CrV4Om62qtRTMfOBeQ2zekOyOYGzKlwl1AE7pAjElCfvss3 q3eQkiFUE0f33MPElo7Xd2nlhG69jaV0NdzbzaxBbMYDon2NTHffowrf7K9I/y31AdcUNLN8mP5CMP vY8yn3DOUj916wsOtpsf6YmZ4p0LIEWglGs67BjtE9Vcw5RS9QhHp2THZf3vLNFmz/q71cQRagdhRJ 34jkUiMXJDb6lOv4eqWC/GdUy0Rv8tW9tZ7hrpwJ1wgZ/jkkCwao1xKFmnr75Xljwq9KmGfFmxYLwt MjrOPdkOIP/NRV13KaKPoblT2a9lYzuPWMcbN/oud6kt1UOyY2iUzwieIE4VDBwLd5e27Y151Ny9sS fI+UNvqnjLoqS6n601z6jGV0t78HYroxQY4guYb43oGutBus4dJuqqS5gFH8oA0/0esKOXJA1Z5RKv cYysCLdbVeZNcRD18CbLZ0WabaZUOdZ3UP18QulllW+TSJ5JTi2suwpDFmJQ== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This power management system chip integration helps to manage regulators and keys. Reviewed-by: AngeloGioacchino Del Regno Tested-by: Kevin Hilman Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts index dd7da86420cf..a238bd0092d2 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts @@ -12,6 +12,7 @@ #include #include #include "mt8365.dtsi" +#include "mt6357.dtsi" / { model = "MediaTek MT8365 Open Platform EVK"; @@ -94,6 +95,12 @@ &i2c0 { status = "okay"; }; +&mt6357_pmic { + interrupts-extended = <&pio 145 IRQ_TYPE_LEVEL_HIGH>; + interrupt-controller; + #interrupt-cells = <2>; +}; + &pio { gpio_keys: gpio-keys-pins { pins { From patchwork Wed Apr 26 10:49: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: 677200 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF31CC7EE21 for ; Wed, 26 Apr 2023 10:50:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240498AbjDZKuF (ORCPT ); Wed, 26 Apr 2023 06:50:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240556AbjDZKtu (ORCPT ); Wed, 26 Apr 2023 06:49:50 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3483E4C03 for ; Wed, 26 Apr 2023 03:49:47 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3f09b4a156eso46485705e9.3 for ; Wed, 26 Apr 2023 03:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1682506185; x=1685098185; 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=HRMYoVROwFE1MJOO/HSe+KnQh9ytWH/O+ref06Ejh6s=; b=noxV53LL1sTVmsRPLGvKYJ/jkt0aDQj25kZMBmkWqLZcLjV3iUzbBzSa2t9aytnfRj HGT8VkZUxjCT6DFTPGoUYFty70vTMLTVPivLmutpcYK8VVErrzGDSAO6aemqI1v93V/9 +Xq5AU7M0IRCY1qENTfqtS4IzAsRWl4ozQ4Oz/SJXn+mXALyc9zEwOcrXBFF+oeq9gal oE33P/E4i8VBcBtJgyc/4Pn0VNMNpHQomwvCUUSXyIseW44WzmFzHenSDYwPLgmWlWFS 8E0gIO65jk1KOApAa9TgT1ycdABhZW1vB1VRLLjLS2XxPO6AdLf8ersdA9jjQNYgRVVV uOow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682506185; x=1685098185; 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=HRMYoVROwFE1MJOO/HSe+KnQh9ytWH/O+ref06Ejh6s=; b=RWG8zzjjE6tPQzyQYl5pQXh8VrcDnBH+MgWg82AVDB6XrZV/oysSKkVugHqMZ+kB9/ qgedIVfCuYfkZSPOyeip7Wv2kfIOowZQzn+cYmdhXPMtfwH8SzJ2MkRqDRk8w6vnVkMx UFs/FQqRdznXe7HY/kO0DPSby+f84xFLenmBlzbUCAT4p+oyCX9siU45CPLP8/Ag8zBn yj1ZcuO0ID42ZyjnPYwN7YketRISCAaIYyCWYqQ7nZQdRkNtoDHgxHPlp+NE2mprkHuD 6A4u7O3NrbPhhnYdo4M/9aSJaSEtOpDVl+NFRtCsDl39XBNXT4kPKheOqpRSRAxGaW/g hDDg== X-Gm-Message-State: AAQBX9d1Zck1aKxQq46XPtYBfGQOpZDGowncCfBjBk6gTsScLcx13JJp brQ8NQAwseAOL6uHAZ4GoB3k2w== X-Google-Smtp-Source: AKy350amTGjWve9HimTCpqgKJdop6gEGzttQT/PYEMwRM+uQoAeO13PL3BxsXPJowcJVo9yOJR694g== X-Received: by 2002:a7b:cbd9:0:b0:3f1:952c:3c70 with SMTP id n25-20020a7bcbd9000000b003f1952c3c70mr10898438wmi.40.1682506185718; Wed, 26 Apr 2023 03:49:45 -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 25-20020a05600c025900b003ed2c0a0f37sm17601988wmj.35.2023.04.26.03.49.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 03:49:45 -0700 (PDT) From: Alexandre Mergnat Date: Wed, 26 Apr 2023 12:49:08 +0200 Subject: [PATCH v6 08/12] arm64: dts: mediatek: add usb controller support for mt8365-evk MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v6-8-8d6b1cfe7f29@baylibre.com> References: <20230203-evk-board-support-v6-0-8d6b1cfe7f29@baylibre.com> In-Reply-To: <20230203-evk-board-support-v6-0-8d6b1cfe7f29@baylibre.com> To: Catalin Marinas , Will Deacon , Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Alexandre Mergnat , Kevin Hilman X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1321; i=amergnat@baylibre.com; h=from:subject:message-id; bh=EI+ro2edTOCiZWpy9DB8h18gK0kLHGZDj7cwd9DAutA=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkSQG/3oY1c/N0cq7rTjsSOZ+XwNF1OtLwxd6d/joR 53AddaKJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZEkBvwAKCRArRkmdfjHURTF9EA DHW3qBSMNWMCVVBF5sejDSKAq+dam8iOE9EDDeOaXUiYDMetQCD4oJSmKdmR1XqhtF8boL5Bovb+G1 268Lb9gwBdoiVUI3e5M/zoM+aXRYy3JX0iwPrKsJCy+NwchHAlmLCFU7RMrLHyWENGOe9tQHoufEr9 kB5c8ecvGo9oGIOQ98ZZigN5CTN7ZfqBrkFa4Wozzx2/QbiQBe9myaJ+oWrdWZQXAOWPFG0KaVEjdk /BR7wuS2nERFKR42yJW3VK+WgUbInGHjPccOB7m3zMF+JiQ6GPWdYwbUOc94NeU/EBcWUvQWpflgsB o5PhH/6jnAIzI7dXYwCt3IXDgMzr0GlTi77+L7cxACmHnq9daIwjZjU091iI3KrZGwUBVX2bzF76KG xtEeFSE5NR/wYPoklkaOOhE14+2904nk1BdEskp2ibuKjPx6lMEJzr1mdQnsC7GdJ0DWmgsGs0Lnvz Yl9LJMr2VzKBgeAktsv7WT1YFWfujpmYicPSFnxFMlyoj1xtlGHrtZsVxml6b7nl/EyrOnFWclrs8s vjvoCk6kaU9FWkliInOaMAWk3Y2wPshA2voqPOgi09xJrQKIIgW0vwGDcZdDsl6WISILH5WNMioqYt 5Gt04wSNINgkqLI95WDphim0nvQrUFvMAWETUe0neeSQr/Vj9+TYQrbh/yog== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch add support for SuperSpeed USB, in OTG mode, on micro connector. It also add support for the Extensible Host Controller Interface USB. Reviewed-by: AngeloGioacchino Del Regno Tested-by: Kevin Hilman Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts index ceed6cb8152b..913e09545030 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts @@ -314,6 +314,28 @@ &pwm { status = "okay"; }; +&ssusb { + dr_mode = "otg"; + maximum-speed = "high-speed"; + pinctrl-0 = <&usb_pins>; + pinctrl-names = "default"; + usb-role-switch; + vusb33-supply = <&mt6357_vusb33_reg>; + status = "okay"; + + connector { + compatible = "gpio-usb-b-connector", "usb-b-connector"; + id-gpios = <&pio 17 GPIO_ACTIVE_HIGH>; + type = "micro"; + vbus-supply = <&usb_otg_vbus>; + }; +}; + +&usb_host { + vusb33-supply = <&mt6357_vusb33_reg>; + status = "okay"; +}; + &uart0 { pinctrl-0 = <&uart0_pins>; pinctrl-names = "default"; From patchwork Wed Apr 26 10:49:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 677199 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68DACC7618E for ; Wed, 26 Apr 2023 10:50:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240547AbjDZKuH (ORCPT ); Wed, 26 Apr 2023 06:50:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240560AbjDZKtv (ORCPT ); Wed, 26 Apr 2023 06:49:51 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44FFB558E for ; Wed, 26 Apr 2023 03:49:47 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-2f833bda191so4223647f8f.1 for ; Wed, 26 Apr 2023 03:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1682506187; x=1685098187; 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=TxEqp9eFj1IvihyW4QXPcuVnqpwzcR28MiZSJPk5mMc=; b=uztePX6uj2AI9ccX28BMm06IVHwtalEFUK8LPofCxrrjSNizDXXIUhhwBnfq+lah5c qZ4Ql20znbYMBXWaiJGHwVC2tLMxox0Z1faetNFoL161VAfjg61hGm6DfmVDdpriQiTN S59nKBKHYx/j1lU5HNQKc8lo28Asgpw0nF2wQgD/1oUmHP52Skn0fSq1aPHx5dP4TyF7 LUbTmHgUo3tTnaCIxJ3IOcAwnejtERO7Oner9p8KX6fu6di4lnLxiUuVwKz7lpGs3d24 OLYImL5ML2+Jfjs7NlT/g7FPVoMdM1n2J0XScGPflkUMoWmwLl7UpKIHC3kcHm3pK8oH LVAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682506187; x=1685098187; 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=TxEqp9eFj1IvihyW4QXPcuVnqpwzcR28MiZSJPk5mMc=; b=RvcuFlcwXC4Vg+WZZR0J9tq009lMhFC3LKr0waUMuBdlYAkKt3D3BXYcdmngd058On Ev0JFs+uXkAtbR4xYWd3gCDd254c9RaN8kq9xcvheybXjlYBzfJE7hgDhuRr3nZ7fWyo AUQ8hehGlMMIwQ2wkZmRs8sQjFLYCY/Jt7caJlWCUWjEw8cv0syzFOXmm1/1UZYSZXFW 7AC9+A7Q7Df+g73PfXjbiWC5wwEqklMwms4XRXF80dXEyeUdSUYhRSQzaoEEhk5PuZ+U Uk8rEjzQW7Kn73xPAx+K3SHaJn/JWN0t7ilcVYQ+70ICRmDmg8bKOdY2N1/yXU4hkDMO L7pw== X-Gm-Message-State: AAQBX9c4tMT44iL5gsy/dCmgXvvJm+6t/YLAITAP0SFf6GFASgRoqpw9 SAGCYJtmVOH77ll9EAufULMh8g== X-Google-Smtp-Source: AKy350ZqN39DuFrFqNueYeUpWSDnpS+1LhBpW2krDi4r6fP4OnNm3T7OnOE82422foljdoS3Ky2GKw== X-Received: by 2002:adf:f8ca:0:b0:302:df29:cf15 with SMTP id f10-20020adff8ca000000b00302df29cf15mr12683949wrq.46.1682506186806; Wed, 26 Apr 2023 03:49:46 -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 25-20020a05600c025900b003ed2c0a0f37sm17601988wmj.35.2023.04.26.03.49.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 03:49:46 -0700 (PDT) From: Alexandre Mergnat Date: Wed, 26 Apr 2023 12:49:09 +0200 Subject: [PATCH v6 09/12] arm64: dts: mediatek: add ethernet support for mt8365-evk MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v6-9-8d6b1cfe7f29@baylibre.com> References: <20230203-evk-board-support-v6-0-8d6b1cfe7f29@baylibre.com> In-Reply-To: <20230203-evk-board-support-v6-0-8d6b1cfe7f29@baylibre.com> To: Catalin Marinas , Will Deacon , Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Alexandre Mergnat , Kevin Hilman X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2481; i=amergnat@baylibre.com; h=from:subject:message-id; bh=7EszwhdlVZWdtXiG7X73axwD3s6F8ryAMeolNiULVRc=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkSQG/HPyHY0PZGh5cXqQyVV4RE1tHH+CJa2pwV4Gu BKP6bTmJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZEkBvwAKCRArRkmdfjHURf4FD/ 42hXlvJEcBqPTrWTYquuNtcQ0VEdhVDQvrMXohmXxJ+pnOfoBhJ/1kg5U4F/S/D2LlHFhsLx1d0P1j n+JLdlh80wm5uWNbKpoS30ygPLCUupERN8Zn0snU9KeXNuCn9ZDT4PjLMLEiHQPjNyzQKHaTqLEaH1 idSIpMKQywQW6X3PIxhYFP/soKH1L53bYKjre0vjeuROfMLatYXd5xF/gxDj1CNkn4ked+uBbBVOxO 1tRbwofJhQA1Mr4UR/dM8sTItLhVSTTASS7DtSXb/1WJZxYoNxyBxvLJsK/yuUlU4MCLnwPBm8OwCL YvyWio/+DH9gwNTthh5Gp7Jjzer3D4wmvUflj/AyY3ut0dGOnU5nvxCe1iABi4oleIqiQqa6VM6zYr aIwE3GFf8tdlz+jB44N04jgqxGpoZyn/cxQHwwuke85qb6/RNGDcjjOKvGy9WIeenn1pwCdOIHNsw9 Qj6rC7+CHyoaREhLk4C76CKFOOnTwPRPIDILOcY0gZhKAPwqsoTl2pnYxewz0lUNMHBWMKSlPr5GlE HXFMydvj5igYx/VlYBFkiUfwn/XVApdfInmU1HRDgGSHMKHMLjbL9isTBVDNiU0+6rE5ECgqMAixCO vUzllLkYr6C4OBzC3Fn/9bJoqci3vs5XG4sKPgw9cvpOXjqk6Kbvjj3UsDWA== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org - Enable "vibr" and "vsim2" regulators to power the ethernet chip. Tested-by: Kevin Hilman Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 57 +++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts index 913e09545030..5a4c41dbd3a5 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts @@ -88,6 +88,28 @@ optee_reserved: optee@43200000 { }; }; +ðernet { + pinctrl-0 = <ðernet_pins>; + pinctrl-names = "default"; + phy-handle = <ð_phy>; + phy-mode = "rmii"; + /* + * Ethernet and HDMI (DSI0) are sharing pins. + * Only one can be enabled at a time and require the physical switch + * SW2101 to be set on LAN position + */ + status = "disabled"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + eth_phy: ethernet-phy@0 { + reg = <0>; + }; + }; +}; + &i2c0 { clock-frequency = <100000>; pinctrl-0 = <&i2c0_pins>; @@ -137,12 +159,47 @@ &mt6357_pmic { #interrupt-cells = <2>; }; +/* Needed by analog switch (multiplexer), HDMI and ethernet */ +&mt6357_vibr_reg { + regulator-always-on; +}; + /* Needed by MSDC IP */ &mt6357_vmc_reg { regulator-always-on; }; +/* Needed by ethernet */ +&mt6357_vsim2_reg { + regulator-always-on; +}; + &pio { + ethernet_pins: ethernet-pins { + phy_reset_pins { + pinmux = ; + }; + + rmii_pins { + pinmux = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; + }; + gpio_keys: gpio-keys-pins { pins { pinmux = ; From patchwork Wed Apr 26 10:49:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 677198 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09FC4C77B78 for ; Wed, 26 Apr 2023 10:50:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240590AbjDZKun (ORCPT ); Wed, 26 Apr 2023 06:50:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240607AbjDZKtz (ORCPT ); Wed, 26 Apr 2023 06:49:55 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B40749F2 for ; Wed, 26 Apr 2023 03:49:50 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3f173af665fso45649555e9.3 for ; Wed, 26 Apr 2023 03:49:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1682506189; x=1685098189; 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=oTMUBqSy4TNdyQBAp5j0UTas69JRH+59JZ3KQ1Hz96Y=; b=oaFAJ1Z+UkFi8STykLSvoTA+yBH9IhrrFwJno4E4FXVCIqpyltyYPOBmWgG7zc2Nxl ZXlLlynSViXhSTxDp8L3OO01ziE5M3uQZwDmuuJVqCo7ri0jPQVzGfUBPh5Lg4ilWoIz 63ofTeWwbCoxld2+hX5IPaKSiv/xi2eMBZ7r9eJlbj7rHe9VyDKLhnAuuAQXccMrLcd2 cm2QFkCYKEhXlFV3ZcddxkttUCaQ/54kdOZK0AYZTog/U9vldkvfBWQssKx/7zuOEd0p 055HekU2L9hNM4XseYYL3r3ahh5Lz0yEx280ot9OQG5Jee23tkxMLHdyf6TbcLntoCDD tT+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682506189; x=1685098189; 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=oTMUBqSy4TNdyQBAp5j0UTas69JRH+59JZ3KQ1Hz96Y=; b=UizfMfG+5ae9zIViGoLIO5cWAiem1ffYa81dNdsr1Ir322L4yc61iFs8SSImnytvKu 4Qlb6xQzb7ByzIKU9nrfj9xZKuyXOdveF8dUJhrpJGCNwo09hbttS6sTtY+ZdVEyDJjE kEaWkredBA1fio6jotoAb9bbelyXE6uGS4rpW2Wa874PUFDe5dGfTZ+DpewEAqw99u0y XPwXp3ULJ6/7fRHogWGLhvuyK8JUyNoExsrYhH/dSAJNi1QYcQ6eTNCIVUyqUh8g1MKF 8gfT3tNbPrBLwBVrUQwK03aeKM8zo7LTEW+v8HTmUMcYCVss4WWDvgisFuZ+AJrCyGbB qlDw== X-Gm-Message-State: AAQBX9dA2dFcflQcot4y60uAhn4cdTkwV+bcY+C9LBz3nxUaBZRcl9Sn ZzlcVSSQ57WLpqKK/ZPvsSJBYw== X-Google-Smtp-Source: AKy350aG1/9hyV9txuVsYBd7+UE6jXE3/4ZuQtl8npgHxVbLqNGI8xD1ZHiMTXf8qYOYE3L23Mh4Xw== X-Received: by 2002:a7b:c3d1:0:b0:3ed:2e02:1c02 with SMTP id t17-20020a7bc3d1000000b003ed2e021c02mr12220664wmj.23.1682506188959; Wed, 26 Apr 2023 03:49:48 -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 25-20020a05600c025900b003ed2c0a0f37sm17601988wmj.35.2023.04.26.03.49.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 03:49:48 -0700 (PDT) From: Alexandre Mergnat Date: Wed, 26 Apr 2023 12:49:11 +0200 Subject: [PATCH v6 11/12] arm64: dts: mediatek: add cpufreq support for mt8365-evk MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v6-11-8d6b1cfe7f29@baylibre.com> References: <20230203-evk-board-support-v6-0-8d6b1cfe7f29@baylibre.com> In-Reply-To: <20230203-evk-board-support-v6-0-8d6b1cfe7f29@baylibre.com> To: Catalin Marinas , Will Deacon , Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Alexandre Mergnat , Kevin Hilman X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1201; i=amergnat@baylibre.com; h=from:subject:message-id; bh=8Q6eOHc4c87inPFqFs4vtsSVYC3iqYyqZgc3XDzlolA=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkSQG/hDpBoD878FPr2DkV8harEpFM3Ox7ZqJeskYq 9y2/BeWJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZEkBvwAKCRArRkmdfjHURWUlEA C94wxHgmvDD3U4pZ3Ktd3ZX2/i5srtf7rftX3B/ytiHYHT49oUP/UuynlO9pWFTtOH8ZWlb7Hk+fEZ DyMDMaHj/mpCHuwBANQ2Pt04d4ew1qTca2cf4ID+lnXWQM4aIasWl4r5Rh+cnM1JRRed8x1PNjOjlv OVNfEC4MBeHyw0YlEW7HDJH+kq4RVYLCN2+QkRpt4xskXNaxQD/XXNEx0GPQ5oZCz277E8JWqYsA2f cPosCul0HCa4wM9pmAYVUujX+eeYalKi3FANg8MWs3I2H3eQOIFBmdFyXi7hcKh0SCvSfB/jWxU+1/ I6WIK9QvUZD2LVEEG54j87RQ8OztFDkl0trp9G9lhfa/GjEPJIvBYCJ/cT7houHIaTdsCT8vy0fI5R mtFi1Qfiuwcb2L5EYCLq6V/qb1zwCwYmYuqWdiP+Qn5WtxEviNNJZOlkBQS95eufcKGyVEC0Mt5j/k ipo0Evw2evQuNNecOvQBffQhK/+kaWBPCh5Vv1W5bGWJzZ2I+8+EuAWsoo0gN7fyRxhtJJTGJKnmtv xDNGXCzQ3m8OgrENG3z7xkUPWUvAyzZBsPrhdTNkYaM3izBPmVxvlZeopUIStu8ZIIEVnVRT4ggzXB JAdIy4lO4WxIiyPc12Kib1emWJ7E0jEP5Z1Hr/t/LM8NExAezS+2jqtInakg== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org In order to have cpufreq support, this patch adds proc-supply and sram-supply for each CPU. Reviewed-by: AngeloGioacchino Del Regno Tested-by: Kevin Hilman Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts index 5a4c41dbd3a5..3ab897d5e468 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts @@ -88,6 +88,26 @@ optee_reserved: optee@43200000 { }; }; +&cpu0 { + proc-supply = <&mt6357_vproc_reg>; + sram-supply = <&mt6357_vsram_proc_reg>; +}; + +&cpu1 { + proc-supply = <&mt6357_vproc_reg>; + sram-supply = <&mt6357_vsram_proc_reg>; +}; + +&cpu2 { + proc-supply = <&mt6357_vproc_reg>; + sram-supply = <&mt6357_vsram_proc_reg>; +}; + +&cpu3 { + proc-supply = <&mt6357_vproc_reg>; + sram-supply = <&mt6357_vsram_proc_reg>; +}; + ðernet { pinctrl-0 = <ðernet_pins>; pinctrl-names = "default"; From patchwork Wed Apr 26 10:49:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 677197 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D13EAC7618E for ; Wed, 26 Apr 2023 10:50:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240640AbjDZKuy (ORCPT ); Wed, 26 Apr 2023 06:50:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240614AbjDZKt4 (ORCPT ); Wed, 26 Apr 2023 06:49:56 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9702C525D for ; Wed, 26 Apr 2023 03:49:50 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-2f9b9aa9d75so4390092f8f.0 for ; Wed, 26 Apr 2023 03:49:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1682506190; x=1685098190; 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=RRBwEvfGQIrh+pVMdhdSvf8KI6OxPqchD4EYbezjkwM=; b=FYB6XKHSK5KKsJr3WxBuRzt7a4ngh9IlwcxKwIBWhfFwmlPj4w9QvRnUf14Zud2OWr qPM0OzIHcGKwtFddfme28Ugk0gict/9LoW1Z/E+64kNpc0X0zVyotIINirzNIjjE2XM7 zaaWUXOvVPBm8cY8qws7cFAac4sx6+hYtJ7UzbWbYwMklWxCdIQfALtnnL/oGIrdr47f Dt2PT6bOfqLu3miub99uy+KjLrA90TfC5B4Mjt4NGj+rmzXlmt4hZEJsBPFTCAEkV15q LYdSmhZOvFPKvl87gW8PKGuHxatWYbcvnzBvTwBfquCc8kT0MWamX9MLzjtsmv1BFCvP G3Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682506190; x=1685098190; 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=RRBwEvfGQIrh+pVMdhdSvf8KI6OxPqchD4EYbezjkwM=; b=c6PTzkGMohO2+pt4flXVrOgOkNNRyQtCQkS8OxC0/PW1sQ0JgJ6/uZ5vjYpdj1FTrR s5KDpTw5CK3Vi+5GXs6ILxWAYQxM88CD/8frToy01jaqsX6AClCUOSe7/vduPbgT03sp odSB41HBhzPYj6SLVJ+WGh6QlkWMXSVjWtf0M4XzFoB5Sg5x6r4WSGN9mVD3Q+bb2rE8 01pDjT7dGFU6itmBmaUUHNLNeue6Msz0EoBj2xughgWucmbhtv5MGVieDYJvaBsx0Ue2 zgdElUZHQcvsDnWRLKzULUiJpt2Ww3ZYqaVzzrgqCBTew+G2pkISshe1Drj08gjXNIcW 4gSQ== X-Gm-Message-State: AC+VfDxyK/u5W4UkILoudjIhNpKqYRZtq++p5/qFd/XAbpyi3eCMhuxj AwkBcmigrHl53ht7wQF4cn+ppQ== X-Google-Smtp-Source: ACHHUZ60G0FOxr7QbkS+ZT6GBwmKMmS2XUtDyx60byZRloL04GW+p5mCyFBHDEQZYkQZHCnBjdwV9A== X-Received: by 2002:adf:db88:0:b0:304:a40c:43c3 with SMTP id u8-20020adfdb88000000b00304a40c43c3mr764782wri.45.1682506190004; Wed, 26 Apr 2023 03:49:50 -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 25-20020a05600c025900b003ed2c0a0f37sm17601988wmj.35.2023.04.26.03.49.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Apr 2023 03:49:49 -0700 (PDT) From: amergnat@baylibre.com Date: Wed, 26 Apr 2023 12:49:12 +0200 Subject: [PATCH v6 12/12] arm64: dts: mediatek: Add CPU Idle support MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v6-12-8d6b1cfe7f29@baylibre.com> References: <20230203-evk-board-support-v6-0-8d6b1cfe7f29@baylibre.com> In-Reply-To: <20230203-evk-board-support-v6-0-8d6b1cfe7f29@baylibre.com> To: Catalin Marinas , Will Deacon , Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Alexandre Mergnat , Amjad Ouled-Ameur , Kevin Hilman X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2737; i=amergnat@baylibre.com; h=from:subject:message-id; bh=vYzOQ2oc5j6ZLGT/M6bLKTIS/chNEplrOLaJKWbM7ds=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkSQG//NpQI53n7ENVZKetGCC5B3KGBqtL1pkQsjqZ srv1ZcaJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZEkBvwAKCRArRkmdfjHURdFOD/ 9s6M7dJ3f1t9Ed8MXttvbolu9ojaNWTU5EMJ+7zH8udM2rTz/P5ge7tmJn6KG+D33RjwpXBnKWC3H7 U9N7xXV3QoTaLaVeUxUzoU75ISfZEJGufUgxElJiygTw7VFcO7bZornDO5jw2bnQ5oXoYjp0AL+1o5 R68PF9vW2VipeMtxw3sPHD7LyFy96n9EYPS0LkRSBP+9VEqEkQuc45dzNwUtmgGcLv+KAvllQyRCLP 3HnF+rVfq04Sy62ofdiIUC5IGMHyGXS+Rd5ofXDJpzhuQKhvcrPG1s9GRqG1VxoHvygvudOpddvaeX DSjCnYCW5jzAh772Boi1W9Qq1RYA5hgtoEnaNEPvieuRsXlyQ17N9b0Jxv547SPjl4Jzd3QsvNOLvm Ph4Nyf5X1a8/EUlzWCV6HZg/14Qp4wGudia6OKwLahWTMZ8czHt95aiFwRhJeGoxZcDQM4z4SQVfNw QlONqroOGAFvjiwrDEUYXVpCrcyZR+bxOGUFyI04+d+6ORytZYpTbfev+pX2cR2FtZJyvEvCp7WISq sW/NByCHH6Eq0uigoMARj7+r3vxaVWljOzf/KQcSGArqIMkLtvxuKhr9rkpCIvsL6SstC+b2KHOy0g xypXGB6U1r9aKg9H4ESi/92R/82AqJ7jt6/5QKXRVfpIqYAumyZj7UGxFPig== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Amjad Ouled-Ameur MT8365 has 3 CPU Idle states: - MCDI_CPU. (Multi-Core-Deep-Idle) - MCDI_CLUSTER. - DPIDLE. (Deep-Idle) Signed-off-by: Amjad Ouled-Ameur Reviewed-by: AngeloGioacchino Del Regno Tested-by: Kevin Hilman Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index cfe0c67ad61f..413496c92069 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -128,6 +128,7 @@ cpu0: cpu@0 { reg = <0x0>; #cooling-cells = <2>; enable-method = "psci"; + cpu-idle-states = <&CPU_MCDI &CLUSTER_MCDI &CLUSTER_DPIDLE>; i-cache-size = <0x8000>; i-cache-line-size = <64>; i-cache-sets = <256>; @@ -147,6 +148,7 @@ cpu1: cpu@1 { reg = <0x1>; #cooling-cells = <2>; enable-method = "psci"; + cpu-idle-states = <&CPU_MCDI &CLUSTER_MCDI &CLUSTER_DPIDLE>; i-cache-size = <0x8000>; i-cache-line-size = <64>; i-cache-sets = <256>; @@ -166,6 +168,7 @@ cpu2: cpu@2 { reg = <0x2>; #cooling-cells = <2>; enable-method = "psci"; + cpu-idle-states = <&CPU_MCDI &CLUSTER_MCDI &CLUSTER_DPIDLE>; i-cache-size = <0x8000>; i-cache-line-size = <64>; i-cache-sets = <256>; @@ -185,6 +188,7 @@ cpu3: cpu@3 { reg = <0x3>; #cooling-cells = <2>; enable-method = "psci"; + cpu-idle-states = <&CPU_MCDI &CLUSTER_MCDI &CLUSTER_DPIDLE>; i-cache-size = <0x8000>; i-cache-line-size = <64>; i-cache-sets = <256>; @@ -198,6 +202,37 @@ cpu3: cpu@3 { operating-points-v2 = <&cluster0_opp>; }; + idle-states { + entry-method = "psci"; + + CPU_MCDI: cpu-mcdi { + compatible = "arm,idle-state"; + local-timer-stop; + arm,psci-suspend-param = <0x00010001>; + entry-latency-us = <300>; + exit-latency-us = <200>; + min-residency-us = <1000>; + }; + + CLUSTER_MCDI: cluster-mcdi { + compatible = "arm,idle-state"; + local-timer-stop; + arm,psci-suspend-param = <0x01010001>; + entry-latency-us = <350>; + exit-latency-us = <250>; + min-residency-us = <1200>; + }; + + CLUSTER_DPIDLE: cluster-dpidle { + compatible = "arm,idle-state"; + local-timer-stop; + arm,psci-suspend-param = <0x01010004>; + entry-latency-us = <300>; + exit-latency-us = <800>; + min-residency-us = <3300>; + }; + }; + l2: l2-cache { compatible = "cache"; cache-level = <2>;