Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp964821ybp; Fri, 11 Oct 2019 07:07:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwp1fx8dyCGSKonsNGnPatIK48D5q2O7FzJkfwQC6PEBk4Yiw4E6nk8BXGmNEw/op2gSljH X-Received: by 2002:a7b:c849:: with SMTP id c9mr3342896wml.70.1570802861494; Fri, 11 Oct 2019 07:07:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570802861; cv=none; d=google.com; s=arc-20160816; b=gjghKptlHK0MnjFkPvZy4mcOk79nyvnKMFMSPcXv5hE0mxgeAcNGogGqwJsjQStlLz UsJdfnQs/lgauJsZoBn4KITOZF+E67EBXshA87BixkAuq4ArTUKK2V8Yp0YkJlw1pAW3 zM7U6KFG1EzijRR1N5KpQJyZS/KX1w6ZVUWrOPcTNA/CmMn80JM0eiikGTbbrw6WaPCr WQ/xZ0XspULGvne26esK8TCqLt5WtLaRUzE49UZCsM02RSGJXT44odb9v/SjqL4ZMOZm PWsCM99PtTwiT2I8IBoAahyzMibYvS73MeE5FIyPYw9n1tG9E9GRRY2GuE6ffS0LGBB9 Du7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=iXQdHQC1Vzt4u1oBwlG3Nk7u0ghc+s1kyGaXxrAG8kI=; b=OVkob3VA4ZU6asBtQ/Vj6xViPd57DwQX51vSh8dO/fI+C9rG8IWBLH6bUjfe+Z9616 Sr1l2fJB37wBmB7mVUkf/JaH5ZPHRZDpYuhGPSt9XP0iyyCft1JiIig6yUWi4tbTkzx8 K7GWImzmKF/u6K7Qd0ov/uxtFOY/6fr4eEnZ/AMnZxVwToKpqeP8UAdIrTfBKSUm2iUI LZx3OI/QhXyIlwBpgvXAQXKi8uagscOhTgXgp58ewnFxeyJE+tA4KKBNIEb21YJ+oqqf lgxi4jS1LlPY5FJrO3r9NITXb2h24xYgJBT/UYRCQatQiMuB5cnpmUgexbv7bCPB2Q0I 7O/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=zvbvcJGD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h91si6361252edd.270.2019.10.11.07.07.17; Fri, 11 Oct 2019 07:07:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=zvbvcJGD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728390AbfJKOFW (ORCPT + 99 others); Fri, 11 Oct 2019 10:05:22 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:56772 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728153AbfJKOFT (ORCPT ); Fri, 11 Oct 2019 10:05:19 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9BE15JT032062; Fri, 11 Oct 2019 16:05:05 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=iXQdHQC1Vzt4u1oBwlG3Nk7u0ghc+s1kyGaXxrAG8kI=; b=zvbvcJGDYCzbZNWkU5v9278dHQojZGQMtotVS3gFjzv9MydIg/xowaXQ5VnwMC+CR3ZT ocR7Ao3SLoO7vibbRMrr+tbWlsU8LWNX2d6u867UaywxFPtCgUHoSq8ipSHkNIjW7I3W hjU/R8KG3TAY+9KDEgJqA6GHq1gG7eL9sy82NJzaXdrlU/CeM6fDF5SjVEJpEoIAs67B 2doleLmIzsWCbIUaG/bkudDRqn5Ol4LqB9ZhbRzsde5iUU6QIFhckwm3cjP2HFc3bDxm gyM3a5YducLshwrYnPM+D8s2r6yb8rq6TkztvGSnrgZ6AsGYfv+ZQ9qqiNS2keSTOU1m oA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2vej2ptnu0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Oct 2019 16:05:05 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 88A1F10002A; Fri, 11 Oct 2019 16:05:04 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag6node2.st.com [10.75.127.17]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 774842A6AFE; Fri, 11 Oct 2019 16:05:04 +0200 (CEST) Received: from localhost (10.75.127.51) by SFHDAG6NODE2.st.com (10.75.127.17) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 11 Oct 2019 16:05:03 +0200 From: Pascal Paillet To: , , , , , , , CC: Subject: [PATCH 1/4] ARM: dts: stm32: add PWR regulators support on stm32mp157 Date: Fri, 11 Oct 2019 16:04:42 +0200 Message-ID: <20191011140445.32288-2-p.paillet@st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191011140445.32288-1-p.paillet@st.com> References: <20191011140445.32288-1-p.paillet@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG5NODE2.st.com (10.75.127.14) To SFHDAG6NODE2.st.com (10.75.127.17) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-11_08:2019-10-10,2019-10-11 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds support of STM32 PWR regulators on stm32mp157c. This replace dummy fixed regulators on stm32mp157c-ed1 and stm32mp157c-dk2. Signed-off-by: Pascal Paillet --- arch/arm/boot/dts/stm32mp157a-avenger96.dts | 5 +++++ arch/arm/boot/dts/stm32mp157a-dk1.dts | 5 +++++ arch/arm/boot/dts/stm32mp157c-dk2.dts | 8 ------- arch/arm/boot/dts/stm32mp157c-ed1.dts | 21 +++++-------------- arch/arm/boot/dts/stm32mp157c.dtsi | 23 +++++++++++++++++++++ 5 files changed, 38 insertions(+), 24 deletions(-) diff --git a/arch/arm/boot/dts/stm32mp157a-avenger96.dts b/arch/arm/boot/dts/stm32mp157a-avenger96.dts index 2e4742c53d04..5f35b0146017 100644 --- a/arch/arm/boot/dts/stm32mp157a-avenger96.dts +++ b/arch/arm/boot/dts/stm32mp157a-avenger96.dts @@ -282,6 +282,11 @@ status = "okay"; }; +&pwr_regulators { + vdd-supply = <&vdd>; + vdd_3v3_usbfs-supply = <&vdd_usb>; +}; + &rng1 { status = "okay"; }; diff --git a/arch/arm/boot/dts/stm32mp157a-dk1.dts b/arch/arm/boot/dts/stm32mp157a-dk1.dts index 5ad4cef9e971..26fb7c77092c 100644 --- a/arch/arm/boot/dts/stm32mp157a-dk1.dts +++ b/arch/arm/boot/dts/stm32mp157a-dk1.dts @@ -406,6 +406,11 @@ status = "okay"; }; +&pwr_regulators { + vdd-supply = <&vdd>; + vdd_3v3_usbfs-supply = <&vdd_usb>; +}; + &rng1 { status = "okay"; }; diff --git a/arch/arm/boot/dts/stm32mp157c-dk2.dts b/arch/arm/boot/dts/stm32mp157c-dk2.dts index d44a7c6c2e20..d26adcbeba33 100644 --- a/arch/arm/boot/dts/stm32mp157c-dk2.dts +++ b/arch/arm/boot/dts/stm32mp157c-dk2.dts @@ -11,14 +11,6 @@ / { model = "STMicroelectronics STM32MP157C-DK2 Discovery Board"; compatible = "st,stm32mp157c-dk2", "st,stm32mp157"; - - reg18: reg18 { - compatible = "regulator-fixed"; - regulator-name = "reg18"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - }; }; &dsi { diff --git a/arch/arm/boot/dts/stm32mp157c-ed1.dts b/arch/arm/boot/dts/stm32mp157c-ed1.dts index 1d426ea8bdaf..1dbcc580e43c 100644 --- a/arch/arm/boot/dts/stm32mp157c-ed1.dts +++ b/arch/arm/boot/dts/stm32mp157c-ed1.dts @@ -74,22 +74,6 @@ serial0 = &uart4; }; - reg11: reg11 { - compatible = "regulator-fixed"; - regulator-name = "reg11"; - regulator-min-microvolt = <1100000>; - regulator-max-microvolt = <1100000>; - regulator-always-on; - }; - - reg18: reg18 { - compatible = "regulator-fixed"; - regulator-name = "reg18"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-always-on; - }; - sd_switch: regulator-sd_switch { compatible = "regulator-gpio"; regulator-name = "sd_switch"; @@ -279,6 +263,11 @@ status = "okay"; }; +&pwr_regulators { + vdd-supply = <&vdd>; + vdd_3v3_usbfs-supply = <&vdd_usb>; +}; + &rng1 { status = "okay"; }; diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi index 9b11654a0a39..e0f3d4c62b4f 100644 --- a/arch/arm/boot/dts/stm32mp157c.dtsi +++ b/arch/arm/boot/dts/stm32mp157c.dtsi @@ -1079,6 +1079,29 @@ #reset-cells = <1>; }; + pwr_regulators: pwr@50001000 { + compatible = "st,stm32mp1,pwr-reg"; + reg = <0x50001000 0x10>; + + reg11: reg11 { + regulator-name = "reg11"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + }; + + reg18: reg18 { + regulator-name = "reg18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + usb33: usb33 { + regulator-name = "usb33"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + }; + exti: interrupt-controller@5000d000 { compatible = "st,stm32mp1-exti", "syscon"; interrupt-controller; -- 2.17.1