Hello Wolfram,

Thank you for your feedback!

> -----Original Message-----
> From: Wolfram Sang <w...@the-dreams.de>
> Sent: 21 September 2018 16:48
> To: Geert Uytterhoeven <ge...@linux-m68k.org>
> Cc: Fabrizio Castro <fabrizio.cas...@bp.renesas.com>; Laurent Pinchart 
> <laurent.pinch...@ideasonboard.com>; Geert Uytterhoeven
> <geert+rene...@glider.be>; Linus Walleij <linus.wall...@linaro.org>; 
> Linux-Renesas <linux-renesas-soc@vger.kernel.org>; open
> list:GPIO SUBSYSTEM <linux-g...@vger.kernel.org>; Simon Horman 
> <ho...@verge.net.au>; Chris Paterson
> <chris.paters...@renesas.com>; Biju Das <biju....@bp.renesas.com>; Wolfram 
> Sang <wsa+rene...@sang-engineering.com>
> Subject: Re: [PATCH 4/5] pinctrl: sh-pfc: r8a77470: Add SDHI2 pin groups
>
>
> > > 2) Specify SH_PFC_PIN_CFG_IO_VOLTAGE for every line that belongs to
> > > the interface, keep the SD card pin groups as specified by this
> > > patch, map all of the pins to the same bit in the POC register (as
> > > per pin_to_pocctrl is concerned), and the board specific device tree
> > > definitions would look like every other RZ/G1 or R-Car Gen2 boards
> > > that support SDR* The only downside would be that the kernel would
> > > read-modify-write the POC Control Register with the same value for
> > > every line in the interface.
>
> I don't think this multiple RMW is a problem.
>
> > This looks the most sensible solution to me: just map in your
> > .pin_to_pocctrl() method all pins of the interface to the single bit.
>
> I didn't fully get if this one bit controls only the CLK wire or all the
> relevant wires? I assume it is the latter one. For that, option 2) is
> totally fine with me.

It is not super clear what the intended behaviour is from the HW User's manual 
indeed,
but I have tested SDR50 and it seems to be working fine, which would indicate 
that the
control bit in the POC Control Register is actually controlling all of the 
lines of the
interface, and not just the CLK pin.

Thanks,
Fab



Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, 
Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered 
No. 04586709.

Reply via email to