Thread (6 messages) 6 messages, 4 authors, 2012-08-28

[PATCH] gpio: samsung: add devicetree init for s3c24xx arches

From: anarsoul@gmail.com (Vasily Khoruzhick)
Date: 2012-08-27 08:57:04
Also in: linux-devicetree, linux-samsung-soc

Possibly related (same subject, not in this thread)

Hi,

On Mon, Aug 27, 2012 at 11:01 AM, Heiko St?bner [off-list ref] wrote:
Hi Thomas,

thanks for your review:

Hmmm, but the logic to drive the gpio controller is the same for all arches.
The only difference is the number to use for the different pull up/down
settings. So I think the "samsung,s3c24xx-gpio" is ok but the documentation
should simply reflect the different pull settings.
Also s3c2410 and s3c2440 has different count of GPIOs. And that could
be a problem on machines
with GPIO-expanders (h1940 machine)
quoted
It would be informative to add information about the 'mux function'
cell here as well. Specifically, on how to handle the banks that have
an extended GPxSEL register that allow additional pin function
selection.
Will add a mux function description.

Until now I've never realised the existence of the GPxSEL registers, so thanks
for the pointer :-).

But is this used in the driver at all? All the setcfg/getcfg functions in
gpio-samsung.c only handle the GPxCON registers - I haven't found code to
handle the GPxSEL registers at all. So my guess is that this was never
implemented - or that I'm blind ;-) .
There're no GPxSEL registers on s3c2410/s3c2440/s3c2442. Is it
something s3c2412/sec2416 specific?

Regards
Vasily
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help