From patchwork Tue Mar 7 13:17:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163478 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 65FA3C678D5 for ; Tue, 7 Mar 2023 13:19:39 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hVJV6TWNPs9mUW3hJjfGzVqxO8yoyJlnOGWpmBY0IIM=; b=l9dssH6cDuoHC1 mVOYzToBl3s6Zn5Yx/wp4pN4WoQ89z63iYlcP4tpX/95ZdoUIgjJTbJmzrJqYJPBCHwobkPGoLPev e5A1E/DWMda44DN5JoUnSOjyRZuephQYqzCOqlhcJuRhHwu3CivNX+Pn8feXjEa9CNtW1AH0pij6e z88HHboKVt9j2v9AONGvJYHfoe75llJRLVNqUUauIRSGuknx+aVDvY7A1ou2Zqggl9lczES8hbin8 vcpQDd/FY4WE3WMEJDYfRGaGhedgZYdQ7hNkETmvwdMrvkBa+0BBz3AmydOhOh2sx+ea8njiEOXdP x/Y52p+GNkxDp35c7N+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCp-000JmD-MA; Tue, 07 Mar 2023 13:18:16 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCc-000JeN-On for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:05 +0000 Received: by mail-wm1-x336.google.com with SMTP id j19-20020a05600c191300b003eb3e1eb0caso10389440wmq.1 for ; Tue, 07 Mar 2023 05:18:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195080; 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=zgHM2XdtmrQGUQcf2y9Ae/95OQamjNw4mHl55O/fJak=; b=XN/2OsrnkkeksWU3cnhMEiDIAgmOuq3mjQYtYY7XBT4xmF7VZPvdPOqowj4SoFjoM8 TDyKOoK5y+a0Ghno+NPGs/oTIWlUl5m02sApxEWboen7z59LloJ+87xvEgnvK1Wh02t2 ROUKr1vCWDHWhGuEkddUE2iFDGh9qiB+rG1CXvjJN8pqqwleH7eyp1ctkr3DwqUjyvyY wzedgkyOQzqrMfc0LbtsB2A4NFLM7kO73lxOmhBB9kT+EeAamgxYIYDw18LFKwan+Quo r9/WeH7XG+fPXWkzMJElLatZ9tZ//esMp6NbJSLGe5KcJXLVoEy+SLjm+4VnWnU73jYR nZdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195080; 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=zgHM2XdtmrQGUQcf2y9Ae/95OQamjNw4mHl55O/fJak=; b=K8wPONpIiowYOfCowRUFU8CLl8nvpe2XNxr3ghOgdWWkHnG2Nq81lOohxKeFHMZMIz VLaMcq6bTEYyLcIty09Bo51oxS1QVTFh8+IskRhUOqo8onlSdOa+GG1bsXRWw7IvwKtK ZYOISdB8ON2GY5qmh983meUoXUlad53TXJ7pahN3Rg9r0EJ9s94Kc/HhyzYZ4NmIz7Xe QoLTIZmxnZzCIl/1xd8duj2lLV2P0heIVxRmurbFGjkg3TFvvjGtzJR7DLJl/m6/YMzI XCjiz6u3jEuSDz1a3WIZJhPbZSKFaM2rLPsydJG/AUZriiJFX7vTcTWa6rTPO9XIPF39 1z6Q== X-Gm-Message-State: AO0yUKUTyYP8LDzIqcDX+xYF5CRwBY820pjHkcMs8KRyu3yShQtcXCSO OM7cvnK7YR3m7dZJpW4qR6t59A== X-Google-Smtp-Source: AK7set8kCeRlJpT1Oy3DDNkzxDlPoDxy2rzFT3AyKtHg7ZPPQ57GIxfu0fjkVxULwuISGGw/gq5+lA== X-Received: by 2002:a7b:c8d9:0:b0:3eb:2067:1141 with SMTP id f25-20020a7bc8d9000000b003eb20671141mr12899311wml.38.1678195079730; Tue, 07 Mar 2023 05:17:59 -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 hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.17.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:17:59 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:30 +0100 Subject: [PATCH v2 01/18] dt-bindings: watchdog: mediatek,mtk-wdt: add mt8365 MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-1-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=836; i=amergnat@baylibre.com; h=from:subject:message-id; bh=2cM7AWg3td7QUM6zP9EeR6IUsiE88IPmYNlqpfnVk8Y=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmEHRdjug5o6mEAy+2TtOid+xDJkgTiZ4Stxe+T rkNpPHSJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hAAKCRArRkmdfjHURZISEA CUS3kq01V+uWGRw/xKEwrlEFROmuwn3EV11yPwfzptbDvjlhiZxV6mYK8DVwSmmXgfZM4bTewp4AyQ yCHLRAfUsSB7poFYQqLUByN5HX4LBHJXUo2EuzCMj7FHKbrpuqqkHvzT2lS3X7wJyvZr7Toeuzx9nn xYfaaaJL2cu34M/9T1j/ta56xiGUkmnr4ORuzr9jtcxCm0CZOR1PAeN4IZMhuJNZKGYHUMElotUGYq vt6VtYmcPzHkdO3K6xWLD8Jj8rjS86OkA+XTLB+2/lmPO+kqoFNCZGSjdx84qxze8n33961rem9Bqa czxKQvBgR8i/3klr6QGmIi8Hgo6drD6bsvQ3x+MpHI4cIXn+Ffjezba9El2cfxBD6obqMhu4oB4MBZ 4CXbeuwKhp7AuWG+0UxE8aU3lpA0TF4PZvH0q0vuzaH7mKt1HsOqpAkNQiI//78qYDL5Ue6hoAASpy 9kkLXfNsLn4vbIcnQcVW0zj7OFpeDBylEIJTQ+/nQm4aLsVW57wcLP/KdaOYfCImo5E5MTMylneRLJ ma1OBZsOsfKklmexu8oIdweNXi1IREMa7lbcSrBCJ/ZMKvxF0HDA49lpKyDJO0XaWXFPxh7O0hMGvq G2BkHSABQWdEBowNOhHFECRcz8ANGcHcTHOTbY+Ttr6//I/vIfavc1faKWew== 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-20230307_051802_848252_BA11692B X-CRM114-Status: GOOD ( 10.13 ) 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 Add binding description for mediatek,mt8365-wdt Signed-off-by: Alexandre Mergnat Acked-by: Krzysztof Kozlowski --- 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 Tue Mar 7 13:17:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163480 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 4B796C6FD1B for ; Tue, 7 Mar 2023 13:21:20 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kaPqmQJ3YUKu5D9sCcDGqH79S8RKecvuF27w+yj0zKw=; b=PSZcD6v3XeMnqX v4PMMpbvjETYj7SbuKy8vGSBi85Km0dLHkhFzPdIoXZC7W5ypoWRHHOdp7ok0skIK94fuyjXjhrfe U9xt+NcL8z0io8rvlU1uDuKD6MiZAf5vdFfZTmIL8fIaYaOfd6i0ccGiOUyeu6QKpoyItE829fULw +Srg3qn9N+SJm3CViDD/OlbLxYQSikR/0zKtn5g8eCyKFucUg/KrkfvGxE1apXUrBMaCBdcn8Sygx PqQH9O1ICDM9rZqUKoz9dP9mfYcvpFKdJfRBw2Y38lV0/9fOvN0nj/e03qt9f64rvGhRn1DQ/eQmv orecvHHmxdMB20R92LDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXEb-000KY0-5t; Tue, 07 Mar 2023 13:20:05 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCd-000Jeb-GW for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:07 +0000 Received: by mail-wm1-x335.google.com with SMTP id c18so7742245wmr.3 for ; Tue, 07 Mar 2023 05:18:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195081; 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=E5bAB6WZAMlbkNgJ9w5uWn7DxLC3xwG+bewS6OKki3o=; b=lnkdxqpC3o0yHqoR9tn0yLiEGQ2D9u6ajoNeX4QPgFvKGJSVmc0BAFczzL9DbDQ9Gj PVMNubwp8cGWjCuv20NlC6RuvVQkeUtM6wp+roIdSMfmQKVhs0GPg7JGTqxWCfPXXpWo 7eXa6LAL9hoKkZhvVWZE8Pu3NYemAam4HmgwoPDUKz18aSr1g1CB33xk3s5/reQKB2Ri aDDO7qz5z8VnW1rnOIiPXue33QY4L0JAzqv576CkZAE5qOphplZoCFmVrHIxp6gmyhTI +Hdi4k45nNI+78asv8/j7neo1La0Aq9CRVR6wIR/w6A64hdwYIpHDjQ7brG4lnvTAlUO eMQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195081; 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=E5bAB6WZAMlbkNgJ9w5uWn7DxLC3xwG+bewS6OKki3o=; b=VJWEujUMqnNRDZFfyLq1At2RqidOKP2LhjJ34Whb8M0vUcp86STYj5c9iVAENBv1Mt SODO1ZJ/hQXaiP6yoRCdxvExxHqGKGVnS+f5q7S5klxEouvYgNZCYIPGOpHNiHRO6jsA uya6WwXx1izrqAID63PWSehwH/V8kiBE7S4Z3VKWBL/xLBjjgqyCqyppnIVBPctXQ37Q va0tvN6r/8RHLBBQLLoBIp3hxjytjfQRuwdrKCaXavOXaQ5dcI2nQlwJnqjHFcgMy03j 3bIgbiwR4NKAh/fONWFXaIFjLTJ1IuMSrLYUU7m5aCK+OYaY6iEBgHHfE+kCVkLjl76/ 6J1A== X-Gm-Message-State: AO0yUKXvF5mgA7VF7OvTnt669Kf/UW/+DgNaDXvCY1MDHF1NXa+6N4y5 eanH/NqP+mTL4KSlJpBlgmwFMw== X-Google-Smtp-Source: AK7set+OuRm56tiBcMKspPeS1VKCb8WPOKwstMJjPE3SVhUpuN798fjxg9qwLUakLAR6OBf89KZJYA== X-Received: by 2002:a05:600c:a48:b0:3eb:3912:5ae9 with SMTP id c8-20020a05600c0a4800b003eb39125ae9mr12821750wmq.24.1678195080755; Tue, 07 Mar 2023 05:18:00 -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 hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.17.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:00 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:31 +0100 Subject: [PATCH v2 02/18] dt-bindings: mmc: mediatek,mtk-sd: add mt8365 MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-2-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=732; i=amergnat@baylibre.com; h=from:subject:message-id; bh=H9oJWLPXIe/1UwqnlEW841JqyejoQrW44xorw6dIer8=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmESovq51VXjKoQhP21uPq4SVFH/KuHY9gl3IT2 bTTkYFOJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hAAKCRArRkmdfjHURQHlEA CHYUVdIFnoGTSgxWa1LI9j/2byyACeEd5erkQFL9enSzSmNKJybY4xnLQ1/LnbaGLIC/2Df2Ehq/hP QPsKCdnJlygn6u0DXEz0CMVdk/tGdSskkKBorToRHwatkDJ4a4OrcPI9GemiGDsRvznDg5Oipmalq9 V2/jhXCTtzv7vSeDqWzQLExKpUAOLJQTA0pS7+AK9mXltrwBmZhCA1OsNyNzs5vqFBDx5rE97iUz1h z15O2471YI50Nv8brsNFRh9p8Netw8G0Hhp3+8XYgq0KKxpwUwGEhPEi+Jd0hUvC6NBb9rryMEqib/ rYvYSJzFnKC4W5Q4yqEipKh4TeBbTX6gsBjImk+us1kv5H8rmzB/iCAHuiSVJJR5Mlz0sZ4pkdmk6x g4zB5zBRhLCr4OoVxoO7KU84l5Jg8MtZs7d1Jh9QwaG6jj7uzHuhb9zMLuG4e8r16huTWjF0p5sCYX 8uFwr4lXKyZtaMSPWDc91ExDQQUJ8OSOMumnzMiB5EMZ9P+iUsvV9MNsqwVBldE1cJmYEihcJutOMR uwuct6euJ1noFQJQOeYsm4Ppvbi9TTNKDfFbTzcMlihoI23EmaZ/3Ep5TChjm8rde3+5eGwXgxdydC pAlXaqorV0B1L7AyQTLkUldMhmX+49XV2AegFT5HgvWn5nz082w9ZzRNAguA== 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-20230307_051803_598998_858E298A X-CRM114-Status: GOOD ( 10.12 ) 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 Add binding description for mediatek,mt8365-mmc Signed-off-by: Alexandre Mergnat Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/mmc/mtk-sd.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml index 7a649ebc688c..46eefdd19a2c 100644 --- a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml +++ b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml @@ -34,6 +34,7 @@ properties: - mediatek,mt8188-mmc - mediatek,mt8192-mmc - mediatek,mt8195-mmc + - mediatek,mt8365-mmc - const: mediatek,mt8183-mmc reg: From patchwork Tue Mar 7 13:17:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163481 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 1A3FCC678D5 for ; Tue, 7 Mar 2023 13:21:39 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RJYAWKAkeY5P8K8FwdvCFK3xzWTIae2Z+OPBn7A5d6w=; b=GEUZPW7yEj5+w4 J18dRJWhuRsgU23GBZb7iw6M7LsO/ENSKbIAdODs031WVC0/kFWtvjN8y998qddKfdzx/GY8akjP2 bdJA51t10zWD2tP+y7akk7nrRvYdxtVwTlve5Jp1E7DgKKrThvtbk/AiLrp5A/mqrx84dmeDwQdjw keIAvmE5MOKrWQ2dC7FgYi6ObiopTIV44IbbrKvOBIzmIMWX2q74VUjCXike26jI5boZOmHcpaDcD x0KAV+dquiheXFYeWlF+Jq4ZqPSsf3iNcuE9jWdAEds7ZL3rTyqj9qbBCpTVfzGjfk8DybYwtbbH9 A4NNqhKn5yL67qXaiVBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXEv-000KjA-58; Tue, 07 Mar 2023 13:20:25 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCf-000Jew-Pc for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:09 +0000 Received: by mail-wm1-x334.google.com with SMTP id o38-20020a05600c512600b003e8320d1c11so730524wms.1 for ; Tue, 07 Mar 2023 05:18:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195082; 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=qSqCsp4U2p6HoR4VD18alBPGLI3ktj1/QkrqdQr6Vy8=; b=1gj53rdnF7i6g6sgSSkij9TWRyTZ5D/CRJka3Ftu7hu1Kq865runibKK5aTLdBRab7 bVlNJubavTvsberuobaDC7gip6F6K8JyEfOEpsMOZnYZHQKaOtBfZI8METTaqusYVFgw saUp1157OIRXw1J3WswU+J3bmaibs3y7SsVIoN0B/HAuWXDObDTIt7n2ZCm5dzpnUaJf rxvUFF5CYlRTI2CktuT+Ork1GdpsHFawMQQg8PfyK5AuIWp6/qiAmjB/YB9RTzob6SEv 4Nhm8rYvDBDvWAz/otxBzfqhf8E/ChKXaRmG9PJ2cXdQpY6dWSeZanNFdM6hHQYUFgDy MBkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195082; 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=qSqCsp4U2p6HoR4VD18alBPGLI3ktj1/QkrqdQr6Vy8=; b=C6ATe7hQ85c9VC0skGc6XaLPSp5IbMcn/XRld9+6+K5UXSFEEOII7gjr5UNj8Uxmd0 Yqi4WvJrXBPj9vGCrgbDKBes9cw96E8Rw8+/u6iWzd3DAf/naVYrpY7Cnu9XbVeFmPuA c5SN4zgpGIowHpAvu70riSnOBbl3cK8XkXgcgp/1KecInrSRgpGUFlbNCnkT1VAHwgCt IKAUOP4UymvPfVa9vks5UDtU7um/Y8ucZ4d7hb7hr6rstcKmnzS4ridYvwOStXdmhM92 9WPfdYnQapcH+Y7VBDppW+Ep6OIXuh2ZCbWuZ1r9SGt4yqfvzdW1uoS67tLocIZhsOf4 jyuA== X-Gm-Message-State: AO0yUKUeRupoUQWU941+wHo3vWzWevM5svcD2KCccgngde8CrDeRW25Y 0iWILBIjKsCwouvn0C7KorBdkw== X-Google-Smtp-Source: AK7set+fPQkBdDnqiCTrAz/SK/oL3IBrViHFO12rJoYnYBRVp1LaoZAHCZO8h+3WksMyOyZdN6YafQ== X-Received: by 2002:a05:600c:198e:b0:3e2:1ef0:f585 with SMTP id t14-20020a05600c198e00b003e21ef0f585mr12302333wmq.2.1678195081846; Tue, 07 Mar 2023 05:18:01 -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 hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.18.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:01 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:32 +0100 Subject: [PATCH v2 03/18] dt-bindings: pinctrl: mediatek,mt8365-pinctrl: add drive strength property MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-3-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=982; i=amergnat@baylibre.com; h=from:subject:message-id; bh=gRuB+mei6hO7jvsCSd5DH6527NjS4W5hr4Eo8YesOQE=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmEFhfO7f0pfn5wPiJAH0w3BHobSyRdql5CEJ1d 74s7B4eJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hAAKCRArRkmdfjHURdcPD/ 44vfRnBDslkOAxwB/gNaiLEGWxs35Gny/YbStzvCijktO2rTuhSujmkS8QAdviudQqS5TSXYqdAsNu LHnwNhBTGq+IoZCMpUBM2Zaw/Ro8mXgqW1i1Q52kmjUjLXn6dg1x+K4mKPdNOtsBKvhvi7jPwdbTrh XCUt4PXsrUXX3oCCri3oy3nLuyt/xxmWNaeK6Zdzr8ULeo4nuqNdG1fkvey691OcQ7T18P9t208rpa Jj8gYfkRGAqSIpybfrEqlSfEI+H9GOfhgrTZkhxqR2KulSUGo3SL8t15HcqdvLeEOx23Ur1DUU5sz9 uBDo6u6myD2v3BFQjNQWTLWQcREld9ChOpmkpuCHc84CbYpqfT3NqJ5+KT2hmJQWohaltEzsfPPxgj BOmCEc8ztXVV/FIDOtmcPeW+raaB8yNnhcW8XsYL9xP0Tq9fMQp09tVS0rhjG7tluAkLkDd7Uh1YJV oWDCHSgeOK/ty24VzOMLhXTT9h849h5iKVAslMYoV2K/DqM7PgygpI00CPJtjWWRz/NsCfZFvVOb+C pV4//kV03qbcocU05kWmrCO31WESwuLKHRU9xK2JU1Xy99mAIa9T2nrHjveVeojaek5m1LOI85fxqK Rb35duhHDmrGcPspdyd4Zng9rzTLQyDp0AaNgaA1qR6PVAGgNGeCuCPzI3Kw== 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-20230307_051805_907389_5C307700 X-CRM114-Status: GOOD ( 10.52 ) 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 This SoC is able to drive the following output current: - 2 mA - 4 mA - 6 mA - 8 mA - 10 mA - 12 mA - 14 mA - 16 mA Then drive-strength property is set with enum to reflect its HW capability. Signed-off-by: Alexandre Mergnat Reviewed-by: AngeloGioacchino Del Regno --- Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml index 4b96884a1afc..101871ec6693 100644 --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml @@ -79,6 +79,9 @@ patternProperties: bias-pull-down: true + drive-strength: + enum: [2, 4, 6, 8, 10, 12, 14, 16] + input-enable: true input-disable: true From patchwork Tue Mar 7 13:17:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163483 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 4C5C4C678D5 for ; Tue, 7 Mar 2023 13:23:08 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oXjJ+bKEo5BenVtLiUQVDVC0/zIRHxmidvZmYrCiTvI=; b=UM3PBrIB0wl/Ty YZ9YCSzrq9udb3JcgPRNS7yw41rpRT9LBFUUZetN+nyP4KA/tijoGGPmuX6uRGsE2ELGG+lEuW5Ag EgbVRn1zat8mpal9VCkvOG6QQ5pLX8Mr2Qe22r6b7kb/VcnkPRle3nOLppRTEL/kqZECMbSH7Wx0q kCKnA24rJCEo1oOAy/qAGz6GCAheuFb21+l/m73h/rIs+cXiVYlqLu/sJI/+jMfUGc5tUv8UltTh+ BurBMcWRkSqH13VyhCGqsxrtDal4YSzbR89tJPyQ7hQDg3cH6D6qTUd9MVziLPEjPqE+WijXuOi7W r6fYbmwwz+RxzUn7wynA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXGM-000LRr-9O; Tue, 07 Mar 2023 13:21:54 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCg-000Jfs-Pb for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:10 +0000 Received: by mail-wm1-x332.google.com with SMTP id l7-20020a05600c4f0700b003e79fa98ce1so7175511wmq.2 for ; Tue, 07 Mar 2023 05:18:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195083; 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=aJjJi/jD7zoJ80j1NB2hsX8d3IFWB26lCfmvanobgFc=; b=km89PlWfqZbqxuCY96wokhG3NILnYs1FkpKTahAPUtPzn/JrO4yBxMuWb4ZuYyFQTb s0DXPoDXxPC1BU3j9F+FatxADKGJsFZgAf0BnF21eKSENwG0EVihHkruXlR4qYF3KD9a JC1VxafgACDTDBmNOPUS+rk6KlKDKEUQtkilHwF1WYAWNvm44/DK85/zL4G6mLdxvBaL lyNSynI8MLl8xqtZB626a5HEzo69wKXa69sQ5z1HILYAR6fwki9/LzKDwmceP6VumkXF XNRZxNFqbPKbUkz+9r87lYFQ1VM/k9cUJboo7FLVojRD4fE1QmCfAalC/8mvWeFF3mQj 6o+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195083; 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=aJjJi/jD7zoJ80j1NB2hsX8d3IFWB26lCfmvanobgFc=; b=HB9aCxpWDLmTtueVSoT9TjDNsDVnsJJ/1qDaEt2/hNv9aNvN9O5SkgKAS1dFRKGjza n18XcFmqCZrU5gHu9Rwz2ABXhBEoylDKVaTVQanvX6khIS5LvAwl+Yabrk6oNjziOQKw /I1BguPM53gWYSC+IbsRKmhiY0rQXR5Dgi6H795ryRjDtadnepfxasDS7Pdfj//B1DXc r50fUQes9yK/NwLuqSWCDM5fSUMIJsij8CR3/OuYZ0nw1vAe6sKuj9uu8OG1q6vyJlK5 qbpiik2R/Bk6TfZqpeHB2Ge/oEa3Th6As0UrEwLXddnEsP6dvJNawmmMZe2zDhGYRkOK ttkQ== X-Gm-Message-State: AO0yUKUxISymjdwWLuL4CYHt8I2DPXGo+kIDt+OBkbD4eRmpM/2shelO Ri+eB2aVndR/dcPenM3NPoxwlA== X-Google-Smtp-Source: AK7set8DDYX66nG0msdQYq6P9pgzNizADGbWf1Lun3UGPnZzP5PHZH7wcfDGsZnzzX3hkBZafVadbA== X-Received: by 2002:a05:600c:4687:b0:3e2:201a:5bcc with SMTP id p7-20020a05600c468700b003e2201a5bccmr12836559wmo.33.1678195082918; Tue, 07 Mar 2023 05:18:02 -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 hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.18.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:02 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:33 +0100 Subject: [PATCH v2 04/18] arm64: dts: mediatek: Increase the size BL31 reserved memory MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-4-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1061; i=amergnat@baylibre.com; h=from:subject:message-id; bh=jc8O8Cu6v6QK5aTt3UJ8M0QNPMTHLmcDIgeyPjVKMdw=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmEcV1JZ2uiyH7wxNfPDxn+nJ3BFTjExeREhmqw BgZZ9ImJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hAAKCRArRkmdfjHURWSuD/ 92Qh8UtfdeQJyr1MWsUBmjifPfD2epW/4/7M09tz/7AnUQzg37eUDlGwKcfAzE4qFj6sSjoXgcg+Cr zpdF1rPt8PBPlejX8Ip96rMH/y8XKYlymgGJksKVy5JSC2C0hTKc9BN44dLXbldIoPmyYPOrfjtj6u /y3dhS+4JFNpWOJdzVM3+AEqGbkuPkrBwyCQKP9taXIm8y4zEg5vFw7OWSgyyJg4CNnRzC1qYzMuIu AwDjKJ/d0sftGU1I7XLX0TOpKogejBzluwsOVI1Ds6wWYOYcv7ZcKf63Ittd86W2bmRuH5STE/Fg5P Z1Pmhtpzkz7VVxYQ05G932yiL+K0ln8vvRCFIXRXANDUVi75pNnfJMcmf6QJ1APSnKEQkZJWqOaGV/ JoplZ3/D0H36llyfQF1sGbHipXHP+nu0+OZno05YfHpSpMOwjG/4fDot3vvll6fHgqPiPztmaw2UXs 66W3bzcSWIej6f4ZGb0FtSZXE3h/+5YYMqa5StnoTkM0igFHuqMYrtBPljD3ZU9dNVDiPHABCgDU6/ kzbvpODQQaBMoRcOtlSgpoQ53KMqC9jWbrMTw9SuUj3MVx66S+OBvnphZRvg7+w89HwOn2Wo+OPPY3 us/kHbjKFvUHmeKqPBDTU07HJMh8J/b8Oh18T9DfjtU6+iOzLHC5YFTEuZUg== 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-20230307_051806_928640_AA203C6E X-CRM114-Status: GOOD ( 13.60 ) 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 From: Alexandre Bailon The reserved size for BL31 is too small. This has been highlighted by the MPU that now restrict access to BL31 memory to secure world only. This increase the size of the reserved memory. Signed-off-by: Alexandre Bailon Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts index b68aee8f229f..fc7f6d8ae173 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts @@ -65,10 +65,10 @@ reserved-memory { #size-cells = <2>; ranges; - /* 128 KiB reserved for ARM Trusted Firmware (BL31) */ + /* 192 KiB reserved for ARM Trusted Firmware (BL31) */ bl31_secmon_reserved: secmon@43000000 { no-map; - reg = <0 0x43000000 0 0x20000>; + reg = <0 0x43000000 0 0x30000>; }; /* 12 MiB reserved for OP-TEE (BL32) From patchwork Tue Mar 7 13:17:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163503 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 8829AC678D5 for ; Tue, 7 Mar 2023 13:24:12 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Ng5yq4Xr6hp07JdDjiqJALY4a4iwLyxpCmbu4z3xQYg=; b=bt/sEdS29gFyLy Vnu7Sx313vQzCLgCqzqpeSWIgbz68uof1pvsI/8kkI4qxFeOcV9Z6Dex8oOAbA5Z9upENTCT+YNgt l8rVaDapk4Hf9mxPOp/wSSgAaiFudf27GXbkE3HXGpQ1VKBBBrq+R50rX02ij5EVeyYsw2berpT7h 8mLa8t2l9UPu4UYPVTx/wxui/+B4/0/qBacXo75XQVh3vVx9tDWpiRBBUL6okUPSumrGegbfJyhkw fzlXFcZ5QP6Du4tY3H7FHB8v0QVpSWl1fE8CQpaVklrPthrwJLeM9mIRufwf+UAT4Wo/M+VBkro/C h1EBtu4RavUbA6HYCXKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXHJ-000LtY-UG; Tue, 07 Mar 2023 13:22:54 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCg-000Jgu-TR for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:12 +0000 Received: by mail-wr1-x432.google.com with SMTP id g3so12084053wri.6 for ; Tue, 07 Mar 2023 05:18:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195084; 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=cSlo1e2m7Ke2K3OKMSOyRHyplcIQuLN1nVJm8tk4a1E=; b=V26NSnRfYy0bEJfqEtj3y+cBhCuihwvELxCJysKxeq+3ZX5Ot4yQvmNOxIKhqqbrwC sLTfngvzoA4xm2tlHyTlSrHnleN2zuXsoZGG7UXgfnemo0L77OPNV3n+yUCAuDaZQfGo xl1Shmsi3c0aM6FjgObCH8nMofVRX6VHR0Sfv5SWlB/Uh/MWHpA8deHNcVMNTHPVGxoJ s0ZAsNmurcZCo7md9gmi6z0yuSTCezDgBZ8EDuBiwpIAfEi8wzFoN5cX1dbZ/gVJV6Xh Xc9NPKEOme6nuL+ojgWAXlBo21ND4U5/FYXrxZurKELYyeGs93PMtOTn2N0hNTVZqeQv 8sgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195084; 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=cSlo1e2m7Ke2K3OKMSOyRHyplcIQuLN1nVJm8tk4a1E=; b=wpNae8tRu2Sq3CL+X+r0Ub5ui2407hIujB4xtG4wwOjMEIInfcI1KBX3U1JRnVWNEz APtIlT8MNBqy0S+Yzib0nS0S5QxDTYtfUzmrVY5vSecLT/VFqNrHlZlOTJt/pU/oJsEL h/kNdatEASkdXptozpDmriOGtsy/76+IsSoShN8zBHy6DPbM5FSTFq5ppBRnbQrXMwDc i545YQrZBsEFj8j1iJMlbMiM7NYQH+kefqR7JVd6ydaOWEARGrl/aW56PxCVjAd9ACjV O8XZ6t9NN8mPJIaHtBjweD5jWqRg9Cv1n3d30TtFQ9tXb3ODgTNHhidEmsQ1s7KYhSBx Gvbw== X-Gm-Message-State: AO0yUKXy2JhB9jA7Zek9k0T0AHdokUDot0hb56+CuiBvp7p22e1WUFoi kD2HeEFrf4lxuxP6+pONUekxgQ== X-Google-Smtp-Source: AK7set9tRg7wvkjnEcGMWm1r0boGy0+q5bAnyU2il1578JSeyAoAbvAarXIdC+Z9VXZwNKQc1SOIfA== X-Received: by 2002:a5d:530d:0:b0:2c5:510b:8f9c with SMTP id e13-20020a5d530d000000b002c5510b8f9cmr9206227wrv.52.1678195083980; Tue, 07 Mar 2023 05:18:03 -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 hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.18.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:03 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:34 +0100 Subject: [PATCH v2 05/18] arm64: dts: mediatek: add watchdog support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-5-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=824; i=amergnat@baylibre.com; h=from:subject:message-id; bh=Z/UqSTkIGRrQ1Y6HlUdxbZpWrZA+oIJk7/cS7ZiMbq8=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmEjrkc3qFjy86T5HZHhQPLvhBVopc6i8Y+PhhQ ZHfcW8GJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hAAKCRArRkmdfjHURb63D/ 49koerVavrJqikOprLvzu20zDC3gNJ9h7Ckxn5/8rue5mpLVz/tM4WgqQa0AgPEz/quEg1xr8q1h+y LZJ7tjaKXqCVm2SeUZwWgSPBzjQYoqeerFpWAGr+sM3P3w18FcjXkqfZA5MZmCt+bSTeHvCVGijrRC poFlGaILjqEX8wbZrKB2vdyKY8fjJLDmuoKhWVEPmwewrk0yVAxTO5r/86P1t5uj4i/bcgqcAGNk8W Z72912ROvV0Fo24sqRV5RgSQayHbeHii+Y4L+OQvDlkNQ6H+wkUidrgTwrF87rwcNcpVNOGyJ8IjSH GATlWPXsypoFObuor51+LwcgC9suVksiSLal149xea0CkOFwo8GgTTbaxyr5EoyNEjFxd/ngw3ZLmv T5ieiF9WxFPmOzKRe0/V1aJYySo7I9z0RWDBbKZvwwa4WKf/8jPwSvffWCiRhtun1l6VyCGMtWpo9g C5raHzomyQ2SoQSUDSsXRS+J6Xn3H58pwI13jEztK7ziEcuQPg1bKLomJErsuU5sHrMVWjJbrIBQ94 ZRB4E5YTG3/GGkHxruKPn/GO6DW+NFnnXurRWMyMdHhAo6h3tu2pZ4PcWWKIUN53jiZrUwcUY7t4SD SN2kg3bS4u71aMPDJRxEjnaQ5VGg4lQG/KGA+iXtupT7O0+vr2h/xM6B0JCg== 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-20230307_051807_056584_9399B805 X-CRM114-Status: GOOD ( 10.52 ) 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 Add watchdog support. Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index 553c7516406a..e018df6844f6 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -162,6 +162,13 @@ syscfg_pctl: syscfg-pctl@10005000 { reg = <0 0x10005000 0 0x1000>; }; + watchdog: watchdog@10007000 { + compatible = "mediatek,mt8365-wdt", + "mediatek,mt6589-wdt"; + reg = <0 0x10007000 0 0x100>; + #reset-cells = <1>; + }; + pio: pinctrl@1000b000 { compatible = "mediatek,mt8365-pinctrl"; reg = <0 0x1000b000 0 0x1000>; From patchwork Tue Mar 7 13:17:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163482 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 903DCC678D4 for ; Tue, 7 Mar 2023 13:22:25 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XkD531EnTLLEFky7HYZ/lQvQsiOKXXaQTTgdCCw4gR4=; b=ls7b6PdJarhPcN HmlJD13Gz9XetJELbydtOh6b+0loWVNDvIGtScvZ28d6UG0UZpd2kWIaf/XSi1H2KefHABZE8VUDl jJiUMiFuZx0+llMXwyFE8g/+MjwGnDx3DmjpExv9bvbR17KlNnM4n01uBURdnNORkfvYO9sx24MU7 WNqDHEAbMRjMAEwN3GOMnUjP1TTea9I+GthFE35HIE4MoAQoUS2TQLFZtcx4km5KTSWpDwJyEqksB KxVmtKfbaJXtzgh50RXous4VKZ50SwZdzJ6hnStMRgCgWCaTPNjCI+he+3uVM7eO0Ru1YAmdPtyCz VWlSB5eH7Sqq6RCulkAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXFT-000L0r-Bg; Tue, 07 Mar 2023 13:21:00 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCf-000JeN-VF for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:10 +0000 Received: by mail-wm1-x336.google.com with SMTP id j19-20020a05600c191300b003eb3e1eb0caso10389580wmq.1 for ; Tue, 07 Mar 2023 05:18:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195085; 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=k5uCqAl9Xm0flZG8lUpKb/HpU//1nqOzOmKaeoAToxY=; b=eoHaLsmI32nf/88LfQMouZ9J44OMQowmwAf9N3TYZNYb5h8ZGdVne4cL8T3aBQQenP 4zwiDZIzk2oBLZKfNAZ3cuAjlJCAx2bEDLaLjmUCb0pCa4PdVPQo7BFBHTJcu+7zqvS7 sLSChTjUxbErjCOu5hs8ZrHsG0XVYJ+z8Ecr5gPKE2vrYDX/ElrQAg4ORBrD92k49Opn kiNHg/L5sH0nOKaejlBuTpG3RxrC/iRE5fbFvcF7kXlEKooTSi7XylXfHy/M353dYq47 N5W0ndio300JJeRAZluYBa7qz43xVggXxk3qaljG9qgwbuvnS/NnvuS0X+fHCj5T5kAu ykZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195085; 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=k5uCqAl9Xm0flZG8lUpKb/HpU//1nqOzOmKaeoAToxY=; b=2UDgAkg11BdmDVeSQKHrdRbidpj3BJZUso1uBJCtCqbQ/IMf5mnjNN4PxEOl9r9BhO ZB7iCgwzmsgOSnk1a59TFvGpK8J1s3nZ5NfVgyJtjvqzLQLnZepXIGBDuR/7MEG8NDhk tEa50mRzCPiDB1e0rux39wIr5rkVc+eXleHxFf/Llaq3s4I0+/GSo5wxwu+mua0HMnzz PCuJT4zQxUeOWNRyBFv6K2uxBIP7y0uHwBMMfHuHMWFcTp/sFvUp7C9AGGh8YVYxX1W2 EGFBniNquAm8Ye4+Zkvx99iC/FFvruHnBbY208XU9j+L/xIMdH8C28ZxZHnMvUyjjSH2 twFQ== X-Gm-Message-State: AO0yUKU5vMy5outUEfmomGttomYLxH1UERexbK1voItZJGMU9xcCSBDu ViBaVJDHzD5nEQUVuDawFRJ37A== X-Google-Smtp-Source: AK7set+sf48Z1x9Twjo4/UtYaCPq2n7WfqDECv3mA/FXOO2VBENeCoItSPjO+/l/llf9yD/Hfnrw+g== X-Received: by 2002:a05:600c:1c9c:b0:3ea:4af0:3475 with SMTP id k28-20020a05600c1c9c00b003ea4af03475mr12625363wms.1.1678195085337; Tue, 07 Mar 2023 05:18:05 -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 hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.18.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:04 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:35 +0100 Subject: [PATCH v2 06/18] arm64: dts: mediatek: add mt6357 device-tree MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-6-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=8661; i=amergnat@baylibre.com; h=from:subject:message-id; bh=HYDSQjrzmppS4Sh8ePDV6mG17CdS6v+I0BsQmS8Sy2I=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmE0WV3vAaIlul6oRjRlBoHjzA6uR25NKsRF4QU ybm0SpeJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hAAKCRArRkmdfjHURcpSEA CsvCOsugMZu6WROlsJvGW3k8kuI+0OawOXF0CvzMhJRB8ianWnGRxF2l5PP1Z7dvX3oFR+La5Icste 8nwz7gHeqSdJP5T1USdB0llA1XRRPe9ISuCudGONf4/nsWh4AQwj6M0KlTQdtuvyzIrosTvWfzLL0G 6hU+rw4q9AedFLDZgVwpCuxw3AtXlgxLSUt/xlFMCl76OzIOp6/T9m39yH+1r0BStOU7PsBcm8HCBc Yc9w3UdvE/9NaYq/rM1SNGNM8g2dV6Gc07oxDxDcJKNSQTklIpz3kjJoQ9LtTGfAs/Xo54H9Czpdah EXimfCObWbBoLZDvJhfi3sa5Qd1S5es52VpKytNp1KQQB7HuArCiOaZU+1NSFk2H036fRViGgNx6ZK pRL4TVIJ5gpS3qV9WbBhcdvFt0GSSB4/AcIJ+sMi20rF07+bB+KP+4IzSjlBiKUcQO6dtt2kgEWnoy Gk7cQlLXBzDXjn75pRN0AbEBjYgOf4U2GvU9z6KsFwcJbVZSG/FdwoJbD4SDbK5mprFjzR5Pi6nrFA e+8YnUeTTPuyBWvhBkUKVrp0QsUpgSrLc3TQ0f5wd18ER5xX1IzhcLrB8teJwL6uFn1Rhzcu5Ve+eH 4ZY1BpaFJA2d0gWgSXXP1Bdmf1nFYMUeo0ZsEQcojQ+Atl8xDctnAEqSfdOw== 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-20230307_051806_173841_2BA7C195 X-CRM114-Status: GOOD ( 12.98 ) 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 From: Fabien Parent This new device-tree add the regulators, rtc and keys support for the MT6357 PMIC. Signed-off-by: Fabien Parent Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt6357.dtsi | 282 +++++++++++++++++++++++++++++++ 1 file changed, 282 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6357.dtsi b/arch/arm64/boot/dts/mediatek/mt6357.dtsi new file mode 100644 index 000000000000..3330a03c2f74 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt6357.dtsi @@ -0,0 +1,282 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (c) 2020 MediaTek Inc. + * Copyright (c) 2023 BayLibre Inc. + */ + +#include + +&pwrap { + mt6357_pmic: pmic { + compatible = "mediatek,mt6357"; + + regulators { + mt6357_vproc_reg: buck-vproc { + regulator-name = "vproc"; + regulator-min-microvolt = <518750>; + regulator-max-microvolt = <1312500>; + regulator-ramp-delay = <6250>; + regulator-enable-ramp-delay = <220>; + regulator-always-on; + }; + + mt6357_vcore_reg: buck-vcore { + regulator-name = "vcore"; + regulator-min-microvolt = <518750>; + regulator-max-microvolt = <1312500>; + regulator-ramp-delay = <6250>; + regulator-enable-ramp-delay = <220>; + regulator-always-on; + }; + + mt6357_vmodem_reg: buck-vmodem { + regulator-name = "vmodem"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1193750>; + regulator-ramp-delay = <6250>; + regulator-enable-ramp-delay = <220>; + }; + + mt6357_vs1_reg: buck-vs1 { + regulator-name = "vs1"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <2200000>; + regulator-ramp-delay = <12500>; + regulator-enable-ramp-delay = <220>; + regulator-always-on; + }; + + mt6357_vpa_reg: buck-vpa { + regulator-name = "vpa"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <3650000>; + regulator-ramp-delay = <50000>; + regulator-enable-ramp-delay = <220>; + }; + + mt6357_vfe28_reg: ldo-vfe28 { + compatible = "regulator-fixed"; + regulator-name = "vfe28"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6357_vxo22_reg: ldo-vxo22 { + regulator-name = "vxo22"; + regulator-min-microvolt = <2200000>; + regulator-max-microvolt = <2400000>; + regulator-enable-ramp-delay = <110>; + }; + + mt6357_vrf18_reg: ldo-vrf18 { + compatible = "regulator-fixed"; + regulator-name = "vrf18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <110>; + }; + + mt6357_vrf12_reg: ldo-vrf12 { + compatible = "regulator-fixed"; + regulator-name = "vrf12"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-enable-ramp-delay = <110>; + }; + + mt6357_vefuse_reg: ldo-vefuse { + regulator-name = "vefuse"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6357_vcn33_bt_reg: ldo-vcn33-bt { + regulator-name = "vcn33-bt"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3500000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6357_vcn33_wifi_reg: ldo-vcn33-wifi { + regulator-name = "vcn33-wifi"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3500000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6357_vcn28_reg: ldo-vcn28 { + compatible = "regulator-fixed"; + regulator-name = "vcn28"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6357_vcn18_reg: ldo-vcn18 { + compatible = "regulator-fixed"; + regulator-name = "vcn18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6357_vcama_reg: ldo-vcama { + regulator-name = "vcama"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2800000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6357_vcamd_reg: ldo-vcamd { + regulator-name = "vcamd"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6357_vcamio_reg: ldo-vcamio18 { + compatible = "regulator-fixed"; + regulator-name = "vcamio"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6357_vldo28_reg: ldo-vldo28 { + regulator-name = "vldo28"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <3000000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6357_vsram_others_reg: ldo-vsram-others { + regulator-name = "vsram-others"; + regulator-min-microvolt = <518750>; + regulator-max-microvolt = <1312500>; + regulator-ramp-delay = <6250>; + regulator-enable-ramp-delay = <110>; + regulator-always-on; + }; + + mt6357_vsram_proc_reg: ldo-vsram-proc { + regulator-name = "vsram-proc"; + regulator-min-microvolt = <518750>; + regulator-max-microvolt = <1312500>; + regulator-ramp-delay = <6250>; + regulator-enable-ramp-delay = <110>; + regulator-always-on; + }; + + mt6357_vaux18_reg: ldo-vaux18 { + compatible = "regulator-fixed"; + regulator-name = "vaux18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6357_vaud28_reg: ldo-vaud28 { + compatible = "regulator-fixed"; + regulator-name = "vaud28"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6357_vio28_reg: ldo-vio28 { + compatible = "regulator-fixed"; + regulator-name = "vio28"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6357_vio18_reg: ldo-vio18 { + compatible = "regulator-fixed"; + regulator-name = "vio18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <264>; + regulator-always-on; + }; + + mt6357_vdram_reg: ldo-vdram { + regulator-name = "vdram"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1200000>; + regulator-enable-ramp-delay = <3300>; + }; + + mt6357_vmc_reg: ldo-vmc { + regulator-name = "vmc"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <44>; + }; + + mt6357_vmch_reg: ldo-vmch { + regulator-name = "vmch"; + regulator-min-microvolt = <2900000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <44>; + }; + + mt6357_vemc_reg: ldo-vemc { + regulator-name = "vemc"; + regulator-min-microvolt = <2900000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <44>; + regulator-always-on; + }; + + mt6357_vsim1_reg: ldo-vsim1 { + regulator-name = "vsim1"; + regulator-min-microvolt = <1700000>; + regulator-max-microvolt = <3100000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6357_vsim2_reg: ldo-vsim2 { + regulator-name = "vsim2"; + regulator-min-microvolt = <1700000>; + regulator-max-microvolt = <3100000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6357_vibr_reg: ldo-vibr { + regulator-name = "vibr"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <44>; + }; + + mt6357_vusb33_reg: ldo-vusb33 { + regulator-name = "vusb33"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3100000>; + regulator-enable-ramp-delay = <264>; + }; + }; + + rtc { + compatible = "mediatek,mt6357-rtc"; + }; + + keys { + compatible = "mediatek,mt6357-keys"; + + key-power { + linux,keycodes = ; + wakeup-source; + }; + + key-home { + linux,keycodes = ; + wakeup-source; + }; + + }; + }; +}; From patchwork Tue Mar 7 13:17:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163504 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 2C17AC678D4 for ; Tue, 7 Mar 2023 13:24:58 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZtC09PpK4kowlgmM80vayk5zktHuA28xCQRDpzSw6lk=; b=QTrXJTlFj0M/gc CQOf/SlNTqK6xzK9OSNTedgVfQmsqmcGozQw6xIDUzauzyHpxKTy2vC3UduuuuZBsxU4/zcnYakza WYeXnNBFuz0oR3Ygg1RmxCNuRMzanWWWhXsdqK/C32CDSUa9tfs6YxuPSvadKZJBKB5Y3dyH3JBtc q4ZF7MDm7h1fLWZM/HdVWPUTD8k1poT3qjfjNczBMCWX29MSZwyYVzQHDoxWPIPQo59evc4LoW+7j uBUPUb1qAlD0/w5gEaof483aP/B5X2gBrkgLqA6I4UW/P7JVNEhlpyk0UfXcUNefdJjeJErmEnBjR +yeHwPnaXibyCtFYePqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXHy-000M8S-A4; Tue, 07 Mar 2023 13:23:35 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCi-000JkL-CK for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:12 +0000 Received: by mail-wm1-x32c.google.com with SMTP id o11-20020a05600c4fcb00b003eb33ea29a8so7182733wmq.1 for ; Tue, 07 Mar 2023 05:18:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195087; 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=Ycq2qGbCq4gp4GdyosDM5PwOaYdMKUbIrOS4iJYcEhw=; b=8Jkb79b7aDSyuotEgPJjp135oUosSHOKbLHzo3J2KIM0/vq7OaTSsnGwFGmdB1lBWg 96Rha7CK2u9XCuzB48T80eYawBUpEOzKabab32PA2ICiNNfKgn7cpoKYb7Wwv3HDcy8N tSApnVe+sKrPLxyFIFme8mOQ/kjPhl1tFOTsG9AZepWbpKh2KU9Vu8i0K+AQSXGyhg4U xV5jXN17UZo9vR+wzzsvYVYpYTd+wEuQsvCSWcL9o6b29wvZtoDsb0qyfuscrrWTH6e2 3WGMB43hbKIS5HWyn7jawti1+uvq8GoTUEoPf52OpJkmUMunw/phUbHg/f2ZQJLrzwP2 6nXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195087; 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=Ycq2qGbCq4gp4GdyosDM5PwOaYdMKUbIrOS4iJYcEhw=; b=OX2GWGiJR9GGL3SAMED9K4GBKWNb4oNs9BImOejxNksQdKKQkw5irjXbDjdr+VbDZT nbv514Bl9OGcGZHE8nd/jfXI88mFpfuIJygzuwRe1eOZSlswFG8Ad0Mg7QdgAGE+BS33 BDYr/5jtsE5Rj3/GevKfqKhzs1R2/XAISQDqGXBMdeQSXfn/tBljZJvqQGdTvXvYOj7Q lgt3EgWsI0JtvLK0b6AOiYpE3ke26+k1yg4GxZhtZlW4Sb0z94QbTvvL0dZoCjMgZtBW bCxoJUr9wmtvQ7gDcDJ32r1IuZ/+b+iYFLTht3tQlP14e/i/p9IqIuyJeqaoRjuLpXX1 qBCw== X-Gm-Message-State: AO0yUKXsMoB3b0f2QrlZ66796lWQ7QMRWiq97xKYFkieeE3iSA0NEx0c vlPFr9JiasjkaY77W6wQvbdt+Q== X-Google-Smtp-Source: AK7set97FITZPS/X2hztd/2R8Db8MrT5BSdLvVQYgQ+svhIM8ACEGKh9V4Wj/Kvhu7sSeA4A9EmyVA== X-Received: by 2002:a05:600c:3594:b0:3eb:395b:19dc with SMTP id p20-20020a05600c359400b003eb395b19dcmr12777994wmq.9.1678195086727; Tue, 07 Mar 2023 05:18:06 -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 hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.18.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:06 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:36 +0100 Subject: [PATCH v2 07/18] arm64: dts: mediatek: add pwrap support to mt8365 SoC MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-7-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1129; i=amergnat@baylibre.com; h=from:subject:message-id; bh=Iy+JlpwcXpubs6mhkIYZfkpEPtOcPV81mErEUunc5QE=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmEie2UpC2lAo8W0pOZ+7mFt1tZMgQscEEj9Q08 FCkXVFeJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hAAKCRArRkmdfjHURRRVEA C1mqBHlIObMMnm+SsFPk3+g0gtiIK+ZqYTtvIZ81le+Funxycq6WLwBCoMwZ53mO4GuQgmE/u3n8df va5Craew2zTu1gm2PfLdamuUYGGsHrdWbqEQvQY5mtDshXTFFj2yB8QPMX3rJMRBteU4Y0Ef+FKH1h o6HpO3WpIyV1pc8UwYqUe1Vkd3gQ0kD7lLwK1TGO580zMI7DBJPOhkGQAqCbQ6vXbWimQTKLi94HEf K3uulRPSYYVb3aetnHQe6EZPIXu+JU9jGaE8MHusxUMWI+Zz/BKNapo8AhAdpZ8emDMt4THTYVA1rT zQQTSsmbE1IYf8wq79YDAAK6PwDyobcstdvbLd+YcxCtal6a0y3dRDiyuVbR3JyieSeyWJ733mHhwG uTBT6XraMR0VLS547pkjBAmxYLYGDynqTeX30z1mWlfauKXo64l3VglhqrGI4p9Zkc1YeiBX+Z1Vni 809uEpSu8c8/m7s+l27g+NFnK3tfFqNUFespehSZgMygDrl3DIl8ZRwW/4h608g5NyIV1U0NZ0N13g 2YOMe235F4TzM/A9iXSinczMQKaKMgdHXeKYoaUfX4G3TbDY93kon6MltV4gYBanhymYkQcTQ5RmH1 kKt30KUb+W+XCpt8udIsYqUrpTOsV+crEwY8QX1qA5SYck3rEO2G8hGdNJUQ== 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-20230307_051808_467040_E389D492 X-CRM114-Status: GOOD ( 11.64 ) 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 In order to use the PMIC, the pwrap support should be added to allow communication between the SoC and the PMIC. Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index e018df6844f6..687011353f69 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -186,6 +186,18 @@ apmixedsys: syscon@1000c000 { #clock-cells = <1>; }; + pwrap: pwrap@1000d000 { + compatible = "mediatek,mt8365-pwrap"; + reg = <0 0x1000d000 0 0x1000>; + reg-names = "pwrap"; + interrupts = ; + clocks = <&infracfg CLK_IFR_PWRAP_SPI>, + <&infracfg CLK_IFR_PMIC_AP>, + <&infracfg CLK_IFR_PWRAP_SYS>, + <&infracfg CLK_IFR_PWRAP_TMR>; + clock-names = "spi", "wrap", "sys", "tmr"; + }; + keypad: keypad@10010000 { compatible = "mediatek,mt6779-keypad"; reg = <0 0x10010000 0 0x1000>; From patchwork Tue Mar 7 13:17:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163953 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 D3E65C678D5 for ; Tue, 7 Mar 2023 15:16:21 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hbFWtkBBbQt2eZbLruUo5Lha4yePeH6m9uSqDLh1wrw=; b=3q50S2Fx1Geo+h OIudBNCrEvMIuivO+6da9kZ/M8IB0vhjSTOrIl9b8xnzCYIY+OXrn31l10fReIqeODq0QnjPRB1VU Rl+l+UzMlmeT0MwAeNyVLHTMoQTBGg+MtF2moXp2nQysxwJUQYMZ3rBHPiOY1vk24rrNfa587sIZ9 lgr3f3SeVElo6BmO1WX4Fkd/FYviB8jPS24wYSL/e269vpWhOkbtpeEjSCIUljxEjDUsSdswi31ZD oXic4ACsDSsYGbIEOs3GKsADEalqDUZBvjwvIIxAxzIn35zQbX0TYabgpXooT3zAld+OLTLJ8yiMa W+6qPHyixKHk3LKZR1ng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZZ1f-0019Nr-EI; Tue, 07 Mar 2023 15:14:52 +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 1pZYZI-000vH7-Lw for linux-arm-kernel@bombadil.infradead.org; Tue, 07 Mar 2023 14:45:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=tMvXXRfdWRwvy4f2szxglSoVaLY3WxRK8VtTC+oWKE8=; b=LIP+6s6QZ7d5VOTpJYPyH/VNvC GjmLKhHedNsrxvWyh00KV+doPYzMGXXZN8BCmQkSQb8FPqqQ//wQ+M3LhKO5sUze2H2sjR7rxv0r5 V/vGAKm5ENfXM3D9D2vDOtzmlCs4RU21i1lDrjNIOwnhdsAqGiYfz9Hkrxs2/8KFmGqUKrRY3LamJ e6vwymXwso+3qJawv72EeTQrQDWChhBqnsYS+kTOP9gKmDpotHM1zJmsHTTohHxRHpF9R8fY5TGCd /I864m2nzuok5H9K5eLVnWJZ6j9ypTt8sHdQFkDXEjnkSbcmo/3i8mtN88nck/QpdAfkcWFGZR8cw I1uiZ/oQ==; Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pZXCk-00H3Af-0t for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:13 +0000 Received: by mail-wm1-x331.google.com with SMTP id p26so7727876wmc.4 for ; Tue, 07 Mar 2023 05:18:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195088; 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=tMvXXRfdWRwvy4f2szxglSoVaLY3WxRK8VtTC+oWKE8=; b=yagAdCNpup4heSuwfKasxj0Epoki7nzh0U+0xs4UQRE+P8u9YFGbWmqGjOA7TPrdtG JLNEdREx0OY0KzK83Iw3zZzpliNBKaBsm22e8nzfk8Lfi0pPfIIz9+xdPVoTl8ePgn+8 pOtM4aYxEPcBUVY41i973pCcba25cnrAV91CG+hcgfVDjZjwyfTe60ziAXYdT3UItlqK L3fRvIWOFWVi+VuvWKczwsm9xi3HQY/EueAr1fFxficqzrN/j6QCUvYiL7VXowEDwSvv vU+kudY5pcFjaQSAIOGUz6k1OKjFRcqRHy4s8/9hwsEjuXjS8zl4LapA82nTcOMpdP8e VvTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195088; 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=tMvXXRfdWRwvy4f2szxglSoVaLY3WxRK8VtTC+oWKE8=; b=7alrpdqBnXLIa4Jgj8ycEp2AiyIpH1SJYWR2Kp1kaHhDhR8oJOCNyEGEcf3n1mnEfF x+jJYVI6eaDXjffi+SJtcjL/Nhg5uFkrMLYBxJL5lIlMsp6hdaIT8vAsR+il9rJ4cJMm nnJktqAvhYSQhW63Upey8kAd/leTYn0CfpRGI6Wf/zuSeDEt98xiuExnhNPzVx0Fii+9 mmqsBj3Yst7q1Em+pVXznU2XoQmO1OxnDxJh9cnSlvemxg9PeHikmOTuU1HTF7N3Lx2h mQiRMuhdpQX4gv36X/aoYNwR9vnDk5EltsCMaf6pN6diDbbokHzftpal56iuzNKfZUkA 2fBA== X-Gm-Message-State: AO0yUKVqyY15xuMjszNGi9sc+26CWFyfbGFhlsxJR5zW9NpV+BuogpCI scbHYlqIVdsZ3uu+jUCvrslmQQ== X-Google-Smtp-Source: AK7set8eUW/r3erEcrRvM0cIs1n7J2O7romWaHfs+HZswDY6MvaE9+uUi4HH78qDMKC9ufbmYKuddA== X-Received: by 2002:a05:600c:5492:b0:3eb:25ff:3446 with SMTP id iv18-20020a05600c549200b003eb25ff3446mr12787013wmb.4.1678195088033; Tue, 07 Mar 2023 05:18:08 -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 hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.18.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:07 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:37 +0100 Subject: [PATCH v2 08/18] arm64: dts: mediatek: add mt6357 PMIC support for mt8365-evk MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-8-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=984; i=amergnat@baylibre.com; h=from:subject:message-id; bh=FPhX0yoQh3im80vWPS01XYLfyse5M8tj6Tuzb4ULZNE=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmEa9lzs4BtOFBFWSpzYa6jzRdhjauHPpgIr9E+ LV9xLHuJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hAAKCRArRkmdfjHURcc2D/ 0f7dOlHW23au2uJsZ1Cpq1/33VxmdGsCv3qwIbPuufUaUiBDUVso+sx/ZuMen7To8zZ+M0m+tCvTUI N3rd7O1EscEe5IlWlAA31f4XMVuQQWTXutCm7I4FXk9nRxCQgHgoxxAE24vBdknmky4VCQ918RmTMr QQvJJjTz8Z0+Mc1vca/pYSksfa+UvujzOlI2Nf5FyADv7wB/kR9VRHrLSnf/5DwWa5ChWFIG+IfZ+R MQTwU1Sbqd3k+i61gWiB+L3YQPxxHZt6GYXopYNH+RaW7LZgYa2LyIbubabIcRkomxzlE/98Xamoq8 wgAITZHgJIkGDjlGZeCRMzEzAFaZbSKO/0Q41ZbIuVUEp8sRhAQaXkTfQBKKPS1RdcxtsGcTJ0QP2j wwDJAHYlskHQTUWHmyDjFe3LT0Lizex17S6kXEApgAA90SQc/FspNpBpi/4mjq8VXz1j5KO72lWwIk LALOnigx88FQatnwvQwUGGF6wwS0uXiGD+YTZwZIYb5tqGyII2lzIplD3hfOPWgEQ2lVRE7HG8JgHE UAzlI6rE+OsWJcxI0FuBpq+ZJuNDK7PdH2W9l7eYBSNMFB5aDIR72itEzWCu3OQiTwFgsfMYgXOL8I fHHggDAQMnsDefPj/o9FnrjVWyDwKS2rt1LRfCbEpu4wCpMoit1MRpeT5Z6A== 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-20230307_131810_668534_058A6876 X-CRM114-Status: GOOD ( 11.46 ) 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 This power management system chip integration helps to manage regulators and keys. Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts index fc7f6d8ae173..2f88562c638a 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"; @@ -96,6 +97,13 @@ &i2c0 { #size-cells = <0>; }; +&mt6357_pmic { + interrupt-parent = <&pio>; + interrupts = <145 IRQ_TYPE_LEVEL_HIGH>; + interrupt-controller; + #interrupt-cells = <2>; +}; + &pio { gpio_keys: gpio-keys-pins { pins { From patchwork Tue Mar 7 13:17: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: 13163505 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 78369C678D4 for ; Tue, 7 Mar 2023 13:25:56 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+dXUnjqy41fDY8WSlsSGYO9pv3sTDJ5Npere/2i28Oo=; b=IpyK0pvtFDlpYT Sxa79TW0IZ0fgU5Dpgr2IbT8P1Br9bO5ZKlpnYBRX/N6v3z5tQ6PRwngMBN7jMhL2Ah3QgiqWLIAB vt4Td6PTUZSl/N/GImYuacduz/VHtMsWLvLtg5PxA732mugDIzwWI0d2CTMl341cKMUkVyhvwWinp pReMi+rLDsvXZgenFxZRFZFad1gTjruVY+wpxU02tVekfRadA4yjkmyFwQTm9j1btEmPneb8qDzR/ rQMnJTz0R6f0CGqU+1+5efzdRNq7uMlDC48/zPn8Mov2du5iG0AGnDGJC8ty4uRjYsbSuX2wSMBER 1S5TQMEhUNMduMTJpRZw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXIq-000MV6-46; Tue, 07 Mar 2023 13:24:29 +0000 Received: from mail-wm1-f49.google.com ([209.85.128.49]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCm-000Jlx-CI for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:14 +0000 Received: by mail-wm1-f49.google.com with SMTP id j19-20020a05600c191300b003eb3e1eb0caso10389690wmq.1 for ; Tue, 07 Mar 2023 05:18:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195089; 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=AWSyw7vn1Yd55xL3/Frwm9BLMR0g24cMsEBW/WsgZKU=; b=TyfWNfDFIVwUZA8oaAn+kwe3Lh7boZVu8yZvraaMEMwkHZyuvuhcQBmJ/BUkTJndYV johjThg+tk7qIMBPP5T6chON4VStCgsF40Hosigz+e8gWtIowPCZJJyZH3r92JruB402 hVE+S4oNyiKTRwpOP/8fksFFHIb+kxx4KtiCtQJvynNiJLEngL3SApgtjTcwpT6NQn7G EeHSBJlvLGrZvVtTSBJNufjeCuQFW6erC5zB9B1iREiFcg6kGdkUrMmE7xGXt428lUpM SU7stmZvW3tQyAZqu22dO1hr20TjnAnZJK+jx8mq1fVVxz6mFQHs7vaD7BdJ5teLD9S2 FnEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195089; 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=AWSyw7vn1Yd55xL3/Frwm9BLMR0g24cMsEBW/WsgZKU=; b=hypXjuWTFhNddF4nVFTvKSgIbgF9kyo5LX3j8OEitqDfoOXCbXEazoFXXmDLrCkMNd IGAB0NhkB2HjgSfbEhSePP9A/97h6gnYTl+aJjMOEXUPfc+Ks7UmkSN6pR+xOyfeurrC LcA2cTzHPCiAWLkowDHqbxgi54bf53MVk2ssTXcdd0TcFTXhFqUBA9LfwEZSHtoO7u90 C1CU5CtKhJzAz4l6/wNIHidCB1qQt2PWdHSD9ks/qFUq2RCHCvUl8Anw2WHWq+GPvH2D ylEYTvFdH17SmlSQGIVNFsX/LS2pV3q7a145IicW8MIHruFtOSGG6A3bzx56SgsntyHh pIcA== X-Gm-Message-State: AO0yUKVNqJGSG0qqMoCpJrIk8KtIsh6PiQp/M/YB1La3XcLcVM38hXdl tqSGSDYtrl9ZOmHY9kIUo7hNUQ== X-Google-Smtp-Source: AK7set+Yb3+r4yp9QkoXV628gX8MpWMtrDIiYbBHHYR6YaP4a4bBLJxm0jJb9s3A4rlqKKIhrytsMQ== X-Received: by 2002:a05:600c:4593:b0:3eb:2f3b:4477 with SMTP id r19-20020a05600c459300b003eb2f3b4477mr11545936wmo.28.1678195089050; Tue, 07 Mar 2023 05:18:09 -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 hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.18.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:08 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:38 +0100 Subject: [PATCH v2 09/18] arm64: dts: mediatek: add mmc support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-9-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2130; i=amergnat@baylibre.com; h=from:subject:message-id; bh=b/w2WNUqtK9XOnggUHaJqIMMUWpiozZDP8P43Z1auyg=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmFy4JhC6orCMChEoIwF/YLwuuJqJQzpRXkhWyY 8KWIwOeJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hQAKCRArRkmdfjHURa5JEA C6Xlkjc++w6xtOTyvSysrEiqtVxFkMzX8XyhxnRjDzvfzR85SAIfqY9spKK4vrnAHt1JjW2wpYbLEL OP7gZY7I/c/X2BFe1R58H8HL203BSXbsDKGoQamz28W309Jwkj3RBQ0O/LcCwyREPlHrGVsaj6uTx3 nlgo4lYxsotV97/fJ+BTU6Tu5KqTSlkH0Vc5TML4jFw3cXbKuc/zMF8uJXBwvothDSuH+td/jLZhxS wgbcapn1rXK+2aNZCgQBLvsJJUTHNXMLIk4NWGBYS2wUrHIPM9/NN5wtkRrye11TOOMy4Ti0zDO5KM HRwXLBGe41fWjja4j3SVNQFjFDFLEpuRPWL4Ajnzqd+114WK6L1P51v24so9hXMfbyZW9F9gKGs1sX Pjnhgf1Elv3BFwJU68QM+tUR92hAMhGoYbUtvQbt/cRLDZ956Br5Hv7yLPDo/MME59wQ8tk1xEZCF6 x23qQtOfnu7aQSo14T5lpcd9fXq9xGG4s3d20u0MzBWEst/FL5HI80O4199JRrouP3GtQ5YTZbzn8d 55ntQ3Ab1e0DOU4wwsj/VfbKx2ekL3Al66bJNt2WUexSs5hq27UtvUi3Rc6Ta8VXAqYtlW7NTIx7GG j5EAqLaEheFtO9mI2IxyzAQFvyhimx2UftqunWyqcqGZCxZtX7lUBdbbyNAQ== 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-20230307_051812_462171_A8EB397D X-CRM114-Status: GOOD ( 11.33 ) 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 There are three ports of MSDC (MMC and SD Controller), which are: - MSDC0: EMMC5.1 - MSDC1: SD3.0/SDIO3.0 - MSDC2: SDIO3.0+ Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index 687011353f69..a67eeca28da5 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -399,6 +399,45 @@ usb_host: usb@11200000 { }; }; + mmc0: mmc@11230000 { + compatible = "mediatek,mt8365-mmc", "mediatek,mt8183-mmc"; + reg = <0 0x11230000 0 0x1000>, + <0 0x11cd0000 0 0x1000>; + interrupts = ; + clocks = <&topckgen CLK_TOP_MSDC50_0_SEL>, + <&infracfg CLK_IFR_MSDC0_HCLK>, + <&infracfg CLK_IFR_MSDC0_SRC>; + clock-names = "source", "hclk", "source_cg"; + status = "disabled"; + }; + + mmc1: mmc@11240000 { + compatible = "mediatek,mt8365-mmc", "mediatek,mt8183-mmc"; + reg = <0 0x11240000 0 0x1000>, + <0 0x11c90000 0 0x1000>; + interrupts = ; + clocks = <&topckgen CLK_TOP_MSDC30_1_SEL>, + <&infracfg CLK_IFR_MSDC1_HCLK>, + <&infracfg CLK_IFR_MSDC1_SRC>; + clock-names = "source", "hclk", "source_cg"; + status = "disabled"; + }; + + mmc2: mmc@11250000 { + compatible = "mediatek,mt8365-mmc", "mediatek,mt8183-mmc"; + reg = <0 0x11250000 0 0x1000>, + <0 0x11c60000 0 0x1000>; + interrupts = ; + clocks = <&topckgen CLK_TOP_MSDC50_2_SEL>, + <&infracfg CLK_IFR_MSDC2_HCLK>, + <&infracfg CLK_IFR_MSDC2_SRC>, + <&infracfg CLK_IFR_MSDC2_BK>, + <&infracfg CLK_IFR_AP_MSDC0>; + clock-names = "source", "hclk", "source_cg", + "bus_clk", "sys_cg"; + status = "disabled"; + }; + u3phy: t-phy@11cc0000 { compatible = "mediatek,mt8365-tphy", "mediatek,generic-tphy-v2"; #address-cells = <1>; From patchwork Tue Mar 7 13:17:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163611 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 F3506C678D4 for ; Tue, 7 Mar 2023 13:59:35 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Ufsw4XH+ymJeNToBizlpO21FJz4gVLB1ZLmKTtZwxj0=; b=VHD0iUFirSM9ci xUjBc9ZcBL1hC55grabuTy84IT47IbifYD4+ReAHgklGDNAaVEbdWfWPKsEEgJS+WmqjVL1EMIDHp vJs028Fgw86I0A2L0nEB1nET6FQl8sM3iUztywtU3W7fDeGlIH9AkOpYAyMzOEvfTW8v4lZI0wUHG R3iHWUiNrue4bN4bIrXR8SC7oRLX1q2mCb1ky0BNQyC0hLR1ESSxu7rBKxnkO9MPhKNTR1SAiq29e tmYukXale2YE+zE+jsSVluRMMx1iRYXD5b4IbP4H8zhC3yxF1rfoFiVpbory5fEvJZpzXbrxPPKGY Ag5H6efRAthhb4JfnSOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXpb-000Zp7-L6; Tue, 07 Mar 2023 13:58:20 +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 1pZXe9-000UzR-3n for linux-arm-kernel@bombadil.infradead.org; Tue, 07 Mar 2023 13:46:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=PLrF8Lyon+lRRcj4/8IUgpbSTKbpVT3/7eOKhJdTSN4=; b=hGtU1BwD0I32lI3V666TQ4gInV EQVYyF/AYqIiK5y8PmOjG5HmAIBFGZmDuuiiSewq6wGBrf8ny16kuNCEa8Hq+8uRtwPPFUNaYQuLZ uHfr8uWrGqWcgIVsRKxHdEBuz/Bz5vcBrGitUNxw9wJf9O2wsl5hYuv7QgqyySQ3D1e002GHBAO2V 2uQm/+vBNFoAfpfiMZwG5OhDl9LnYoNzzjWbwiCAsHtk7/SY+6rZZNVlPc64ltiKIPoP7Jrg2K2JR Ml5fbIz9oTruA/rk81eMGVkY0DdKvFdo2vnfcsvR6Bdxv+ZxUaQrMzyMgk/BF6+pyI5azFXJRl/00 yN3vDZfA==; Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pZXCn-00H3BP-0S for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:15 +0000 Received: by mail-wm1-x32c.google.com with SMTP id fm20-20020a05600c0c1400b003ead37e6588so10369848wmb.5 for ; Tue, 07 Mar 2023 05:18:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195091; 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=PLrF8Lyon+lRRcj4/8IUgpbSTKbpVT3/7eOKhJdTSN4=; b=wb+RgBUkEuRY+hKAiWUOlOl7QtxJXniM3HE3nTXu95DL4zm00qCTqqql3dT1Oacal1 PJ5W5dUlmyJjobXgrqG2Afo5skJBLFcOcRpXeMBonuvQsHPWGm038xNNOfO8gjGPVQeC f1e5eiCXSVmv79z4S5ZE6twk0YEXajzJZPwAH0Y0YJ3uSmSETtNna3EBOUPObem04DgW Iw0PUohV4/GaimqO9zlzB2vABmD0jVZJNaWXryZZGQBonniJFggKdE1H5qJIUg/qfzO5 S7eDrV9iHsa66wKjF5NxjDVVJlc1cKQ2pI3CqBcfpI1D1QX2yji9OE/3W7CGO9H3KYjV iZUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195091; 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=PLrF8Lyon+lRRcj4/8IUgpbSTKbpVT3/7eOKhJdTSN4=; b=zgRuHtLD2HQeiJNnl/LPyqeioQfADaVg2HQifs819ikqpOYpo9r2uW0TbEX1Tk++zC S3MibNXYH2eF0tW6mXuyiUDMCr26j0XGq22WJVG73ADM31rvsAnl9iKSG/CPhC4k9XsU 6KgHZTLLUonPnHkZ9aO2bCoTFPDDNPlvHA3HHf3MyHcbnMDWupeyO3Pw5Osz1f7TeHrL bZ9J+p0OYy8GS4RI/Tv6fbChzyymZlHUGGOhGY8aLXe+zqZQp/wS1HlImvGMWhntQ8GU KYDoNIoEgRhiEru6Jz9VP0uGwvlOrcyV/LH5pce6HFVBFBIFR5djn9eIyT+VWRsSme4s NQvQ== X-Gm-Message-State: AO0yUKXIOVAv/94iOreDxty0CQ9Yjj0qYoS4beqiHyDc5gXYsMdv+zeP hVo8Jr5ssVakZupOSMHOUjbTEQ== X-Google-Smtp-Source: AK7set+e6Vi5onnL4uhoDo3Ml0k6sl1Cu/rHLXvGgYRU2tIEdvpwgke0JtDsAvPFU9zMg7sCw1kKHQ== X-Received: by 2002:a05:600c:4f0c:b0:3e2:1368:e3a0 with SMTP id l12-20020a05600c4f0c00b003e21368e3a0mr12631189wmq.18.1678195090908; Tue, 07 Mar 2023 05:18:10 -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 hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.18.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:10 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:39 +0100 Subject: [PATCH v2 10/18] arm64: dts: mediatek: add mmc support for mt8365-evk MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-10-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=4900; i=amergnat@baylibre.com; h=from:subject:message-id; bh=FUvX4Y67PWFG8krX65sQgwyrwAHkOa5g9vcgPs+bb7A=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmF1flymczK0c644lziXoPxw6UphNp4tJcYIBHB sYXsAe2JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hQAKCRArRkmdfjHURZDvD/ 0RAz6KKvNuYMOaCJVO+YlwFHQUl7ufVeRqAQ2nUoP5miqPvR5GZQtPOzLqHo3sDVi1ZORFGkquGz/+ gLhpjCQm5oeUJeIxO+P1iDuo2HzPYUED09/OZtMZjA++LKyB2skEsy0h0akW0gE+5oav+IDl3EYagF Mh8QzZRRBAuQrGrbadno2PvFIo/KTQVOiqr/32uu1J0bxJuXs531UBykd2cpunQrJASu6/1b2Qk0jd MYxdbplii8e24onYbJNAiqFnwUHgMTqsk5pFQadEJnekEbioWUW1Dk3TH3cjvwLGVChogK4+f2cOlP uX9xhyCkX6G0zp/L9jYxqoVfRevcKE7DH/iKqarbeKOtoG3odm95ShE3YLsceOi07IA5Zzhvg85fNe y0phjAXbkE3q/jbhqgTJ543mEr6JqZyVoFz52t+oaETITDpMOs6rwOz3a94+8Sm073eS/G4LBXLaPp JxP7lk7+g1rhyRw3G+yR5xn0wNZ9l+bk/dzv0CU/4nj6j9peOseXFSB6GLWkbNXJLu75TDNJY6QR6o PnenTfT2QMVnPCr9WBNjZafATu7zqOR5uK1fVBCVMvhRVvY+G+pqNtNDTG5+KFP7KJ+e3Sr0N0zIc+ MQDlZsAh4gIPRH7xRJ9waPPqs1clC6chfhOqVRHjiteht53x2EhRMkd6sLOQ== 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-20230307_131813_363923_3C0DEBF2 X-CRM114-Status: GOOD ( 11.53 ) 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 - Add EMMC support on mmc0 (internal memory) - Add SD-UHS support on mmc1 (external memory) Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 138 ++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts index 2f88562c638a..b5d018686cbe 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts @@ -97,6 +97,42 @@ &i2c0 { #size-cells = <0>; }; +&mmc0 { + pinctrl-names = "default", "state_uhs"; + pinctrl-0 = <&mmc0_default_pins>; + pinctrl-1 = <&mmc0_uhs_pins>; + bus-width = <8>; + max-frequency = <200000000>; + cap-mmc-highspeed; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + cap-mmc-hw-reset; + no-sdio; + no-sd; + hs400-ds-delay = <0x12012>; + vmmc-supply = <&mt6357_vemc_reg>; + vqmmc-supply = <&mt6357_vio18_reg>; + assigned-clocks = <&topckgen CLK_TOP_MSDC50_0_SEL>; + assigned-clock-parents = <&topckgen CLK_TOP_MSDCPLL>; + non-removable; + status = "okay"; +}; + +&mmc1 { + pinctrl-names = "default", "state_uhs"; + pinctrl-0 = <&mmc1_default_pins>; + pinctrl-1 = <&mmc1_uhs_pins>; + cd-gpios = <&pio 76 GPIO_ACTIVE_LOW>; + bus-width = <4>; + max-frequency = <200000000>; + cap-sd-highspeed; + sd-uhs-sdr50; + sd-uhs-sdr104; + vmmc-supply = <&mt6357_vmch_reg>; + vqmmc-supply = <&mt6357_vio18_reg>; + status = "okay"; +}; + &mt6357_pmic { interrupt-parent = <&pio>; interrupts = <145 IRQ_TYPE_LEVEL_HIGH>; @@ -123,6 +159,108 @@ pins { }; }; + mmc0_default_pins: mmc0-default-pins { + clk-pins { + pinmux = ; + bias-pull-down; + }; + + cmd-dat-pins { + pinmux = , + , + , + , + , + , + , + , + ; + input-enable; + bias-pull-up; + }; + + rst-pins { + pinmux = ; + bias-pull-up; + }; + }; + + mmc0_uhs_pins: mmc0-uhs-pins { + clk-pins { + pinmux = ; + drive-strength = ; + bias-pull-down = ; + }; + + cmd-dat-pins { + pinmux = , + , + , + , + , + , + , + , + ; + input-enable; + drive-strength = ; + bias-pull-up = ; + }; + + ds-pins { + pinmux = ; + drive-strength = ; + bias-pull-down = ; + }; + + rst-pins { + pinmux = ; + drive-strength = ; + bias-pull-up; + }; + }; + + mmc1_default_pins: mmc1-default-pins { + cd-pins { + pinmux = ; + bias-pull-up; + }; + + clk-pins { + pinmux = ; + bias-pull-down = ; + }; + + cmd-dat-pins { + pinmux = , + , + , + , + ; + input-enable; + bias-pull-up = ; + }; + }; + + mmc1_uhs_pins: mmc1-uhs-pins { + clk-pins { + pinmux = ; + drive-strength = ; + bias-pull-down = ; + }; + + cmd-dat-pins { + pinmux = , + , + , + , + ; + input-enable; + drive-strength = ; + bias-pull-up = ; + }; + }; + uart0_pins: uart0-pins { pins { pinmux = , From patchwork Tue Mar 7 13:17:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163613 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 9E3B8C678D5 for ; Tue, 7 Mar 2023 14:00:52 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ENtcWbz+zDs8R5RkgEgcp5vhDwHfdNCKBNCg5HYJRO8=; b=M6YDP+KZT1XBoV bJjL+uS07W6iFPcSbMVZPqurJzznYFulGdpcQOXzeVDgOLlt1lZVW7cYkR5p/7jLtSRVDATCob09K Vj11qxOrmBMOb2nDnV3q52TIXlXQgq/JXVUCpIQqKQGJrO+4sqXHaIJzkFkGReSKmB1TyOW1DaSfD JZOucnnMb/munZknWOKk8AAP00v5RioJWjJVYa9CQDAnaUYQHMA2Mr3eCW3PZfnUneNnEFjjXwmzX cT8X762Zv1o2vyUsBCoYsVTsKL2qNEbjQksXM1qJAsWTPoPkmlqth5QaLebNVedSdI1SJyy6hi0aq u2J1NzimWKfxFaEmaqUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXqp-000aMk-El; Tue, 07 Mar 2023 13:59:36 +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 1pZXe9-000UzR-Of for linux-arm-kernel@bombadil.infradead.org; Tue, 07 Mar 2023 13:46:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=jZgziY/YB1+30FBJvKkNffG54YxezBqs7LSH3IaDCyE=; b=UleGmdTVDaOyn+y4pq7/bnS4Nz a4gdadwYMIENYLnG19toi3ZZXX9lzYsXbEMtatH9sOZNSHKalqHP2yzR50a4FnUdTnAJr+9lI2y4w FaFjsVQTgsLCQkfqVhqcHU5FMsJZ2WifLEUvraPZkjdl62W7gcMHDgsuEqyCwwV/9V/VkURLw0SEU gp4UJV2IcZcLuIDcpacYr7BrIrEDPN025iKHNTap94a0plJ3NXRJQYz8QtTdznAtK7aKpLlKGe+XE ObMoWX11JRWBidYgdDhjC3NM3bJrzb/MGEl+rF9gggTJnXTSeF5LNElUHvfj4rVCdxcRhaaaEuV84 CR8QFNBQ==; Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pZXCn-00H3BR-13 for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:15 +0000 Received: by mail-wm1-x32a.google.com with SMTP id t25-20020a1c7719000000b003eb052cc5ccso10374214wmi.4 for ; Tue, 07 Mar 2023 05:18:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195092; 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=jZgziY/YB1+30FBJvKkNffG54YxezBqs7LSH3IaDCyE=; b=gC9PSU0EnIFVPXWsFxTNgWSf3tFnBCbUk5WHSo8XVliNlpnSfhfHxLrY/vctpUteoa 7H70gjcACxeZu24f2wnZQ3FnrxiflSf4hpX8i9TSAnX7peuavPAgSCeEaQc0MKip0rXX 51SsfpKERecVAVIYslCTABFn311ojZmsZwkPQUneoWV5UWNmy1Urf2wuGrpZf4QM5jpc lRVw/q5kLj8KFFD7w/29U5+7fh+Sfe84aFN8ddpGa8CANq0gXIPQ2a7YiQIMJbB7HfAb +GwjcLaCzswDeoZBTaBHt6lzOIiLh22CZq9YLIsV7H5+B3it+X8hCP6N3nTqOWri5kVC pFQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195092; 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=jZgziY/YB1+30FBJvKkNffG54YxezBqs7LSH3IaDCyE=; b=Em59Mb25c4OnGQivUJ4EGeAGXyq6lJQheZDg+3kz8RUk1kjw0hbb7rKcpy8zhsXBxD BS/Q3KqND2ThywuVW76eMRzXarNm6jYLsecCcV5jY706D08dz34Es1M9bAvnWE/F6RLB feEsp46GYafhU76SFaADva6pVYSCvFZ1eaFSOTTUBJKh1HW5Xhx2aEiAiPVIEP/c37bX o6256J1tZDEKM16i/iAURTGBY9D5OUDoXJQlIARgB5Y2uVIEHhX3G0DWO2BqbAcjGEoD wvP8AJJI1SPZhy+nSm5zZvQyneUSd+mIrrYqsIJbr2TEicx8dRsjH4wcfkLK0vffcgoD gH/w== X-Gm-Message-State: AO0yUKUef6Bj/a65/d39iXg5RrKCqTelAEm4hV2bJEZ0T4x5Ol86RXf5 XUQ5EccV93qE3Qhva4xESVRAfw== X-Google-Smtp-Source: AK7set+cP8/xdPN2V+iIMBYICaK3cU0G05dWqNfqiPFVmOsPJ1f8OveQiZPLR8GCioSkk1VJkw7fEg== X-Received: by 2002:a05:600c:3b11:b0:3df:fbc7:5b10 with SMTP id m17-20020a05600c3b1100b003dffbc75b10mr12361026wms.0.1678195092054; Tue, 07 Mar 2023 05:18:12 -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 hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.18.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:11 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:40 +0100 Subject: [PATCH v2 11/18] arm64: dts: mediatek: set vmc regulator as always on MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-11-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=736; i=amergnat@baylibre.com; h=from:subject:message-id; bh=zgAlVqRMW0cAokXo5nVY6t0rSDFpe2kI442mv7CbE8w=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmF882sWdKBKZfGLh7NQrzfuoy24HxuZignt4t3 Mr+TuGCJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hQAKCRArRkmdfjHURXePD/ wJMDLl6pvqakmMG8hz7aGqqdhwAuLq2j2nRK88uv/lChJvPbyXbOdPJfYAwAq0W3SPJPGnYWqRA+9o rlDRXzYwCyvUedBxvhKsS72XdiG7uA0YOymaQJmihtSk6UzWmwBrcK491iP2yacumgoab4t9ToGD0c 2dHol88AH1muFHFGNJpeA5TO/mOYEqyJmtnCtnzD86of9FeRjYksMJGVQ2EUz0LMfifDsYYAF+AmPo 4mxtGqA+ISGbodtvDPp7NhiNbxSB84kbNlb8Ft16SOq3M0S1QvPLXZ2zjFlVNqzfDSvjgkLhedmble z2WA1Y/BJWtyT0Hcv80fHnvKEF+uwcceS2/YaVpAvzD5EGvtYotu+KIQK6qayhkkEjin/sKWEsRrZR HLvqfcJnPQZqW+0Y611bzXu/IG65TKTFIe6L/vZ+DMYCzhJcc2XzgPs2+alXCi/f4pmEaPqrPE2uQR eGMwrF7hxQneTY2v222PrpxgPbPFq+c85ujrO3syV4OeMsJMTGcEyKCvWFhEYLLnSyVSNk+fcsrY1C txTFjGkUbQzJkCr1TJ1dmEGBC19Rr4BX7moQqlrnhqSak+ageMLJ4SbDWxoq8CnIGEyR+R+adkvugz zsR2OxBlrgVx2ODximRC3cr/4sH4CeYXEZK6uIUZKM5FiFYWWbap35eG4TTw== 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-20230307_131813_482458_260FEDAC X-CRM114-Status: GOOD ( 10.98 ) 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 From: Fabien Parent MSDC1 IP block is powered by VMC. Make sure it is always on. Signed-off-by: Fabien Parent Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts index b5d018686cbe..22ec332fe9c9 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts @@ -140,6 +140,11 @@ &mt6357_pmic { #interrupt-cells = <2>; }; +/* Needed by MSDC1 */ +&mt6357_vmc_reg { + regulator-always-on; +}; + &pio { gpio_keys: gpio-keys-pins { pins { From patchwork Tue Mar 7 13:17:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163506 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 59BF5C678D4 for ; Tue, 7 Mar 2023 13:26:55 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=x2zExFUPTDgk7jGBOEoOmW2oqQNGyqOD9z0J73pKdeQ=; b=hS4nUPwGWyCNz9 gPTp6gTmdbGZD7FzVNldRSjz4IE4VIkTEkLxKGV56wnQTvGY6HYAZrYbDP8zPKcaRLxkDzXH+okv1 UKTVtSxhhRJu8F2bbxnw+0iw+FrnVmSLV1e/YlQv4d3dAF6BwhENs4uk/8G56DdrQtwMCcYIY4l11 2v5IL/YqJJMjWBy1oOWbtzR6uLLC7hXRto6xeAV5heq0099YBh/oaWvXSSTQgjvV23GNYXiAC0aXo qBicXgpae1t9qNBxEfZAfiqFe7q+e+BA9a5EUpeivDIEBwNXrqsXGIRZmhY+apOF95KL3WRehOv9U O/mjQ22r+3775ehe+X6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXK7-000N4B-Jf; Tue, 07 Mar 2023 13:25:48 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCn-000JeO-U0 for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:15 +0000 Received: by mail-wm1-x32d.google.com with SMTP id bg16-20020a05600c3c9000b003eb34e21bdfso10425960wmb.0 for ; Tue, 07 Mar 2023 05:18:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195093; 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=rjdHCu1yd4zio1WoQYU8aAsyBoW0zKJYpSN9pBzP9bo=; b=3GjNkre5oldmT7wE2wfIMJg9jC0G8x/HtrTGBe/teZ1BqFuqs071vdVgHYU7xrzBF+ KsUR7WJZXlkD86Qxr85nH02dKivyFumI2btx9CwV9YPYa5XaYjPgzpm4mRFl/7JLTVWp xVZQQLGRAk1NBdYfU9xfSogs3KFmheCxOrJ2YAM8T+rV/3vuLRweb52T/V5grUJ6LcRK DLejV4ASCbrMnslWkDMZBKfPP9NR7Bkl6dTf7ibzSo0dNIgUb/jowzvlSdrAkmUMJsX3 gxGSQoDZdpM4BUBbSxdWSNHEVECOFu08dZWLaA5/4ioojdIBy0Eh/hTiw1WA656zVaKO t24w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195093; 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=rjdHCu1yd4zio1WoQYU8aAsyBoW0zKJYpSN9pBzP9bo=; b=Dl9dXpWSRuDI/KHISCcSzLyrlIwIgDA8vZsN9Qt2+jBKO92aSMiIdcYFn6IB9H2wO6 k+2WuTy9vaIV8t4TQVXyn3ArG6k5sDLPRaRfTWhbL/eD3iBjX9CyR2ZEgYB9jTJ6KGwE fB6IFLLy2gp+2oINfssAfiI0TLnkOzRaT7Ijk6DMlBETuUjC/WKoi1e3264RLjJejPyP MMmmBPW5Tj5rhBNzBMCqUjj1bdZZxUzz79TCsb8THuxtf+OKHfKdl9mARMYL8Y0hFcGC dOFQdzvdpUIUCn9f8qYbnCZwsWMYGEllWOR7300XN/PpquyMtKr091s+/UKprucVbY6f hynA== X-Gm-Message-State: AO0yUKXTgak0t6fFlln5jnx7hXNybWsXsXrSgXU2bOWp9Fmuczr/AU4M w2GdLI/UjSpn6q/GM5yGtaqr7w== X-Google-Smtp-Source: AK7set8CIqmmxVf7/vfi024KXUUiP/yUMr9EcUa3fFK4twRA7eV4gKPuvdfyNpLz6hiMi09N/2p68Q== X-Received: by 2002:a05:600c:4f0e:b0:3e8:490b:e286 with SMTP id l14-20020a05600c4f0e00b003e8490be286mr12412929wmq.14.1678195093416; Tue, 07 Mar 2023 05:18:13 -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 hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.18.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:13 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:41 +0100 Subject: [PATCH v2 12/18] arm64: dts: mediatek: add usb controller support for mt8365-evk MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-12-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1193; i=amergnat@baylibre.com; h=from:subject:message-id; bh=e05d+1VSpqW5Tr4I+yJA0DTOWJXEH+g83HTfBtf6kgA=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmF4OpgQGVHdnV34dAZk+75s6IV2QPLLNKZfS3Z K3IVa5GJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hQAKCRArRkmdfjHURbpoD/ 4kMri4+oTxjblfpD5B9NEg/ITozMh9Puxh3dI/x/2US7SShFgWv2jtuGA97B5A1byBYDGPQtS95CwX Fc/m59UBQx+7mMCIgETO+ooQ8evVgFse/Ofd6lvmj3BI4tqtLdcXgqaI9TZrYlJdYmHS3A4HhdHM20 d7tAfPZIdj2gYUiIRviSexiqAo+akaNj3Nm7N94OMS1NlPOqkK1YNp+UCerNJPoINxR1q/5Gjh6Qlx hkIrYI+qZ4ilWmK3GUqH/cE+cLpdksOy9POfxPuwu+Z5IRBRALFD6AM+o4VSi4xdqVH373GLd9/YuK mMmwWm+ye8cmWngAjAirg68J26PL5mCD8GRaHMoPPiofv+BjH/5GpvELqnvJXs6gCMFITCx3Rkf2vK pFbawGRB5jWJx1eZKaY3QMO7UwQNx65dLJ+ILHNRoCFCrz3IPWix/7SMRG5NeRQOcpak8fg9kEAwuV pU7EtXD1HmTIvgRkmkVvKHu7DYPOQgbLI1CJlt687HCNbG6RnN9BqwsWx/18IM4PfhGsLw+sg4i4de G4TFxtxkdljJOGwsIgIEHrKVt+R4oWuTks26tGo9vgG0aPISsx+vm7HLUBI29RAF7D4muEiDKN22OJ vMYMfvRWVUz9C3sClTv25i/93SMiCuRR5lB8UiPwIYwVxktAJRfn229jz6FQ== 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-20230307_051814_048107_600B18EE X-CRM114-Status: GOOD ( 12.31 ) 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 This patch add support for SuperSpeed USB, in OTG mode, on micro connector. It also add support for the Extensible Host Controller Interface USB. 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 22ec332fe9c9..868ee0d160e4 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts @@ -319,6 +319,28 @@ &pwm { status = "okay"; }; +&ssusb { + pinctrl-0 = <&usb_pins>; + pinctrl-names = "default"; + maximum-speed = "high-speed"; + usb-role-switch; + dr_mode = "otg"; + vusb33-supply = <&mt6357_vusb33_reg>; + status = "okay"; + + connector { + compatible = "gpio-usb-b-connector", "usb-b-connector"; + type = "micro"; + id-gpios = <&pio 17 GPIO_ACTIVE_HIGH>; + vbus-supply = <&usb_otg_vbus>; + }; +}; + +&usb_host { + vusb33-supply = <&mt6357_vusb33_reg>; + status = "okay"; +}; + &uart0 { pinctrl-0 = <&uart0_pins>; pinctrl-names = "default"; From patchwork Tue Mar 7 13:17: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: 13163610 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 15891C678D4 for ; Tue, 7 Mar 2023 13:58:40 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hThAAxG5KvMcdw7RlxAIvqrDKLZ/SkpBlN0pATxOMiM=; b=d525BjuGE+tONF 6rFuEnPzi2QQ+zhLFXGpCycZyieN6bg2HBOGuRafDL4o1XxUEcrkmvw2+niIYxFifn+trwwuXlRvg NTHua3t3ww18/jP/FGRInTGIiRMykUef/bqStbwWdD0l3L81QN5s2lHxO8FQvMUVNF0q4+j13VRJ9 BfsiJ60liW7L7tqcYV07jSKHrCAczvxTxJhN5mwWaYApospOpHyp0D0pqBKvUFfYSGbcVlsnG3cON HjEjQUDoITiSDNe59HmUUwZsKB3vEYRf5la49kaqV5NP96hYIWgyiYHXVg1KVXYdeWou32non+4lS +lQILihy6vOKKQ7iIApw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXoW-000ZLB-98; Tue, 07 Mar 2023 13:57:16 +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 1pZXdq-000Uqj-4J for linux-arm-kernel@bombadil.infradead.org; Tue, 07 Mar 2023 13:46:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=WTwUwSLISXupiYzHSzg22kxdlXmwobHt1s4yX2iCI30=; b=A2xiOisdJ2xozCpnO/JfahXfOJ npj2JkNDcyVueN81SdDwDkki19gc1tVfKDcjmUbQNII1GWc6xxW45rUWThwKUypI/CI0KWamfK9ER 6oSeC8S3ioPPP7Ik+lD7tKeHHKbIQAA0gDXy4z5xqW9ahgc284jpKGRvdTDrf9t02rLtG+n3u+Q74 oFbCbzCXsoThipg6CmHs8BoSy0c2tyrBByrPgvoNSW/6cxJ+RScWBlf4WvtpY0xeeM1y36617QsRt fJKqllJkfZt521NERCO8GGGFC4zHA0K65nNXkxvxwuiGNIOeEeJVggnTvhOzOj+X5m42Nrwc1POLA rhtiOgxQ==; Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pZXCq-00H3CL-21 for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:18 +0000 Received: by mail-wr1-x42c.google.com with SMTP id v16so12148461wrn.0 for ; Tue, 07 Mar 2023 05:18:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195094; 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=WTwUwSLISXupiYzHSzg22kxdlXmwobHt1s4yX2iCI30=; b=AImREh7EYVUqaehhWzUZxtGIBjaSqsCEYAUilNqh3fIYOwmSqT+WO5874wgxRa4fvy 8W23oJI9Gd4tFMWSOLaqJCEI65vb24enNrTj/0fnUNfh/xSkp2XPZXT5sLgiAm9WorCH ZxfNLZgHEeDx75K647KUzD5wIb8c2HWFwskRNQMmxm4/N5mzEfsULaPRtuafLLtl3nuA mo4j6fwhNNe5hpbrGqrePLNWyY8IikTJmV9VTKfJj8mT1q2iYgC7LHMGVSbErXL2GMTG fl7yrpZsLnfzUuX59QoZ4iW8S8JrDlPljjLHxK+yuZpjTws1F+D57fxCGsLNbFCV03W9 rlYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195094; 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=WTwUwSLISXupiYzHSzg22kxdlXmwobHt1s4yX2iCI30=; b=J1UkzjpT5AvormSdkArgmxzfGCUC1uxFQVHRGv0Lu6v+hpneEkc+wwrTWS7cudOwLk 30+YPfHLwq2W/tsnhPyHSANzwaBeLZfUCMY70DqSz/SYvU8UrWcjZdxWWKr2pmWgV88+ wc613rcjV8rHXepX3ReWcxWb5TZOMmXHUOHz2xtSgPRNOSrUXzmlflX9TNNLCbnXa6Hi 4QOa6elOAXyANpxK70e1BPwsou00XRDA3q0IkAIEKqd6ju6C2kLf+M9dsQsZXd50qeI0 W8jXmG6sgLI3QmtkBMYf67g1G971ff9Lq9hpDG2CM12fOTZJISz3DryHl+8Mt7dv93At I0Jw== X-Gm-Message-State: AO0yUKUzAVdfyU5Lfi2p8cTymJCnpAs6W3HcN2B9rwNIaU5u1SJv6eAi kvac1ehnZDT7SRPeGyYJJ5ZQjA== X-Google-Smtp-Source: AK7set+9nhyca70hEIORA9ihk8VcPxx61Ick2qkumdsaCswY2a3eyZE2HAhVl6yEdVLnbUFukGskdg== X-Received: by 2002:adf:f448:0:b0:2ca:e8c2:6d29 with SMTP id f8-20020adff448000000b002cae8c26d29mr9172709wrp.7.1678195094636; Tue, 07 Mar 2023 05:18:14 -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 hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.18.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:14 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:42 +0100 Subject: [PATCH v2 13/18] arm64: dts: mediatek: add ethernet support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-13-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1366; i=amergnat@baylibre.com; h=from:subject:message-id; bh=7pGcYrXi2hCGwx6B3T21Sna5Awy1U2WZgVtirE5+dl8=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmF1I9j0+IU2v2RxpbCwB2my0kNnwI44xhyeFNR uO6Rj5SJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hQAKCRArRkmdfjHUReT/D/ 9f/Z0AlnwLWfgxZfW4BDsRbISoCY87TTG4ZwHBUYDz6dJ+Q5sFIOxtg1DSXFWtYQYLS8+OTyZjJo/k Kv7O1Q8tD+UZ9YtLtpVxaH8WPckQSURjbCj2RG6qfSjQ5HOqmIlqwKIA3f5My78bfgDL91c13lgqp2 7kOqOYp+B6goWCpZie3cYo3x4YJX2CCxP8dRWUHtjNh8xjzene2wm9aE1AiueQImqOKM5JdzDgJB/F WgG98pjdtUwuMQwgIgusg0tqmRpcVPBV/ksXv5jfkCz5ie3vAdN+r0iW2nYl2XnWca+9+PybQ1Kiav iPC5W7rHj/9g4+hXLCUr2ps6H0mkKibdairpalxKAl52SpL/h+LvgcdNqglIo8LkhSapfD39LmbQvb +Gr1ZIyVtvgrwlw0TH0MJ9W/SRo4K0wS4AgGKEcYxKDIXVLoGyQNVfYli08WFbsAx2cFCz0ekHWhxf XjmHYQFB3V92oJ5wsconzyqMsdtnu6ZLfCqpeqYfApfDHBJD21z/WmuAHS8X1kvHWux4qUq3namym2 KRTA5Bi61m9IAnee7jxsL8++vm9eRuBNyjNbXjdkUqF9D5q/Wu4ujvDChlplnsqqH3PLLOV9oQq2Qm VFKhU3cTPyELITQ9PtDYkBevPK13IJ071Yfgb3jilFL/j7Jsump9OUHJzK7A== 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-20230307_131816_963935_57CE49E4 X-CRM114-Status: GOOD ( 10.90 ) 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 This IP is a 10/100 MAC controller compliant with IEEE 802.3 standards. It supports power management with Energy Efficient Ethernet and Wake-on-LAN specification. Flow control is provided for half-duplex and full-duplex mode. For packet transmission and reception, the controller supports IPv4/UDP/TCP checksum offload and VLAN tag insertion. Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index a67eeca28da5..394a5a61be59 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -438,6 +438,18 @@ mmc2: mmc@11250000 { status = "disabled"; }; + ethernet: ethernet@112a0000 { + compatible = "mediatek,mt8365-eth"; + reg = <0 0x112a0000 0 0x1000>; + mediatek,pericfg = <&infracfg>; + interrupts = ; + clocks = <&topckgen CLK_TOP_ETH_SEL>, + <&infracfg CLK_IFR_NIC_AXI>, + <&infracfg CLK_IFR_NIC_SLV_AXI>; + clock-names = "core", "reg", "trans"; + status = "disabled"; + }; + u3phy: t-phy@11cc0000 { compatible = "mediatek,mt8365-tphy", "mediatek,generic-tphy-v2"; #address-cells = <1>; From patchwork Tue Mar 7 13:17:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163507 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 16D7BC678D4 for ; Tue, 7 Mar 2023 13:27:18 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9CbXKVN616Vm3c0AQH0kohDEZtaJd/wH+vr6SSG4EPw=; b=4KZl/84nMQ9CSg /gIdGMmiMYQJ4Wk+hcu6tXi+lZm2P4yURTe9qIHkNYoeWn7VVyUNc2uuT2fstsSgop3vchxDieMn7 /IgsFPeCxs5UnMRHCRdO96GutiAXjPFCgDknaA1kh/1pKqNnLPMtn2RQq8ekfDNAVTOn5xMEkrcb8 f56pJxgf4TXw/VECPp5HPFEF3vJqoQ3hI3BWoWrozp6o73qXYCGYdHU3GZut0dLYlutdTrDcN7VxL AQ1BjpmGq5+JFGdLbnQjr1pnUzu1TNX3ZefYxIia2t04Bl1YPIv8tbMZtdMPLmaERy5u5XwH37Pdk +pr/KJqLstVPzl6hl+rA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXKU-000NFQ-1u; Tue, 07 Mar 2023 13:26:10 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCq-000Jeb-B2 for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:17 +0000 Received: by mail-wm1-x335.google.com with SMTP id c18so7742758wmr.3 for ; Tue, 07 Mar 2023 05:18:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195096; 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=oEysRp2LLNbE8OqaqMCJkdE0HWAQiicQ5qKiXMYvwo8=; b=tSdosrxc8Clpmhy8Ka6GWoretGf8XlhU4bfZgM0aufGyol9spfbL4Eftq3UtWOs75f Ar6kRW9XcNM1q54Kdix/xlXPUCj4IFwv/kaXEF+Rk++2V8mndJmb3mkgDvZzZI2YvX8W 8h1n2OOKhAcv1MpD3N4ACEq5NS+0dI2b+UHJULLIisICd2jr3/O27HUmRQ8n42eUs0qW wUJtw+iFbCyAC/cy9MmNEZZsZ2sTdbwLf2S2fQG8KwLu/RoYkiQyZXuyGDWs6QweXmas uTm0FMmQ/PNzJaYihsT/0qE6g9rEltE4+hMR/Y5YjUi1T2NmZl9CTX4Q/P0O5Rsbo0R1 MpBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195096; 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=oEysRp2LLNbE8OqaqMCJkdE0HWAQiicQ5qKiXMYvwo8=; b=KB+grMdtlB20wNmnh9BmP2juHIS2FKreD+oVv6CEj2j33CJhtbWiXOafPmULXMddud WpRnfbs6zAeT1qGRX0A0yZ4UD6+EiJrxQXH0YH3FmZoDEuVTF0G3IRBUwLCnjGTojWp/ U5lM9yom7tXC42U+ZZgP7PeQAqclPbNtzHjJmhzFCCiI5SCKYnR54V75dPfzvPUydSyq asMz0HFplQ3+wpseuwE2p9g1o5smgzU2dxpQrAHK2J++9FiOCshs8cab0Wp0nIsQAMRR +fOXvGId95XljiaEqhV4G5UplADbvHTS68YD//zpybSBaVKt2R6cmBAH/5FG3jP4KyPq u6CQ== X-Gm-Message-State: AO0yUKV/bG5m/l6689H3HLZdXJHOxGGNeUUcLtPBHoUCRlJEmxyNyObj j6OYsWrVpZr9wlN1TdWcGKC3/g== X-Google-Smtp-Source: AK7set9Sg3L/dtrfvuq35AvI3lyloaM2L7q6P1AskVtybYA0Ssbgwopv3ZiUmeTeiyf/sqtbn3+AuQ== X-Received: by 2002:a05:600c:4751:b0:3eb:2e66:8 with SMTP id w17-20020a05600c475100b003eb2e660008mr13128115wmo.35.1678195095698; Tue, 07 Mar 2023 05:18:15 -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 hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.18.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:15 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:43 +0100 Subject: [PATCH v2 14/18] arm64: dts: mediatek: add ethernet support for mt8365-evk MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-14-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2433; i=amergnat@baylibre.com; h=from:subject:message-id; bh=Tf5+10DbTH8JmWbl0F1BhURJNU0ijmIE+qOre9BoIzg=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmF/sAhqWjUqlEjJxepXUShC/SRz4SMSPGgs8dc 8Y4hC5qJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hQAKCRArRkmdfjHURYrNEA C7FKCe06Tg3Xme8I9oeXAXAoQPa/GtIYgVzAnKYh8IYPyu/sjV1POXjfi2nmaSkHupKfhC6R0T2+Sp D6DwqRzHGwmVQlO3KzXiY2FjTBJEv8YbjiGNMdtfBhFKR2uvkKmugRENznoWO3joVv6M3Xjzk9ZjUP +MNSljha6j/IgWjT6UVeJmOQM8v6hHAuiOqttsrR5zwyCg5wtpCp05bcRDeyIvLJnKGJVglkdu09mm 7vOTsUpvszwFG+sEkijxxCPmhGcM6uqxIs/cdsnInOlgz4MGkF+S88eLc+MUFY1ss7AhhIWCx8t8og VbnKLRI6df/8HfIaMAfhZCyA1wzrUIRkPWiO4iSYu/y8oGTQqBQW1nBY+5i4LYwaznCV6Jccbhc5kP FksNuR3D9SRQRJTNkPHb0Din5Tqag8K1GzY1asD1IaK1qsMXyxH8uFkHiGWUw8Nl1Ptl5DKVnd5Afn bzWgZHA9MPLBnS13N32jkit1bvE0h4Qeo+cTO5czH8BB2BqQYzR/KBGCTPPalaR7ufapYP2mBKimU8 MJrKDx1uwmlWHYSrp2uI37SgGrdZ63hXOhtokvakvxUlMh8BWW+nu0+4wLsHkSj3O10fLPumy4SNSA pL7/MLDWW68rw9qikXp8l/oBuJCESSj43uffFxrd93bef/tvrhsZ48aF93Jw== 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-20230307_051816_433991_70283D8C X-CRM114-Status: GOOD ( 13.02 ) 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 - Enable "vibr" and "vsim2" regulators to power the ethernet chip. 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 868ee0d160e4..1820daad6da3 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-names = "default"; + pinctrl-0 = <ðernet_pins>; + 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 { pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins>; @@ -140,12 +162,47 @@ &mt6357_pmic { #interrupt-cells = <2>; }; +/* Needed by analog switch (multiplexer), HDMI and ethernet */ +&mt6357_vibr_reg { + regulator-always-on; +}; + /* Needed by MSDC1 */ &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 Tue Mar 7 13:17:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163612 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 88EE3C678D5 for ; Tue, 7 Mar 2023 14:00:24 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vP9IWxlj4Zawb4dA3+1CjrEMn9BDY/+7qrmtsB7KKJ8=; b=bpOyAwDRWCBPmU HMu3zYtt29lW64j+vR5T4Dg5OQKhSibQvaLsFQ6QeRUoW8rXF9gkJqXXMoeaqzXohKcql9Xvcyke2 hgVFSYHwSsp+CbFBPweRPZ4I6HnyYSJeqMp/RuV8Qb8YQpwtUdhJK9oVVBn19DQO5RoZbZHAP2+Pc 2lkXd1rlxlYbQbmdKrz50/WajSYGYStSAlzP0aXrYEU6+PYE3dkkHdzVaWgZA9q3sEa0WQ1dNDKTP Pe73yjHufOnDDu8x1GfS/GesHcQLMzkZ9r+51MgGSyc43LcXEMOMcGEO+5XVGe2qZjYag1mQnHXxy k/XMQxczwgHr83x0Hv/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXqL-000a8l-E4; Tue, 07 Mar 2023 13:59:06 +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 1pZXeB-000V0L-9c for linux-arm-kernel@bombadil.infradead.org; Tue, 07 Mar 2023 13:46:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=Z/wPwAoTW2tJxjxrOBuLt4E1zX0C96+nBR9WhSVdzZQ=; b=LpVGRIuoBmcjfr76t246r79++y koWgg+QimFnHdeaRJwgk1f3zQ581LsKFnvn5J7LLa1BFSOvs734I83PVut/DoDdLqawNb5PWuMqPw OOv4p3g7zHhTbL9FmAbXJ7kvmPivQxTogEw4roPq0fZWTGH75FQ0OqJfDLqKosaYc8xoM0lu4ZaYp Byqed73fhGjM3sdhYtkpqLqycSRavHpLyqORLoE/fH+rjbN7tHcKt+V7VNXcnnTVsdl4wTbQNg8kF +JMKWuLZJSP9FXUptw3puYwVFt4JAZCf/+x2qTuQ459qWEuZBqFD5qb+CBOolAYfRFG/FCj1acjHc Gf3KMFQw==; Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pZXCr-00H3Cz-2y for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:21 +0000 Received: by mail-wm1-x32a.google.com with SMTP id az36so7750708wmb.1 for ; Tue, 07 Mar 2023 05:18:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195096; 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=Z/wPwAoTW2tJxjxrOBuLt4E1zX0C96+nBR9WhSVdzZQ=; b=RzoJWeWo6nK1W7vlqqw+ptOWc89TyWU0EZJTFsIzQuUUOvqfVTghQ38SMf4qd2DJAp xK7baD8hWLNxN8tV+8SmwC8o07QJM3aHSdvA5/od+l8R9TMEIndjjY0JBYP5HsIhIf0n AcWGlCtgNUTO78fCxk4emdKm0PY1O5jsY6dgWsJmvypalLp1KNJf4ks/pvlNUysuq1Tv i7Q3LmW9HfR/Y77FUZbaJIopjOpb/xnevhGmT6/dCIOYbyvYq19pqxZL+WTtVhuRd2ft isoO+MXawPDK7tV9sqbOQd1oD7rr8KCEw5MYV2IaXE3XcJ7KDOW+Qz/bRY91zxAkJMXG y8ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195096; 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=Z/wPwAoTW2tJxjxrOBuLt4E1zX0C96+nBR9WhSVdzZQ=; b=MaNyBMIKNqb947PGo/5zyC3cocQv42Xb+rIFSe6YnqDnEwoUstKpEZ8NSVb0KkyuEp 2VLYcsjXQ1geFJV/CojQL9/Z6uY6r7EkcIz7ExIkMQPzyBYkEc6hKzrYNvb5DlFrtEzv zFK8qePbitO0/JKTMOfcTCrI2L+289ahS/FjtWwjooy9ICmwFhCC9xeH+muqsCxU6b6+ 3vwK6j0RAgvxj3b7VhRD7cu+WPXCck+3mdDdCng0Pm38BfgSKbQgyCAeu73aXH4cKCAz kYmpvi8znrCXhF7IvE5k6OuZVENFm2o4473ccosxWPog580nyzxh0yxCqiGFGz2weM+m TZ9g== X-Gm-Message-State: AO0yUKWEnEACSsf+6HQdPGLDlSZGMWRL73B5Ut1Ynbnv5cBogU8u0cV2 cjzrdOpBMt5+plKbUJ6m0DUx+g== X-Google-Smtp-Source: AK7set9uR6+JH5jgbkcIyWePFQMVehEzpaQXaRWbN0EzEmEf4RzcWjBq9nfzisOtzrUY62Kc0CmxDQ== X-Received: by 2002:a05:600c:3111:b0:3eb:399d:ab24 with SMTP id g17-20020a05600c311100b003eb399dab24mr11536587wmo.28.1678195096755; Tue, 07 Mar 2023 05:18: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 hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.18.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:16 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:44 +0100 Subject: [PATCH v2 15/18] arm64: dts: mediatek: add OPP support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-15-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=3615; i=amergnat@baylibre.com; h=from:subject:message-id; bh=BhQXiQ633r+6NqkoWGU/9bsfqhfFOwBpR91KfUVfpZo=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmFmj2mkxx2UxTnp7+ve76NwYFekOygdsAZnDQk 4gYXd8eJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hQAKCRArRkmdfjHURaAVD/ 0XpiQLgcuatB5m1+jRCZVeCMnDtRhvILJdeTm5UxqDESFfEMJIqIprwCh8o26gQinxHWqRQMbYfqmX W2z/V8vVIaZhVbVB2obBYGRjMc00FxeOLcnAfhSmLFvfAnN0/KNW0iVSyVEgF3N1YhTaFvqMh0HbJf c4+zgCMkSd2mcHwu+73nt1Igj3Ohy5c4PswcyvIUnxoLMyc8qjl6E87PGI7UU0xvz6f9AfwbohnarO PGAe+V5CABel7v71RnEeFYpkZXF98mY4juzh9LMKpVTkCtBn+OGb+myQYYJ9N1oiRk84t4rVVpEnSW JtUGm2EnnjRNsORHbbld728WwaK6ni9HgFwoMjI3VprN5UR7LCAMia+6XxIkSHzZb/8OW40/AF+0/n qfrMN9dLtykZh1YyPmKJlDvV4BQqyOi6PfVHhZj+uCPHLWdx8zF5qphLPzYZjDJ3fOl54TcZXqqfZn 20pMTV3l8LgLsXIGIH45q4nqENbuUc4T5m+lo1qZVLyTvQDRIwG9APEwSVWGPrDqNy6J+oWAUtD/SY oz/GRQaAnQlsSxl5Fw91thbqkn19ofXRHmxxyVE6XLtxhE7wTXdBTSQfBES1XxAZeHck5EipU+Hecw c9xflXX4rtz0pHW5vBrY3ovrwXel/cY6Bu0cgum6Z1OFBiOpJXFntbsInFXA== 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-20230307_131818_391088_34B1CE19 X-CRM114-Status: GOOD ( 11.52 ) 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 In order to have cpufreq support, this patch adds generic Operating Performance Points support. Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 85 ++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index 394a5a61be59..c3ea3cc97a47 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -20,6 +20,75 @@ cpus { #address-cells = <1>; #size-cells = <0>; + cluster0_opp: opp-table-0 { + compatible = "operating-points-v2"; + opp-shared; + opp-850000000 { + opp-hz = /bits/ 64 <850000000>; + opp-microvolt = <650000>; + }; + opp-918000000 { + opp-hz = /bits/ 64 <918000000>; + opp-microvolt = <668750>; + }; + opp-987000000 { + opp-hz = /bits/ 64 <987000000>; + opp-microvolt = <687500>; + }; + opp-1056000000 { + opp-hz = /bits/ 64 <1056000000>; + opp-microvolt = <706250>; + }; + opp-1125000000 { + opp-hz = /bits/ 64 <1125000000>; + opp-microvolt = <725000>; + }; + opp-1216000000 { + opp-hz = /bits/ 64 <1216000000>; + opp-microvolt = <750000>; + }; + opp-1308000000 { + opp-hz = /bits/ 64 <1308000000>; + opp-microvolt = <775000>; + }; + opp-1400000000 { + opp-hz = /bits/ 64 <1400000000>; + opp-microvolt = <800000>; + }; + opp-1466000000 { + opp-hz = /bits/ 64 <1466000000>; + opp-microvolt = <825000>; + }; + opp-1533000000 { + opp-hz = /bits/ 64 <1533000000>; + opp-microvolt = <850000>; + }; + opp-1633000000 { + opp-hz = /bits/ 64 <1633000000>; + opp-microvolt = <887500>; + }; + opp-1700000000 { + opp-hz = /bits/ 64 <1700000000>; + opp-microvolt = <912500>; + }; + opp-1767000000 { + opp-hz = /bits/ 64 <1767000000>; + opp-microvolt = <937500>; + }; + opp-1834000000 { + opp-hz = /bits/ 64 <1834000000>; + opp-microvolt = <962500>; + }; + opp-1917000000 { + opp-hz = /bits/ 64 <1917000000>; + opp-microvolt = <993750>; + }; + opp-2001000000 { + opp-hz = /bits/ 64 <2001000000>; + opp-microvolt = <1025000>; + }; + }; + cpu-map { cluster0 { core0 { @@ -50,6 +119,10 @@ cpu0: cpu@0 { d-cache-line-size = <64>; d-cache-sets = <256>; next-level-cache = <&l2>; + clocks = <&mcucfg CLK_MCU_BUS_SEL>, + <&apmixedsys CLK_APMIXED_MAINPLL>; + clock-names = "cpu", "intermediate"; + operating-points-v2 = <&cluster0_opp>; }; cpu1: cpu@1 { @@ -65,6 +138,10 @@ cpu1: cpu@1 { d-cache-line-size = <64>; d-cache-sets = <256>; next-level-cache = <&l2>; + clocks = <&mcucfg CLK_MCU_BUS_SEL>, + <&apmixedsys CLK_APMIXED_MAINPLL>; + clock-names = "cpu", "intermediate", "armpll"; + operating-points-v2 = <&cluster0_opp>; }; cpu2: cpu@2 { @@ -80,6 +157,10 @@ cpu2: cpu@2 { d-cache-line-size = <64>; d-cache-sets = <256>; next-level-cache = <&l2>; + clocks = <&mcucfg CLK_MCU_BUS_SEL>, + <&apmixedsys CLK_APMIXED_MAINPLL>; + clock-names = "cpu", "intermediate", "armpll"; + operating-points-v2 = <&cluster0_opp>; }; cpu3: cpu@3 { @@ -95,6 +176,10 @@ cpu3: cpu@3 { d-cache-line-size = <64>; d-cache-sets = <256>; next-level-cache = <&l2>; + clocks = <&mcucfg CLK_MCU_BUS_SEL>, + <&apmixedsys CLK_APMIXED_MAINPLL>; + clock-names = "cpu", "intermediate", "armpll"; + operating-points-v2 = <&cluster0_opp>; }; l2: l2-cache { From patchwork Tue Mar 7 13:17:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163508 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 B42FCC678D4 for ; Tue, 7 Mar 2023 13:27:38 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SBuBaAzArt6Mz702I+Gn7KlW/VpRJBy/agSvocfedcg=; b=uoeKAn7vE0EhTO 7gRA6XYDzG5bh4cjqRWPmehTHfvTry9N67308CI8DrNBvsleud20Jj/GzKhADsTAJyvBbAMkQHq4Q 34sIXc3zX1xVYN/SCpf5tkrxqIb8+XX11LiF2CfdrUKuoosve3NunjSD+80BY0JJSwzuJtjP40gBC 80WeusvI50Da1LjdaM1O/FPgA8PS2NxI6fvYlMJRU+H1BSwvFX2Ga07LXDpxIFXYzpEO58j4oSGIB qqU/QRc5j4T1+dpm6rGuHVkxP3vXKRmyEClfWjbQMTRfeRBnY5ovv6QR6kDHIHkK1TuN/+N8lGg05 PSewWdxeTtoeN+JeNOuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXKo-000NPd-Ui; Tue, 07 Mar 2023 13:26:31 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCs-000Jfs-FB for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:20 +0000 Received: by mail-wm1-x332.google.com with SMTP id l7-20020a05600c4f0700b003e79fa98ce1so7176008wmq.2 for ; Tue, 07 Mar 2023 05:18:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195098; 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=hFcU9KG6Zg/OwCxrVxpIEJDr843T9tY66MGLrcJxIIY=; b=tbc33T+K3AbDWEpbHaS/EEljIYli/jIUo5W4+2Dwk8Tib63VnEzO8JixwdCddTLCc4 x3FohOqXrx9H7pfqY+eYPcgcr440I7kVKI61I9Z/gp7cfvn07yyqfp7KITurHbxYpuAt sKe+JCBwu2549mb4cpZRT1lRioo4rVzABd9I3Oi2CmyzH/nIRiSgGKTevdRvmPBmusmj bNrucEXcSlVYeCoayRIUU7I1ALAjnVwUVR5vGmVdhpTrRE3fKvu/3W41B+o0yqG/llhU A/XtwFXc59yBYaSede9TBt/S4Eifx2crAqU4yhL8ifZtotSyeT/LT7A4MzlZ/Krwabvj i/bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195098; 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=hFcU9KG6Zg/OwCxrVxpIEJDr843T9tY66MGLrcJxIIY=; b=7IRKz06+hSA+aAOcYTWWvNYdcrbW47m26Q5Tfk2E4pKrr5f4N91OfW/z0vJiMzzYtA R6kgJW3dunAAQodP9pD8++kev9vHk11JrZ0Ut0GqOwhd/BUAgtue0zlIFPq1CDxtLg8X vejjGFrGncmWj1500LetG1tcbIXePDyEuwpdnQeAy+pTZWJM3XW6j/cblNtIDR1VZ72N TDP2DlFo5vgUR/+gtLPbH45/sC6F7RYCMviLsg7yv/IlopTpIIhiw8yn74PPNlM/nAiO sPk3S+0QyjqdxaQ8mUAx7AHgb4NfPyCv7MHDaK+9TmT9V6zmRkgG6553Xiup4rR34fKR BjQw== X-Gm-Message-State: AO0yUKUT6EtZX59q2qV/CQKtGEyrCEjeHxGBssCAl5+r4OZU6MO2wIVT BcL5UUuO1BqGzldF8AcoFfk3ng== X-Google-Smtp-Source: AK7set/4+fHlzf3ssVu4dQFFBLnNl7pr8Mqu0WfZgkWYEHPSaGzcMn40iQ8L7JEloGyYE3bH+LzxEg== X-Received: by 2002:a05:600c:4ec9:b0:3eb:2da4:f304 with SMTP id g9-20020a05600c4ec900b003eb2da4f304mr11618999wmq.17.1678195097952; Tue, 07 Mar 2023 05:18: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 hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.18.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:17 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:45 +0100 Subject: [PATCH v2 16/18] arm64: dts: mediatek: add cpufreq support for mt8365-evk MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-16-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1073; i=amergnat@baylibre.com; h=from:subject:message-id; bh=Y4L/p189NH3SAVW+4HN4eciI82eYHFCxYrkIH+HpMQA=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmF7wCSDr+Hb9Hj41DRSfR+NA3e5/YZy+L+V2X5 cbhN3EWJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hQAKCRArRkmdfjHURddmEA CZP7USN8+ewJ5/hPAB71aQM/MDCXizoneBZIDTyyayggRrWtd8o3jQPANBQ+JdrbYfVGKS0QLqiSsG CAwBNbeJlb129nPQdm+9rYTYZRAIiqeBWRWhV1TIxdHX4g9Nf1tTmCrPSXvk7uWsL6un2cJLeuz8dQ oNzJVyoQi83jsat63vHwma+CBDKkAi4I+QY3PBlWyNZMrd063jYMLts9QFEN79vsMmPv2wgYYi3B/M wNTZIu7jyhYatJXDS5mcSilqOUyaskIelA5xYkvt8iQGxHYIesLuHCCsBc2U9OJcgm1Q1eu5JXTIj3 NWZGWJSbe0VMyVMoEjeVVCzsKjXw9F6AeY7HFf4/00wE+7lK0OnzEUBbR6ONC2hGHT/4bSM36wfXG9 ftX3Y+oWCF3SJkImT5/EGIR5tk8PbNzqkrNVkOC90uJHdfIiNLtBfykYsJBRRDcz8JQpEhywG4Ghk8 3bhwkAp+WKgZtDdRi5VyuGY2ogHE2GZPl9jj31DLwHibcqAjrEVF5BC7/R+GRBRGVKpT8VsXh5eL9y 4FJbb626i8rCPmnERbuLk8skagHEfw5h83SEINMmpdl4sshX/eY0GvO1dJVagF2/zR+bi/tmdT2LdS TsH87WbhngZIfaqP8bFgT5g4+fsZa8S63bGHVGTEU8RJBRJ+K8GRz9q5A8EQ== 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-20230307_051818_530573_9516F777 X-CRM114-Status: GOOD ( 10.83 ) 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 In order to have cpufreq support, this patch adds proc-supply and sram-supply for each CPU. 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 1820daad6da3..edf3a4b6a76e 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-names = "default"; pinctrl-0 = <ðernet_pins>; From patchwork Tue Mar 7 13:17:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163601 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 882B8C678D4 for ; Tue, 7 Mar 2023 13:57:38 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NVdz8QFhWAHJuGo0uso2QKrBzMEdFTh2v2PHamTlozM=; b=Q8zG9LOXtm6t9W lXqsCRgdpJMkVBnVje0ZXpoDSpIWkS09qYyOQpNbzkOSrIQqJzbMDMGe59N9Vht4wRK4Utn7WOWh3 C0f0P7ih/Nr66tKgGPu+46orioMLc9RST2l1Eo4H8Svi0rhCAdHZEZm/CI+I+TAtUKdVbh6ZMJowc WvJa4MfVyRR3I1pCg4JRbQpPkufwgJvgEDYr24HA9aQPdlkpBADpXFZPW8DWT81FxC+Pmbk3rBYoD uBUCs6O+fAUhxZEqI30FkSzl0ag6BL31R64Q4uPxKekQjeVQbtrZcemKcjaAVFZW0hDLg8xQxQ3if 3n6fC+4KGZhTVluR0Etg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXnd-000YvV-FY; Tue, 07 Mar 2023 13:56:19 +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 1pZXdD-000UZG-89 for linux-arm-kernel@bombadil.infradead.org; Tue, 07 Mar 2023 13:45:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=hpf1hef413I/ZHnZ0xEh2bRT+ol+kiWfa5l40w5Sq9w=; b=nREQAJSdNkoyvj4wOgATgsxbgi jdI6CmCiUYZxNu903Qb5QKm/bVjzg1CEY90guNmzx8s8XtouoH6ib8Rr2iSGVYPP5yZuLIjgARwr9 2nV7NE18cF0IJEUC+ubOTlmz/wwiX8xPdchbxtkgP76Eqk9tcgSC7zmjsQ9XvI9vswqAbSb1gH3xx r5F9amirmjiD+UBqrMu3ndNguXwkTSQagD3KgWVLFxYbZeVqVhwy3GXSFuMCV4AxYrg1NQ0qDnU3G phlMr/RvRXPMlPHbnGz8LOo1yD7ee+fooGnGqwNDiuL2Ac5cOmBEvVtsT4PCa6+gOIhjLvuudDu2O QocWqxDw==; Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pZXCv-00H3Dg-0Y for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:23 +0000 Received: by mail-wr1-x42f.google.com with SMTP id j2so12065944wrh.9 for ; Tue, 07 Mar 2023 05:18:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195099; 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=hpf1hef413I/ZHnZ0xEh2bRT+ol+kiWfa5l40w5Sq9w=; b=e+X8X0Jsk0dqls3NMDn3fw9zUNxs/YgMK8bfjdJ7jyEvYcQbDTBQ4i5cPpRfRDrxY7 RX+dEMlZbo9uLbpYdNVajUpBfmKVrALP8e8Z1h5/clxNVXbNtf2/PlDVWN3dU5dKnBAe 139LXWmAOlv2d0G6EvVX731DYkeHYMK7IP1EEvDl4TDvR//Jvjvf2/TZzMlWLf84rRqa oQZ9b/enbGrF09dAhWrYRiB8+6zkWVaVkQICrWFcpJU8ryurGczzw/pd9+pmwDOH/oNh xAqOf3HEyG1RZV4AlbpDjtNGLawp/SjokH7iQLaK75z29ZAf1E72XB1c6R05GTG3UQB+ 4AoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195099; 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=hpf1hef413I/ZHnZ0xEh2bRT+ol+kiWfa5l40w5Sq9w=; b=t8R34KHJLTSoory2cIlY2eNQxZZ5h5JXq7Ju1UWeyqPNPtqxVj1e1M2BGdkEa6mygP dLjAjaCdXOOTR/IBhTsFfepootWyjIllYVzw8lhpRNTPUCa5wy6w0S6eZjkrOusB07ze Uq8cK02GytyfIS+vftGaZBgznG/Gu8Sas1Czn4fjWK1LyccCc59SDn8/mfOwH1t/Dy8+ p1f/vsHu9641LscFRLawpjgmXpdKi/SEt//BmMKhKpmO3VMsUYjnCaU3UesPYHYyvA4H xP6HMKM3Imjv298hoP4kKL3W4mbnxwC/P/63jkLNhLf6uda1g0PxYIACqe2Yy6+hkk7c 8ykQ== X-Gm-Message-State: AO0yUKVhldq0dBj3LYgWHYywlCxNRd5RfxqOnUVjB7qFIbIYy7a3Yqfb +86SCzjXtHrPg0wQutP2d5URHQ== X-Google-Smtp-Source: AK7set+lz/CmJjmd5k5O2YqV5P10ZAu4CCpWuKjgWkEyawSRDfcsdbkTTVeJWMOckQoUNySBWyiXJg== X-Received: by 2002:adf:ee48:0:b0:2c9:b9bf:e21a with SMTP id w8-20020adfee48000000b002c9b9bfe21amr12804099wro.2.1678195098944; Tue, 07 Mar 2023 05:18:18 -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 hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.18.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:18 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:46 +0100 Subject: [PATCH v2 17/18] arm64: dts: mediatek: fix systimer properties MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-17-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent 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=E0Rkd0GEdk/nHJRQV7wdWKOEfaqiyc4VUwtoIArZDWs=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmFO37mIpicQ7Ewsa6aUHcjrSr7sOFCTZQqXiVs GquIjR2JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hQAKCRArRkmdfjHURT4XD/ 4/R7tjZdE7+Z/MhefTnf0HDdf4hPT2y9si0FcgfSJql9Pb/M50GDgqeSJRgo8f824+yCPeEMjB9quk b9ZnByxLJPCywhINCYqdD3OGtAClbKLIsHcxcvq2stjjuaQ9HNpmw+rnmkA1VMGS96ZQMKeByTd5Yy SJHVcAApoBLpc+cLHKL9sd2K8Un7pxTX8anvz3RLCXG01EegMmB4SM+hqjPZhntZoFTeV1GgD1x+w/ kw2RUMbcM8LwCW+ZFdWFsGUaa+8Blp+fghC48+Sv5MPze1qfnMlfJH/a1RWp5Dbv3CgunLGs4jkQ10 rpouVrXeE572TSN8+YKHiDM83dK/io3z7oakBJbb9CJy32SwG3oCbD5sMee5u155pOcQAupkgi9P5d II9+WqT3GvNKSzPAZtvM0O8iWNsyg7QI1v6N61UantDJfMoPRfM8AlEd6mRXtziDNY/1oQFg8Sz+nr eS5H6OO6tSD1tlmzKiqh+RcJBbTENZflL5GtJ0WDqIcN0/iuCe+eBGbpSp3jhmYnDiy2lJzZIihB2n K0zs9IwTMlVaWhYvRpqEwbQnA5PX9Lz8AmkwfSKCo2CgTOsGQB8VHtEw1UCmYHBRFK8Poa+v+VwTIU pHbvDP0Akr0NfRXg/NUnZ31ElAnlH9GUaKBikroX9+k21jLGmO4d0egmM++Q== 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-20230307_131822_108241_D4E42F8B X-CRM114-Status: GOOD ( 12.53 ) 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 From: Amjad Ouled-Ameur MT8365 has a SYST timer (System Timer), therefore the compatible node should be "mediatek,mt6765-timer" instead of "mediatek,mt6795-systimer" (which corresponds to ARM/ARM64 System Timer). Plus, register range should be 0x100 instead of 0x10. Finally, interrupt polarity of systimer is LEVEL_HIGH. Fix the above properties accordingly. Signed-off-by: Amjad Ouled-Ameur Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index c3ea3cc97a47..959d8533c24c 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -575,9 +575,9 @@ system_clk: dummy13m { }; systimer: timer@10017000 { - compatible = "mediatek,mt8365-systimer", "mediatek,mt6795-systimer"; - reg = <0 0x10017000 0 0x10>; - interrupts = ; + compatible = "mediatek,mt8365-systimer", "mediatek,mt6765-timer"; + reg = <0 0x10017000 0 0x100>; + interrupts = ; clocks = <&system_clk>; clock-names = "clk13m"; }; From patchwork Tue Mar 7 13:17:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163509 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 043ACC678D5 for ; Tue, 7 Mar 2023 13:28:25 +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:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RXw4/Q9sb2BKYO9tFtdybDeMrS4MUm3OFs/GGs91Aug=; b=lpVhnXtDyZNKLL o1bsiIf1RGO95sqVk3ZwKzWz/i65XwdP8YLTUrrz4gvmnU9v5xP+etmPTUx5u7ergGvXrMIVYWhSM wMpOFxg9Alt0wUYVt5JDp3bn3m68RdDMddpvg4JPOagwfxUv7xbpiKdBMEiPURs0CJaYPKaJC6+cw y6VaFC+twrCnT3zl6BdM2eTDV7XNOmRme+rMmr4FwTF8a/YSswExXABBELjcGFOb4ZGz/Abz5C90D arPK2atqOV/cc45XbG2H9nezpVXRzhjLalUbNIqiHWzxt5aIGGJgpwZqCrkKN5alv/3EpwVg4W9vH v3aaFYLLN53qTbREVrQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXLO-000Nhd-UY; Tue, 07 Mar 2023 13:27:07 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCu-000Jeb-BM for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:21 +0000 Received: by mail-wm1-x335.google.com with SMTP id c18so7742884wmr.3 for ; Tue, 07 Mar 2023 05:18:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195100; 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=mJVpBJj7Q47tDVHQbQFKEbwqf8M1r6OvMJv941rag94=; b=IZg32YgLf+Ob3FqrwsTYqi5GHtsL3B2+OzidEnAamlmCMYWXlNM5iF8j9UVsn6jyu/ lUUx95nLxxea/evaLSGlxEnFi/BajfETqf7bY8NpRCro/Wjg8thXKvKwAojLINPM+H5S zkzfQNAncIg3Ve2YK2HWUBhVoiqEVN9A8ZPsEdejTIoSbr0LCisrkAiSQbLTr7ZTudJK 2KGG8T1o1DLTICSz/TkEFlRBOMq1qQxfKrV05KuqD/vwjgp2PKfAY2UY+kH0TwGsJ2Rh EuvI15oB89y+ST8wtn2gpP1BOsgsomd5aNMIxrCCz8LzYOMYucQ+Q373gEJn79qCixba Hxxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195100; 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=mJVpBJj7Q47tDVHQbQFKEbwqf8M1r6OvMJv941rag94=; b=11PZJIugbitj5BrDB0piK9yx5z3Vp7s5G4YO3fWOMxnYaQqJnC7bMJg6NdBSIpDf8u pBxteCq3SsxW4M8a4ZEsGk2hBHVEnQiHJkFJ1zhKhtcHpI7/skCGyAQNA8jjrciN5QcV PDp7vA4Q5VZhmHyarTf+3ZiKTKX3lcSi0DWm9VA9VHRvUxGg1jprhVOzU58heqFPJeOY eBjPU7iYmWz41voK5dQZZTCgO+ZYTxXK8cl0f1bEUL+uXV9JnvlzppX1WLZFyJx/ROSb C2QoxWWzmidyVRtLFnoE2LXjEMAgG7P+sJEOVP7p3v2XBVm80XEC3ea5DrJDLuI+Pu41 dV+g== X-Gm-Message-State: AO0yUKU126Y623jDgTYSMy4ajjzsJ25TNFI+FaNd9FIKfozSrXr2l+Yc nVA8A0O+ZFfgb1kwFGaPzoRLyQ== X-Google-Smtp-Source: AK7set/i25Rk5nwLo2x3J80rqpfPHXWm+zuJxnKC4fugCyM7LvMbur3zuZ3u/JjGdfIiWtZP1OnthA== X-Received: by 2002:a05:600c:468b:b0:3df:fcbd:3159 with SMTP id p11-20020a05600c468b00b003dffcbd3159mr9947470wmo.3.1678195099918; Tue, 07 Mar 2023 05:18:19 -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 hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.18.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:19 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:47 +0100 Subject: [PATCH v2 18/18] arm64: dts: mediatek: Add CPU Idle support MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-18-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2609; i=amergnat@baylibre.com; h=from:subject:message-id; bh=PpXbegqyhWKQM1ZMMzVId+LMr9Lt16YQvGeGFjFB8IY=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmFTOpOgQPHjN244A+ti+23VUEeI0ssQNVxIX1S QjiLHWqJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hQAKCRArRkmdfjHURdaZD/ 9OsOd8QzUcRygK5Z4CW5UnTYxlvCOS/vUvVxIGwHtJg9z98s8WA3oKbQl4BOAqKVJGm3jzHrgSEbDJ cj9nNv9An3T2UVh+hJ8jI2dsh5Cb63tB6P7SMGwlBFVdC80E9yovd5CQROrT/J7cQeBLTT+MSHK6Zx 2Q3DWeaegqXQHTZpbIsWZY3xpRYYyR45/ojmig6ZOrq5MJwnTVENqb5nsuWmKR6Jb4LpxLRyW3drpt 4dJujkWx/uVKogPLyCUQdMVAvDa3I3Kbyefxdkz3qRVQXTAlkddBWbcLseZEzOhLCOj2duGDV6fOFw t0GmQyIcQKfaSWcCb/Y4Tp0SkryKhaXw3A84mXEepahjA5i2zEG2ScUlOC26Sc0vy66teApn94S3U6 1Lk1CZqclWL6YL+4nGbtcs+I1FymmsmCgP1Z2yloFvFB34xSueFFNeMivNnVkBNre1htNOxfzrh/7J xEfgoExFsckKhVBIU5C7w6lt6RUFxqjlti1xs/kPoK8cUG2pAXMYD+zQEyfhym5V2K7UFPxa3nMUV8 7kRneDYtcanK64kg4r1gfOpuCct7ZHl2f2/+xBXWHbDlgdF+3Cp8ihSZw38Rpa3Xl+qe8gb1rCI1hg xNK+e0opvI/kzs5dHGvrRpcui+l2CJO3g87N1DVn5G++3of8VZD5XareiSow== 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-20230307_051820_473016_14CB5EBE X-CRM114-Status: GOOD ( 11.40 ) 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 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 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 959d8533c24c..b5f5c77f7f84 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -112,6 +112,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>; @@ -131,6 +132,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>; @@ -150,6 +152,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>; @@ -169,6 +172,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>; @@ -182,6 +186,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>;