Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932380AbcCIMSE (ORCPT ); Wed, 9 Mar 2016 07:18:04 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43054 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932301AbcCIMR6 (ORCPT ); Wed, 9 Mar 2016 07:17:58 -0500 Subject: Re: [PATCH 0/4] Add AXP209 GPIO driver To: Maxime Ripard , Linus Walleij , Alexandre Courbot , Lee Jones , Chen-Yu Tsai References: <1457520614-32239-1-git-send-email-maxime.ripard@free-electrons.com> Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com From: Hans de Goede Message-ID: <56E0146E.6050102@redhat.com> Date: Wed, 9 Mar 2016 13:17:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1457520614-32239-1-git-send-email-maxime.ripard@free-electrons.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1359 Lines: 33 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