Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp964356ybp; Fri, 11 Oct 2019 07:07:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSHnWFDar4NFBcZOOLaCUYxVGEVNt66/4aaxuCgx+7lUb9lqblXD1LUU/B0fLI2KN66uhe X-Received: by 2002:a17:906:1be1:: with SMTP id t1mr14271102ejg.73.1570802840620; Fri, 11 Oct 2019 07:07:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570802840; cv=none; d=google.com; s=arc-20160816; b=rgis0x63rUKG5k9MAUhQG8F9pzZAvDVyO6jkje5hscPSr6Vyy02uwigTUZQYFU3X7Y K4bPZ7O0R+R9W57CONC1F2jDajtJSJa63QmM6y1jKkhBRUci6pd2Cn8JUWGOo5ifGBOn DPOPdn5nNsLtip+PpdicfDKtm7gCPSlBuhVirY/jSuOIb6IlTQH5E9lyixO+vAPtMxlh PbNqo0JOIDoX3cTFuH21OE5CooobjnwDXk/rxEkM2Dq/BJvc33Ud1yEPTUtVBNSFziRn CAq2eWVSb8erOVrn6ixSRiea4xJXgSSLLt5QxR0FcmwwUdfxGSlXQriskGmov8H0Wi35 DyaA== 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=GAubOLCHTxV4HlaaqCYdi/t39i0lB2qx2jcypfaKscK1qFNGtQGvas4psy73t7g7AI MnEMaCLMJZdZE6v+R2xk60CZblgyu1DHArNlDCU/beho62mqiznHrMH0kD76nYJtVDAR rWYqLN34dwV80beyUzN/VG9nYgPk79n52a9zmMS01LR5ZBOf3kQ6fuMftsQbjHetLmeu EXfgmO39YyOYzi3vyTc1DWqyrur4iuCjZM8rbgOLvJuLIPD/3f8fjyoPA5zQJhiaO4Vj ya0HQwWFz6CQH/2zUg4CqbmKSyTGZvol/JjAXJOlWK/3yph5Ej75b6UHM4PRcyfia/rW 6AuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=HI0Kpiaz; 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 g5si5327629ejp.430.2019.10.11.07.06.57; Fri, 11 Oct 2019 07:07:20 -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=HI0Kpiaz; 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 S1728554AbfJKOFv (ORCPT + 99 others); Fri, 11 Oct 2019 10:05:51 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:56894 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728111AbfJKOFt (ORCPT ); Fri, 11 Oct 2019 10:05:49 -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 x9BE0xxA032015; Fri, 11 Oct 2019 16:05:39 +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=HI0KpiazPlN017QQYkGcLGamTHqLBa7xNYi36utUAwhus/rXvR2SkXvNuQ7zFcBoNFas B0p76kVctaKjemBCGqo9xtSm2W15VfdfDG5ykIraQmvYFqbRO7/uI7ABWlodMMN3jMbQ IUxTRj5yeiowoqUUJQKT+X3Mk7qjYrzrYiZ6s5fRFA54ETJ4s2Nojbnvs7zOvBwmNS0z NVGMUq4BBb+qbaPJ7wtUVVX4WDAyZu/rSOgccpd1Ukejd8iCF2lnnNVssGf90GMDaUjQ 3wEjHqowlqXhM4JOvCl/+2hqA1JpkfK2Wg4MzUwbl4m+ChwqO3LegMLBDQ62tYb4wh2G Rg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2vej2ptnww-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Oct 2019 16:05:38 +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 6752910002A; Fri, 11 Oct 2019 16:05:38 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag6node2.st.com [10.75.127.17]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 5CC562AB8AF; Fri, 11 Oct 2019 16:05:38 +0200 (CEST) Received: from localhost (10.75.127.50) by SFHDAG6NODE2.st.com (10.75.127.17) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 11 Oct 2019 16:05:37 +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:05:30 +0200 Message-ID: <20191011140533.32619-2-p.paillet@st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191011140533.32619-1-p.paillet@st.com> References: <20191011140533.32619-1-p.paillet@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG3NODE2.st.com (10.75.127.8) 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