Kernel Driver W1-gpio
7.0.0-rc1
Quick search
Contents
- Development process
- Submitting patches
- Code of conduct
- Maintainer handbook
- All development-process docs
- Core API
- Driver APIs
- Subsystems
- Core subsystems
- Human interfaces
- Networking interfaces
- Storage interfaces
- Other subsystems
- Accounting
- CPUFreq - CPU frequency and voltage scaling code in the Linux(TM) kernel
- EDAC Subsystem
- FPGA
- I2C/SMBus Subsystem
- Industrial I/O
- PCMCIA
- Serial Peripheral Interface (SPI)
- 1-Wire Subsystem
- Watchdog Support
- Virtualization Support
- Hardware Monitoring
- Compute Accelerators
- Security Documentation
- Crypto API
- BPF Documentation
- USB support
- PCI Bus Subsystem
- Assorted Miscellaneous Devices Documentation
- PECI Subsystem
- WMI Subsystem
- TEE Subsystem
- Locking
- Licensing rules
- Writing documentation
- Development tools
- Testing guide
- Hacking guide
- Tracing
- Fault injection
- Livepatching
- Rust
- Administration
- Build system
- Reporting issues
- Userspace tools
- Userspace API
- Firmware
- Firmware and Devicetree
- CPU architectures
- Unsorted documentation
- Translations
This Page
- Show Source
Author: Ville Syrjala <syrjala@sci.fi>
Description¶
GPIO 1-wire bus master driver. The driver uses the GPIO API to control the wire and the GPIO pin can be specified using GPIO machine descriptor tables. It is also possible to define the master using device tree, see Documentation/devicetree/bindings/w1/w1-gpio.yaml
Example (mach-at91)¶
#include <linux/gpio/machine.h> #include <linux/w1-gpio.h> static struct gpiod_lookup_table foo_w1_gpiod_table = { .dev_id = "w1-gpio", .table = { GPIO_LOOKUP_IDX("at91-gpio", AT91_PIN_PB20, NULL, 0, GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN), }, }; static struct w1_gpio_platform_data foo_w1_gpio_pdata = { .ext_pullup_enable_pin = -EINVAL, }; static struct platform_device foo_w1_device = { .name = "w1-gpio", .id = -1, .dev.platform_data = &foo_w1_gpio_pdata, }; ... at91_set_GPIO_periph(foo_w1_gpio_pdata.pin, 1); at91_set_multi_drive(foo_w1_gpio_pdata.pin, 1); gpiod_add_lookup_table(&foo_w1_gpiod_table); platform_device_register(&foo_w1_device); ©The kernel development community. | Powered by Sphinx 5.3.0 & Alabaster 0.7.16 | Page sourceTừ khóa » W1-gpio Documentation
-
Pstolarz/w1-gpio-cl: Command Line Configured Kernel Mode ... - GitHub
-
W1-gpio.txt - Documentation - Elixir Bootlin
-
[PDF] Linux W1 Documentation
-
1-WIRE At Raspberry Pi GPIO Pinout
-
1-wire Master Drivers — The Linux Kernel Documentation
-
[38/54] Dt-bindings: W1: Convert 1-Wire GPIO Binding To A Schema
-
Raspberry Pi Tutorial Series: 1-Wire DS18B20 Sensor - Waveshare
-
[OpenWrt Wiki] 1-wire Bus
-
1-wire Bus Since Version 21.02.0 - OpenWrt Forum
-
Communicating With One-Wire Devices
-
[v4,1/5] Dt-bindings: W1: Document Generic Onewire Bindings
-
[PATCH] W1: W1-gpio: Convert To Use GPIO Descriptors
-
How To Use The 1-WIRE Bus On Acqua SOM - Acme Systems