summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-74x164.c
diff options
context:
space:
mode:
authorLinus Walleij2017-12-30 16:26:36 +0100
committerLinus Walleij2018-01-12 11:05:24 +0100
commita603a2b8d86ee93ee2107da8ca75fd854fd4ff32 (patch)
treea8c64d824f251cb413387858a3a1c235710b6d6c /drivers/gpio/gpio-74x164.c
parentgpio: Export devm_gpiod_get_from_of_node() for consumers (diff)
downloadkernel-qcow2-linux-a603a2b8d86ee93ee2107da8ca75fd854fd4ff32.tar.gz
kernel-qcow2-linux-a603a2b8d86ee93ee2107da8ca75fd854fd4ff32.tar.xz
kernel-qcow2-linux-a603a2b8d86ee93ee2107da8ca75fd854fd4ff32.zip
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>
Diffstat (limited to 'drivers/gpio/gpio-74x164.c')
0 files changed, 0 insertions, 0 deletions