From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756652AbcHWIBw (ORCPT ); Tue, 23 Aug 2016 04:01:52 -0400 Received: from mail-wm0-f50.google.com ([74.125.82.50]:38595 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752760AbcHWIBu (ORCPT ); Tue, 23 Aug 2016 04:01:50 -0400 Subject: Re: [RESEND PATCH 1/2] pinctrl: meson-gxbb: add pins for PWM To: linus.walleij@linaro.org, khilman@baylibre.com, carlo@caione.org References: <1471876860-5620-1-git-send-email-narmstrong@baylibre.com> <1471876860-5620-2-git-send-email-narmstrong@baylibre.com> Cc: linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org From: Neil Armstrong Organization: Baylibre Message-ID: <45c22d0c-9cfd-b0a0-4499-6b306dfdcdd5@baylibre.com> Date: Tue, 23 Aug 2016 10:00:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <1471876860-5620-2-git-send-email-narmstrong@baylibre.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/22/2016 04:40 PM, Neil Armstrong wrote: > Add support for PWM pins, for EE and AO domains. > > Signed-off-by: Neil Armstrong > --- > drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 78 ++++++++++++++++++++++++++++++ > 1 file changed, 78 insertions(+) > > diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c > index 7eeb053..1c6ffb3 100644 > --- a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c > +++ b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c [...] > static const char * const gpio_aobus_groups[] = { > "GPIOAO_0", "GPIOAO_1", "GPIOAO_2", "GPIOAO_3", "GPIOAO_4", > "GPIOAO_5", "GPIOAO_6", "GPIOAO_7", "GPIOAO_8", "GPIOAO_9", > @@ -526,6 +578,21 @@ static const char * const i2c_slave_ao_groups[] = { > > static const char * const remote_input_ao_groups[] = { > "remote_input_ao", > + Linus, Well, I missed my rebase, I'll post a v2 to fix that. Neil > +static const char * const pwm_ao_a_3_groups[] = { > + "pwm_ao_a_3", > +}; > + > +static const char * const pwm_ao_a_6_groups[] = { > + "pwm_ao_a_6", > +}; > + > +static const char * const pwm_ao_a_12_groups[] = { > + "pwm_ao_a_12", > +}; > + > +static const char * const pwm_ao_b_groups[] = { > + "pwm_ao_b", > }; > > static struct meson_pmx_func meson_gxbb_periphs_functions[] = { > @@ -536,6 +603,13 @@ static struct meson_pmx_func meson_gxbb_periphs_functions[] = { > FUNCTION(uart_b), > FUNCTION(uart_c), > FUNCTION(eth), > + FUNCTION(pwm_a_x), > + FUNCTION(pwm_a_y), > + FUNCTION(pwm_b), > + FUNCTION(pwm_d), > + FUNCTION(pwm_e), > + FUNCTION(pwm_f_x), > + FUNCTION(pwm_f_y), > }; > > static struct meson_pmx_func meson_gxbb_aobus_functions[] = { > @@ -545,6 +619,10 @@ static struct meson_pmx_func meson_gxbb_aobus_functions[] = { > FUNCTION(i2c_ao), > FUNCTION(i2c_slave_ao), > FUNCTION(remote_input_ao), > + FUNCTION(pwm_ao_a_3), > + FUNCTION(pwm_ao_a_6), > + FUNCTION(pwm_ao_a_12), > + FUNCTION(pwm_ao_b), > }; > > static struct meson_bank meson_gxbb_periphs_banks[] = { >