pinctrl: single: parse #pinctrl-cells = 2
authorDrew Fustini <drew@beagleboard.org>
Wed, 1 Jul 2020 01:33:19 +0000 (03:33 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 7 Jul 2020 10:58:20 +0000 (12:58 +0200)
commita133954188887a830b5ce438a287a5e4e234b1be
tree3e86921c872b52cf4342528d2de1c179467f9d1f
parent614038d628c02ad6f2439bdf9baa6acceb8ec772
pinctrl: single: parse #pinctrl-cells = 2

If "pinctrl-single,pins" has 3 arguments (offset, conf, mux), then
pcs_parse_one_pinctrl_entry() does an OR operation on conf and mux to
get the value to store in the register.

Signed-off-by: Drew Fustini <drew@beagleboard.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Link: https://lore.kernel.org/r/20200701013320.130441-2-drew@beagleboard.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-single.c