From patchwork Tue Nov 27 16:52:13 2018
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Pascal Paillet
X-Patchwork-Id: 10700863
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 ED1D4109C
for ;
Tue, 27 Nov 2018 16:53:47 +0000 (UTC)
Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1])
by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D8EA62BD24
for ;
Tue, 27 Nov 2018 16:53:47 +0000 (UTC)
Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486)
id D69F02BEDD; Tue, 27 Nov 2018 16:53:47 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI,
RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1
Received: from vger.kernel.org (vger.kernel.org [209.132.180.67])
by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 730DA2B95B
for ;
Tue, 27 Nov 2018 16:53:47 +0000 (UTC)
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
id S1731444AbeK1DvP convert rfc822-to-8bit (ORCPT
);
Tue, 27 Nov 2018 22:51:15 -0500
Received: from mx07-00178001.pphosted.com ([62.209.51.94]:1781 "EHLO
mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK)
by vger.kernel.org with ESMTP id S1729695AbeK1DvO (ORCPT
);
Tue, 27 Nov 2018 22:51:14 -0500
Received: from pps.filterd (m0046668.ppops.net [127.0.0.1])
by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id
wARGmpxI029046;
Tue, 27 Nov 2018 17:52:15 +0100
Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35])
by mx07-00178001.pphosted.com with ESMTP id 2nxw02hg0k-1
(version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT);
Tue, 27 Nov 2018 17:52:15 +0100
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 A4A2234A;
Tue, 27 Nov 2018 17:51:46 +0000 (GMT)
Received: from Webmail-eu.st.com (sfhdag6node2.st.com [10.75.127.17])
by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 5262D5340;
Tue, 27 Nov 2018 16:52:14 +0000 (GMT)
Received: from SFHDAG6NODE2.st.com (10.75.127.17) by SFHDAG6NODE2.st.com
(10.75.127.17) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 27 Nov
2018 17:52:14 +0100
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; Tue, 27 Nov 2018 17:52:14 +0100
From: Pascal PAILLET-LME
To: "dmitry.torokhov@gmail.com" ,
"robh+dt@kernel.org" ,
"mark.rutland@arm.com" ,
"lee.jones@linaro.org" ,
"lgirdwood@gmail.com" ,
"broonie@kernel.org" ,
"wim@linux-watchdog.org" ,
"linux@roeck-us.net" ,
"linux-input@vger.kernel.org" ,
"devicetree@vger.kernel.org" ,
"linux-kernel@vger.kernel.org" ,
"linux-watchdog@vger.kernel.org" ,
"benjamin.gaignard@linaro.org" ,
"eballetbo@gmail.com" ,
"axel.lin@ingics.com"
CC: Pascal PAILLET-LME
Subject: [PATCH v6 0/8] Introduce STPMIC1 PMIC Driver
Thread-Topic: [PATCH v6 0/8] Introduce STPMIC1 PMIC Driver
Thread-Index: AQHUhnGLExyRHRRo50C4W7tAyo18Ew==
Date: Tue, 27 Nov 2018 16:52:13 +0000
Message-ID: <1543337529-22301-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.49]
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,,
definitions=2018-11-27_14:,,
signatures=0
Sender: linux-input-owner@vger.kernel.org
Precedence: bulk
List-ID:
X-Mailing-List: linux-input@vger.kernel.org
X-Virus-Scanned: ClamAV using ClamSMTP
The goal of this patch-set is to propose a driver for the STPMIC1 PMIC from
STMicroelectronics.
The STPMIC1 regulators supply power to an application processor as well as
to external system peripherals such as DDR, Flash memories and system
devices. It also features onkey button input and an hardware watchdog.
The STPMIC1 is controlled via I2C.
Main driver is drivers/mfd/stpmic1 that handle I2C regmap configuration and
irqchip. stpmic1_regulator, stpmic1_onkey and stpmic1_wdt need stpmic1 mfd
as parent.
STPMIC1 MFD and regulator drivers maybe mandatory at boot time.
Pascal Paillet (9):
dt-bindings: mfd: document stpmic1
mfd: stpmic1: add stpmic1 driver
dt-bindings: regulator: document stpmic1 pmic regulators
regulator: stpmic1: add stpmic1 regulator driver
dt-bindings: input: document stpmic1 pmic onkey
input: stpmic1: add stpmic1 onkey driver
dt-bindings: watchdog: document stpmic1 pmic watchdog
watchdog: stpmic1: add stpmic1 watchdog driver
defc
.../devicetree/bindings/input/st,stpmic1-onkey.txt | 28 +
.../devicetree/bindings/mfd/st,stpmic1.txt | 61 ++
.../bindings/regulator/st,stpmic1-regulator.txt | 67 ++
.../bindings/watchdog/st,stpmic1-wdt.txt | 11 +
arch/arm/configs/pascal_defconfig | 680 +++++++++++++++++++++
drivers/input/misc/Kconfig | 11 +
drivers/input/misc/Makefile | 2 +
drivers/input/misc/stpmic1_onkey.c | 198 ++++++
drivers/mfd/Kconfig | 16 +
drivers/mfd/Makefile | 1 +
drivers/mfd/stpmic1.c | 213 +++++++
drivers/regulator/Kconfig | 12 +
drivers/regulator/Makefile | 1 +
drivers/regulator/stpmic1_regulator.c | 667 ++++++++++++++++++++
drivers/watchdog/Kconfig | 12 +
drivers/watchdog/Makefile | 1 +
drivers/watchdog/stpmic1_wdt.c | 139 +++++
include/dt-bindings/mfd/st,stpmic1.h | 50 ++
include/linux/mfd/stpmic1.h | 212 +++++++
19 files changed, 2382 insertions(+)
create mode 100644 Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt
create mode 100644 Documentation/devicetree/bindings/mfd/st,stpmic1.txt
create mode 100644 Documentation/devicetree/bindings/regulator/st,stpmic1-regulator.txt
create mode 100644 Documentation/devicetree/bindings/watchdog/st,stpmic1-wdt.txt
create mode 100644 arch/arm/configs/pascal_defconfig
create mode 100644 drivers/input/misc/stpmic1_onkey.c
create mode 100644 drivers/mfd/stpmic1.c
create mode 100644 drivers/regulator/stpmic1_regulator.c
create mode 100644 drivers/watchdog/stpmic1_wdt.c
create mode 100644 include/dt-bindings/mfd/st,stpmic1.h
create mode 100644 include/linux/mfd/stpmic1.h