Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1354065

Re: [PATCH 0/4] Add AXP209 GPIO driver

From Hans de Goede <hdegoede@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH 0/4] Add AXP209 GPIO driver
Date 2016-03-09 13:20 +0100
Message-ID <raLfQ-7Ms-19@gated-at.bofh.it> (permalink)
References <raKa6-735-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

On 09-03-16 11:50, Maxime Ripard wrote:
> Hi,
>
> The axp209 PMIC used in combination to some Allwinner SoCs has a bunch
> of GPIOs accessible. Some boards use these to control their backlight
> or a few LEDs.

Thanks for working on this, but IMHO this cannot go upstream like this,
the gpio pins on the axp pmics need a pinctrl driver, not a gpio
driver. I.E. on the axp209 gpio0 and gpio1 can also be used to output
an additional low-noise ldo (so as a regulator), or as an adc input.

I've been working on gsl1680 touchscreen support lately and on at least
a few a23 tablets, the low-noise ldo is used as AVCC for the touchscreen
controller. Now these use an axp223 pmic, but nothing is stopping
someone from doing something similar with an axp209 and I think it
would be best to support this from day one, rather then hope we can
retro-fit this later without breaking dts.

> There's supposed to be 4 of them, but the fourth one has a different
> configuration register scheme, and I couldn't find any board that was
> using this GPIO. It will be probably be supported eventually, but
> until then, we support only the first 3 GPIOs.

He he, this matches what I've done in u-boot, the 4th gpio indeed
is somewhat funky (and the docs are not quite clear on how it works
exactly IIRC), leaving it out for now indeed seems for the best.

Regards,

Hans

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] Add AXP209 GPIO driver Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-03-09 12:10 +0100
  Re: [PATCH 0/4] Add AXP209 GPIO driver Hans de Goede <hdegoede@redhat.com> - 2016-03-09 13:20 +0100
    Re: [PATCH 0/4] Add AXP209 GPIO driver Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-03-09 16:30 +0100
      Re: [linux-sunxi] Re: [PATCH 0/4] Add AXP209 GPIO driver Hans de Goede <hdegoede@redhat.com> - 2016-03-09 16:50 +0100
        Re: [linux-sunxi] Re: [PATCH 0/4] Add AXP209 GPIO driver Linus Walleij <linus.walleij@linaro.org> - 2016-03-16 11:20 +0100
          Re: [linux-sunxi] Re: [PATCH 0/4] Add AXP209 GPIO driver Hans de Goede <hdegoede@redhat.com> - 2016-03-16 11:40 +0100

csiph-web