Stpes to commit our patch for kernel 4.4.88 for Vf61

Hello Everyone;
As per our End application Goal, we developed/merge the “gpio-line-names” functionality in kernel 4.4.88.
can we upload that patch on “Toradex git repository”?

Thanks & Best Regards;
Nikunj Patel

hi @nikunjp26

Welcome to the Toradex Community!!!

Could you provide the hardware version of your module?

As per our End application Goal, we developed/merge the “gpio-line-names” functionality in kernel 4.4.88.

Who are “we”? Which company are you working for? Which changes have you exactly done? Are these changes for everyone or just only for you? Could you share these changes?

Thanks and best regards, Jaski

Dear Jaski,

Thanks for your reply.

Q. Which company are you working for?

Ans. I am working for the “System Level Solutions” Company. you can refer below link.
http://www.slscorp.com/

Q.Which changes have you exactly done?

Ans. We have added “gpio-line-names” support in gpio sysfs support in place of the traditionally gpioxx number.

Q. Are these changes for everyone or just only for you?

Ans. yes for everyone can use this.

Q. Could you share these changes?

Ans. yes please find a link text attached patch. This patch is just for reference not final.

Dear Nikunj,

Thanks for the patch. We try to keep our BSP aligned to upstream Linux if possible. That means we try to avoid using/implement custom functionality unless accepted by the upstream community. This makes sure that we do not diverge from what is typically expected from a Linux BSP and avoid fragmentation.

There seem to have been previous attempts to add names to GPIOs upstream, e.g.:
http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/357418.html

Unfortunately, it seems not to have make it into the kernel yet (the patchset did not get merged)…

For Toradex it would be interesting if GPIOs could be accessed using their SODIMM number even. There is libsoc, a user space library which allows to access GPIOs using C (Python bindings are available) and allows board level abstractions. Some of our modules are support already :

Hello stefan,

Thanks for your reply.

For Toradex it would be interesting if
GPIOs could be accessed using their
SODIMM number even. There is libsoc, a
user space library which allows to
access GPIOs using C (Python bindings
are available) and allows board level
abstractions. Some of our modules are
support already :
https://github.com/jackmitch/libsoc/tree/master/contrib/board_files

As per your above reply we can provide you the patch for vf61 so “GPIOs could be accessed using their SODIMM”.

Thanks & Best Regards;

Nikunj Patel

How would this patch look like? What is better in your solution compared to the solution with libsoc?

Hello Stefan,

gentle reminder,

Thanks & Best Regards;

Nikunj Patel

Hi @nikunjp26,

Thanks for your patch. As we already wrote, for us there is a working solution with libsoc. We don’t want to apply your GPIOs patch.

Best regards, Jaski

OK…

Thanks for your valuable time and reply…

Best regards;

Nikunj Patel

You are welcome.