From patchwork Wed Jun 19 08:35:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pascal Paillet X-Patchwork-Id: 13703536 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 9AD5FC2BA1A for ; Wed, 19 Jun 2024 08:37: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:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=wRMG4qwA9Dbv46xH+h26yQBQYduRI5IcnQPPuE4Kx50=; b=RHNam7ikqhGQ1lSiCRrUrgZ+3g YxQ4nyFb1R7+eNFyiMkLh0dgtRdAvKDUs33BLUyF8x6iQ8+m8NGk1LzZJnqYvqUc4INeMjIoRv+e/ cfVrXveKVQq9f+RUF9IY3wwtOpzYITGgJndLfJzUujnNCFhjtXv2noq/bdUyrVVmsTOI3mz9d6OkR pkCF29bazuL+N7nN2aPwhm7kY6dH+ZZQTDdNSxQ0o+u1xCHpSGzzYZCR3E/OV+72+jaLd5P39tQtJ uSjRybJGfZ/lU+A/SnhTpmAbB2r72gncG4yz/a8xQjiTwVTAij+s+KnXfe+d7fE1R8eSwf7S5os3d 3A4wAtkg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJqp2-00000000Q31-2uZi; Wed, 19 Jun 2024 08:37:40 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJqog-00000000PsG-3aFE for linux-arm-kernel@lists.infradead.org; Wed, 19 Jun 2024 08:37:20 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45J7SgTo013430; Wed, 19 Jun 2024 10:37:09 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= wRMG4qwA9Dbv46xH+h26yQBQYduRI5IcnQPPuE4Kx50=; b=qfALhzJLj+lkQZum 5lNSNIROaUM38QCtFBIeSo+ceMxPCMGDXc/D1aqxMFzZs8069SrzuadFxVsM9UI9 1p24QSoSfn9FUlS4nBStSz7LdvXCRip5NXjQz6adwKNbxr7atzNaTVZg2s6AsQha IaTo3KqpAOIonqfayXSmIyzGu6aSTjx69st9n17XeDaNW6Vvf9oXwxheSmwX0cus +mSvLx2tGMWJcUiSkkTmaytGGLg/Bd3gdbhxD7DxF9TQTrR9u0gpPW08Y0M724R2 f+iquYLWsnJaaR+QPzbLxZ5QPG38K1a8Av/WoiuJ5kXMR37koHh7lxnVIdnm79Bi OA1QhQ== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3yuj9ua3b3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jun 2024 10:37:09 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id CE1E840048; Wed, 19 Jun 2024 10:37:05 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id E873320F554; Wed, 19 Jun 2024 10:36:10 +0200 (CEST) Received: from localhost (10.48.86.232) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 19 Jun 2024 10:36:10 +0200 From: Pascal Paillet To: Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Liam Girdwood , Mark Brown , , , , CC: , Etienne Carriere Subject: [PATCH 1/4] dt-bindings: add STM32MP25 regulator bindings Date: Wed, 19 Jun 2024 10:35:59 +0200 Message-ID: <20240619083602.33007-2-p.paillet@foss.st.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240619083602.33007-1-p.paillet@foss.st.com> References: <20240619083602.33007-1-p.paillet@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.48.86.232] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-19_02,2024-06-17_01,2024-05-17_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240619_013719_197521_05375EA6 X-CRM114-Status: GOOD ( 13.00 ) 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 These bindings will be used for the SCMI voltage domain. Signed-off-by: Pascal Paillet Acked-by: Krzysztof Kozlowski --- .../regulator/st,stm32mp25-regulator.h | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 include/dt-bindings/regulator/st,stm32mp25-regulator.h diff --git a/include/dt-bindings/regulator/st,stm32mp25-regulator.h b/include/dt-bindings/regulator/st,stm32mp25-regulator.h new file mode 100644 index 000000000000..3c3d30911dd0 --- /dev/null +++ b/include/dt-bindings/regulator/st,stm32mp25-regulator.h @@ -0,0 +1,48 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Copyright (C) 2024, STMicroelectronics - All Rights Reserved + */ + +#ifndef __DT_BINDINGS_REGULATOR_ST_STM32MP25_REGULATOR_H +#define __DT_BINDINGS_REGULATOR_ST_STM32MP25_REGULATOR_H + +/* SCMI voltage domains identifiers */ + +/* SOC Internal regulators */ +#define VOLTD_SCMI_VDDIO1 0 +#define VOLTD_SCMI_VDDIO2 1 +#define VOLTD_SCMI_VDDIO3 2 +#define VOLTD_SCMI_VDDIO4 3 +#define VOLTD_SCMI_VDDIO 4 +#define VOLTD_SCMI_UCPD 5 +#define VOLTD_SCMI_USB33 6 +#define VOLTD_SCMI_ADC 7 +#define VOLTD_SCMI_GPU 8 +#define VOLTD_SCMI_VREFBUF 9 + +/* STPMIC2 regulators */ +#define VOLTD_SCMI_STPMIC2_BUCK1 10 +#define VOLTD_SCMI_STPMIC2_BUCK2 11 +#define VOLTD_SCMI_STPMIC2_BUCK3 12 +#define VOLTD_SCMI_STPMIC2_BUCK4 13 +#define VOLTD_SCMI_STPMIC2_BUCK5 14 +#define VOLTD_SCMI_STPMIC2_BUCK6 15 +#define VOLTD_SCMI_STPMIC2_BUCK7 16 +#define VOLTD_SCMI_STPMIC2_LDO1 17 +#define VOLTD_SCMI_STPMIC2_LDO2 18 +#define VOLTD_SCMI_STPMIC2_LDO3 19 +#define VOLTD_SCMI_STPMIC2_LDO4 20 +#define VOLTD_SCMI_STPMIC2_LDO5 21 +#define VOLTD_SCMI_STPMIC2_LDO6 22 +#define VOLTD_SCMI_STPMIC2_LDO7 23 +#define VOLTD_SCMI_STPMIC2_LDO8 24 +#define VOLTD_SCMI_STPMIC2_REFDDR 25 + +/* External regulators */ +#define VOLTD_SCMI_REGU0 26 +#define VOLTD_SCMI_REGU1 27 +#define VOLTD_SCMI_REGU2 28 +#define VOLTD_SCMI_REGU3 29 +#define VOLTD_SCMI_REGU4 30 + +#endif /*__DT_BINDINGS_REGULATOR_ST_STM32MP25_REGULATOR_H */ From patchwork Wed Jun 19 08:36:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pascal Paillet X-Patchwork-Id: 13703534 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 A0E2EC2BA15 for ; Wed, 19 Jun 2024 08:37:44 +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:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=HSEeHUr0hh897plAMVxrPawkWTVmj0QotMkNEu3ecZk=; b=o0W0KSCpcxd8EVLRRUhIZMBlj1 jaEW7f2wdiU/a6uM4Dz3UGpa2LSV7ChoEqJQLMODdfOfuISPktuyTIw4U93SuIgp6YiQJSpCWLTp5 IFJwelgnHS//vrWl/3KOHGo1JKJLPp3JEetoALhT8/RgnhTdKZtRPf4m8X+BlLx8HUNmz3/YlHdS6 kUi8U7bOgauwnbUnCi+/HZhuPNsrcgKBAIwOujPrqJ4R/uwxCek157mwaLX6eCwCwjyyeQcxQpYmu 7kbOQ06mUK8KX2OWpcQMsaYwq7pZHkZvBIRPR52VtgQDEvhPInoIxbQhlOYwJ/y+DLinR71gXMQTT MsuglDOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJqoy-00000000Pz3-0Tdm; Wed, 19 Jun 2024 08:37:36 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJqof-00000000PsJ-1Gad for linux-arm-kernel@lists.infradead.org; Wed, 19 Jun 2024 08:37:18 +0000 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45J7P92p024131; Wed, 19 Jun 2024 10:37:07 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= HSEeHUr0hh897plAMVxrPawkWTVmj0QotMkNEu3ecZk=; b=r8ERr3ZwFZ5W+vBa IeAL6GD6TQZ6GGmct/09bPVA7zZgp0dacw/5VpNQdWnH4iyYA9Pprrvf+JNkPWbH qnLKAX5vrR6MlIOOa7fLkxROHuyK6BaBYyv05h1UVKJzprSTkDOmF8ZWOe7yKDHM tgp5Ao0O8zZc+zlYbsPtdHl1Db+URo9TCjbVlfhffpgXP3Zr4//ctyeWz1aiaaBR ezegIHoJnUsywVQfBlzV47jXlIHOXU5NlqPXImp5rdNlB9HQBlL0xmN8IP+IgwOy 7o0MX3SLQTt65rduzK64sGls9UFHxu6h5L6rD+euWXu7Qs6rzdnwOIatGVcnM+iP dtMPhA== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3yuj9n23y5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jun 2024 10:37:07 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 419B940045; Wed, 19 Jun 2024 10:37:02 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 4297B20FA23; Wed, 19 Jun 2024 10:36:12 +0200 (CEST) Received: from localhost (10.48.86.232) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 19 Jun 2024 10:36:11 +0200 From: Pascal Paillet To: Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Liam Girdwood , Mark Brown , , , , CC: , Etienne Carriere Subject: [PATCH 2/4] arm64: dts: st: add scmi regulators on stm32mp25 Date: Wed, 19 Jun 2024 10:36:00 +0200 Message-ID: <20240619083602.33007-3-p.paillet@foss.st.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240619083602.33007-1-p.paillet@foss.st.com> References: <20240619083602.33007-1-p.paillet@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.48.86.232] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-19_02,2024-06-17_01,2024-05-17_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240619_013717_657319_E094724A X-CRM114-Status: GOOD ( 11.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add SCMI regulators description on STM32MP25. Signed-off-by: Pascal Paillet --- arch/arm64/boot/dts/st/stm32mp251.dtsi | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/st/stm32mp251.dtsi b/arch/arm64/boot/dts/st/stm32mp251.dtsi index 96d6de29c14c..18094dadc9c4 100644 --- a/arch/arm64/boot/dts/st/stm32mp251.dtsi +++ b/arch/arm64/boot/dts/st/stm32mp251.dtsi @@ -6,6 +6,7 @@ #include #include #include +#include / { #address-cells = <2>; @@ -75,6 +76,40 @@ scmi_reset: protocol@16 { reg = <0x16>; #reset-cells = <1>; }; + + scmi_voltd: protocol@17 { + reg = <0x17>; + + scmi_regu: regulators { + #address-cells = <1>; + #size-cells = <0>; + + scmi_vddio1: regulator@0 { + reg = ; + regulator-name = "vddio1"; + }; + scmi_vddio2: regulator@1 { + reg = ; + regulator-name = "vddio2"; + }; + scmi_vddio3: regulator@2 { + reg = ; + regulator-name = "vddio3"; + }; + scmi_vddio4: regulator@3 { + reg = ; + regulator-name = "vddio4"; + }; + scmi_vdd33ucpd: regulator@5 { + reg = ; + regulator-name = "vdd33ucpd"; + }; + scmi_vdda18adc: regulator@7 { + reg = ; + regulator-name = "vdda18adc"; + }; + }; + }; }; }; From patchwork Wed Jun 19 08:36:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pascal Paillet X-Patchwork-Id: 13703535 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 9CD3AC27C53 for ; Wed, 19 Jun 2024 08:37: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:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=KZgWttku0OrDv1E5xjjSYd/Hd42fWLcFhwhUgXT4EB4=; b=0Fmko0qH+22AE0OL1ZLZ6hrZZx ksie30jGSmjnPanvwdG54DoVPr6EG8VuguWOiVJfO6E1/thfMis9icUASz6WWV/QIZWpZkSlXCk9M d56VHMocsCfNkB218V9PJRbOBqe3C/F1Gk1Hyl4MD3hXxU579IN48FweyBmob5qbGCz9Y6UDuxHlW Y4o9JGjZd5lUESxeubTg2Aqeaiweky1nBY8qjdQeDFxuF4wY8zl4iiX0Dbs5BHbNSrt13xu0EmsEY gkANas6mZYOpQjYeK0nyiziEhv/8ZlduaezV9OCnnmdnLZ+X2pBs4cUSvCmfcRjCfvdit1mqkMwDM 5CVziVYA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJqoz-00000000Q0o-3WO2; Wed, 19 Jun 2024 08:37:37 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJqof-00000000Ps7-3o3I for linux-arm-kernel@lists.infradead.org; Wed, 19 Jun 2024 08:37:19 +0000 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45J7K3mP024133; Wed, 19 Jun 2024 10:37:04 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= KZgWttku0OrDv1E5xjjSYd/Hd42fWLcFhwhUgXT4EB4=; b=EdVWQYzE58jbs3eY mhWhlVnXlT4cXbWtBWFaRSIi0qWJaArKvjGY8iWUE8eNWXnwi+Fv00fmQudYqIXs HWqB4bxluUNG3aIBIndNXD6vLK0+SU/YodE96Cmi7N205Pni0L28ogT0JRR3NiM/ 3Jk3faKpAgd1BKe2qySBfF+lS5oUQ/4BsFCNltdO6XQoBg8hWbgwrN6EzL5zxD1Q CMT0Mq1xCS2D+PL61JZLVlAMkOp40w6pB+49fYEHfQsP2mR8zjtDtUVuYIDheSI7 t4m8/G7e9GZuN8kRyZx6BlaAkciMecmacl7TDNDUmNOZNMtDo3zQ+90Eq4R3k7zz LFtvPA== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3yuj9n23xm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jun 2024 10:37:03 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 6FC9A4004A; Wed, 19 Jun 2024 10:36:54 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 6344E210590; Wed, 19 Jun 2024 10:36:12 +0200 (CEST) Received: from localhost (10.48.86.232) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 19 Jun 2024 10:36:12 +0200 From: Pascal Paillet To: Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Liam Girdwood , Mark Brown , , , , CC: , Etienne Carriere Subject: [PATCH 3/4] arm64: dts: st: describe power supplies for stm32mp257f-ev1 board Date: Wed, 19 Jun 2024 10:36:01 +0200 Message-ID: <20240619083602.33007-4-p.paillet@foss.st.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240619083602.33007-1-p.paillet@foss.st.com> References: <20240619083602.33007-1-p.paillet@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.48.86.232] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-19_02,2024-06-17_01,2024-05-17_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240619_013718_257105_1091AF5E X-CRM114-Status: GOOD ( 11.87 ) 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 Describe power supplies for stm32mp257f-ev1 board. Signed-off-by: Pascal Paillet --- arch/arm64/boot/dts/st/stm32mp257f-ev1.dts | 43 +++++++++++++++++----- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts index 18c6266532b2..979847e0ea05 100644 --- a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts +++ b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts @@ -7,6 +7,7 @@ /dts-v1/; #include +#include #include "stm32mp257.dtsi" #include "stm32mp25xf.dtsi" #include "stm32mp25-pinctrl.dtsi" @@ -41,14 +42,6 @@ fw@80000000 { no-map; }; }; - - vdd_sdcard: vdd-sdcard { - compatible = "regulator-fixed"; - regulator-name = "vdd_sdcard"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-always-on; - }; }; &arm_wdt { @@ -56,6 +49,37 @@ &arm_wdt { status = "okay"; }; +&scmi_regu { + scmi_vddio1: regulator@0 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + scmi_vddcore: regulator@11 { + reg = ; + regulator-name = "vddcore"; + }; + scmi_v1v8: regulator@14 { + reg = ; + regulator-name = "v1v8"; + }; + scmi_v3v3: regulator@16 { + reg = ; + regulator-name = "v3v3"; + }; + scmi_vdd_emmc: regulator@18 { + reg = ; + regulator-name = "vdd_emmc"; + }; + scmi_vdd3v3_usb: regulator@20 { + reg = ; + regulator-name = "vdd3v3_usb"; + }; + scmi_vdd_sdcard: regulator@23 { + reg = ; + regulator-name = "vdd_sdcard"; + }; +}; + &i2c2 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&i2c2_pins_a>; @@ -85,7 +109,8 @@ &sdmmc1 { disable-wp; st,neg-edge; bus-width = <4>; - vmmc-supply = <&vdd_sdcard>; + vmmc-supply = <&scmi_vdd_sdcard>; + vqmmc-supply = <&scmi_vddio1>; status = "okay"; }; From patchwork Wed Jun 19 08:36:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pascal Paillet X-Patchwork-Id: 13703533 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 5EF35C27C53 for ; Wed, 19 Jun 2024 08:37:34 +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:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=jSkBEJRoXh8EzDoRBrIacJqbFlqlu5She/THheywmOI=; b=o06V1FOsXacTJRnzcV9hvbstRT Mn69uxRl8SLc4hDQIpmRWSzJeY8vV/h03Xxjtv2WERXY2iLQJ8gjDhUIcPCFk60po4xDBvDKsregj UEpyEBoY7mVYGviw3pktQL9CdyzqWsMQ/LcrGBUbExsi7lp3cDnnR60mrh1SO1yhTAB7kZxL0H4eG 32D7qJF7xahUy8VwQVsPqgy7FV698dHM8uT6V9Zv381HWP14x4J98kiUj1VDkuOPNrzVhsBmQJpby hHsc+eMWcOq0nh+d0K3oNZLWdPKFFLShF4ozNZVGZdKJBtUlthej5IWQ4AIghByI7rxLBMQYylCqU 3K6G53Bw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJqoh-00000000Pu6-32Yn; Wed, 19 Jun 2024 08:37:19 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJqoe-00000000Prx-43ZD for linux-arm-kernel@lists.infradead.org; Wed, 19 Jun 2024 08:37:18 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45J7V3bG030750; Wed, 19 Jun 2024 10:37:06 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= jSkBEJRoXh8EzDoRBrIacJqbFlqlu5She/THheywmOI=; b=iyY9kohwE/7ow2ta jkpPgR89iDefxuJWnRKHhwuEk+oyBjdelxbFGKNq66lQW0vs38OOk2F8PJnaTKoG 6jRnoBXwoayGOBDZwahI4Wwr5aX8fZleOPcIg1RorntjhDbyjMPJr0PjzNdZ/Ak1 YHFxkqHS1S6T5VmjmJ2Tl6ZUby/Zw2dPqtgGlvlwZ4uApNPBofWuPFRn3osYrqk2 GPsmxVIBU6Z7bOzpish3q12z7GvQ1hneu6CsdBpWKuwB1VabSdB4VmFl872G0MX7 OKNsL2CvAJVA1R/PHYogyvbjUPEQX7wwNE2AGVZECUMsOO1smDOZtvD8Q9sgSeKX kUT84g== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3yuja1a356-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Jun 2024 10:37:06 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 4128C40044; Wed, 19 Jun 2024 10:37:02 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id C0503210728; Wed, 19 Jun 2024 10:36:13 +0200 (CEST) Received: from localhost (10.48.86.232) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 19 Jun 2024 10:36:12 +0200 From: Pascal Paillet To: Catalin Marinas , Will Deacon , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Liam Girdwood , Mark Brown , , , , CC: , Etienne Carriere Subject: [PATCH 4/4] arm64: stm32: enable scmi regulator for stm32 Date: Wed, 19 Jun 2024 10:36:02 +0200 Message-ID: <20240619083602.33007-5-p.paillet@foss.st.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240619083602.33007-1-p.paillet@foss.st.com> References: <20240619083602.33007-1-p.paillet@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.48.86.232] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-19_02,2024-06-17_01,2024-05-17_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240619_013717_314776_2010AD37 X-CRM114-Status: UNSURE ( 9.56 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add SCMI ARM REGULATOR configuration for stm32. Signed-off-by: Pascal Paillet --- arch/arm64/Kconfig.platforms | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index a52618073de2..dab964bc70ca 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -312,6 +312,7 @@ config ARCH_STM32 select STM32_EXTI select ARM_SMC_MBOX select ARM_SCMI_PROTOCOL + select REGULATOR_ARM_SCMI select COMMON_CLK_SCMI select STM32_FIREWALL help