Article 50GGZ why there is GPIO_ACTIVE_HIGH/LOW in dts?

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?latest?d=yIl2AUoC8zA latest?i=LKUv54JWIIs:b94UTBqYvQA:F7zBnMy latest?i=LKUv54JWIIs:b94UTBqYvQA:V_sGLiP latest?d=qj6IDK7rITs latest?i=LKUv54JWIIs:b94UTBqYvQA:gIN9vFwLKUv54JWIIs
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments