Skip to contentSkip to conversation

HID: Add driver for RC Simulator Controllers

PATCH Superseded Marcus Folkesson 1 participant 2 messages Aug 4, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 HID: Add driver for RC Simulator Controllers

Several RC Simulator Controllers are HID compliant with similar interface.

Add support for these controllers:
- Phoenix RC (HID variant)
- Car VRC2.0
- Real Flight G5/G6/G7
- Aero Fly, FMS
- OrangeRX FrSky

---
 Documentation/hid/index.rst |   1 +
 Documentation/hid/rcsim.rst | 142 ++++++++++++++++
 drivers/hid/Kconfig         |  11 ++
 drivers/hid/Makefile        |   1 +
 drivers/hid/hid-ids.h       |   5 +
 drivers/hid/hid-rcsim.c     | 315 ++++++++++++++++++++++++++++++++++++
 6 files changed, 475 insertions(+)
 create mode 100644 Documentation/hid/rcsim.rst
 create mode 100644 drivers/hid/hid-rcsim.c
Documentation/hid/index.rst +1 -0
index e50f513c579c..e5813d264f37 100644
@@ -17,3 +17,4 @@ Human Interface Devices (HID)
    hid-alps
    intel-ish-hid
    amd-sfh-hid
+   rcsim
Documentation/hid/rcsim.rst new file +142 -0

142 lines not on this page · raw message

drivers/hid/Kconfig +11 -0
index 70da5931082f..d8313d36086c 100644
@@ -957,6 +957,17 @@ config HID_RAZER
 	Support for Razer devices that are not fully compliant with the
 	HID standard.
 
+config HID_RCSIM
+	tristate "RC Simulator Controllers"
+	depends on HID
+	help
+	Support for several HID compatible RC Simulator Controllers including
+         - Phoenix RC
+         - Car VRC2.0
+         - Real Flight
+         - Aero Fly, FMS
+         - OrangeRX FrSky
+
 config HID_PRIMAX
 	tristate "Primax non-fully HID-compliant devices"
 	depends on HID
drivers/hid/Makefile +1 -0
index cac2cbe26d11..85d50ab352ee 100644
@@ -102,6 +102,7 @@ obj-$(CONFIG_HID_PLANTRONICS)	+= hid-plantronics.o
 obj-$(CONFIG_HID_PLAYSTATION)	+= hid-playstation.o
 obj-$(CONFIG_HID_PRIMAX)	+= hid-primax.o
 obj-$(CONFIG_HID_RAZER)	+= hid-razer.o
+obj-$(CONFIG_HID_RCSIM)	+= hid-rcsim.o
 obj-$(CONFIG_HID_REDRAGON)	+= hid-redragon.o
 obj-$(CONFIG_HID_RETRODE)	+= hid-retrode.o
 obj-$(CONFIG_HID_ROCCAT)	+= hid-roccat.o hid-roccat-common.o \
drivers/hid/hid-ids.h +5 -0
index d9eb676abe96..baf5f74d5bed 100644
@@ -1381,6 +1381,11 @@
 
 #define USB_VENDOR_ID_MULTIPLE_1781	0x1781
 #define USB_DEVICE_ID_RAPHNET_4NES4SNES_OLD	0x0a9d
+#define USB_DEVICE_ID_PHOENIXRC	0x0898
+#define USB_DEVICE_ID_REALFLIGHT	0x0e56
+
+#define USB_VENDOR_ID_DIPLING	0x0B9B
+#define USB_DEVICE_ID_DIPLING_RCCONTROLLER	0x4012
 
 #define USB_VENDOR_ID_DRACAL_RAPHNET	0x289b
 #define USB_DEVICE_ID_RAPHNET_2NES2SNES	0x0002
drivers/hid/hid-rcsim.c new file +315 -0

315 lines not on this page · raw message

Signature · 1 line
2.37.1
#1 lore raw

PATCH 2/2 MAINTAINERS: Add entry for RC Simulator Controllers

Add an entry for RC Simulator Controllers and add myself as maintainers of this driver.

---
 MAINTAINERS | 7 +++++++
 1 file changed, 7 insertions(+)
MAINTAINERS +7 -0
index 64379c699903..216b9f021f72 100644
@@ -16896,6 +16896,13 @@ M:	Patrick Lerda <[email protected]>
 S:	Maintained
 F:	drivers/media/rc/ir-rcmm-decoder.c
 
+RC SIMULATOR CONTROLLERS
+M:	Marcus Folkesson <[email protected]>
+L:	[email protected]
+S:	Maintained
+F:	Documentation/hid/rcsim.rst
+F:	drivers/hid/hid-rcsim.c
+
 RCUTORTURE TEST FRAMEWORK
 M:	"Paul E. McKenney" <[email protected]>
 M:	Josh Triplett <[email protected]>
Signature · 1 line
2.37.1