All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 00/12] add pinmuxing support for pins in AXP209 and AXP813 PMICs
@ 2017-10-02 12:08 ` Quentin Schulz
  0 siblings, 0 replies; 109+ messages in thread
From: Quentin Schulz @ 2017-10-02 12:08 UTC (permalink / raw)
  To: linus.walleij-QSEj5FYQhm4dnm+yROfE0A,
	robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8,
	wens-jdAy2FN1RRM, linux-I+IVW8TIWO2tmTQ+vhA3Yw,
	maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8,
	lee.jones-QSEj5FYQhm4dnm+yROfE0A
  Cc: linux-gpio-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	thomas.petazzoni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8,
	linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Quentin Schulz

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).

I suggest patches 1 to 6 go through Linus's tree and 7 to 12 via Maxime or
Chen-Yu's tree.

This version of the patchset is based on Chen-Yu's patchset for AXP813/818
regulators[1].

v3:
  - add defines for GPIO funcs,
  - use again get_regs function instead of drv_data (which was implemented in
  v2),
  - use of_device_id data for device specific data (gpio_status_offset and pins
  description),
  - change compatible from axp813-pctl to axp813-gpio,
  - use axp81x DT label instead of axp813 since AXP813 and AXP818 are similar,
  - add dtsi include for all boards embedding axp813/axp818,
  - drastically simplify structures,
  - rebase on Chen-Yu's patch series for regulators,
  - add GPIOs pinmuxing for LDO regulators,

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,

[1] https://www.spinics.net/lists/arm-kernel/msg608384.html

Thanks,
Quentin

Quentin Schulz (12):
  pinctrl: move gpio-axp209 to pinctrl
  pinctrl: axp209: add pinctrl features
  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 axp81x dtsi
  ARM: dts: sun8i: bananapi-m3: include axp81x dtsi
  ARM: dts: sun8i: h8homlet-v2: include axp81x dtsi
  ARM: dts: sun8i: cubietruck-plus: include axp81x dtsi
  ARM: dtsi: axp81x: add GPIO DT node
  ARM: dtsi: axp81x: set pinmux for GPIO0/1 when used as LDOs

 .../devicetree/bindings/gpio/gpio-axp209.txt       |  30 --
 .../devicetree/bindings/pinctrl/pinctrl-axp209.txt |  67 +++
 arch/arm/boot/dts/axp81x.dtsi                      |  20 +
 .../boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts  |   2 +
 arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts       |   2 +
 arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts   |   2 +
 arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts          |   4 +-
 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                   | 459 +++++++++++++++++++++
 14 files changed, 565 insertions(+), 226 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-axp209.txt
 create mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-axp209.txt
 delete mode 100644 drivers/gpio/gpio-axp209.c
 create mode 100644 drivers/pinctrl/pinctrl-axp209.c

-- 
2.11.0

^ permalink raw reply	[flat|nested] 109+ messages in thread

end of thread, other threads:[~2017-10-12  2:22 UTC | newest]

Thread overview: 109+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-02 12:08 [PATCH v3 00/12] add pinmuxing support for pins in AXP209 and AXP813 PMICs Quentin Schulz
2017-10-02 12:08 ` Quentin Schulz
2017-10-02 12:08 ` Quentin Schulz
     [not found] ` <20171002120854.5212-1-quentin.schulz-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-10-02 12:08   ` [PATCH v3 01/12] pinctrl: move gpio-axp209 to pinctrl Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
     [not found]     ` <20171002120854.5212-2-quentin.schulz-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-10-02 20:18       ` Maxime Ripard
2017-10-02 20:18         ` Maxime Ripard
2017-10-02 20:18         ` Maxime Ripard
2017-10-03  9:01         ` Chen-Yu Tsai
2017-10-03  9:01           ` Chen-Yu Tsai
2017-10-03  9:01           ` Chen-Yu Tsai
2017-10-02 12:08   ` [PATCH v3 02/12] pinctrl: axp209: add pinctrl features Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
     [not found]     ` <20171002120854.5212-3-quentin.schulz-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-10-02 20:37       ` Maxime Ripard
2017-10-02 20:37         ` Maxime Ripard
2017-10-02 20:37         ` Maxime Ripard
2017-10-10 18:15       ` Rob Herring
2017-10-10 18:15         ` Rob Herring
2017-10-10 18:15         ` Rob Herring
2017-10-02 12:08   ` [PATCH v3 03/12] pinctrl: axp209: rename everything from gpio to pctl Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
2017-10-02 12:08   ` [PATCH v3 04/12] pinctrl: axp209: add programmable gpio_status_offset Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
     [not found]     ` <20171002120854.5212-5-quentin.schulz-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-10-02 20:38       ` Maxime Ripard
2017-10-02 20:38         ` Maxime Ripard
2017-10-02 20:38         ` Maxime Ripard
2017-10-03  9:01         ` Chen-Yu Tsai
2017-10-03  9:01           ` Chen-Yu Tsai
2017-10-03  9:01           ` Chen-Yu Tsai
2017-10-02 12:08   ` [PATCH v3 05/12] pinctrl: axp209: add support for AXP813 GPIOs Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
     [not found]     ` <20171002120854.5212-6-quentin.schulz-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-10-02 20:38       ` Maxime Ripard
2017-10-02 20:38         ` Maxime Ripard
2017-10-02 20:38         ` Maxime Ripard
2017-10-10 18:33       ` Rob Herring
2017-10-10 18:33         ` Rob Herring
2017-10-10 18:33         ` Rob Herring
2017-10-02 12:08   ` [PATCH v3 06/12] mfd: axp20x: add pinctrl cell for AXP813 Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
     [not found]     ` <20171002120854.5212-7-quentin.schulz-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-10-02 20:39       ` Maxime Ripard
2017-10-02 20:39         ` Maxime Ripard
2017-10-02 20:39         ` Maxime Ripard
2017-10-02 12:08   ` [PATCH v3 07/12] ARM: dts: sun8i: a711: include axp81x dtsi Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
     [not found]     ` <20171002120854.5212-8-quentin.schulz-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-10-02 20:40       ` Maxime Ripard
2017-10-02 20:40         ` Maxime Ripard
2017-10-02 20:40         ` Maxime Ripard
2017-10-02 12:08   ` [PATCH v3 08/12] ARM: dts: sun8i: bananapi-m3: " Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
2017-10-02 12:08   ` [PATCH v3 09/12] ARM: dts: sun8i: h8homlet-v2: " Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
2017-10-02 12:08   ` [PATCH v3 10/12] ARM: dts: sun8i: cubietruck-plus: " Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
2017-10-02 12:08   ` [PATCH v3 11/12] ARM: dtsi: axp81x: add GPIO DT node Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
2017-10-02 12:08   ` [PATCH v3 12/12] ARM: dtsi: axp81x: set pinmux for GPIO0/1 when used as LDOs Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
2017-10-02 12:08     ` Quentin Schulz
2017-10-02 20:42     ` Maxime Ripard
2017-10-02 20:42       ` Maxime Ripard
2017-10-03  2:06       ` Chen-Yu Tsai
2017-10-03  2:06         ` Chen-Yu Tsai
2017-10-03  2:06         ` Chen-Yu Tsai
2017-10-03  9:18         ` Russell King - ARM Linux
2017-10-03  9:18           ` Russell King - ARM Linux
     [not found]           ` <20171003091837.GK20805-l+eeeJia6m9URfEZ8mYm6t73F7V6hmMc@public.gmane.org>
2017-10-03 14:43             ` Maxime Ripard
2017-10-03 14:43               ` Maxime Ripard
2017-10-03 14:43               ` Maxime Ripard
     [not found]     ` <20171002120854.5212-13-quentin.schulz-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-10-03  9:27       ` Linus Walleij
2017-10-03  9:27         ` Linus Walleij
2017-10-03  9:27         ` Linus Walleij
     [not found]         ` <CACRpkdZYcSuhvn0b0qa0k1PQHoyXjNyjoyhR2sPme_t1pF12Dg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-03 14:47           ` Maxime Ripard
2017-10-03 14:47             ` Maxime Ripard
2017-10-03 14:47             ` Maxime Ripard
2017-10-03 15:08             ` Chen-Yu Tsai
2017-10-03 15:08               ` Chen-Yu Tsai
2017-10-03 15:08               ` Chen-Yu Tsai
     [not found]               ` <CAGb2v64=XL34x7iGJcEmmVnmzkA5wmyZJd-g827bY=kdHcZOMA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-04  7:35                 ` Quentin Schulz
2017-10-04  7:35                   ` Quentin Schulz
2017-10-04  7:35                   ` Quentin Schulz
     [not found]                   ` <8be22e47-8071-be4c-0bd4-38fa51cbe3ff-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-10-10  3:09                     ` Chen-Yu Tsai
2017-10-10  3:09                       ` Chen-Yu Tsai
2017-10-10  3:09                       ` Chen-Yu Tsai
     [not found]                       ` <CAGb2v65-_MjUsfTHMoyzvczs_280p7NXEsStSaoR6wnvTCq5+A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-11 12:00                         ` Maxime Ripard
2017-10-11 12:00                           ` Maxime Ripard
2017-10-11 12:00                           ` Maxime Ripard
2017-10-11 19:09                           ` Linus Walleij
2017-10-11 19:09                             ` Linus Walleij
2017-10-11 19:09                             ` Linus Walleij
     [not found]                             ` <CACRpkdY0GWqjkbxm=OBfRsTmkQ7kc86Dw96XUT08azSbD57Xrw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-12  2:22                               ` Chen-Yu Tsai
2017-10-12  2:22                                 ` Chen-Yu Tsai
2017-10-12  2:22                                 ` Chen-Yu Tsai
2017-10-11  7:43                     ` Linus Walleij
2017-10-11  7:43                       ` Linus Walleij
2017-10-11  7:43                       ` Linus Walleij
2017-10-07 10:48 ` [PATCH v3 00/12] add pinmuxing support for pins in AXP209 and AXP813 PMICs Linus Walleij
2017-10-07 10:48   ` Linus Walleij
2017-10-07 10:48   ` Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.