
3 Aug
2022
3 Aug
'22
1:10 p.m.
Hi all, I'm looking for advice on properly implementing GPIO and PINCTRL drivers. My SoC provides the possibility to enable a pull-up/down resistor for specific GPIO. And drive strength for GPIO can have four possible states.
The question is, where should I implement this functionality?
I'm confused by dt-bindings/gpio/gpio.h because it has a few macros - GPIO_PULL_UP - GPIO_PULL_DOWN
Should I keep everything in the pinctrl driver? Or should I implement pull-up/down in GPIO driver to support these macros and Drive Strength in pinctrl driver?
--
Best regards,
Oleh Kravchenko