Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2153486imu; Fri, 14 Dec 2018 06:37:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/UjFfLCZDN4i0tWeVKStj555fSSxMvcTaX9lc5+NWr8HCggVV90KZVStWjvSXT148tQFcYV X-Received: by 2002:a63:e545:: with SMTP id z5mr2924629pgj.195.1544798270290; Fri, 14 Dec 2018 06:37:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544798270; cv=none; d=google.com; s=arc-20160816; b=fOr/riJEZwkW44PhkxrrQaf4yvDQG4MC48rwAClXybW0Fa32HECRQ74QXwKLTJbmCX Xi7CCxvoMmiJFWSC/QsBq8Cvrg0Z2ocMfL2HlerUaiWTxR1r7DSzI2zFR0BYWEQXyBDv Yz6hs8aXxZ6I8FpdWLLDlcO50N1DDm6UReJ23ExplbYjS508MyUWQzWEfwRp2Q5MsrcD TdiymLy9OQc2rJoZDTr/7N9Vv6Vw7sdg+5ZHsNfueHlJQFLodydeFSOn1tef2Uwsxet5 otLhbQOvsL+JuiUjdYQQ4q1xBcJE6Iw45Qus/evNr5qmiGbcR8TL9PLbGiFuswr/+zFL yfiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=5EFth8R5sBKZ5rmciHZEWKwmprYZ1CUXExOGazzu93M=; b=WnQhdw6UPWk8y85QoEtdVIzwaHuR2AESHuOqsmGDa0nL0XeI2qQy9NaNomKpOb8l+f oMgT/2Re0GvwB6NE3fJM0VSVYmo2lfupR+N+xcbgZilLnhc0jl4WSa9yhbqzWED24Cxm ynYkLxevOQef+v0vim+1uKhumdm2fumNiMa0Vb/74r1V0FHwHTJh8liDjCf9qC0FQTfA fPZ6IhaYyPQ/7zxeMpBl7blmbotCkBKWrsErUfxzQaugrwgci0Tm+T4hmMupHBqjAYfD nukfM7PFsfK2BccSrdElApXHFrKh/qGBAanxCbh8hiSaVsIRtQ5EXJxIZIQEwZiEyQNC GL0Q== ARC-Authentication-Results: i=1; mx.google.com; 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 x191si4300749pfd.220.2018.12.14.06.37.26; Fri, 14 Dec 2018 06:37:50 -0800 (PST) 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; 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 S1730197AbeLNOen convert rfc822-to-8bit (ORCPT + 99 others); Fri, 14 Dec 2018 09:34:43 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:42174 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729731AbeLNOen (ORCPT ); Fri, 14 Dec 2018 09:34:43 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id wBEEVJek030825; Fri, 14 Dec 2018 15:34:22 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2p85qkm06b-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 14 Dec 2018 15:34:22 +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 9EB9331; Fri, 14 Dec 2018 14:34:21 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8003752EC; Fri, 14 Dec 2018 14:34:21 +0000 (GMT) Received: from SFHDAG6NODE2.st.com (10.75.127.17) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 14 Dec 2018 15:34:21 +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; Fri, 14 Dec 2018 15:34:21 +0100 From: Pascal PAILLET-LME To: "broonie@kernel.org" , "lgirdwood@gmail.com" CC: Alexandre TORGUE , "mcoquelin.stm32@gmail.com" , Pascal PAILLET-LME , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH v8 0/6] Introduce STPMIC1 PMIC Driver Thread-Topic: [PATCH v8 0/6] Introduce STPMIC1 PMIC Driver Thread-Index: AQHUk7oZLTLjPB4M6kim7T/m8A4m2A== Date: Fri, 14 Dec 2018 14:34:20 +0000 Message-ID: <1544798057-1499-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.46] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-12-14_07:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 (6): dt-bindings: mfd: document stpmic1 mfd: stpmic1: add stpmic1 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 .../devicetree/bindings/input/st,stpmic1-onkey.txt | 28 +++ .../devicetree/bindings/mfd/st,stpmic1.txt | 61 ++++++ .../bindings/watchdog/st,stpmic1-wdt.txt | 11 ++ 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/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 ++++++++++++++++++++ 14 files changed, 955 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/watchdog/st,stpmic1-wdt.txt create mode 100644 drivers/input/misc/stpmic1_onkey.c create mode 100644 drivers/mfd/stpmic1.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 -- 1.9.1