forked from torvalds/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HID: add spi-hid, transport driver for HID over SPI bus
This driver follows HID Over SPI Protocol Specification 1.0 available at https://www.microsoft.com/en-us/download/details.aspx?id=103325. The initial version of the driver does not support: 1) multi-fragment input reports, 2) sending GET_INPUT and COMMAND output report types and processing their respective acknowledge input reports, and 3) device sleep power state. Signed-off-by: Dmitry Antipov <dmanti@microsoft.com>
- Loading branch information
1 parent
2ce2175
commit d0121c2
Showing
10 changed files
with
1,928 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# | ||
# Copyright (c) 2021 Microsoft Corporation | ||
# | ||
# This program is free software; you can redistribute it and/or modify it | ||
# under the terms of the GNU General Public License version 2 as published by | ||
# the Free Software Foundation. | ||
# | ||
menu "SPI HID support" | ||
depends on SPI | ||
|
||
config SPI_HID | ||
tristate "HID over SPI transport layer" | ||
default n | ||
depends on SPI && INPUT && OF | ||
select HID | ||
help | ||
Say Y here if you use a keyboard, a touchpad, a touchscreen, or any | ||
other HID based devices which is connected to your computer via SPI. | ||
|
||
If unsure, say N. | ||
|
||
This support is also available as a module. If so, the module | ||
will be called spi-hid. | ||
|
||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# | ||
# Copyright (c) 2021 Microsoft Corporation | ||
# | ||
# This program is free software; you can redistribute it and/or modify it | ||
# under the terms of the GNU General Public License version 2 as published by | ||
# the Free Software Foundation. | ||
# | ||
# Makefile for the HID over SPI transport driver | ||
# | ||
CFLAGS_trace.o = -I$(src) | ||
obj-$(CONFIG_SPI_HID) += spi-hid.o | ||
spi-hid-objs := spi-hid-core.o spi-hid-of.o trace.o |
Oops, something went wrong.