File: README.md

package info (click to toggle)
fwupd 2.0.20-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 32,504 kB
  • sloc: ansic: 277,388; python: 11,485; xml: 9,493; sh: 1,625; makefile: 167; cpp: 19; asm: 11; javascript: 9
file content (40 lines) | stat: -rw-r--r-- 934 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
title: Plugin: GPIO
---

## Introduction

This plugin sets GPIO outputs either high or low before and/or after an
update has been deployed.

## GUID Generation

These device use GPIO `gpiochip_info.label` values, e.g.

* `GPIO\ID_INT3450:00`

## Quirk Use

This plugin uses the following plugin-specific quirks:

### GpioForUpdate

The GPIO bit to set before the update is deployed e.g. `INT3450:00,SPI_MUX,high`.
After the update has finished, the bits are returned to the default state.

For example, to set GPIO pin 2 low for the duration of the ColorHug device update
this could be added to the quirk file:

    [USB\VID_273F&PID_1001]
    GpioForUpdate=fake-gpio-chip,2,low

Since: 1.7.6

## External Interface Access

This plugin requires ioctl `GPIO_GET_CHIPINFO_IOCTL` and `GPIO_V2_GET_LINE_IOCTL`
access on `/dev/gpiochip*` devices.

## Version Considerations

This plugin has been available since fwupd version `1.7.6`.