diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2019-07-16 12:35:55 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-07-17 11:23:02 +0200 |
commit | 78c1f6de3c65504645170eaf244d705c9ada88c3 (patch) | |
tree | 7ee895c8161317b9d3e0ecfca2b82b3855fa25a8 /drivers/net | |
parent | af66ec677c40dfaed68a124d21dd59d5f8c63381 (diff) | |
download | barebox-78c1f6de3c65504645170eaf244d705c9ada88c3.tar.gz barebox-78c1f6de3c65504645170eaf244d705c9ada88c3.tar.xz |
OF: gpio: Add special quirk to parse regulator flags
To make fec work with devicetree on imx28-evk, partially port following
kernel patch:
|commit a603a2b8d86ee93ee2107da8ca75fd854fd4ff32
|Author: Linus Walleij <linus.walleij@linaro.org>
|Date: Sat Dec 30 16:26:36 2017 +0100
|
| gpio: of: Add special quirk to parse regulator flags
|
| While most GPIOs are indicated to be active low or open drain using
| their twocell flags, we have legacy regulator bindings to take into
| account.
|
| Add a quirk respecting the special boolean active-high and open
| drain flags when parsing regulator nodes for GPIOs.
|
| This makes it possible to get rid of duplicated inversion semantics
| handling in the regulator core and any regulator drivers parsing
| and handling this separately.
|
| Unfortunately the old regulator inversion semantics are specified
| such that the presence or absence of "enable-active-high" solely
| controls the semantics, so we cannot deprecate this in favor
| of the phandle-provided inversion flag, instead any such phandle
| inversion flag provided in the second cell of a GPIO handle must be
| actively ignored, so we print a warning to contain the situation
| and make things easy for the users.
|
| Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions