From patchwork Thu May 23 18:04:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Delaunay X-Patchwork-Id: 13672151 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 39748C25B7C for ; Thu, 23 May 2024 18:05:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id: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=+2fIY9kv7qqOFllxhvo4NM8gFCasQSCIUbfNKRzbj7M=; b=It3LxuhG7JApWO 3wUd878bWqxO3Hse6CxnyfHluNnr+IU/fOnx+taHlEL20OkaXEE91ruzIkJFV5so7CTcNK+wU6j+K 65rEUMXkAWYz9S8qHHI9JIdj6z78hmrJCALUFmBDhP6dVw97oJnFevgKiLDaLHh3uUUg8JCQFvAwh oeQ+86Y7hyCBM3LRxxD+HgvsZ5WVx8UGGNio/iQ4MRMg5OYjHLefkR/jDWOfuM3knKPNzqGgerU9v tpUJdUVoyJjFDefELpsMe4FmWy7aRTWsspSiUynApEQxyaQwITRGhAP/Fez3KiptedU1nbVlwRrtD 99eDYqof6igigwffphng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sACoz-00000006yHu-3Eg0; Thu, 23 May 2024 18:05:45 +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 1sACov-00000006yGV-0Ndv for linux-arm-kernel@lists.infradead.org; Thu, 23 May 2024 18:05:42 +0000 Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44NHUkvL014089; Thu, 23 May 2024 20:05:28 +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= TIHHv5VnBC4M6BAYS8GF3x1yTwxcxgzzLyrVLp3iXdI=; b=gLmirwFxgIiLAdfe R91WJo4kgRSNfiM0C0uT10JTEamGW6JyrmCfSV0dCR0rG5GLPP9HNq39+1f7Dvlu HxbKtxrv0aGDrrA2gOROazR7BO9KsCPzmxz07pDXQfYsQW4bvvlGUyWSd0lM7lj+ Xy9rotRmvUyHvQXyWlxPeLh/9i7aoB/9xkatduI/HKkAv3zYDDNl5n27eMwIbztk qIRxAWRLLT/8WRFVZ8NPSY2OBFaeouec53SBLtvEvMjk8574QO3XXgWyJQ3RtLj3 Mb1FgoJCPVrFJ6/rGYJ4OuDuetDGInPxIWxNLDHIW1JA47fVcjb7PsAeG+MhZeSF TtFIhQ== 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 3yaa8t82hc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 May 2024 20:05:28 +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 22D9F40044; Thu, 23 May 2024 20:05:25 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 715C221BF62; Thu, 23 May 2024 20:04:39 +0200 (CEST) Received: from localhost (10.48.87.205) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 23 May 2024 20:04:39 +0200 From: Patrick Delaunay To: Alexandre TORGUE , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Pascal Paillet CC: Marek Vasut , Patrick Delaunay , , , , Subject: [PATCH v4 1/2] dt-bindings: regulator: st,stm32mp1-pwr-reg: add compatible for STM32MP13 Date: Thu, 23 May 2024 20:04:33 +0200 Message-ID: <20240523200353.v4.1.Ia0a99d90acb512aa020a6e7a8cca8cc1b71f1759@changeid> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240523180435.583257-1-patrick.delaunay@foss.st.com> References: <20240523180435.583257-1-patrick.delaunay@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.48.87.205] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-23_11,2024-05-23_01,2024-05-17_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240523_110541_447988_AF10A2FB X-CRM114-Status: GOOD ( 11.06 ) 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 new compatible "st,stm32mp13-pwr-reg" for STM32MP13 SoC family. Signed-off-by: Patrick Delaunay Acked-by: Conor Dooley --- Changes in v4: - use fallback as proposed by Marek on V3 for STM32MP13: compatible = "st,stm32mp13-pwr-reg", "st,stm32mp1,pwr-reg" Changes in v3: - Replace oneOf/const by enum; solve the V2 issues for dt_binding_check Changes in v2: - update for Rob review, only add compatible for STM32MP13 family .../devicetree/bindings/regulator/st,stm32mp1-pwr-reg.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/regulator/st,stm32mp1-pwr-reg.yaml b/Documentation/devicetree/bindings/regulator/st,stm32mp1-pwr-reg.yaml index c9586d277f41..3cb2dad18781 100644 --- a/Documentation/devicetree/bindings/regulator/st,stm32mp1-pwr-reg.yaml +++ b/Documentation/devicetree/bindings/regulator/st,stm32mp1-pwr-reg.yaml @@ -11,7 +11,12 @@ maintainers: properties: compatible: - const: st,stm32mp1,pwr-reg + oneOf: + - items: + - const: st,stm32mp1,pwr-reg + - items: + - const: st,stm32mp13-pwr-reg + - const: st,stm32mp1,pwr-reg reg: maxItems: 1 From patchwork Thu May 23 18:04:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Delaunay X-Patchwork-Id: 13672149 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 E32E5C25B75 for ; Thu, 23 May 2024 18:05:51 +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: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=FBgesMpG1WLh7CShQ0OamQpDfzCnzAtz5tpqLlsD6SI=; b=KdpDd6eW3hV2Xl 4mKD9uRtBy0+9SSBTVaXXOLR8gYIdmJWHW0zd8PmEJxdp3nIO+l81pvqxP58o/qUueiNfLJSgRA1A sF/TOLbYYC17x7Zp+ruSG01jtpaj6d+hCICAT1ll+GG7fWmF7ohU4ecwaAjZqpdErAV38cB/r1aCS 8ayD0Ur1Q50pnH6NzP+prO3ViJYNYVlZlYdl5ROg6EaZgapVDMyexH2ziqM2TMImpU1HyKVcpRjIW fkgpws8wZ6x3eGgnr+Q0JTYVSTrmxNd2yGo9ZKOKfcc96MY6dOTzLs8UwWDrKeyaC0R/YPt3oLUeQ MFlwVRg2r499ce6i0vpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sACot-00000006yGW-3h4S; Thu, 23 May 2024 18:05:39 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sACor-00000006yFm-0a0f for linux-arm-kernel@lists.infradead.org; Thu, 23 May 2024 18:05:39 +0000 Received: from pps.filterd (m0369457.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44NHUP3x007181; Thu, 23 May 2024 20:05:16 +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= 8EXwyohCc219RSXlxVFLCGJqw0He7msBPhrXvYeZ5H8=; b=NOfJKFwRNV2bDNOg O83z0bJ2q0K8fgIORwY3cKRIrw18a4zhnCsT74MuNvCHGZDqn6NdDVv1hwQZMYsE zPHG+XWAvBIG8VVrrH42VnuJM0nUAij2g+6RxSHP5bA4WnUwjEiEgla5wFlhmQ7y f1pEXhviSV1JmSQYgqV9jAMoOl1K9JB0dtLBkKYCeokaiyepNzgV16afR1lqbfW2 UBKWJ3N/fkSaXO7RJItQ+Md2cJ67nuscdvuRjzebsGi4PBnlYyajyGGt4jXpJKMd fIr0b7VejlN84KcpbZ7tOq30pv9Jy1qKtZLdMvv6nyOF4xgbdYZJ1SHs38msEBxm RbJwnA== 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 3yaa8t02cq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 May 2024 20:05:16 +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 0324B4002D; Thu, 23 May 2024 20:05:09 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A9A32232FEE; Thu, 23 May 2024 20:04:40 +0200 (CEST) Received: from localhost (10.48.87.205) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 23 May 2024 20:04:40 +0200 From: Patrick Delaunay To: Alexandre TORGUE , Liam Girdwood , Mark Brown , Maxime Coquelin CC: Marek Vasut , Patrick Delaunay , , , Subject: [PATCH v4 2/2] regulator: stm32-pwr: add support of STM32MP13 Date: Thu, 23 May 2024 20:04:34 +0200 Message-ID: <20240523200353.v4.2.I04ec53442753147c35efad1307b6ec133f53b471@changeid> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240523180435.583257-1-patrick.delaunay@foss.st.com> References: <20240523180435.583257-1-patrick.delaunay@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.48.87.205] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-23_11,2024-05-23_01,2024-05-17_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240523_110537_552374_2EE8CF4E X-CRM114-Status: GOOD ( 12.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 Add support of the new compatible "st,stm32mp13-pwr-reg" for STM32MP13. Signed-off-by: Patrick Delaunay --- (no changes since v2) Changes in v2: - Add new compatible for STM32MP13 and change title after Rob remarks V1: "ARM: st: use a correct pwr compatible for stm32mp15" drivers/regulator/stm32-pwr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/stm32-pwr.c b/drivers/regulator/stm32-pwr.c index 85b0102fb9b1..b7aeef6e09e7 100644 --- a/drivers/regulator/stm32-pwr.c +++ b/drivers/regulator/stm32-pwr.c @@ -166,6 +166,7 @@ static int stm32_pwr_regulator_probe(struct platform_device *pdev) static const struct of_device_id __maybe_unused stm32_pwr_of_match[] = { { .compatible = "st,stm32mp1,pwr-reg", }, + { .compatible = "st,stm32mp13-pwr-reg", }, {}, }; MODULE_DEVICE_TABLE(of, stm32_pwr_of_match);