From patchwork Tue Mar 7 13:17:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163504 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2C17AC678D4 for ; Tue, 7 Mar 2023 13:24:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZtC09PpK4kowlgmM80vayk5zktHuA28xCQRDpzSw6lk=; b=QTrXJTlFj0M/gc CQOf/SlNTqK6xzK9OSNTedgVfQmsqmcGozQw6xIDUzauzyHpxKTy2vC3UduuuuZBsxU4/zcnYakza WYeXnNBFuz0oR3Ygg1RmxCNuRMzanWWWhXsdqK/C32CDSUa9tfs6YxuPSvadKZJBKB5Y3dyH3JBtc q4ZF7MDm7h1fLWZM/HdVWPUTD8k1poT3qjfjNczBMCWX29MSZwyYVzQHDoxWPIPQo59evc4LoW+7j uBUPUb1qAlD0/w5gEaof483aP/B5X2gBrkgLqA6I4UW/P7JVNEhlpyk0UfXcUNefdJjeJErmEnBjR +yeHwPnaXibyCtFYePqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXHy-000M8S-A4; Tue, 07 Mar 2023 13:23:35 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCi-000JkL-CK for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:12 +0000 Received: by mail-wm1-x32c.google.com with SMTP id o11-20020a05600c4fcb00b003eb33ea29a8so7182733wmq.1 for ; Tue, 07 Mar 2023 05:18:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195087; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Ycq2qGbCq4gp4GdyosDM5PwOaYdMKUbIrOS4iJYcEhw=; b=8Jkb79b7aDSyuotEgPJjp135oUosSHOKbLHzo3J2KIM0/vq7OaTSsnGwFGmdB1lBWg 96Rha7CK2u9XCuzB48T80eYawBUpEOzKabab32PA2ICiNNfKgn7cpoKYb7Wwv3HDcy8N tSApnVe+sKrPLxyFIFme8mOQ/kjPhl1tFOTsG9AZepWbpKh2KU9Vu8i0K+AQSXGyhg4U xV5jXN17UZo9vR+wzzsvYVYpYTd+wEuQsvCSWcL9o6b29wvZtoDsb0qyfuscrrWTH6e2 3WGMB43hbKIS5HWyn7jawti1+uvq8GoTUEoPf52OpJkmUMunw/phUbHg/f2ZQJLrzwP2 6nXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195087; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ycq2qGbCq4gp4GdyosDM5PwOaYdMKUbIrOS4iJYcEhw=; b=OX2GWGiJR9GGL3SAMED9K4GBKWNb4oNs9BImOejxNksQdKKQkw5irjXbDjdr+VbDZT nbv514Bl9OGcGZHE8nd/jfXI88mFpfuIJygzuwRe1eOZSlswFG8Ad0Mg7QdgAGE+BS33 BDYr/5jtsE5Rj3/GevKfqKhzs1R2/XAISQDqGXBMdeQSXfn/tBljZJvqQGdTvXvYOj7Q lgt3EgWsI0JtvLK0b6AOiYpE3ke26+k1yg4GxZhtZlW4Sb0z94QbTvvL0dZoCjMgZtBW bCxoJUr9wmtvQ7gDcDJ32r1IuZ/+b+iYFLTht3tQlP14e/i/p9IqIuyJeqaoRjuLpXX1 qBCw== X-Gm-Message-State: AO0yUKXsMoB3b0f2QrlZ66796lWQ7QMRWiq97xKYFkieeE3iSA0NEx0c vlPFr9JiasjkaY77W6wQvbdt+Q== X-Google-Smtp-Source: AK7set97FITZPS/X2hztd/2R8Db8MrT5BSdLvVQYgQ+svhIM8ACEGKh9V4Wj/Kvhu7sSeA4A9EmyVA== X-Received: by 2002:a05:600c:3594:b0:3eb:395b:19dc with SMTP id p20-20020a05600c359400b003eb395b19dcmr12777994wmq.9.1678195086727; Tue, 07 Mar 2023 05:18:06 -0800 (PST) Received: from [127.0.1.1] (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.18.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:06 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:36 +0100 Subject: [PATCH v2 07/18] arm64: dts: mediatek: add pwrap support to mt8365 SoC MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-7-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1129; i=amergnat@baylibre.com; h=from:subject:message-id; bh=Iy+JlpwcXpubs6mhkIYZfkpEPtOcPV81mErEUunc5QE=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmEie2UpC2lAo8W0pOZ+7mFt1tZMgQscEEj9Q08 FCkXVFeJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hAAKCRArRkmdfjHURRRVEA C1mqBHlIObMMnm+SsFPk3+g0gtiIK+ZqYTtvIZ81le+Funxycq6WLwBCoMwZ53mO4GuQgmE/u3n8df va5Craew2zTu1gm2PfLdamuUYGGsHrdWbqEQvQY5mtDshXTFFj2yB8QPMX3rJMRBteU4Y0Ef+FKH1h o6HpO3WpIyV1pc8UwYqUe1Vkd3gQ0kD7lLwK1TGO580zMI7DBJPOhkGQAqCbQ6vXbWimQTKLi94HEf K3uulRPSYYVb3aetnHQe6EZPIXu+JU9jGaE8MHusxUMWI+Zz/BKNapo8AhAdpZ8emDMt4THTYVA1rT zQQTSsmbE1IYf8wq79YDAAK6PwDyobcstdvbLd+YcxCtal6a0y3dRDiyuVbR3JyieSeyWJ733mHhwG uTBT6XraMR0VLS547pkjBAmxYLYGDynqTeX30z1mWlfauKXo64l3VglhqrGI4p9Zkc1YeiBX+Z1Vni 809uEpSu8c8/m7s+l27g+NFnK3tfFqNUFespehSZgMygDrl3DIl8ZRwW/4h608g5NyIV1U0NZ0N13g 2YOMe235F4TzM/A9iXSinczMQKaKMgdHXeKYoaUfX4G3TbDY93kon6MltV4gYBanhymYkQcTQ5RmH1 kKt30KUb+W+XCpt8udIsYqUrpTOsV+crEwY8QX1qA5SYck3rEO2G8hGdNJUQ== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230307_051808_467040_E389D492 X-CRM114-Status: GOOD ( 11.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In order to use the PMIC, the pwrap support should be added to allow communication between the SoC and the PMIC. Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index e018df6844f6..687011353f69 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -186,6 +186,18 @@ apmixedsys: syscon@1000c000 { #clock-cells = <1>; }; + pwrap: pwrap@1000d000 { + compatible = "mediatek,mt8365-pwrap"; + reg = <0 0x1000d000 0 0x1000>; + reg-names = "pwrap"; + interrupts = ; + clocks = <&infracfg CLK_IFR_PWRAP_SPI>, + <&infracfg CLK_IFR_PMIC_AP>, + <&infracfg CLK_IFR_PWRAP_SYS>, + <&infracfg CLK_IFR_PWRAP_TMR>; + clock-names = "spi", "wrap", "sys", "tmr"; + }; + keypad: keypad@10010000 { compatible = "mediatek,mt6779-keypad"; reg = <0 0x10010000 0 0x1000>;