why there is GPIO_ACTIVE_HIGH/LOW in dts?
by DeanAnderson from LinuxQuestions.org on (#50GGZ)
Hi
Why we have in device tree third parameter?
Code:reset-gpio = <&gpio2 14 GPIO_ACTIVE_HIGH>;I've checked many kernel drivers and nobody parses GPIO_ACTIVE_HIGH/LOW. In fact there is none API in linux/of_gpio.h for getting this parameter.
So if nobody uses why there is definition of this initial gpio state in dts? For newbie in kernel development this is strange.
However any idea how I can get this parameter in probe? Any part of source code?


Why we have in device tree third parameter?
Code:reset-gpio = <&gpio2 14 GPIO_ACTIVE_HIGH>;I've checked many kernel drivers and nobody parses GPIO_ACTIVE_HIGH/LOW. In fact there is none API in linux/of_gpio.h for getting this parameter.
So if nobody uses why there is definition of this initial gpio state in dts? For newbie in kernel development this is strange.
However any idea how I can get this parameter in probe? Any part of source code?