Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1791554imm; Fri, 7 Sep 2018 06:17:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZONeVJXwbPbbFHPYpuWHcT0hjxkVR4o7GUumxoMo+Nu6HDXR7r8yzkm31IfY4ZtD+DyzNr X-Received: by 2002:a17:902:7798:: with SMTP id o24-v6mr7853550pll.93.1536326249635; Fri, 07 Sep 2018 06:17:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536326249; cv=none; d=google.com; s=arc-20160816; b=Fib+ev9HstlV6oqfuhX6fvIra/h/nCPLwDYHv9IlF6wD26uazpLO9V6DIOanDBJyOy prNvy0JShllYEGcQn8mPkyQw2dzGUimYxnJynwy2//+YPxdlATRF5oMeNfq0bGb1MKoT ug/iPN1iA3hMyCYLwyXQ9nKGy97c8hJMDJqhKmCmlPCGmCx4s3Rq13jhx5em93Vx3z8F ZzIDj0FyPw4ov2lWNlpEJA+30aR9z7tpOGQEh/h7g8m/AUh9rTY0VCU43kxnaZdkO2Bo 71KUjHvWQNGhXsZ6ZzDD7UXlspKUvNQlymj5/rvdexbBZmA3pA1Bkr6E6/luIOIp3tMu nXcg== 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=fv4BYJROBo4nQWCoHCqmFtzbBkertslb654WrlXG+uw=; b=iLYuVrZSFqAj1Y5Kj7XeuDkF/VCvLwAKjzRHRgflNvjm1GH25BzDjEn+M/trDg2R4i 7WL2rU46ROyjCOgNL4yrKgBkclxMatspudnS7gX034Md+lZTbDujSgrAbdRVLQGKaOrq Y8WBWZIChk0vRO8CrD2T6jOUPMraezLan3BOkz3hs92/JkeMHI2EuebonRgDUD7idoyW Xu492yrXfLMltXjbRm8QvtOv2FJEGgmxYIZeP6QyTWg//JH1KxZ8YtrKJ211q/oz/rj/ jH/5KrCLmc54le+zWzq1VfbgV8qiXcCy3NKMMvq0tVecG1vUj3qLFSKcLh0R7OEog3p0 6nfA== 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 e9-v6si8083725pfg.87.2018.09.07.06.17.14; Fri, 07 Sep 2018 06:17:29 -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 S1729637AbeIGRlL convert rfc822-to-8bit (ORCPT + 99 others); Fri, 7 Sep 2018 13:41:11 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:41222 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729622AbeIGRlK (ORCPT ); Fri, 7 Sep 2018 13:41:10 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w87CxC3i028435; Fri, 7 Sep 2018 14:59:44 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2mbpnv9489-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 07 Sep 2018 14:59:44 +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 485CD34; Fri, 7 Sep 2018 12:59:43 +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 0A4A12D4A; Fri, 7 Sep 2018 12:59:43 +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; Fri, 7 Sep 2018 14:59:43 +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; Fri, 7 Sep 2018 14:59:42 +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 V2 0/8] Introduce STPMIC1 PMIC Driver Thread-Topic: [PATCH V2 0/8] Introduce STPMIC1 PMIC Driver Thread-Index: AQHURqqk/aqmEKXKkEqOsFz8ZlytJQ== Date: Fri, 7 Sep 2018 12:59:42 +0000 Message-ID: <1536325173-16617-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.48] 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-09-07_07:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: pascal paillet 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 v2: * the hardware component has been renamed from stpmu1 to stpmic1 ! * change headers * handles remarks from the reviews. 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 | 31 + .../devicetree/bindings/mfd/st,stpmic1.txt | 137 ++++ .../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 | 257 ++++++++ drivers/mfd/Kconfig | 13 + drivers/mfd/Makefile | 1 + drivers/mfd/stpmic1.c | 457 ++++++++++++++ drivers/regulator/Kconfig | 12 + drivers/regulator/Makefile | 1 + drivers/regulator/stpmic1_regulator.c | 692 +++++++++++++++++++++ drivers/watchdog/Kconfig | 12 + drivers/watchdog/Makefile | 1 + drivers/watchdog/stpmic1_wdt.c | 130 ++++ include/dt-bindings/mfd/st,stpmic1.h | 46 ++ include/linux/mfd/stpmic1.h | 220 +++++++ 18 files changed, 2102 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