Re: gpiod: Set pullup for Input Line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hei hei,

Am Mon, Mar 21, 2022 at 02:48:02PM +0100 schrieb Hans Kurscheidt:
> sure, device trees are eventually overwritten w/ new kernels or "as is" on a
> new device. 

You would need a board specific dts or dt overlay anyways.  Just compile
that again with you new kernel.  For a new board, you need to make a
new dts anyways, I don't see the problem here.

> Hence my application won't work on a new installation/board,
> because it needs certain GPIO input pins w/pull ups. 

Well, and those pullups need to be in SoC, and can not be external?

> DTBs need to be
> disassembled and re-compiled, which is not for the average user to install &
> run an application!

Why disassemble dtb, just go with the dts and compile that.

For easier handling in your application and across different boards,
you might want to checkout gpio line names.  We successfully used that
to let the same application work with different boards (even with
SoCs of different vendors), without the need to modify the app at all
if the hardware changes.  That is much more convenient than putting
pin numbers and knowledge about each and every possible board into the
application.

HTH & Greets
Alex




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux