Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
34 lines
698 B
Plaintext
34 lines
698 B
Plaintext
Kernel driver w1-gpio
|
|
=====================
|
|
|
|
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 platform data.
|
|
|
|
|
|
Example (mach-at91)
|
|
-------------------
|
|
|
|
#include <linux/w1-gpio.h>
|
|
|
|
static struct w1_gpio_platform_data foo_w1_gpio_pdata = {
|
|
.pin = AT91_PIN_PB20,
|
|
.is_open_drain = 1,
|
|
};
|
|
|
|
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);
|
|
platform_device_register(&foo_w1_device);
|