configuration for nc pins without pull
From: Uwe Kleine-König <hidden>
Date: 2015-05-28 07:26:34
Also in:
linux-gpio
On Sun, Mar 22, 2015 at 11:00:59AM +0100, Uwe Kleine-K?nig wrote:
Hello, for a machine I want to configure a pin that is actually not connected to minimize floating. (I think this is sensible, isn't it?) For the pinctrl I can use a hog group of the pinctrl device. At least one of the pins doesn't have a pullup/pulldown configuration though, so I want to mux it to its gpio function and set the gpio to output and the desired value. Is there something nicer than defining an always-on regulator with gpios = <&gpio4 3 0> to accomplish that without additional code?
For the archive: Yes, there is something nicer in the meantime:
Since commit f625d4601759 (gpio: add GPIO hogging mechanism) which is
included in v4.1-rc1 you can do something like
&gpio3 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio3hog>;
ext-armclk {
gpio-hog;
gpios = <15 0>;
output-low;
};
};
in the devicetree (here for an i.MX25).
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | http://www.pengutronix.de/ |