Received: by 10.223.176.5 with SMTP id f5csp1970356wra; Thu, 8 Feb 2018 06:30:59 -0800 (PST) X-Google-Smtp-Source: AH8x224fltsEdfy9Msb/4cKGwj/R1tp2zHNbl050stE5ytYZ44NNzwXnJFOKsJaCZf+80tsMx5n0 X-Received: by 10.101.67.2 with SMTP id j2mr679725pgq.159.1518100259865; Thu, 08 Feb 2018 06:30:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518100259; cv=none; d=google.com; s=arc-20160816; b=pA1K4yqW/pX+4KYOHLqUT5A8YpZn8mXzCrBTIvfv6Y9XkUeRMee8wbfe4uAsAJe4T7 mZ1XR2GwRcTAcHxMphdMWl5ypd1v7HQtC6hwtfjXBzELG7adeC1+/X/ebCi4Ibjbj0k3 eSFudKUuq/TbyWwlyHD8adbEqWTLQCkzc4ZEyJaP0rLKrJZHlD5psKo8zDJWRiV7k9YH 8X+TL2b59e1hT+zvUM2oYlcUiAZswZrFdTBw5xOIqOY1QFMb8AxXjAIQQ3LwE9C56vix GnsQ9H8JDXSzE/n4yBlahx/O+g0+qa72/xXw0q21N+wExn+WQei8BZCF7CT1aVJl0FBX vQsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=29C+SCS2yUntWdH78SkOm2ulBxqP8EOLNDzG86XzZWk=; b=dXjMKgcVzjYpIg1vwXdygs5dINIVW6Ykq+sBRc39eR5fxDHzlPx/TophhaWmAR5D+u dg0xjvqXBUeaxr3Y2Ggsj4/W9sCWyGBGv1E9TeO0lToKpDAmTTozdpAMVSTAwxmKPFU7 D8kTA9DDQa0FJKHSzfrg0OuUZPhBLeCOqLAlmuGnjkTCicgfgPIlVCiDXGO5Badh2FXZ QeRt29L/7wbc9/wAqlRpuC3VhnTldltuJX8a837nqU5D75U4syBjTn/9RQFgsK2fazVI lDuTNMbaiOic2ZPS7J7nUWFx54vXYj0bhVxQbKn4s7W/5i3IeB4r2ORwzz4w+hn/1D2+ fs9A== 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 b89si63698pfk.163.2018.02.08.06.30.45; Thu, 08 Feb 2018 06:30:59 -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 S1752394AbeBHO3W (ORCPT + 99 others); Thu, 8 Feb 2018 09:29:22 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:63612 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751756AbeBHO2f (ORCPT ); Thu, 8 Feb 2018 09:28:35 -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 w18ENqNe018948; Thu, 8 Feb 2018 15:27:54 +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 2fxmgpsfxx-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 08 Feb 2018 15:27:54 +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 00BC543; Thu, 8 Feb 2018 14:27:52 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas21.st.com [10.75.90.44]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A08C5A480; Thu, 8 Feb 2018 14:27:52 +0000 (GMT) Received: from SAFEX1HUBCAS22.st.com (10.75.90.92) by SAFEX1HUBCAS21.st.com (10.75.90.44) with Microsoft SMTP Server (TLS) id 14.3.352.0; Thu, 8 Feb 2018 15:27:52 +0100 Received: from localhost (10.201.20.5) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.352.0; Thu, 8 Feb 2018 15:27:52 +0100 From: Amelie Delaunay To: Lee Jones , Linus Walleij , Rob Herring , Mark Rutland , Russell King , "Alexandre Torgue" , Maxime Coquelin CC: , , , , "Amelie Delaunay" Subject: [PATCH 0/6] Introduce STMicroelectronics MultiFunction eXpander Date: Thu, 8 Feb 2018 15:27:31 +0100 Message-ID: <1518100057-23234-1-git-send-email-amelie.delaunay@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.20.5] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-08_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds support for STMicroelectronics MultiFunction eXpander (ST MFX), used on some STM32 discovery and evaluation boards. ST MFX is an STM32L152 slave controller whose firmware embeds the following features: - I/O expander (16 GPIOs + 8 extra if the other features are not enabled), - resistive touchscreen controller, - IDD measurement. Using an I2C bus, the main MCU can control the MFX. MFX internal/external events are sent to the main MCU by the MFX_IRQ_OUT_PIN. Amelie Delaunay (6): dt-bindings: mfd: Add ST Multi-Function eXpander driver mfd: Add ST Multi-Function eXpander core driver gpio: Add GPIO support for the ST Multi-Function eXpander ARM: dts: stm32: add MFX support on I2C1 on stm32746g-eval ARM: dts: stm32: add joystick support on stm32746g-eval ARM: configs: stm32: enable ST MFX and its GPIO expander feature Documentation/devicetree/bindings/mfd/st-mfx.txt | 51 ++ arch/arm/boot/dts/stm32746g-eval.dts | 48 ++ arch/arm/configs/stm32_defconfig | 2 + drivers/gpio/Kconfig | 10 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-st-mfx.c | 589 +++++++++++++++++++++++ drivers/mfd/Kconfig | 15 + drivers/mfd/Makefile | 1 + drivers/mfd/st-mfx.c | 526 ++++++++++++++++++++ include/dt-bindings/gpio/st-mfx-gpio.h | 24 + include/linux/mfd/st-mfx.h | 116 +++++ 11 files changed, 1383 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/st-mfx.txt create mode 100644 drivers/gpio/gpio-st-mfx.c create mode 100644 drivers/mfd/st-mfx.c create mode 100644 include/dt-bindings/gpio/st-mfx-gpio.h create mode 100644 include/linux/mfd/st-mfx.h -- 2.7.4