From patchwork Tue Sep 26 12:17:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 114251 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp3759376qgf; Tue, 26 Sep 2017 05:18:09 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCP0hRN4X8+fDBj5+xNJe5I8+JsLsuvEN/VeHfWOiWw/5CSsdiDuZ2fpbKm9bWCnVNy9HHZ X-Received: by 10.99.181.23 with SMTP id y23mr10774238pge.191.1506428289524; Tue, 26 Sep 2017 05:18:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506428289; cv=none; d=google.com; s=arc-20160816; b=aWdVFwin+9pHI9hEfzpKXWhIUepKuGkUCoxFtauX1c7eG7hqmoevabXhIX4LtkcRFT M/ORXm1CdSgUBCkd4efeww1Di4Imo/MFIrSrWaEhMjHEHfXwPlQC9wPsyQAk66Cp1Dyv JAt/1bi+rDoR9m1eSjZnzPJGEnQHJVDx/d0yEcN48z1ZwnsVk20aXtk/yvA+54ByILCD OvoKEiqlhnZyamixjEjB/sutn1XeIop2PdyiCTbsC+dTM+6JVRDs5LTP0JvYeTBB8Kj4 ozLbV/0UKdt+7Xq+Ei2R/KzhWAq3QWwZ++W5LpPlZlzuZqWeB/ier7BbeDTdFv7e8/+C QRcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=XXnGGCG8xS3+YsSkKO2/nQbKxOFA2zgjTmWnp6oDEpY=; b=EirO547vBIpI06Yp6XLI7cbuEvliG8uZOHnkTOuC6FdrTHcxHEUN3EdDABcRCzr0Bs 8r8Q7xlG/z7VKCMA/QZbvWc0X6OCZAp9Q9TI82d/b1sgsn9jDX8+cm9KThGPelNu4QJ9 P4DNkXaRlyxk6S0jinzhTNvTP9FX8RFsZfzTOr/dLhtJ1j0lUhhdJc50wdIOO+xM8GZB r08OfEXWcmroTkJ6cWVsa9h9wv2xxHMxRCGshEdpmgZBCAiHSYwo86J1ixrfYVezhflX ycc+zSP2QDHmeIC7+QvjuesnPw+OL91dUNHU3gno+nQ4U9e/2ysheGqkZaE57snIMVdU +6nA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 m1si5754980plk.561.2017.09.26.05.18.09; Tue, 26 Sep 2017 05:18:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966217AbdIZMSH (ORCPT + 6 others); Tue, 26 Sep 2017 08:18:07 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:52082 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965481AbdIZMSG (ORCPT ); Tue, 26 Sep 2017 08:18:06 -0400 Received: by mail.free-electrons.com (Postfix, from userid 110) id 3A93320912; Tue, 26 Sep 2017 14:18:04 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id DA5412079E; Tue, 26 Sep 2017 14:17:53 +0200 (CEST) From: Quentin Schulz To: linus.walleij@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, wens@csie.org, linux@armlinux.org.uk, maxime.ripard@free-electrons.com, lee.jones@linaro.org Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, thomas.petazzoni@free-electrons.com, Quentin Schulz Subject: [PATCH v2 00/10] add pinmuxing support for pins in AXP209 and AXP813 PMICs Date: Tue, 26 Sep 2017 14:17:10 +0200 Message-Id: X-Mailer: git-send-email 2.11.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The AXP209 and AXP813 PMICs have several pins (respectively 3 and 2) that can be used either as GPIOs or for other purposes (ADC or LDO here). We already have a GPIO driver for the GPIO use of those pins on the AXP209. Let's "upgrade" this driver to support all the functions these pins can have. Then we add support to this driver for the AXP813 which is slighlty different (basically a different offset in a register and one less pin). This is a v2 to a first version that was sent in November 2016. v2: - add support for AXP813 pins, - split into more patches so it is easier to follow the modifications, - reorder of some patches, - register all pins within the same range instead of a range per pin, Thanks, Quentin Maxime Ripard (1): ARM: dts: add dtsi for AXP813 PMIC Quentin Schulz (9): pinctrl: move gpio-axp209 to pinctrl pinctrl: axp209: add pinctrl features pinctrl: axp209: use drv_data of pinctrl_pin_desc to store pin reg pinctrl: axp209: rename everything from gpio to pctl pinctrl: axp209: add programmable gpio_status_offset pinctrl: axp209: add support for AXP813 GPIOs mfd: axp20x: add pinctrl cell for AXP813 ARM: dts: sun8i: a711: include axp813 dtsi ARM: dts: sun8i: bananapi-m3: include axp813 dtsi Documentation/devicetree/bindings/gpio/gpio-axp209.txt | 30 +- Documentation/devicetree/bindings/pinctrl/pinctrl-axp209.txt | 67 +- arch/arm/boot/dts/axp813.dtsi | 58 +- arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 4 +- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 2 +- drivers/gpio/Kconfig | 6 +- drivers/gpio/Makefile | 1 +- drivers/gpio/gpio-axp209.c | 188 +-- drivers/mfd/axp20x.c | 3 +- drivers/pinctrl/Kconfig | 6 +- drivers/pinctrl/Makefile | 1 +- drivers/pinctrl/pinctrl-axp209.c | 610 +++++++- 12 files changed, 750 insertions(+), 226 deletions(-) delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-axp209.txt create mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-axp209.txt create mode 100644 arch/arm/boot/dts/axp813.dtsi delete mode 100644 drivers/gpio/gpio-axp209.c create mode 100644 drivers/pinctrl/pinctrl-axp209.c base-commit: 73527316e3fdde8a210b8ab66c1bf48538cf6b09 -- git-series 0.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html