From patchwork Mon Apr 15 09:17:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pascal Paillet X-Patchwork-Id: 10900383 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3FEFD14DB for ; Mon, 15 Apr 2019 09:17:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1658128520 for ; Mon, 15 Apr 2019 09:17:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 03C5F285FD; Mon, 15 Apr 2019 09:17:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4E29928520 for ; Mon, 15 Apr 2019 09:17:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=AHkLIFx5NhxEH9NGmAEJN5vfytbPOs6gbGtPiSf3+/w=; b=XzvGvhs8i3ejPh +bkdN88E9ZMkFvazAdA7eE9VnJ2u8Kf2U6T72pgJ0olS0x0vcc0SJ61i8NtXsqgtuIH+BoMFNQ3Xc XXjuif917XV7WtjG934dchUj1MfKGSd0R0iPXE1Z3Yxvcro+EQNAufagLEkLzxSrq7MxmrofxwzRX EvQMbuLHcCwn9ZpO2aTFT7V1yNZoX2Ack2tjiUwspj9gP7gAeZXz3foJN5gK2KuZtTnHiu5ZLZTW1 gcTlSINC9QZg9FDUX5Af5JcIzKfU6mFz6VfLxG3AhZB5PJ51ndy2yy+EN49xI+zdZA8C59s7szVLP zdF6FvlwxGxB5rukCyAQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hFxkL-0006zF-Ry; Mon, 15 Apr 2019 09:17:49 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hFxkJ-0006xs-1Y for linux-arm-kernel@lists.infradead.org; Mon, 15 Apr 2019 09:17:48 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3F9F8SD019506; Mon, 15 Apr 2019 11:17:39 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=STMicroelectronics; bh=WKcDVUt3eJxya8lvec0kpB+XZOCrE6KUNKvsxWE1Hxo=; b=CqKws8JxZPv4IZQ/c18aEPbYBi4WaucwEBk8at7l9u2kLGf1a5bIsEXpDVBJO8I9dewU n8Fk1Fjm0AGoTJ4SGxSpN+WGYap2fLkmF/pmoFJyeVo3rm21uALfCLqSF/UwN+Ai3q/O ZnMNSrwRniR9qjJD5kiodXbh3aWQdrTva9KFsv27Ja/dNqJ/V7You+8nwWkizLDlgFPw 4AI+GFg1JAWTw8LRZlIE1y3HLQ8LoNKgKGNOENxuRFQ+tJSwFnHmc7SPIxHwIx+2Exfe 3SA4YbMn1Yj+1XZt2U5JcDHFHEZ3fFnkWjaSwPT5HNNBXFdaCi4rXJduhLQgCcDFvbjQ ZQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2ru4w81xt1-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 15 Apr 2019 11:17:39 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id F188531; Mon, 15 Apr 2019 09:17:37 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag6node1.st.com [10.75.127.16]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9E797145B; Mon, 15 Apr 2019 09:17:37 +0000 (GMT) Received: from SFHDAG6NODE2.st.com (10.75.127.17) by SFHDAG6NODE1.st.com (10.75.127.16) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 15 Apr 2019 11:17:37 +0200 Received: from SFHDAG6NODE2.st.com ([fe80::a56f:c186:bab7:13d6]) by SFHDAG6NODE2.st.com ([fe80::a56f:c186:bab7:13d6%20]) with mapi id 15.00.1347.000; Mon, 15 Apr 2019 11:17:37 +0200 From: Pascal PAILLET-LME To: "lgirdwood@gmail.com" , "broonie@kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "mcoquelin.stm32@gmail.com" , Alexandre TORGUE , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" Subject: [PATCH v2 0/2] Add support for STM32MP1 power regulators Thread-Topic: [PATCH v2 0/2] Add support for STM32MP1 power regulators Thread-Index: AQHU82wRryk5xo81okmIoqW6eJ8QHw== Date: Mon, 15 Apr 2019 09:17:37 +0000 Message-ID: <1555319855-2982-1-git-send-email-p.paillet@st.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.45] MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-04-15_04:, , signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190415_021747_571586_DF86E311 X-CRM114-Status: GOOD ( 12.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pascal PAILLET-LME , "linux-stm32@st-md-mailman.stormreply.com" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The POWER block of the STM32MP1 integrates 3 fixed regulators with a ready status bit for each one. The goal of this patchset is to add support those regulators. Pascal Paillet (2): changes in v2: * add COMPILE_TEST switch * do not test ready in is_enabled() callback * remove of_regulator_match * change author dt-bindings: regulator: Add stm32mp1 pwr regulators regulator: Add support for stm32 power regulators .../bindings/regulator/st,stm32mp1-pwr-reg.txt | 43 +++++ drivers/regulator/Kconfig | 7 + drivers/regulator/Makefile | 1 + drivers/regulator/stm32-pwr.c | 190 +++++++++++++++++++++ 4 files changed, 241 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/st,stm32mp1-pwr-reg.txt create mode 100644 drivers/regulator/stm32-pwr.c