sx126x: add libgpiod v2 support via version-agnostic GPIO HAL#3
sx126x: add libgpiod v2 support via version-agnostic GPIO HAL#3exepirit wants to merge 5 commits intostrijar:mainfrom
Conversation
|
Why did you rename and change the port type? It will always be /dev/gpiochipN, so knowing the N from config file, you can easily generate the required text string. In your case, it's easier to make a mistake in a text parameter than in a single numerical parameter. |
|
Since libgpiod v2 moved from chip index to device path. I think that in long term, using device path will eliminate the need to convert N to path (if libgpiod v1 eventually deprecated in RNode).
Descriptive error messages can help the user to find a mistakes. There is no problem to use chip index or support both variants. What do you think about this? |
Yes, I think using an index is more logical. Will you do it this way? |
|
No problem. I made the changes to use chip/port index. Now in |
|
Thanks! I'll check it out in a few days and merge the changes. |
Migrates sx126x driver to libgpiod v2 API while maintaining backward compatibility with v1 through an abstraction layer.
Resolves #2