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: 13163472 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 08FAEC678D4 for ; Tue, 7 Mar 2023 13:19:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=zgHM2XdtmrQGUQcf2y9Ae/95OQamjNw4mHl55O/fJak=; b=b0Af6VL0mahAJaBta06y30q8mz HINzOhvPLwNRzXo9e7k7VOx0A6LhAJNvstR38g/qTzP/a7PNDf1x9P5MQn500P+ZVOcuQeWZipp7q UdEZmNyVlaJeA47gsZC5VC9n/SydjZBTD4Uf6FTnWP3zHCdORqkLPDz4USVIERvmvpZAKigVYccQa 5iHvBloHGdrmyVmLOqDodjKLqCv6C3sowLoY1RQoR+xxqwjdEOlvf9Ao/zoUxFJZuNpcrhsg8Pmut j+N+Vs8bQmZgVzXeVVZ06V9sJhSDK8MsCWVKqgGZEp3NrGiPgBr5rmezOQCBR2LV6oNSfIL9sg3P0 qk+JAWeA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXDg-000K7Y-Hi; Tue, 07 Mar 2023 13:19:08 +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 1pZXCd-000JeO-4t for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:18:05 +0000 Received: by mail-wm1-x32d.google.com with SMTP id bg16-20020a05600c3c9000b003eb34e21bdfso10425577wmb.0 for ; Tue, 07 Mar 2023 05:18:01 -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=of+QCyou3Zv3HlEwNes5eyIB5If3IQ5PFPkg0Kh3V970vBnjOCnJEIZxbEWqEt4sZN YNREoUn4FfWy52QLEBJhSGAtUjmIAvV/ZgdSeqPmyFjcIGxQ5YErIRGSMfXbsb4osz0y sIC24gl7TUDxnF2C9YJldnQNBkRYpy62lOqmgcF7EP2PaJ9Q1vN/YsvPbVjMaaubi28x NB8m4+aBuzEOu9Fxydd8CJ7+q6MHmOkqqQDhzjNFZTqX0udSpoJ7hSZEhWoBmNo9vAZd sy7TW3hN08QVNVrIPgnrqA6gVRMxfkVU96SJepz7AJqa61J7sNvXUqlCRjMMV9idDkrU zQTA== X-Gm-Message-State: AO0yUKUT0YoukeNH5m0m1fFDITX9o4dpgzd0GAjyEhWicCnxYwiGHlDG bnhLsFq9uY6Q3psVewliwOiBCw== 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_051803_223059_3EE8AFD9 X-CRM114-Status: UNSURE ( 8.71 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13163474 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 9C5BDC678D5 for ; Tue, 7 Mar 2023 13:20:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=E5bAB6WZAMlbkNgJ9w5uWn7DxLC3xwG+bewS6OKki3o=; b=hc5fRp5EbmUG/zaxBWI4Sj0iHP 3s1hKiP3/LuCCgVgrCt8D8e+3BgHqNRHmkngmBfKxC7y5BwSvdHq2/9dcdLGBL+ZBLHzNRTvsP+2P +RblufzDgJGRcd53zU46j/z3ON2EwKVYJrjEtgwX9ZdKuyY76kFtw4yVft3dpdxASNsZt8Xz0tcK5 PopK3uRnoXfiaW30R2IqOz+y263davQgEx/llusEiDDtfv9Iay6CiSIy/MpTumOeI9ri0noSksIk9 0sB6jmuC1YSidpNFALRIrOdfU5G1ji5VedCRXfmMFbfrsQwOzVsk+jyY4ZeW+AU3wtmCkv89Euj77 aSAQRWCA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXEY-000KX5-BP; Tue, 07 Mar 2023 13:20:02 +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 1pZXCe-000Jec-Nq for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:18:07 +0000 Received: by mail-wm1-x32c.google.com with SMTP id j3so7751829wms.2 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=EtLUE8cxQD9cYdhkwHYFFE76Pmxltt0tR6sdHZ40TSqFI/zK+K4Q8IlveJb46vcQ7a RiZHEzt/iJte46WSOApX6+TguhQVEZmNseEG0ZVcAWGOI198b1aNUpmsemw9iS3UixX0 yG827pC2xqS/+Bu1WskJkiOTnipksTQfyV5IFxdzTzxtWEPdaQMg+bN5nby44eH6T9Y8 uWs4Ki+shGgnvVEAj/xuHLBYAKDT+7+knLVTerOcpIeS7+c5a/C0TlA6y3Q84EtlkMCD elqRaogpEVTVpWWdMFXTGFyhkeJMdThwWSBBxDa/5B5UBy8K9OEAJQ1ILcCX2BDwBxQJ onaQ== X-Gm-Message-State: AO0yUKVfvyCR5S0uQAL4jm9TOKPiwsLWhV87ObwWuGZ8N40At3i0zvJS r9QEo9kt2O/6D9lSWwRLP6NwTQ== 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_051804_805438_7FE396C6 X-CRM114-Status: UNSURE ( 8.71 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13163475 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 F2D62C678D4 for ; Tue, 7 Mar 2023 13:20:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=qSqCsp4U2p6HoR4VD18alBPGLI3ktj1/QkrqdQr6Vy8=; b=cK63HGieFQABAQBwTSz6pUfe7Z 3MBIxxOtv6VzoOx0r5be9VHebFYRxIeAU5d++txkaaI0gmhVvER+JflyXZpj+ms1zQgQZzZmkY2Gx L2Ogjv3yAi5N9V2pbvIneldpZpPJIEI/rYFjATIOvMFdnUB41kOKRB+8kflGfNiRGRPkw1fZ5Lav1 5RF8w4HOTR0uQHGGDI7sXJ6dZmdA4wMcRJ7fDI2t6bzcDo6zgzDKPEdhYYCRrjFYjxiU/kvfGAA5j G/Ujo04ymx9a3gCpfhlpmIDN6lB8btPDlPZ/+6KKZrZJ4dsNVwi0NxpMLNMYnZHlRECgKxtnA+T41 KOpyRfYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXEt-000KiG-3c; Tue, 07 Mar 2023 13:20:23 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCf-000Jex-Pa for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:18:07 +0000 Received: by mail-wm1-x330.google.com with SMTP id j19-20020a05600c1c1300b003e9b564fae9so10386448wms.2 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=HRaz4eNotOQsmE6VXOGXohhsbVsCiI+LTF5pkRrV5CSS3LtpFdDDlXUVcMWtx1qLqT cpOSKTwNEAvhgtY5jv4dvU6xIKUG4AWiPNSWmplaUod77mMc6NRxHN2ETSgqDN2dWHlo y4ejlnryy0Pfdr4uVrOsCk26LJXC2Dk0RWDYHF7Pr3/1p3jYFKSQV4HxZnf/t/D3+TAa maarbBiv3TzvaAPVPQPEbkFy6VfxmK81B/7kTVWls7GeFwZgCiEtoPbm5xozL6uqrS7E CTjATAZvrYq2JGfTlVA5kmcM+N0hNK/dFVblfxEJtz89+8AMlH1whNxo2UM4ibhTAcsR W5kg== X-Gm-Message-State: AO0yUKV5QnHEqdyeNBYV7CRXT5J3GCdc7xAL4kHQURAtOdbsjAz5YWTP /gRp0MbG5MFOh57eDsNLtC5Srw== 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_916102_20B9CE81 X-CRM114-Status: UNSURE ( 9.10 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13163493 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 22C70C678D5 for ; Tue, 7 Mar 2023 13:23:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=aJjJi/jD7zoJ80j1NB2hsX8d3IFWB26lCfmvanobgFc=; b=K1UoQTD5tIuVoqkj4BD0+3tvCz Lrpc1+15iSvrFwzsFbgX+Y7MWeuWO7BCQUD+Gvc4jyhV3ca8N2k6dXHzYXdT2i6RFocTu0YX9QP4F Agx4eSgpjiaTB104dlqYgD54QS7L3MtTTfa4AwtwFzbi3sR2fDJyHHUXaMKCAh2wbhahGRn3I+PEY jFZ0N0Ck8UluTFg5zp+Id3KlBHUAm4Pi44Ny+xsUhnEnP50KBRLH1oXHCtu0w31CwNfjRyURRBYc8 LytwXFGkDRP+HJueSn2wRIdtWd2CC2oj1UBDPg8qznP4ECkV+ncZm7Kn3TTEhXAHznqjY5Q0YXSpJ zbD0P48w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXHo-000M5d-JW; Tue, 07 Mar 2023 13:23:24 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCg-000Jft-Pe for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:18:11 +0000 Received: by mail-wm1-x333.google.com with SMTP id j19-20020a05600c1c1300b003e9b564fae9so10386476wms.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=KFON8TiKTHRBdcacqivJOaQ/87AiqbPsliTZs3Wik6ryoRGsZy4q9zIwg54J+VkyQ6 GfMkL0ArKXDRNpGd4+ccOiJb5TgPTfu8rtM07IJEPj8v1PfIdW3x4RK+uBdECy9vuUjS jp9j2YoV+FDk7w5g/gpC0Ll1xrFzH1uYd4+YmIXLtNxklCcH2gVN/Lbvd4U2WYgRVMif pZYghAcmhIEynXWWZhla8yh2EcZ03pcaelake82p6LKfvXaJuHhz9rdq5nJv38PnvoTR jpGnZ0Y1Qf3Lf6h3bw37W5LkOgjA/ba9son3g0cAMMqFMYymUp9yIR4gReMF2ywu8KQl gUfQ== X-Gm-Message-State: AO0yUKU3yxi5tzfUxyxcteIrHQuwWuQFduggWcs4R4HHIQQQfMQEy38v 5neB+aNPIrsXC0P+UNk4oHfnVQ== 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_960340_DC20273B X-CRM114-Status: GOOD ( 12.19 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13163477 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 EE4DEC678D5 for ; Tue, 7 Mar 2023 13:21:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=cSlo1e2m7Ke2K3OKMSOyRHyplcIQuLN1nVJm8tk4a1E=; b=RDw0BNQDW6y4theZ1Kxyy64exU CInTWmmV2aRNzMjhi2vWKVMzHFwSUWw5NU8a18vcWA5x3ZCWAhrTRzT5lKXAj/HMyV1q1OWn5Cbb/ bKuQszGkbqhlpEzwo56uTQ4/RFDRglmqr/7TksEpPilcuiVInrnJTKc5QBle1t4yNIrThxq5yrCCN NAWW+Fw/Er+tCKFOyebW9skkOrmeO7QzMwALM6C6wXss7PSml0zPQnbnvsmDRA8a7rT5m7nAin40T 1cp9CiHh/EECoyb8Xe34mYSyqYnsewhnDKBNB3sxMiP2QQ1BvyOX6I9IeaGm9hLj2WwKGwAxyRFlR 7eTOCuOw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXFP-000KzI-Cp; Tue, 07 Mar 2023 13:20:55 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCf-000Jgt-Qs for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:18:08 +0000 Received: by mail-wr1-x429.google.com with SMTP id h14so12092404wru.4 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=VdZxYGQcLU3UkseEP5mvmcYXALwpy7tKACmElt/INE/ts/jvfVhsZsHdeQ8w/YNvD4 WRuV+w5m82oEGHINKptMx/3tkrg+9K8NFuRHZ+ODRArBE0+/L1FBENGZXEBHY7b5MOxa VdhB4YVHgp9m7SwqmRLWdm8qCpG2f/zwhcAOcmS3cZk3+jpSPYxGJYHn8dO8T9KEfXu8 /x5yZcHptWJiP366wSByjmclaf542ejDqHloyUE9BtIhSWTNz6lL/Ys7+QIE5XF01Hcd JDCa/qL6Q8Skk/Jg3MHNGnAbDLxWSa52K0pt3HwPge6jiFvKGcPgsAI44MUzkgxgQ99F UrLg== X-Gm-Message-State: AO0yUKW+tJS+wu9zqlt8oCkw2N6ME5wSfmcbp4Np/8tnIq8H033cz8EN KLSrcSF0Il0/dThBY0Im/6LOPg== 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_051805_970167_0AFD6A5A X-CRM114-Status: UNSURE ( 9.11 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13163494 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 42DDCC678D4 for ; Tue, 7 Mar 2023 13:24:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=k5uCqAl9Xm0flZG8lUpKb/HpU//1nqOzOmKaeoAToxY=; b=iUbmx6AYHPUkszqmZgt0sACrU3 yIy21T98T3AT/Njn/mVhUktTzq7YCm5P3l3RFcwl5CnylPRUn3sqDNnTcdOdhxeKtFM+Y1eflysX0 2nYjlVIQWQx9u73qToRNFtk+0CclkZuHps48UV8zKBm0u96BcVeuq5nP5mtVho9NUrZvgyGlgqAWo 1JAtSbXkNuI8E/HL6MrDT9GUKc/8ilJ1vTF2WsEv7eEuGmKBoI7fzCZCYk6fGecLxXKVvdV3HQDnH /Kd6DC964jrZPU9nt3Qu0OsQoEH+V9vs37O77YTFa4yeatVG4IAq6CLEtglYDFvtVAqGM5Ua2EmN/ Vw1UEx1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXIi-000MSV-GK; Tue, 07 Mar 2023 13:24:20 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCh-000Jhq-11 for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:18:13 +0000 Received: by mail-wm1-x32b.google.com with SMTP id r19-20020a05600c459300b003eb3e2a5e7bso7194456wmo.0 for ; Tue, 07 Mar 2023 05:18:06 -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=RwSxR7lXTpxXr78dYuysXtmQKwrmyOlGJroBxjPTUCNGNdnEd9RH1vuRPoIz/25m9m gMvqW48Za/qNeLmoUEe+y/nNCQThyYLSNnGKJxEu2nisyBJr1ikXtkFkWJkOwIQrj/kB rBjiS1BU56BaelmVIvLGu1M3+mIUbNPB8mqRkMiThImNv2fcoHfRSkHP+PXB14qynXd2 fuIuY+veYwd0gedPWc8rtc8KVe1iT73regaua/eJDYCeWORKsLoTMuPJtYdtGuzgQNj8 bR+Wf/vWBTLo1pgBNMY/+hraa2lxtUADJPHmfrFeeBwXLcqpD+GeBtyYhhulVwKgP1RD BX9g== X-Gm-Message-State: AO0yUKUJZoD82OdJjDxJHK01utyVri4N94ydvm1ZZnBmC3yGveV7aaEW h4Xn3EhFGzBBWu4+//pwkZgAZQ== 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_051807_190281_A98BE448 X-CRM114-Status: GOOD ( 11.57 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13163476 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 02610C678D5 for ; Tue, 7 Mar 2023 13:20: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:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=Ycq2qGbCq4gp4GdyosDM5PwOaYdMKUbIrOS4iJYcEhw=; b=MFupneQ1X8zYF4/UEL+8UJog/K b8YCXxmiHr4ifKlI7w5Yahj7KGFz692J7zb3SHJr7ZD4X3RdtR9bjigaLrT2+VgFQpnnUGJilh8WJ fVyFmq//lUKStS13DKrGNVVA9SBjk0L157zbaYXUDWs7icAXkS2b6UabJzgg7ehr608R2X4e3RfHl vTI/2sYd+uc4RiTiknWzwmlal+7g5Gc7+Ya4FzjX9Fl00d7FAvPlUjFc+mJLJMCBp8arCgaH6Gqcp EYf68Dx14N2nr3nUiJahyiWymfEdw9wViLOIXbuJmvFgQWdhodLSjjDmumoskvpGLaqbLPG7n5GOw qLkd2c4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXFK-000Kwl-Ob; Tue, 07 Mar 2023 13:20:50 +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 1pZXCi-000JkK-3A for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:18:12 +0000 Received: by mail-wm1-x332.google.com with SMTP id fm20-20020a05600c0c1400b003ead37e6588so10369717wmb.5 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=kH+LC/+KaSTbKDNmjdUqKHfU9QxzJ4OBjDNPGtE/qaFfCZsvXNpZPURThGqJwnbQza LeKXyY/lePcs5bmau/DN26a4i7UcMVHDci4UFIY6BEfgAcha4bsQjimB9AartYK1+6yG IphTM7vAtkZfWhLb2TU72jKvCK1uQXE+aQdMFq56awMA47snXN7XK3F9WPgZONIzwQZR BadtC1LEYfSG3BV7fPTcw2mTjqoVCnWwAZ5ITWTZ3SmJUkByzgaBT2eEFdlqZLHZAk7T nzMOiNaTI367+mWXO5hSQTesuWXVYVMyc8N/oDsNwMvwr70KQZk+g7alVgVggN3dxvi3 u0vA== X-Gm-Message-State: AO0yUKWoHTsEBj+ctfOpMkfEZtqcOJbJsKssszhPFopbuqmsZrPEjhhU Ym4fpVcuezzg/ZSxuhkN/xt+AA== 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_279426_D770B4C0 X-CRM114-Status: GOOD ( 10.22 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13163949 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 167E8C678D4 for ; Tue, 7 Mar 2023 15:14:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=tMvXXRfdWRwvy4f2szxglSoVaLY3WxRK8VtTC+oWKE8=; b=dldoIx32bGs+NnHB1DZPhY5X+X pVnBnoJMyUnzU79SRxmZbywjsRZdToM0RMN5OwCSgzX8UzvgvIHSQRSU3dHrwZfiUX2Wz7SWSBj46 3i5ReU5KqwGs5gI5rUXRreszPlnkLHQuk3BhYTGlp3/JH/8zSWDMXnhDpnWBlze2+BQhPNYAkEzb2 7U6Xb0RXKFbAlqANx8/okYkUM5I4LyxxVdIBFGdlpVo9dHhDChgyN7dP1uHOOkQe9BzTPx6bCZSY5 J9IOiSuAsYrW3xgzWESOTGNhroj5rbfONPI6VsalIR+SATAnjxLSqzQtxKDSs6S+HOJXmtiYcxoE0 nE6kXgFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZZ1T-0019In-3u; Tue, 07 Mar 2023 15:14:39 +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 1pZYZH-000vH7-QW for linux-mediatek@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-x32a.google.com ([2a00:1450:4864:20::32a]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pZXCk-00H3Ag-0t for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:18:13 +0000 Received: by mail-wm1-x32a.google.com with SMTP id l7-20020a05600c1d0700b003eb5e6d906bso7163373wms.5 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=pCNSgg9HqkoHc3P6jRSpziNmjFoBL3ccgmKH52kJxUAvmyv/U4CfwC/hD8AFTupDRV sHLh9RZl9I92eGRV6+Ps2T7Pb81veCBSoMcW95egNybo6EyESRC7Xp16Xmkcasazu46o /UaN6hE2U/IA0vMmz7+VFboVepVqRIdwOsRNVYIKaQbyrHyIew1I2ireMNkMJxlx4HUY PgY+yrVkTFBRMdCR1ThgeKE0nr4Y3BwaKvF9yseh1/nIzTPf4BOKOe1rBbFVYt0/gAql nNh4wUlDnbE28zZU5qEx61mgsLxm31SSZu8YlFEXCqx4FZwQX+KnhPTHDFOfMbkO0UA/ RlUw== X-Gm-Message-State: AO0yUKWCijtMxZ2KCE0ETan0v9jUPbgnZon2PueBTpX/1ntSgVHv1lh4 glWsb5M/EDqnVPAbAfyJ5ZUQOA== 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_667196_18A7FE2A X-CRM114-Status: GOOD ( 10.04 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13163596 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 673F0C678D4 for ; Tue, 7 Mar 2023 13:57:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=AWSyw7vn1Yd55xL3/Frwm9BLMR0g24cMsEBW/WsgZKU=; b=hdR2sfyV5wxAtUdA02HccMDYe1 w8MFZpj2v4Ka505tC7xmQvdzcbJGkTEWfrcHottzPhm6MHLZ+y5EDAcTW8izFBGObQdZKu6wt7xAJ D17HV/ZqGcSR2IXQJgf/aAFSA/4OrhA2SP4vjfnSDlr3+EpnlUdFS7D7/5ncpW5q4lIQ9m5fGaslS xLttzwJI7D6t1piH2uTm5yWu8emb2/y/pC+rVdIdg+GBs/FYXxZDbzr1fbpU3bU7ydA8JLgtYkxYd bZyqfcEkxO3c2ZNnX6+Mjbs15dgCtwj1RuGcs11YU6xmhzCGRL9Rhe31xoJUgR7ru+zPEG71r69mN H0BQmseg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXoM-000ZHG-34; Tue, 07 Mar 2023 13:57:02 +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 1pZXdo-000Upo-Il for linux-mediatek@bombadil.infradead.org; Tue, 07 Mar 2023 13:46:08 +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=AWSyw7vn1Yd55xL3/Frwm9BLMR0g24cMsEBW/WsgZKU=; b=k6cLGaWLZCUxJ2vBdNo5JqT84q dPe2CZ5gP5IKCf2qK+RPRIE6nS6wHBsJP6fV4tK37HoyczLDR6aEZz/qzys0M48XezpNQkX7DOD3o /3D7K8Q9E3oYsnqxhq/wJP2quI/tCkUNIs3RKfT8rolVrI8wPyFyZb0Dr1vkOlRkr+/3epEW1bpJB Qg2UscZzmAvj13tcELJpr0q0AhXcdvfW2TZRAJZ5aJts5cOS17Nh22hnrHnE9+q8EYDitOEEWIgxf R3pvaouE5KeuDZc/nb9WjC8aQeDeBwsHswTO5+l3PzRk/GMjRXJzNtztmCwubiSB3+O3B/7xCLLZW HnTgjKPA==; Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pZXCl-00H3Aj-13 for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:18:15 +0000 Received: by mail-wm1-x32d.google.com with SMTP id l7-20020a05600c4f0700b003e79fa98ce1so7175721wmq.2 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=l0I8YD2ZH1S8FcHqEUT9CYuFo/qt9Qdr+/HOhzRiNhXtsfd1Bmvxw9P9NqCovWBY2f AOYu6R0pUBsKl6HZieoH90wkm790Vprt7HWkh32JwHnrpFj5KZRSAh6CnJnHhXkRKvF6 ZmkFlOVMuf23J7IsdeKD1nbDg+3wYaMyLir9OteoILW1SCd66r/9EWZeJVnXfCO5vSwc 79IqE5C/84z3EGwKQTIe2iRHDN9vAWZ8TJYbeY47XawX3nnCCdJB30JFeWzRQn+4T6Do 76tZ+BmxrHwaGZLjmplb1RY6ZvCfnuz6OiQwWvqgcdDpibokb/bG/dUKc5IWTNDSqFiU FJww== X-Gm-Message-State: AO0yUKVybExaVh9ph8H3TMJH1ELS8PrHE/NALzMC1kiBE+I5gWy+SSo4 4+RjF7gU7BTcqD0OydjMNWA+ug== 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_131811_486154_205BE378 X-CRM114-Status: UNSURE ( 9.86 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13163495 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 24292C678D4 for ; Tue, 7 Mar 2023 13:25:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=PLrF8Lyon+lRRcj4/8IUgpbSTKbpVT3/7eOKhJdTSN4=; b=D3jAfyPzEN5OlQTvl9/DXZKjzm 39k4W3BTt0n+Dyk7666ucjkXqeqfFHKxGEg83amnfyrN1lDSEMf4asxM0uZ5FAVJbkJxL7nYaYFRL uS+YEaTwOSQYG2fadurNIFz21EvoScyhVRvQbFWfs+eiwdzdXIi2mZACL2x0QaTTXRtL/XmMIjF6s duX/FXeJOB5LBrAJ/EETzrxrslgs/JPzyYe1sQ89Ufsc2GiOJVooKkzzA/8DXMqTS232JK2le+R6C RwK8NIiIdyo+jXk99ipwCEeeP/90e5ufnsNiTbZCubQkaVwYTXd/+VsHKFYwB3BufcOVDLm0g0UKL cKcgNDxw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXK1-000N2S-J2; Tue, 07 Mar 2023 13:25:41 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCm-000JmO-GR for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:18:14 +0000 Received: by mail-wm1-x330.google.com with SMTP id t25-20020a1c7719000000b003eb052cc5ccso10374168wmi.4 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=uOOi/F8f+pxpfFy05nGVXDM1MDKHgbavqXsEhMoW3B7PIzchSix6MuQVFLDxYCeaiM pthD1RXxnKJLzAQf1uom9qnqwMlaq0q5xTNgYSHqglhazFizk5Je9HSu1jiOd9yigVdo DlNP3oZOZJ0XvBIvw77nodlprrjpqiwZZR0IROrrWeDsNn+0noyQEjh6hW76LaKRxOp+ H2k9xZCDE/FBIyOrCY/Ys7uAnkPh7syNkd+9SjIN0yyoX/Vvy0OPeukzftrqPG2hkvHS F0mvkGTYn0gEROkRxvScPTQDzhOpV0kMR0XnBMKiL1pBrRalkzsM9WpRmoo1Ah/T9YM0 zr2A== X-Gm-Message-State: AO0yUKUWqJruBUyM/h/PnmW7Ep+nMaHsujD3YyfOeFCDuH51Gu/I73dQ YYmblZFNvW5YTuhrOph681RBGA== 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_051812_662994_E4CAE0FF X-CRM114-Status: GOOD ( 10.17 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13163595 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 ACECAC678D4 for ; Tue, 7 Mar 2023 13:57:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=jZgziY/YB1+30FBJvKkNffG54YxezBqs7LSH3IaDCyE=; b=GZLhuvfTKoYI6lOKCsb0tYyC7e d6/87DR2kZ37VtDpAxFd2MH0bvEy6X5XQn0SiQoQby758Lh2KjLX4F1Hcs/4ecHCVbQzZOjLYS0UE bUfT6Os80GtKInk1xiGDiYhYeLdZSUyU6qsyRi8S6i+ek10fKHXGYLPVIU4f4RxZLUEuCKeIbS5zW SNy3bzwzTlVN/4w+aStY0UCeR17Qo4CRDF1B93vZl8BjOWwy4fbgw9r+Bu6fJ8VJUFVxqFZdPMReH xNJFYegXoRKRfTcg9FufRCIf0J4+1CHE6MhBDrtiSAhg3CU/johoTHrrlMgvKomOhNHWuNG5CSOaI uIrTpmSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXoH-000ZEf-C5; Tue, 07 Mar 2023 13:56:57 +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 1pZXdG-000UaQ-L3 for linux-mediatek@bombadil.infradead.org; Tue, 07 Mar 2023 13:45:34 +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-x32b.google.com ([2a00:1450:4864:20::32b]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pZXCo-00H3BS-1m for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:18:16 +0000 Received: by mail-wm1-x32b.google.com with SMTP id t25-20020a1c7719000000b003eb052cc5ccso10374215wmi.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=AcCtxsZA2c14PxIFmAbUqqmiK91aBKIrZUutttFxaTMBHne9H7l2UKiLytjVdRUKTa s3xZCDipe8RVgpXMs0l19k0qJXSSxxRDcbfoBHJ9c9aex2WlmJnKfoEpC3Nnkx7fFGg1 gKX1ztpSSWeednVBAO5WHtzQh8zTtXcTd+QpdU/Njn5SMYZtwYLhgYnm0dT7Iop1pofh 7467+ogR1n1h++JT/PneyptgEuWLO7SbLv1uYcnwHXU3V22SoN1657ffrf+HTr0gWMxe hcQqD/LgzdFbIih+wy/dVqeEbabOe+0i+oN/ZwknlaD/cib8fDFlSTy5dojvihkBFZo3 u6Ng== X-Gm-Message-State: AO0yUKXX/GuAJKg5zRtdOe5yy+2lDVssxHEyF19CNj6byLwD/yxJRIb5 8SRBYA8M3X2gq1PBoTaRmwT+Aw== 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_131814_738671_2430E069 X-CRM114-Status: UNSURE ( 9.57 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13163496 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 81032C678D5 for ; Tue, 7 Mar 2023 13:26:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=rjdHCu1yd4zio1WoQYU8aAsyBoW0zKJYpSN9pBzP9bo=; b=W1Y7t55iLK1ZR0srBvB7/P2HB0 paUmqB9XrgtqjwDAr4gilO7tXZ1athGB+aO5QOOtI5iBW5nsBOcibKv6VvfewAgqeun3wk3MBxooE nIwV9PlEw77gPZbNXM8P0L/RGebd5oXYfNtQ3lWBAeQLQkQ9Bp8mhznYaeSelqSnRdb1SW5rrYjKS SG2y6Es4bZ3+g6i+YOuyEkguTHx0E9LzSnvdIc1aIfXn8Oa5ADvDyaqUzgABrFVl0SS9f1RgW21mC JRr1b4jrn1hCN/NtIMbLWvCgXF85o3tlU9YWAyTZLXlNtWGv7fr8Rv5js2D3WK57jBAwPtEm3MAvH dnkrYjAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXKS-000NEw-Ey; Tue, 07 Mar 2023 13:26:08 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCn-000Jds-U1 for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:18:15 +0000 Received: by mail-wm1-x32b.google.com with SMTP id j19-20020a05600c1c1300b003e9b564fae9so10386758wms.2 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=Qp07VpcN7YcgFSdgdH6c6hk5P2/+kDsjcjwfdavYnPej9cMznhFpT/2xeULvgmMB6Y AxNJDbte2q6SwZv9MTLPd4P3Lmqs/YtXaO48kx1f5u+Nf9p+/oIxMFSjE6ed1mxqG13d sjE8Hjr7gTQL0b+/oi4/1aEM9hnBBf4mwM3g8JuZqFkryvySE+84X+69H3477NIzuRTv zljzuZ16U3U8Q6g9+gV70Rg1ckNOY06KKHoSasBLzhVANh28qzd2QxBjYtrtr0pxOp4e wHJ1Xm65OW6e+yCQ7qlWu5Qg1A8HnPawoh2SsLn7WXot3nbh03sqKeZcDTmIXzeY5wtQ P1gg== X-Gm-Message-State: AO0yUKVk93wM+FC9cV5E1QUkUUG4bGDTD6Zyh1zBEEeG8p/LSi07xcaF /bjnCCvTbXpIJV1xT2/vIB+0Sg== 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_017991_9CF22AE7 X-CRM114-Status: GOOD ( 10.90 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13163597 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 197D2C6FD1A for ; Tue, 7 Mar 2023 13:58: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:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=WTwUwSLISXupiYzHSzg22kxdlXmwobHt1s4yX2iCI30=; b=qEB3RSp6ivjoT5JkihQMwC6nTt 8phi7uJvekdtoqOlxj9zhwK9zm2fIlU5yPEdsFm5oJ502JuAPH9I0tT78vtBveBEJ8bqagrlgc+0V hMuY/qNp8oHzArN8woQtDkZcCrJsdTD46Jt66caOd7aBGkq5VsLAcGboYijnpCJEiZuKQNVievJIo wTTqQq7sx0zG9nSSNSXUMPIrRkokdvVC5Xgzy7feAinMcF6f7VRuuXtFGkqKpixqXg5tIAMYndKjw NwVP3WzdqxsCjAy5sB5HynW0TKvztlHxjUhKyXd2F+51xzsyp89stn50Jy1Fz2n0opni5pmPNXMn8 iy0Ag5Cg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXpU-000ZnW-SG; Tue, 07 Mar 2023 13:58:12 +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-Ke for linux-mediatek@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-x434.google.com ([2a00:1450:4864:20::434]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pZXCq-00H3CM-30 for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:18:19 +0000 Received: by mail-wr1-x434.google.com with SMTP id e13so12057866wro.10 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=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=zmnA5ubyhTiESTpqaHzw1tW++wFh3labtDeKV9Wktnrbagw7pW/2n4tdiytS6/MeHE af81JpSElMqCInL6pbXVRswEDNwoN1eX4yhDglGgVTgyi+Ak6L3tEm8OikLinUcksGDz STVSix9dsJ3S1sYkMzlmV+e2ZPS8fmDffS+8k7ks5f5STRqVF7xFkPlai5c1BxPY0kQO X9v5qGUAcBf1SDRqzQQNj7a2dLTZ7w3tRh+VMT12sfq6jysFGIRgqIA6pe3+plA9DUwu inm+1u76F1oStGDW+xZ01nW0UO0iTH0HDbBZogjFqhaf6sVs25F4JBilWtKVZXK7dnpB vQfQ== X-Gm-Message-State: AO0yUKV/3iLaeP4YZ2oHHT/IKEg49qLE8zCc2DTEFh1TNlmZeYFIqxJk MdPI9qzOQMD/7UsFGz+9ACHX2A== 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_131817_196958_39B67E41 X-CRM114-Status: UNSURE ( 9.48 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13163950 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 104CFC678D5 for ; Tue, 7 Mar 2023 15:17:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=oEysRp2LLNbE8OqaqMCJkdE0HWAQiicQ5qKiXMYvwo8=; b=MJ2pU1EL9liM0s78NKyvz4Igwm 1fAFT25kOpzCKeBG0VO0MgIMB4YDjgZ95grXn8tZo65DALAdnlZDT5hjSerOM07Pb0H/P1Bj08rXu TA9P1e3VyRZGVhTOOnaagc0XaJCvCWxK5sowVKNyrd5VFoKqGHBvmIlQjg3s++5b5N7JMUNMl8uD7 vBpCTN4Dn7Il9XUbtH+/a3JyU8wlDdNCqGFAu4JnL2nah9s609eBQQPEw6L7uSwJFj+p+gVBKxEHT e6pzJuAA5aaGbrENnGyTu0yDUBM9M6I8Cbu9xCNqrtD69Hpr+IBOtHulc2FgawtZkXV2ALSsuqQO9 XpmQRR/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZZ3p-001ATf-N0; Tue, 07 Mar 2023 15:17:05 +0000 Received: from desiato.infradead.org ([90.155.92.199]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZYZe-000vXb-ET for linux-mediatek@bombadil.infradead.org; Tue, 07 Mar 2023 14:45:54 +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=oEysRp2LLNbE8OqaqMCJkdE0HWAQiicQ5qKiXMYvwo8=; b=NNK6xafx5jwlKGeqGPyh6zbJKs HRANLvld6wrX7UtPvOsq0rUkVMpDIXAedH4L8Xz30yFCgxCqmO4VLZaOSnavxueoSy4pNbvr6kpQZ vaJkTNYffNdy+6GpCXfqfDcIoHrMFqofwdSkDBzzaLv0sUnWAUe1ESvhXZlBKw2qpusXTHkpp63v8 dxom/CMPWstc5DsdinCMmznOMiuScbI8ScPgnGgDQpF8+MuzFDZVPT7ZDf/xXLhmQpBX9B4mQ8TfD 5+3YgNOc0XKi+Kzzi1SBhXnMaDlpvxImoGff3EVf/Z0CBpTTaNhQv/Iyw+tf7fB/fBCUI6owk/a/k eUyrLS2Q==; Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pZXCs-00H3CZ-1y for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:18:21 +0000 Received: by mail-wm1-x332.google.com with SMTP id k37so7779159wms.0 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=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=l732wqfUcHOjtexRzHuXfocGZZaZ586IriMRucXuZLMAHu3n3t/aU8QUUUI88LlOhQ t2QAz2dx0ssjE+TiRl1XtL89ESRuES+QvSL1VMutV5ULnaVS6SwOK9eRIzRC+xnl8ouQ yZrb97QO3BVZGMstzV+EPpmWNX5lT1fB8fA9wSdpGhYwM7siupPoYhxJR+EzoH7nLPDQ QyJwSvgWOffv0soxb6RL4xBDZ4w/xe9oDT8PKbKj7LBx9CGOyssQsioLdLpDzo1P7Etl eE2LG0VyRaExWQL30dW+x4quLHfNnjyEsgPWSU8dQojZ1tOFoN1895QUBe7fWWcVezPN zxGA== X-Gm-Message-State: AO0yUKVfGKvhtAFHVQPtLx72xap5ZwHo9tYk53MttjE8DSCjIbq1H0yT 8cb94glHjLXqpz2quTjywWrn2Q== 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_131818_770704_AFD66FA0 X-CRM114-Status: GOOD ( 11.55 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13163497 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 3354CC678D5 for ; Tue, 7 Mar 2023 13:26:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=Z/wPwAoTW2tJxjxrOBuLt4E1zX0C96+nBR9WhSVdzZQ=; b=RR5ZRW0Ya1rWt8/p9nkRZdj3Tg l4VGP+vcZ/s+3+VuhaQvnSWZChDyM2RMUU5fq85W2YylK/Lkuj2P1YyNLedN66rTqL3iJ8nFvmTS9 Otw2D7yOxo4cC96A7bmn/aYLm2+c5guf7Iq078Fup04Slj2gvDEtbumAEVe4kuut40nawrVSA7lIK qcPd5zU6VPdY5qiIpd+EM35tl2kunqtM21inXmdBvZ9DCRHwuc5WWKaJRGCAeS6RTi5hgirSbqph1 cwM8he38Ma9fFQ5oBjNrGXf55dCXt7sB0N9JCusKvbrY6pG4Bu7utjIFivA60T2Jnmk/Brh7lihMq D/iDmScQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXKn-000NOv-8t; Tue, 07 Mar 2023 13:26:29 +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 1pZXCr-000JkL-5u for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:18:18 +0000 Received: by mail-wm1-x32c.google.com with SMTP id o11-20020a05600c4fcb00b003eb33ea29a8so7183060wmq.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=s/52G7vQh/vCdF8k061IAvQOQRYeDJE39VV9cq0oJOC0fqSqv40xUUpsLsAeTXyZ62 t9ViE7pkOskEu6Ra9qmcLn5+qYYDGEW/yOHSgqBY9JD6oXZnD8JSYzYsd2QOIsIGeC3d AzjJXSHFlpXVLLLLPHNdoPAxq/a7CyvzJjr3AICxWJMyRSnVQoRkUMJJKS8cEsBKcvI/ jsai/edou8OALrLul7aurneguvC7xKy+eRu/nb2k9JbvQzFChdK0MpsxS0FcxuNMT99r qdzXPdEpRlTtKNsuorAOd1FYxIzy42kIC2Bt6O+7MNVpQbdCRvKGUZs9/eb+sQFh6t3f Agng== X-Gm-Message-State: AO0yUKX+SVmkp9hMoaaF4UR840PlPZlRscr4tSFy/R5u3eLpwB0PoJsK BheB7aAbWDcDdywiIvnOifop3g== 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_051817_276491_BAE7EC75 X-CRM114-Status: GOOD ( 10.15 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13163498 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 699A3C678D5 for ; Tue, 7 Mar 2023 13:27:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=hFcU9KG6Zg/OwCxrVxpIEJDr843T9tY66MGLrcJxIIY=; b=RICU+S5/cR6C5C/59SGd+5WoiU ekgo0qEmgLmlQWDJfOjIRsk6drbgQUN67kSrT3ECMI6kSVGAnflJhgM+vhJI+oVrgnO/S/LB3E12m 5b1DQaXtfRf+Ck7+IMDPgiveauDUVJvdQbm8S3ss7ZFczTaMHbg3aB8ljy2BLNsQnorovQUx69YPt MUS/mVhpe/xCqMUc4Jx7kbNtElwoEmhA+uDluUnxe5Ic1C+Z83ja7Q9vXaXwJrdJPDu4+hsGyxYWd 24EO/CV9tTEF5utanGJwUcrJm4oJgs/jrUzVGyA+HEmO2OYXL2lZYJ7EQ049ZbRDyXP5sCEUlp95i bXgyh6eA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXLD-000Nc1-4f; Tue, 07 Mar 2023 13:26:55 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCs-000Jhq-CQ for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:18:19 +0000 Received: by mail-wm1-x32b.google.com with SMTP id r19-20020a05600c459300b003eb3e2a5e7bso7194884wmo.0 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=KrkJ6w30rHkJ5xJpvg+9bwEgUCgK12YdPfOlux4rxhqLE9m4T4dlBOWU+2I3KQfC6n RTNBIbq7O64J874e8MRnHoyLC6UdIGT0cCkK2F19UDAfDkWO6rPZ/SNo9jf/6bFcEmDT A+aOQFsCP687tIldLp57CcDZz2wSEU+t9X67sf84rFQ/bXVnPrdL+8IAlPay22LyX12F XMKZkvzWxC+17+kC+DkpS+IJMF9bYlKT4Dde7lsQg5/Bri4CccRjqlvwuAcxCkllaA+U HTLBng7vwntpdroWXg9LuFx3AB7G2J6LNc084Re/3WG1uyqIhjgbghC2vtZhb1cNJJQX 317w== X-Gm-Message-State: AO0yUKXzyUAV5d+56iFfoKR3d0RGWj6/gOKZfT4aWXuD4hImVmtUO4OF hyMTpjw7hE9jHjOkYhzlHxoPuA== 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_480047_BF315B8A X-CRM114-Status: UNSURE ( 9.41 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13163499 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 944F8C6FA99 for ; Tue, 7 Mar 2023 13:27:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=hpf1hef413I/ZHnZ0xEh2bRT+ol+kiWfa5l40w5Sq9w=; b=oylTVojBj2tWkypRa+HEqsURAk 1ghe0UbZ+drQwszDsyuNgQxgsqPnjC+aclny17jlMxKYVapyE+W51gJHVxmH1hL634EidnDZ1sJtB hVpzBKD6tq5fAT27StrAaWx1oMlrMbQLMg3mAwW/eS3+S31iLpnTfYNhFE2zLdF2gnAvzi1Ndwfvz /QwrAujMPePeRCwkrB0y6o9I1Vd+rObOhZxGfTn/Va1wMoilck9DKPrM0YJ2U4QKx1/EWrfFhmiu4 Uee6tPh9In0wZrgcvwzSvgOp2qX3ESOiUc0cKRuOpZRaaTf/0wrxRDy0IaWtDXloDHQocVdj5j0sU YKjrcvtw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXLJ-000Neq-8V; Tue, 07 Mar 2023 13:27:01 +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 1pZXCt-000Jgu-El for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:18:21 +0000 Received: by mail-wr1-x432.google.com with SMTP id g3so12084795wri.6 for ; Tue, 07 Mar 2023 05:18:19 -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=fzi5og6N02WzfhQsEKUbkYotoYQ1nL5M9PUl449g8TqHeDLPTLEQqd9HpTH8FQca9M nrfIIfrlvvmnR6WKX4PNRJghJFYi1pGpTgypsD1YCTXow5+Jg5GsVOexjCHHPvq+FJCG tEZ00gs1vxTI9U1iqg6+5tDEXAQ6HheBNcZY2F84am1rK8bITEJJ0dw7UiBbV/HnALZA H8xbDvL461HC9li67JTuXQi8EFSH21mMyhUixZp3qE+ZGOE5/l/MQJFrmg+vcqgt+fUH dKdqOFW+cCGB2g/8OnbNk9kXKZTd5idxW6RCwQIemo3kmhTdFggh2rqB/GQZnJam7Uo9 Vhfw== X-Gm-Message-State: AO0yUKVQ887wklriYlQx6krpJue8+BJ1mh1oZyxXLl4qc4fsO+moMVmA 0zegPuiDStPwdP9V3RBiVMxmcQ== 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_051819_538114_21111893 X-CRM114-Status: GOOD ( 11.16 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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: 13163604 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 4906DC678D5 for ; Tue, 7 Mar 2023 14:00:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=mJVpBJj7Q47tDVHQbQFKEbwqf8M1r6OvMJv941rag94=; b=hscURT2EMLM18OWhegfXuIHosI 6S8dJYrTGpD9NuPOCYwXR/Ue6w2L0kBe8CQxPSMH6ks7gWK9G4pbE7avgv0IwPkSzyNKEdlEGHdjN 5Al9TGwIGr6R5rFpKVaWXPUfiFAXWXhq4aWDmBp/aHJ0NrMLcZVHT5WWGYGRswvSkqcnwm6RcCA80 AmqkY34wyTXP3aeLtOP1eLxBoJedmP13dg+1ySQ1iDAT+j2or1IrBtPhEot137RCI6iN5BIKt56y7 YFUYrWIAqF+ejZqw5pdF/KaKKGi5nnl9PTdbqBQb1ogDkmPnFCWog0mxBhn4OVoi4f3kVy56rEoM4 kZPWr2AQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXrK-000aZ8-3g; Tue, 07 Mar 2023 14:00: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 1pZXeC-000V1B-UW for linux-mediatek@bombadil.infradead.org; Tue, 07 Mar 2023 13:46:33 +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=mJVpBJj7Q47tDVHQbQFKEbwqf8M1r6OvMJv941rag94=; b=b64+M4/NkDd7SZsut3w1VwegDC 3t24F4J4pI3La0QsSIS5I6TBGYgu5tXHXwZWsmKobSn+vPoQAEWdDmd0VO5Jjcmq516OZnoIujtC4 eTh007/c2SlZ3ykQKltnkT73rZKZ1SZk8hfBzgfQH+dNTyAOw+z5LGjPC6CPH3IE+Cwp7EVy4AvWZ uStiFCkrjy3EUWMsMjSu6zi96wDYfdQYSdmCQAZgedo4Fjkd+8Me7pKW8kxdrTGXzK47zYngpDQRL 1I88Ej/7DP3HeIyUxxvdNOECdfCI+NRrKeGyglL3fziKYQJBDi2mIN37L4+FUPbrGMbv8YIYgjFJY 1vzr3wug==; Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pZXCw-00H3Dj-0I for linux-mediatek@lists.infradead.org; Tue, 07 Mar 2023 13:18:24 +0000 Received: by mail-wm1-x330.google.com with SMTP id az36so7750797wmb.1 for ; Tue, 07 Mar 2023 05:18:21 -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=Y4D4nrkZ84geXkC60lj5Q2kPzYqaAaOlZz9KOlomyQWS9rOm/E6VZMLUZfm/QNeVFN cvqznrPn3pKWu6AHOeEJcIM90fM2qkPXjJMBcKnHw1AJ838StFHdNvUXGzR552vwAx2g +Jn0mToVk1F3t6twLxbA77Mobun0YCXUva5m2rbiA1FVpdnWl+goEI+8CHNTFk32eSBM FM7UK3U2zQwaRzWt/fN6xFpApbLpXplN2/ZDryQgFpaoezKyncwokAmMHVfdZWmdN8DE WjLAcGDOxj+xL6cZydgtuhY5I84zsNQ29iYARmDo+NnaYYUkLYjyUqxQmIJWSsI4GQs9 N9Aw== X-Gm-Message-State: AO0yUKXLRasrGb+ttq8IZzoee72Sa1o0yJkcsVHJ1JJKZanB2u58p/nz 33ykzFzR/mJ2IiAxtWCwA2ctRg== 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_131822_264681_A4ECDD2E X-CRM114-Status: UNSURE ( 9.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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>;