2 GPIO hog (CONFIG_GPIO_HOG)
5 All the GPIO hog are initialized using DM_FLAG_PROBE_AFTER_BIND DM flag
8 Example, for the device tree:
11 compatible = "ti,tca6416";
19 gpios = <6 GPIO_ACTIVE_LOW>;
24 line-name = "foo-bar-gpio";
25 gpios = <7 GPIO_ACTIVE_LOW>;
29 You can than access the gpio in your board code with:
31 struct gpio_desc *desc;
34 ret = gpio_hog_lookup_name("boot_rescue", &desc);
37 if (dm_gpio_get_value(desc) == 1)
38 printf("\nBooting into Rescue System\n");
39 else if (dm_gpio_get_value(desc) == 0)
40 printf("\nBoot normal\n");