pinctrl: add new pinconf attrs "output-high" and "output-low"
authorXingyu Chen <xingyu.chen@amlogic.com>
Fri, 23 Mar 2018 08:22:11 +0000 (16:22 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Mon, 26 Mar 2018 06:00:22 +0000 (22:00 -0800)
commit6e0c76302d056c64e406547b0487e3dbfb2ffd0b
tree6caa945d1efdd01d6f94d86c20337623996c90e4
parent48fe27347d9c43e7a1d3af2ca3c9be8c18cd35c2
pinctrl: add new pinconf attrs "output-high" and "output-low"

PD#162858: pinctrl: add new pinconf attrs "output-high" and "output-low"

we can refer the following example to use:
mux {
groups = "GPIOC_0", "GPIOC_1", "GPIOC_2",
"GPIOC_3", "GPIOC_4", "GPIOC_5";
function = "gpio_periphs";

output-high; // or output-low
}
output-high: GPIO_EN_N[pin]=<0> and GPIO_O[pin]=<1>
output-low : GPIO_EN_N[pin]=<0> and GPIO_O[pin]=<0>

Change-Id: I3f8ec1bd1eff7c7d6e7416b608e4c5d6c7b15955
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
drivers/amlogic/pinctrl/pinconf-meson-g12a.c
drivers/amlogic/pinctrl/pinctrl-meson.c
drivers/amlogic/pinctrl/pinctrl-meson.h