Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938317AbcKWNc3 (ORCPT ); Wed, 23 Nov 2016 08:32:29 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:33585 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935616AbcKWNcW (ORCPT ); Wed, 23 Nov 2016 08:32:22 -0500 From: Quentin Schulz To: linus.walleij@linaro.org, gnurou@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, wens@csie.org Cc: Quentin Schulz , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@free-electrons.com Subject: [PATCH 0/2] add support for AXP209 GPIOs functions Date: Wed, 23 Nov 2016 14:27:47 +0100 Message-Id: <20161123132749.11666-1-quentin.schulz@free-electrons.com> X-Mailer: git-send-email 2.9.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 942 Lines: 26 The AXP209 PMIC has three GPIOs. Two of them can be muxed in other modes (namely adc or regulator)[1] which cannot be used while the pin is in one of GPIO modes. This adds the possibility to use all functions of the GPIOs present in the AXP209 PMIC thanks to the pinctrl subsystem. An upcoming ADC driver for the AXP209 PMIC will make use of this pinctrl to read ADC values of GPIO0 and GPIO1. At the moment, no driver is pinctrling these GPIOs. This patch also corrects the register used to read GPIO input status. [1] see registers 90H, 92H and 93H at http://dl.linux-sunxi.org/AXP/AXP209_Datasheet_v1.0en.pdf Quentin Schulz (2): gpio: axp209: use correct register for GPIO input status gpio: axp209: add pinctrl support .../devicetree/bindings/gpio/gpio-axp209.txt | 28 +- drivers/gpio/gpio-axp209.c | 557 ++++++++++++++++++--- 2 files changed, 504 insertions(+), 81 deletions(-) -- 2.9.3