1 ===================== 2 Kernel driver w1-gpio 3 ===================== 4 5 Author: Ville Syrjala <syrjala@sci.fi> 6 7 8 Description 9 ----------- 10 11 GPIO 1-wire bus master driver. The driver uses 12 wire and the GPIO pin can be specified using G 13 It is also possible to define the master using 14 Documentation/devicetree/bindings/w1/w1-gpio.y 15 16 17 Example (mach-at91) 18 ------------------- 19 20 :: 21 22 #include <linux/gpio/machine.h> 23 #include <linux/w1-gpio.h> 24 25 static struct gpiod_lookup_table foo_w1_gpio 26 .dev_id = "w1-gpio", 27 .table = { 28 GPIO_LOOKUP_IDX("at91-gpio", A 29 GPIO_ACTIVE_HIGH|GPIO_ 30 }, 31 }; 32 33 static struct w1_gpio_platform_data foo_w1_g 34 .ext_pullup_enable_pin = -EINVAL, 35 }; 36 37 static struct platform_device foo_w1_device 38 .name = "w1-gpio", 39 .id = -1, 40 .dev.platform_data = &foo_w1_gpio 41 }; 42 43 ... 44 at91_set_GPIO_periph(foo_w1_gpio_pdata 45 at91_set_multi_drive(foo_w1_gpio_pdata 46 gpiod_add_lookup_table(&foo_w1_gpiod_t 47 platform_device_register(&foo_w1_devic
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.