From patchwork Wed Jul 4 16:57:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 141080 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1014507ljj; Wed, 4 Jul 2018 09:57:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf8ep8cK4FIwxLHqg5P8u0gty9FtAwdkX159TSwvsKE27A/MxZKzpfpWtBb9dW9T0/LjVu5 X-Received: by 2002:a62:6882:: with SMTP id d124-v6mr2986249pfc.122.1530723452439; Wed, 04 Jul 2018 09:57:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530723452; cv=none; d=google.com; s=arc-20160816; b=CG8cRH1VKsdUZPAAa8HxWQvqKiC5fBtUgitQt/BvcBlpLifr1H6TlM9vbnXAN+/cqg CvNOPhxzXJYzQ8EG041KXAp/qaQeeHe8sC8QEmjHJVfu+YCC5ZQeF8flUPVUC/pMuEqv Obfjwqopjz0hIHbGBmxaDODPG8mC6pNW8kRhqGN4L2AEdIhEOSYD+JLyY0vDqK3S02Xc tAQ+7i4pW1eakrHO0x71uLOdiR8cg0x+tlNJwT7Fe8oDLaqR44I7WOxm6IIIOr3Rw/7U 8FJXqynL6srFrwmzJJqv+Yt9cTgg4PZ1gaRqzAQCTVwpJEqo+GNl+/eg6ubJtTwbsymU MYQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=0ayPyGKfUZa6GeO9ppuyccuULXedN/wXGHV0LUQ3IlQ=; b=Biw+46rkkhf9Tmx7hezVOXPcu5CaFdUq3bTjCx35Q5EFIRdsWCs7evleBPRU2Zgs3T vMqct97WejPCD+dkF9wA3mWPOBITAujf97UZfft95JRHWTs0J3NsISxm+C4fM3j6/FHP 9tTdW2Uxjn4f6e5z0EhGxnAAfNisb1LGPgQtWfs8cgBypVW7cFSsmvQ8KwmJ9OYZn6JO +WbR3bRZw24pfnXNZJl9xmTv+ut7BC8H3XtLQ/FB/FuxUUXt6ftuo2raGzPpFZAbVUIK 81qMcswiywSK4ekVJcWC+v8wFQR0eP2lUCcEQ5oCzYI/QLtNjeNelByIMHQqWTe6GDLT R3iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=fCaGOPFj; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g61-v6si3915151plb.169.2018.07.04.09.57.32; Wed, 04 Jul 2018 09:57:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=fCaGOPFj; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752533AbeGDQ5b (ORCPT + 5 others); Wed, 4 Jul 2018 12:57:31 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38918 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752277AbeGDQ5a (ORCPT ); Wed, 4 Jul 2018 12:57:30 -0400 Received: by mail-wm0-f67.google.com with SMTP id p11-v6so6817583wmc.4 for ; Wed, 04 Jul 2018 09:57:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=FdWw7I7qUXkkSwxpjKRH75348Fh8svvw5X5RxcvAGAU=; b=fCaGOPFjdxuN6tA6GMwS+L4CjVIxx8zryhpSzMz/NNfMHgM6Chu6hJ4Qvjd3CXwL68 T8IOAS9oyz7H+qUDa/P7VcYIHp+59rWWpkPu+GJ2JBQ9zKj34J9u9xZC1B410y8rRIvH l9uiEiejk8LJc8GI9G9i9PKinvcUIdchs6o2IQHchOs49A6c6SGocP5qvpQLKSibf5Kr Qq5v8rL1rbWVdxuHVzjpbcS6wZJAhhtN515AGWFv4fFYu+v6fgXJDNM9uFzTUa5CVL6i OrBeKieytPzdUNNa+NtEH84BKp/TJFpe8STqVjCEYW1vgGj0EiHu7IpLzcFYxeJhwP/P h57g== 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; bh=FdWw7I7qUXkkSwxpjKRH75348Fh8svvw5X5RxcvAGAU=; b=ilJy0onKUi/M9Jjl21ChULLIO6hvIGpEiycqS32XQTff1/OgpXTZLu1nA7xyCZ0lso FYJ2tKL82vwQKDikeQMIy3SjoFYM7a3z4DRzIdee28r2/ws2iULW8+IokiQAQyHVN1ZU VSobzCqB7En8HLUkRYzUi63b/Pkp/ln4mgN5y6jOQRw0GlHVbYIAfyNBwL1NNUmxAoGd DWsD5zsnkDeYIq5NUjACQWgLabdQqMxBKILJJv0lpmJ+q12fQ2vskDPRibhmrjCDZO1/ 9gzfaa+SG3sJlj54GeiYxg7yaR/n/71smkdhSH/1IqJpqGIWaavbrpWTTijgTlKEi6TC nvBA== X-Gm-Message-State: APt69E2l5uJvRzMOmUiYDz7GFuq1gwgQ9/OT/r5YjfGhqWwP7a7kwjU6 oo5uHEhH2liow/ehvPqMW2qF9Q== X-Received: by 2002:a1c:9ec5:: with SMTP id h188-v6mr2225418wme.76.1530723449209; Wed, 04 Jul 2018 09:57:29 -0700 (PDT) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id n16-v6sm6995655wrg.58.2018.07.04.09.57.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Jul 2018 09:57:28 -0700 (PDT) From: Jerome Brunet To: Linus Walleij , Carlo Caione , Kevin Hilman Cc: Jerome Brunet , linux-gpio@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: meson: add gen_clk pins Date: Wed, 4 Jul 2018 18:57:24 +0200 Message-Id: <20180704165724.3387-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.4 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Add the pinctrl configuration for gen_clk on gxbb and axg. gen_clk allows to output and devide several internal clocks of SoC, including most of the plls. Signed-off-by: Jerome Brunet --- drivers/pinctrl/meson/pinctrl-meson-axg.c | 9 +++++++++ drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 8 ++++++++ 2 files changed, 17 insertions(+) -- 2.14.4 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pinctrl/meson/pinctrl-meson-axg.c b/drivers/pinctrl/meson/pinctrl-meson-axg.c index 46a0918bd284..ad502eda4afa 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-axg.c +++ b/drivers/pinctrl/meson/pinctrl-meson-axg.c @@ -672,6 +672,9 @@ static const unsigned int jtag_ao_tdo_pins[] = {GPIOAO_4}; static const unsigned int jtag_ao_clk_pins[] = {GPIOAO_5}; static const unsigned int jtag_ao_tms_pins[] = {GPIOAO_7}; +/* gen_clk */ +static const unsigned int gen_clk_ee_pins[] = {GPIOAO_13}; + static struct meson_pmx_group meson_axg_aobus_groups[] = { GPIO_GROUP(GPIOAO_0), GPIO_GROUP(GPIOAO_1), @@ -718,6 +721,7 @@ static struct meson_pmx_group meson_axg_aobus_groups[] = { GROUP(jtag_ao_tdo, 4), GROUP(jtag_ao_clk, 4), GROUP(jtag_ao_tms, 4), + GROUP(gen_clk_ee, 4), }; static const char * const gpio_periphs_groups[] = { @@ -947,6 +951,10 @@ static const char * const tdmb_groups[] = { "tdmb_din2", "tdmb_dout2", "tdmb_din3", "tdmb_dout3", }; +static const char * const gen_clk_ee_groups[] = { + "gen_clk_ee", +}; + static struct meson_pmx_func meson_axg_periphs_functions[] = { FUNCTION(gpio_periphs), FUNCTION(emmc), @@ -992,6 +1000,7 @@ static struct meson_pmx_func meson_axg_aobus_functions[] = { FUNCTION(pwm_ao_c), FUNCTION(pwm_ao_d), FUNCTION(jtag_ao), + FUNCTION(gen_clk_ee), }; static struct meson_bank meson_axg_periphs_banks[] = { diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c index 2c97a2e07a5f..4ceb06f8a33c 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c @@ -243,6 +243,8 @@ static const unsigned int i2s_out_ch67_y_pins[] = { GPIOY_10 }; static const unsigned int spdif_out_y_pins[] = { GPIOY_12 }; +static const unsigned int gen_clk_out_pins[] = { GPIOY_15 }; + static const struct pinctrl_pin_desc meson_gxbb_aobus_pins[] = { MESON_PIN(GPIOAO_0), MESON_PIN(GPIOAO_1), @@ -453,6 +455,7 @@ static struct meson_pmx_group meson_gxbb_periphs_groups[] = { GROUP(i2s_out_ch45_y, 1, 6), GROUP(i2s_out_ch67_y, 1, 7), GROUP(spdif_out_y, 1, 9), + GROUP(gen_clk_out, 6, 15), /* Bank Z */ GROUP(eth_mdio, 6, 1), @@ -706,6 +709,10 @@ static const char * const spdif_out_groups[] = { "spdif_out_y", }; +static const char * const gen_clk_out_groups[] = { + "gen_clk_out", +}; + 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", @@ -790,6 +797,7 @@ static struct meson_pmx_func meson_gxbb_periphs_functions[] = { FUNCTION(hdmi_i2c), FUNCTION(i2s_out), FUNCTION(spdif_out), + FUNCTION(gen_clk_out), }; static struct meson_pmx_func meson_gxbb_aobus_functions[] = {