Lines Matching refs:pin_node
61 static int ich6_pinctrl_cfg_pin(s32 gpiobase, s32 iobase, int pin_node) in ich6_pinctrl_cfg_pin() argument
73 ret = fdtdec_get_int_array(gd->fdt_blob, pin_node, "gpio-offset", in ich6_pinctrl_cfg_pin()
77 is_gpio = fdtdec_get_bool(gd->fdt_blob, pin_node, "mode-gpio"); in ich6_pinctrl_cfg_pin()
83 dir = fdtdec_get_int(gd->fdt_blob, pin_node, "direction", -1); in ich6_pinctrl_cfg_pin()
89 val = fdtdec_get_int(gd->fdt_blob, pin_node, "output-value", in ich6_pinctrl_cfg_pin()
96 invert = fdtdec_get_bool(gd->fdt_blob, pin_node, "invert"); in ich6_pinctrl_cfg_pin()
114 pad_offset = fdtdec_get_int(gd->fdt_blob, pin_node, in ich6_pinctrl_cfg_pin()
127 val = fdtdec_get_int(gd->fdt_blob, pin_node, "mode-func", -1); in ich6_pinctrl_cfg_pin()
132 val = fdtdec_get_int(gd->fdt_blob, pin_node, "pull-assign", -1); in ich6_pinctrl_cfg_pin()
138 val = fdtdec_get_int(gd->fdt_blob, pin_node, "pull-strength", in ich6_pinctrl_cfg_pin()
155 int pin_node; in ich6_pinctrl_probe() local
189 for (pin_node = fdt_first_subnode(gd->fdt_blob, dev_of_offset(dev)); in ich6_pinctrl_probe()
190 pin_node > 0; in ich6_pinctrl_probe()
191 pin_node = fdt_next_subnode(gd->fdt_blob, pin_node)) { in ich6_pinctrl_probe()
193 ret = ich6_pinctrl_cfg_pin(gpiobase, iobase, pin_node); in ich6_pinctrl_probe()
196 __func__, pin_node); in ich6_pinctrl_probe()