From patchwork Sun Jan 22 21:05:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9531471 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ACCA860431 for ; Sun, 22 Jan 2017 21:08:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C2B727F81 for ; Sun, 22 Jan 2017 21:08:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F86127F8C; Sun, 22 Jan 2017 21:08:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 363B327F81 for ; Sun, 22 Jan 2017 21:08:13 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cVPMn-0005Dd-QJ; Sun, 22 Jan 2017 21:08:01 +0000 Received: from mail-wm0-f67.google.com ([74.125.82.67]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cVPLs-0004d6-Cr; Sun, 22 Jan 2017 21:07:06 +0000 Received: by mail-wm0-f67.google.com with SMTP id r126so21610771wmr.3; Sun, 22 Jan 2017 13:06:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nDdTRb9+2gSAAoo1MbNnxbrNJhc//Y5/lq9fFIqL4mY=; b=vCxPbnJDpoydmbtMN57nFrlRV+3MtYCEfx+v91NMy/3dzbu1msmebs9C4Eok7VRb1M k6YPAwkNL2YqVEWZ9c8V/PJaPpYOim2vi7WFCDCe92XMLsoXY5OaF6df6yXj1AozpTDX ymI3behcETS3+OJ7Mx/sBIX7bH2f6xl5r1g62pmkd1Hpuvj7XnWYEysoNw0PVTRTeTz2 gZ+iyF/t+gBnaY1pF7ZcrT818qN6GxnHmEg2/GizgLLZYZz88t/raCMQv9iLPmS2Jc46 7RCrVXN18vT+W+6WxxvVTAd0YujtB4y8TwPsEoZEVxbm/ts500j7i+kZPsA1TwKQuMLj WQng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nDdTRb9+2gSAAoo1MbNnxbrNJhc//Y5/lq9fFIqL4mY=; b=CEfSCxMUEbgQ74O9G+x6ShNbXbnhtsCPb4bdJiDy+H1uV2b5vXnzpzN0jDST3EVEih DY73ey2vDqWuAAXaRGSupt9uzFhey8xwMRpewjYoYyLj+vQ2i+uOYqB+tfHuqnI2tK2R aSbKs4LQOaZYARtOiU7FO2uxbCUtU5QEOED3oeNen2HeuuuaiPtCySUgtkqiYdSdFnpB qISXw73zB6SaOLueFo9M/2moZ69x32WYk9gMFZu3kgtA5Ci4LE95qMmnsyACbMT2KCpK icGV4oT1m89OeUzyD3+zpJMcLHuY4Gz1V4GjnMHuIO3KOidDa/IWDIKu+0zpyWk3KGwD Fx8g== X-Gm-Message-State: AIkVDXLzi2lg8cu6rCv7gUyDVSGjVzemR8WBsOptib4b9fo4i5KBOzghs2GL2ctXbBWGCA== X-Received: by 10.223.145.45 with SMTP id j42mr23808536wrj.141.1485119142905; Sun, 22 Jan 2017 13:05:42 -0800 (PST) Received: from blackbox.darklights.net (p200300DCD3E0200408A0F52CBA7B1138.dip0.t-ipconnect.de. [2003:dc:d3e0:2004:8a0:f52c:ba7b:1138]) by smtp.googlemail.com with ESMTPSA id t194sm27127481wmd.1.2017.01.22.13.05.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jan 2017 13:05:42 -0800 (PST) From: Martin Blumenstingl To: linux-gpio@vger.kernel.org, linux-amlogic@lists.infradead.org, linus.walleij@linaro.org, khilman@baylibre.com, carlo@caione.org Subject: [PATCH 2/3] pinctrl: meson: meson-gxl: add the pwm_ao_b pin Date: Sun, 22 Jan 2017 22:05:27 +0100 Message-Id: <20170122210528.892-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170122210528.892-1-martin.blumenstingl@googlemail.com> References: <20170122210528.892-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170122_130704_591869_6AC9B17D X-CRM114-Status: UNSURE ( 9.69 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, Martin Blumenstingl , catalin.marinas@arm.com, will.deacon@arm.com, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This adds support for the pwm_ao_b pin. Unfortunately the registers for the pwm_ao pins are not documented at all. The source for the pwm_ao_b pin from this patch is the Khadas VIM GPL kernel source, which sets bit 3 and unsets bits 4 and 31 to enable the PWM LEDs. Signed-off-by: Martin Blumenstingl Acked-by: Kevin Hilman --- drivers/pinctrl/meson/pinctrl-meson-gxl.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxl.c b/drivers/pinctrl/meson/pinctrl-meson-gxl.c index 25694f7094c7..6ff321a7366d 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxl.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxl.c @@ -222,6 +222,8 @@ static const unsigned int uart_rts_ao_b_pins[] = { PIN(GPIOAO_3, 0) }; static const unsigned int remote_input_ao_pins[] = {PIN(GPIOAO_7, 0) }; +static const unsigned int pwm_ao_b_pins[] = { PIN(GPIOAO_9, 0) }; + static struct meson_pmx_group meson_gxl_periphs_groups[] = { GPIO_GROUP(GPIOZ_0, EE_OFF), GPIO_GROUP(GPIOZ_1, EE_OFF), @@ -418,6 +420,7 @@ static struct meson_pmx_group meson_gxl_aobus_groups[] = { GROUP(uart_cts_ao_b, 0, 8), GROUP(uart_rts_ao_b, 0, 7), GROUP(remote_input_ao, 0, 0), + GROUP(pwm_ao_b, 0, 3), }; static const char * const gpio_periphs_groups[] = { @@ -523,6 +526,10 @@ static const char * const remote_input_ao_groups[] = { "remote_input_ao", }; +static const char * const pwm_ao_b_groups[] = { + "pwm_ao_b", +}; + static struct meson_pmx_func meson_gxl_periphs_functions[] = { FUNCTION(gpio_periphs), FUNCTION(emmc), @@ -544,6 +551,7 @@ static struct meson_pmx_func meson_gxl_aobus_functions[] = { FUNCTION(uart_ao), FUNCTION(uart_ao_b), FUNCTION(remote_input_ao), + FUNCTION(pwm_ao_b), }; static struct meson_bank meson_gxl_periphs_banks[] = {