Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1544266pxb; Thu, 7 Oct 2021 09:50:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4jmoO75StjtTzTNoDRXWB3PM4dyllkZivKojxAsM4Nlgu2Z6ya5FnX2nYD2lhn63zaRBB X-Received: by 2002:a17:90b:33c8:: with SMTP id lk8mr6053847pjb.208.1633625414123; Thu, 07 Oct 2021 09:50:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633625414; cv=none; d=google.com; s=arc-20160816; b=sya8PcWNCjmDCRPJc/Vdpn1Hp5o/k8Phqggdm8gawRzcXe9bHF071z+REj6iYHoaVX nibgrtiIk7TqG6xaNZ1m1hRzGNYznuFh958p5MfA+Ixg6j5HAL0ILEHAb1baulbvbcdj ABi5NHPpcLXecBRFqiZRWgLsvNqZk6KIHS9qrKhXwZqQICRzxDcKJA7/ftFnYQ18/J8K NkV7WTbkkb2F27wrD/mp/9ifkWgFxKid+X5LlYn+/1kY0u7t+cGCkO7y2ClXYVnVNNI1 47SUA8OTnfOfF2IkMP6/SzfskqrcE5uBap+jx2eBTaAdtfEPJhVysxRjtHJB2it9MRe+ 9rBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=Up6UdFwhzposbg4H9ut/JLcTL23D6e7tCieOzpeku/0=; b=j/xV6vkdcvminLBNDfRYbnmZ3hYtutcyUL8iHzE+RbP0PDO3zfPHzGF7LPpX5fAIqY y6nvxWN1eft2ENy2Mxr97mOq23jab09Cx8WV5G0T0VlbvkYzaP29mpDzGmq8C+d0sn6t GI3uhFaIWKd5nCJMHfi6W6TcA5JBxuMngQYwixu6NhMjWopEePmJOWpziqqTt0EZfnou /W43R8YFXZsEKqGtYgFrpBqv6kvx8qR5uQ+NGwhLlmfyVqIyqjNKS0pJiP6P2U9zroyg e3fhmXF9g9HyWlBP/X9RH1i7NWOGi4aKixmq+kWjPdCqHE8iGg3/U6H0T7xIvbtG5OaZ Qjrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t11si10316993pjl.137.2021.10.07.09.49.58; Thu, 07 Oct 2021 09:50:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242826AbhJGQvB (ORCPT + 99 others); Thu, 7 Oct 2021 12:51:01 -0400 Received: from mail-vk1-f172.google.com ([209.85.221.172]:35817 "EHLO mail-vk1-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242827AbhJGQu5 (ORCPT ); Thu, 7 Oct 2021 12:50:57 -0400 Received: by mail-vk1-f172.google.com with SMTP id x207so3001307vke.2; Thu, 07 Oct 2021 09:49:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Up6UdFwhzposbg4H9ut/JLcTL23D6e7tCieOzpeku/0=; b=lCSJ/lM0nz2BFCID/H5ROFAxVsvNr7PyPBK6O6VhfHtWvi90T/FumxaTtEiPLPVyED yD4hsYrMhL93eNHhOcBrnIyguZyr3Ap3zHZCmrVaMa8ey77A2vhQqtrT1sp4Ux5Ql8/Y LJ8ibHhMubjFKBVCdDUTpkuVNGWZBcj9umhT7XI2ssMYWRf0Ps9Y0Oj2roxhPmt05NqI uaHYHnTwAHc6r1f17SZRxBVCV6LfgW1IL25t0mljQdFn2xM3VJjfBc1qx7iBQLxhDlUo SA8ACBNu+OOIo1yAO2Vw1hKp57PX0d7Nm361B1Ma6qWvhM5FavXapTVMNRZ62Zad7C7P QVwQ== X-Gm-Message-State: AOAM533yngplMZoGmIPxwfjys2hzCosgrmW0DnlMggigwsPhaWowap8D 4rFlLZhORiyxPXeDbIs2kRo2317K5+f/mYQ+ugw= X-Received: by 2002:a1f:3a4b:: with SMTP id h72mr4755346vka.19.1633625343334; Thu, 07 Oct 2021 09:49:03 -0700 (PDT) MIME-Version: 1.0 References: <20210929211350.4226-1-nikita.yoush@cogentembedded.com> In-Reply-To: <20210929211350.4226-1-nikita.yoush@cogentembedded.com> From: Geert Uytterhoeven Date: Thu, 7 Oct 2021 18:48:52 +0200 Message-ID: Subject: Re: [PATCH] pinctrl: renesas: r8a779[56]x: add MediaLB pins To: Nikita Yushchenko Cc: Linus Walleij , Linux-Renesas , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Andrey Gusakov , Vladimir Barinov , LUU HOAI Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nikita, On Wed, Sep 29, 2021 at 11:14 PM Nikita Yushchenko wrote: > From: Andrey Gusakov > > This adds pins, groups, and functions for MediaLB device on Renesas > H3 and M3. > > Signed-off-by: Andrey Gusakov > Signed-off-by: Vladimir Barinov > Signed-off-by: LUU HOAI > Signed-off-by: Nikita Yushchenko Thanks for your patch! > --- a/drivers/pinctrl/renesas/pfc-r8a77950.c > +++ b/drivers/pinctrl/renesas/pfc-r8a77950.c > @@ -2369,6 +2369,14 @@ static const unsigned int intc_ex_irq5_mux[] = { > IRQ5_MARK, > }; > > +/* - MLB+ ------------------------------------------------------------------- */ > +static const unsigned int mlb_3pin_pins[] = { > + RCAR_GP_PIN(5, 23), RCAR_GP_PIN(5, 24), RCAR_GP_PIN(5, 25), > +}; > +static const unsigned int mlb_3pin_mux[] = { > + MLB_CLK_MARK, MLB_SIG_MARK, MLB_DAT_MARK, > +}; > + > /* - MSIOF0 ----------------------------------------------------------------- */ > static const unsigned int msiof0_clk_pins[] = { > /* SCK */ > @@ -3987,6 +3995,7 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { > SH_PFC_PIN_GROUP(intc_ex_irq3), > SH_PFC_PIN_GROUP(intc_ex_irq4), > SH_PFC_PIN_GROUP(intc_ex_irq5), > + SH_PFC_PIN_GROUP(mlb_3pin), > SH_PFC_PIN_GROUP(msiof0_clk), > SH_PFC_PIN_GROUP(msiof0_sync), > SH_PFC_PIN_GROUP(msiof0_ss1), > @@ -4380,6 +4389,10 @@ static const char * const intc_ex_groups[] = { > "intc_ex_irq5", > }; > > +static const char * const mlb_3pin_groups[] = { > + "mlb_3pin", > +}; > + > static const char * const msiof0_groups[] = { > "msiof0_clk", > "msiof0_sync", > @@ -4709,6 +4722,7 @@ static const struct sh_pfc_function pinmux_functions[] = { > SH_PFC_FUNCTION(i2c5), > SH_PFC_FUNCTION(i2c6), > SH_PFC_FUNCTION(intc_ex), > + SH_PFC_FUNCTION(mlb_3pin), > SH_PFC_FUNCTION(msiof0), > SH_PFC_FUNCTION(msiof1), > SH_PFC_FUNCTION(msiof2), This part looks fine to me. > diff --git a/drivers/pinctrl/renesas/pfc-r8a77951.c b/drivers/pinctrl/renesas/pfc-r8a77951.c > index 84c0ea5d59c1..4e4e39640df4 100644 > --- a/drivers/pinctrl/renesas/pfc-r8a77951.c > +++ b/drivers/pinctrl/renesas/pfc-r8a77951.c > @@ -2453,6 +2453,14 @@ static const unsigned int intc_ex_irq5_mux[] = { > IRQ5_MARK, > }; > > +/* - MLB+ ------------------------------------------------------------------- */ > +static const unsigned int mlb_3pin_pins[] = { > + RCAR_GP_PIN(5, 23), RCAR_GP_PIN(5, 24), RCAR_GP_PIN(5, 25), > +}; > +static const unsigned int mlb_3pin_mux[] = { > + MLB_CLK_MARK, MLB_SIG_MARK, MLB_DAT_MARK, > +}; > + > /* - MSIOF0 ----------------------------------------------------------------- */ > static const unsigned int msiof0_clk_pins[] = { > /* SCK */ > @@ -4233,7 +4241,7 @@ static const unsigned int vin5_clk_mux[] = { > }; > > static const struct { > - struct sh_pfc_pin_group common[328]; > + struct sh_pfc_pin_group common[329]; As MLB is not available on RZ/G2 SoCs, only on R-Car Gen3 SoCs, it should be added to the automotive sections instead of the common sections. This applies to pfc-r8a7796.c and pfc-r8a77965.c, too. > --- a/drivers/pinctrl/renesas/pfc-r8a7796.c > +++ b/drivers/pinctrl/renesas/pfc-r8a7796.c > @@ -2458,6 +2458,14 @@ static const unsigned int intc_ex_irq5_mux[] = { > IRQ5_MARK, > }; > > +/* - MLB+ ------------------------------------------------------------------- */ > +static const unsigned int mlb_3pin_pins[] = { > + RCAR_GP_PIN(5, 23), RCAR_GP_PIN(5, 24), RCAR_GP_PIN(5, 25), > +}; > +static const unsigned int mlb_3pin_mux[] = { > + MLB_CLK_MARK, MLB_SIG_MARK, MLB_DAT_MARK, > +}; > + > /* - MSIOF0 ----------------------------------------------------------------- */ > static const unsigned int msiof0_clk_pins[] = { > /* SCK */ > @@ -4301,6 +4309,7 @@ static const struct { > SH_PFC_PIN_GROUP(intc_ex_irq3), > SH_PFC_PIN_GROUP(intc_ex_irq4), > SH_PFC_PIN_GROUP(intc_ex_irq5), > + SH_PFC_PIN_GROUP(mlb_3pin), error: excess elements in array initializer [-Werror] > SH_PFC_PIN_GROUP(msiof0_clk), > SH_PFC_PIN_GROUP(msiof0_sync), > SH_PFC_PIN_GROUP(msiof0_ss1), Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds