[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7LNAT7irhQWdMkKsY9E8Qwgvwqobs8GF1Mvmoe9wfTqVE4nA@mail.gmail.com>
Date: Mon, 29 Jul 2019 22:46:02 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: Kunihiko Hayashi <hayashi.kunihiko@...ionext.com>
Cc: Linus Walleij <linus.walleij@...aro.org>,
"open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Masami Hiramatsu <masami.hiramatsu@...aro.org>,
Jassi Brar <jaswinder.singh@...aro.org>
Subject: Re: [PATCH 4/5] pinctrl: uniphier: Add Pro5 PCIe pin-mux settings
On Tue, Jul 9, 2019 at 7:29 PM Kunihiko Hayashi
<hayashi.kunihiko@...ionext.com> wrote:
>
> Pro5 PCIe interface uses the following pins:
> XPERST, XPEWAKE, XPECLKRQ
>
> Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@...ionext.com>
> ---
> drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c
> index 1d418e3..577f12e 100644
> --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c
> +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c
> @@ -855,6 +855,8 @@ static const unsigned usb1_pins[] = {126, 127};
> static const int usb1_muxvals[] = {0, 0};
> static const unsigned usb2_pins[] = {128, 129};
> static const int usb2_muxvals[] = {0, 0};
> +static const unsigned pcie_pins[] = {109, 110, 111};
> +static const int pcie_muxvals[] = {0, 0, 0};
Please keep the alphabetical sorting.
> static const unsigned int gpio_range_pins[] = {
> 89, 90, 91, 92, 93, 94, 95, 96, /* PORT0x */
> 97, 98, 99, 100, 101, 102, 103, 104, /* PORT1x */
> @@ -925,6 +927,7 @@ static const struct uniphier_pinctrl_group uniphier_pro5_groups[] = {
> UNIPHIER_PINCTRL_GROUP(usb0),
> UNIPHIER_PINCTRL_GROUP(usb1),
> UNIPHIER_PINCTRL_GROUP(usb2),
> + UNIPHIER_PINCTRL_GROUP(pcie),
Ditto.
> UNIPHIER_PINCTRL_GROUP_GPIO(gpio_range),
> };
>
> @@ -957,6 +960,7 @@ static const char * const uart3_groups[] = {"uart3"};
> static const char * const usb0_groups[] = {"usb0"};
> static const char * const usb1_groups[] = {"usb1"};
> static const char * const usb2_groups[] = {"usb2"};
> +static const char * const pcie_groups[] = {"pcie"};
>
> static const struct uniphier_pinmux_function uniphier_pro5_functions[] = {
> UNIPHIER_PINMUX_FUNCTION(emmc),
> @@ -979,6 +983,7 @@ static const struct uniphier_pinmux_function uniphier_pro5_functions[] = {
> UNIPHIER_PINMUX_FUNCTION(usb0),
> UNIPHIER_PINMUX_FUNCTION(usb1),
> UNIPHIER_PINMUX_FUNCTION(usb2),
> + UNIPHIER_PINMUX_FUNCTION(pcie),
Ditto.
> };
>
> static int uniphier_pro5_get_gpio_muxval(unsigned int pin,
> --
> 2.7.4
>
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists