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

- From: Vasily Khoruzhick \<anarsoul@gmail.com\>
- Date: 2012-08-27 08:57:04 
- List: linux-devicetree
- Page: https://ratatoskr.run/linux-devicetree/2012/08/8062523
- Thread: https://ratatoskr.run/linux-samsung-soc/2012/08/8062521/t.md

```text
Hi,

On Mon, Aug 27, 2012 at 11:01 AM, Heiko Stübner [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)

>> 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
```
