Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3465490ybz; Mon, 4 May 2020 03:35:49 -0700 (PDT) X-Google-Smtp-Source: APiQypKhruhTRnCyb2vqVjZXiq/26GGGQaJRhyEMsMy2JjjMxVrcJshr3ikSHc9qH7+7Qjap50aM X-Received: by 2002:a17:906:b217:: with SMTP id p23mr13700459ejz.136.1588588549747; Mon, 04 May 2020 03:35:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588588549; cv=none; d=google.com; s=arc-20160816; b=KyBo+coS/QdLmWfijIQkW/t7Uc3xOLgCpNpkAJ/M3vU+dwsANnaykEPm7v1Y6I8fD4 VKCa+LL94qazl1otTsUViC5LQkAk3ZJ60t9MpZbSpOkDYF6Tx0BzqkT3g95qagh4GMi7 //+AADtlB8w/2A8F+isV57x/wWc3TMIV4L8bwL4XplmdhwkHCI3lq+IdzBwB9kEdItPy 28RBvWi6sUoee79h/Gvs3a+T8nFDUwTPnDJrPWoroaiYpT0JHkgCtJxOThU6uFjwIjM7 4E4TsVGcUDJ+AWKVoHcGcRToqV6zG7N4aNath3JwcOM+PrqlFrnJGlyDGCiTI9Gtg3UE 6bDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=aGRMnuTg/l5w0maHVGEcneYHQFdFGNPfiCYfIWkTR0o=; b=SCH16/WXtJig7ERFmKEyjvs8kobN3VSHEWm0Q762YVoqgeaZ72nzVzlyppQ8uvfFnO cJMnYc+9aiNk1MVXg2K+l+ExF+zTrUm/jAzrOBNNOqiH4/u5nAxFGvyE550szWKaRPmA +mPgu0IGO7Jv5aZ8CP2Oh6wMs9Gtpqcj3YzUeaMIb9OMnzyuKCzI6Je9J1FFe3+cqwxH J9IXd8mwguESNmVzyur2Zt1Mr2tsfbhG893QBnMZ19PX0QxbSVYIgPLDEm+OAfNw0Ejq recW72su6TfRVJlRJW05ca60Iz0IYgDf1Hxbp2ewnxL6h+fu5ISwQm4UJzbnKfQoZxLL KDIw== 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 y25si1948907edv.153.2020.05.04.03.35.26; Mon, 04 May 2020 03:35:49 -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 S1728155AbgEDKUt (ORCPT + 99 others); Mon, 4 May 2020 06:20:49 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:36177 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726445AbgEDKUs (ORCPT ); Mon, 4 May 2020 06:20:48 -0400 Received: by mail-ot1-f67.google.com with SMTP id t3so4583219otp.3; Mon, 04 May 2020 03:20:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aGRMnuTg/l5w0maHVGEcneYHQFdFGNPfiCYfIWkTR0o=; b=JDi7a1+k4nDIQ2X2u7vfsWkL8tk/b85acH4ZTdmB1bwLUQNKhJfb//dPxIPNcgljhm jOTigMo6x1Q5lEAD7ZYe8RvzVrD5gxmJVBT4HdxH2/GfjjOO7pdK2W7nxiSzaQy+FBN2 9npqFZe7t5nM4HsGGHyGb34zmXkN85egcixHyEtHSk4vnOEzAJEIjB5ZA9rYCijfGoGo pfCHnTdi3gJZxDk64F0uW4fDZj0N9Zta0SjT0bzkKV4R817Fi21w0QWPWcqkYL4TSTlI kJpuJQMc1HxwzuxCWoqjdKKwZ8ClEVc5HnnBnau4oEK2ZzAbDhuLvPLvVirzCvpn7Mz0 IQQw== X-Gm-Message-State: AGi0PubxR6DnC7gYGJtUCTCQGM/dXeVBj5JslidJOUZvwO/hrIYM7yr4 W23D8Z4SZGcHzxnb43AZySrW7wmi/hgiPJwwuWE= X-Received: by 2002:a9d:7d85:: with SMTP id j5mr12887666otn.107.1588587644541; Mon, 04 May 2020 03:20:44 -0700 (PDT) MIME-Version: 1.0 References: <1588542414-14826-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> <1588542414-14826-3-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <1588542414-14826-3-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Mon, 4 May 2020 12:20:33 +0200 Message-ID: Subject: Re: [PATCH v2 02/10] pinctrl: sh-pfc: r8a7790: Add r8a7742 PFC support To: Lad Prabhakar Cc: Magnus Damm , Rob Herring , Vinod Koul , Ulf Hansson , Linus Walleij , Greg Kroah-Hartman , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , dmaengine , Linux MMC List , "open list:GPIO SUBSYSTEM" , "open list:SERIAL DRIVERS" , Prabhakar Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prabhakar, Thanks for the update! On Sun, May 3, 2020 at 11:47 PM Lad Prabhakar wrote: > Renesas RZ/G1H (R8A7742) is pin compatible with R-Car H2 (R8A7790), > however it doesn't have several automotive specific peripherals. Add > a r8a7790 specific pin groups/functions along with common pin s/a r8a7790/automotive/? > groups/functions for supporting both r8a7790 and r8a7742 SoC. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > --- a/drivers/pinctrl/sh-pfc/pfc-r8a7790.c > +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7790.c > @@ -5736,6 +5750,7 @@ static const struct sh_pfc_soc_operations r8a7790_pinmux_ops = { > .pin_to_pocctrl = r8a7790_pin_to_pocctrl, > }; > > +#ifdef CONFIG_PINCTRL_PFC_R8A7790 > const struct sh_pfc_soc_info r8a7790_pinmux_info = { > .name = "r8a77900_pfc", > .ops = &r8a7790_pinmux_ops, > @@ -5745,13 +5760,38 @@ const struct sh_pfc_soc_info r8a7790_pinmux_info = { > > .pins = pinmux_pins, > .nr_pins = ARRAY_SIZE(pinmux_pins), > - .groups = pinmux_groups, > - .nr_groups = ARRAY_SIZE(pinmux_groups), > - .functions = pinmux_functions, > - .nr_functions = ARRAY_SIZE(pinmux_functions), > + .groups = pinmux_groups.common, > + .nr_groups = ARRAY_SIZE(pinmux_groups.common) + > + ARRAY_SIZE(pinmux_groups.automotive), > + .functions = pinmux_functions.common, > + .nr_functions = ARRAY_SIZE(pinmux_functions.common) + > + ARRAY_SIZE(pinmux_functions.automotive), > + > + .cfg_regs = pinmux_config_regs, > + > + .pinmux_data = pinmux_data, > + .pinmux_data_size = ARRAY_SIZE(pinmux_data), > +}; > +#endif > + > +#ifdef CONFIG_PINCTRL_PFC_R8A7742 > +const struct sh_pfc_soc_info r8a7742_pinmux_info = { > + .name = "r8a77420_pfc", > + .ops = &r8a7790_pinmux_ops, > + .unlock_reg = 0xe6060000, /* PMMR */ > + > + .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END }, > + > + .pins = pinmux_pins, > + .nr_pins = ARRAY_SIZE(pinmux_pins), > + .groups = pinmux_groups.common, > + .nr_groups = ARRAY_SIZE(pinmux_groups.common), > + .functions = pinmux_functions.common, > + .nr_functions = ARRAY_SIZE(pinmux_functions.common), > > .cfg_regs = pinmux_config_regs, > > .pinmux_data = pinmux_data, > .pinmux_data_size = ARRAY_SIZE(pinmux_data), > }; > +#endif The r8a7742 section should be inserted before the r8a7790 section, to preserve sort order. No need to resend, will fix up while applying. Reviewed-by: Geert Uytterhoeven i.e. will queue in sh-pfc-for-v5.8. 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