Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3789758imm; Mon, 8 Oct 2018 09:31:49 -0700 (PDT) X-Google-Smtp-Source: ACcGV62Zp3tUVMqZKvVu5Hv5G6fvKrfU3p+K9QeVlWKDqWM4P4kJw6MZsIUvK6Iix4cwu0UjOQZL X-Received: by 2002:a63:41c2:: with SMTP id o185-v6mr21738452pga.11.1539016309176; Mon, 08 Oct 2018 09:31:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539016309; cv=none; d=google.com; s=arc-20160816; b=cWwgWhYSw2HddC9ww3A6bC/ht4JUvxjtwem2FYNNGocDhWCDTs+PJJJV1b6IGA9HiV 3DV4ptBF/j+KRl0XHWzFkw8n2KymyaCAoArtp53Wuq57NR5wTsoDz/vU0vOgj4du/Ec3 cKjXhWVKW+4VFEQF6R+xXFDRuqohXzAkmIP6SWmb+rHomQvsoFm45K9Eh8AtDQfICfVM Mt+9A2LJoX3H1MPsGUx8ztSH0I+hzbTtc/ZQcM3GVTrAZH+qUcVqu2es5YLlx55Bsu1M /9epXBHe2nNI5aby6fQs7TDexTBnjCTC9CTESmuPt3Dtmp+xph4IJQZFJ96qjXx2sLPl mdlA== 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=fKb7e4ocWKgvvy4hGRjiXE2M7VwOjq1+iDT426OCA9g=; b=Y3VUHNjEd8psyExxv2k78o1IJEO6AnxVvPxkQCWKilEnNoDavvFS0LNHyquJAkHqPA ARgyH1xo2pYXCGCA8BX2PjRjofTw8iRV288ct0Hvv/O44aTlkd+3MbpzoGKu4l51t/ym MooiqE475k9UCpcrkdBgprvA1YNqpD+vL40vxvMmMlNdcdOeUIRZ2/UGDtPkHE8kl/GI s2B8CtS+Uv64JzyfrTEtpG6WPQjMNvWbs/jwiI31PkaWL/Jra1VE7HUQnl+5x1F8ITej GHPRiOZ9BCbXUBWljF13PcV2zYhaoarWciAUfAxbfdBm5XtwWm2O3+d99TElSfKDVX8u itIw== 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 z22-v6si17552594pgl.261.2018.10.08.09.31.33; Mon, 08 Oct 2018 09:31:49 -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; 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 S1727166AbeJHXm5 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 8 Oct 2018 19:42:57 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:45211 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726562AbeJHXmu (ORCPT ); Mon, 8 Oct 2018 19:42:50 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w98GJGNP029195; Mon, 8 Oct 2018 18:29:40 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2n01hek02u-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 08 Oct 2018 18:29:40 +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 E0F5D31; Mon, 8 Oct 2018 16:29:39 +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 8626557D1; Mon, 8 Oct 2018 16:29:39 +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; Mon, 8 Oct 2018 18:29:39 +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, 8 Oct 2018 18:29:39 +0200 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" CC: Pascal PAILLET-LME Subject: [PATCH v3 0/8] Introduce STPMIC1 PMIC Driver Thread-Topic: [PATCH v3 0/8] Introduce STPMIC1 PMIC Driver Thread-Index: AQHUXyQbFs2psrQsfEaxxKrOsVatjg== Date: Mon, 8 Oct 2018 16:29:39 +0000 Message-ID: <1539016176-4072-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] 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-10-08_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. changes in v3: * Rebase oo regul/for-next * Rename struct stpmic1_dev by struct stpmic1. pascal paillet (8): 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 .../devicetree/bindings/input/st,stpmic1-onkey.txt | 30 + .../devicetree/bindings/mfd/st,stpmic1.txt | 133 ++++ .../bindings/regulator/st,stpmic1-regulator.txt | 68 +++ .../bindings/watchdog/st,stpmic1-wdt.txt | 11 + drivers/input/misc/Kconfig | 11 + drivers/input/misc/Makefile | 2 + drivers/input/misc/stpmic1_onkey.c | 248 ++++++++ drivers/mfd/Kconfig | 13 + drivers/mfd/Makefile | 1 + drivers/mfd/stpmic1.c | 401 ++++++++++++ drivers/regulator/Kconfig | 12 + drivers/regulator/Makefile | 1 + drivers/regulator/stpmic1_regulator.c | 674 +++++++++++++++++++++ drivers/watchdog/Kconfig | 12 + drivers/watchdog/Makefile | 1 + drivers/watchdog/stpmic1_wdt.c | 138 +++++ include/dt-bindings/mfd/st,stpmic1.h | 46 ++ include/linux/mfd/stpmic1.h | 212 +++++++ 18 files changed, 2014 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 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 -- 1.9.1