From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 Sender: geert.uytterhoeven@gmail.com In-Reply-To: References: <1526008947-26667-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> <1526008947-26667-4-git-send-email-yoshihiro.shimoda.uh@renesas.com> From: Geert Uytterhoeven Date: Tue, 15 May 2018 10:40:55 +0200 Message-ID: Subject: Re: [PATCH 3/6] pinctrl: sh-pfc: r8a77990: Add bias pinconf support Content-Type: text/plain; charset="UTF-8" To: Yoshihiro Shimoda Cc: Laurent Pinchart , Geert Uytterhoeven , Linus Walleij , Rob Herring , Mark Rutland , Linux-Renesas , "open list:GPIO SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Takeshi Kihara List-ID: On Mon, May 14, 2018 at 10:13 PM, Geert Uytterhoeven wrote: > On Fri, May 11, 2018 at 5:22 AM, Yoshihiro Shimoda > wrote: >> From: Takeshi Kihara >> >> This patch implements control of pull-up and pull-down. On this SoC there >> is no simple mapping of GP pins to bias register bits, so we need a table. >> >> Signed-off-by: Takeshi Kihara >> Signed-off-by: Yoshihiro Shimoda > > Thanks for your patch! > >> --- a/drivers/pinctrl/sh-pfc/pfc-r8a77990.c >> +++ b/drivers/pinctrl/sh-pfc/pfc-r8a77990.c > >> @@ -1227,10 +1248,55 @@ enum { >> >> PINMUX_IPSR_GPSR(IP15_31_28, USB30_OVC), >> PINMUX_IPSR_MSEL(IP15_31_28, USB0_OVC_A, SEL_USB_20_CH0_0), >> + >> +/* >> + * Static pins can not be muxed between different functions but >> + * still needs a mark entry in the pinmux list. Add each static > > need mark entries > >> + * pin to the list without an associated function. The sh-pfc >> + * core will do the right thing and skip trying to mux then pin > > mux the pin > >> + * while still applying configuration to it > > period > > I have just sent a patch to fix the other copies, in the hope these grammar > atrocities will stop spreading ;-) > >> @@ -1708,8 +1774,263 @@ enum { >> { }, >> }; >> >> +static const struct pinmux_bias_reg pinmux_bias_regs[] = { > > The register definitions look OK to me. > I'll review the actual pin mappings later. Reviewed-by: Geert Uytterhoeven i.e. will queue in sh-pfc-for-v4.18 with the comments fixed. 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