Lines Matching full:mdio
3 * GPIO based MDIO bitbang driver.
24 #include <linux/platform_data/mdio-gpio.h>
25 #include <linux/mdio-bitbang.h>
26 #include <linux/mdio-gpio.h>
32 struct gpio_desc *mdc, *mdio, *mdo; member
43 bitbang->mdio = devm_gpiod_get_index(dev, NULL, MDIO_GPIO_MDIO, in mdio_gpio_get_data()
45 if (IS_ERR(bitbang->mdio)) in mdio_gpio_get_data()
46 return PTR_ERR(bitbang->mdio); in mdio_gpio_get_data()
69 gpiod_direction_output(bitbang->mdio, 1); in mdio_dir()
71 gpiod_direction_input(bitbang->mdio); in mdio_dir()
79 return gpiod_get_value_cansleep(bitbang->mdio); in mdio_get()
90 gpiod_set_value_cansleep(bitbang->mdio, what); in mdio_set()
122 new_bus->name = "GPIO Bitbanged MDIO"; in mdio_gpio_bus_init()
170 bus_id = of_alias_get_id(pdev->dev.of_node, "mdio-gpio"); in mdio_gpio_probe()
198 { .compatible = "virtual,mdio-gpio", },
207 .name = "mdio-gpio",
214 MODULE_ALIAS("platform:mdio-gpio");
217 MODULE_DESCRIPTION("Generic driver for MDIO bus emulation using GPIO");