Input: psxpad-spi - Add PlayStation 1/2 joypads via SPI interface Driver
Subsystems (2)
PATCH v8 1/1 Input: psxpad-spi - Add PlayStation 1/2 joypads via SPI interface Driver
PlayStation 1/2 joypads can be connected directly to the SPI interface.
--- drivers/input/joystick/Kconfig | 22 ++ drivers/input/joystick/Makefile | 1 + drivers/input/joystick/psxpad-spi.c | 431 ++++++++++++++++++++++++++++++++++++ 3 files changed, 454 insertions(+) create mode 100644 drivers/input/joystick/psxpad-spi.c
drivers/input/joystick/Kconfig +22 -0
@@ -330,4 +330,26 @@ config JOYSTICK_MAPLE To compile this as a module choose M here: the module will be called maplecontrol. +config JOYSTICK_PSXPAD_SPI + tristate "PlayStation 1/2 joypads via SPI interface" + depends on SPI + select INPUT_POLLDEV + help + Say Y here if you wish to connect PlayStation 1/2 joypads + via SPI interface. + + To compile this driver as a module, choose M here: the + module will be called psxpad-spi. + +config JOYSTICK_PSXPAD_SPI_FF + bool "PlayStation 1/2 joypads force feedback (rumble) support" + depends on JOYSTICK_PSXPAD_SPI + select INPUT_FF_MEMLESS + help + Say Y here if you want to take advantage of + PlayStation 1/2 joypads rumble features. + + To drive rumble motor, + a dedicated power supply is required. + endif
drivers/input/joystick/Makefile +1 -0
@@ -21,6 +21,7 @@ obj-$(CONFIG_JOYSTICK_INTERACT) += interact.o obj-$(CONFIG_JOYSTICK_JOYDUMP) += joydump.o obj-$(CONFIG_JOYSTICK_MAGELLAN) += magellan.o obj-$(CONFIG_JOYSTICK_MAPLE) += maplecontrol.o +obj-$(CONFIG_JOYSTICK_PSXPAD_SPI) += psxpad-spi.o obj-$(CONFIG_JOYSTICK_SIDEWINDER) += sidewinder.o obj-$(CONFIG_JOYSTICK_SPACEBALL) += spaceball.o obj-$(CONFIG_JOYSTICK_SPACEORB) += spaceorb.o
drivers/input/joystick/psxpad-spi.c new file +431 -0
431 lines not on this page · raw message
Signature · 1 line
2.7.4
Mr.Torokhov
Hi.
I fixed source, and sent v8 patch to you.
* FF codes ('CONFIG_JOYSTICK_PSXPAD_SPI_FF' defined), put together in one place.
* psxpad_spi_suspend() stub removed again.
Regard.
---
Tomohiro Yoshidomi <[email protected]>
Dmitry Torokhov
maintainerHi,
Quoted 9 lines · Tomohiro Yoshidomi
Mr.Torokhov
Hi.
I fixed source, and sent v8 patch to you.* FF codes ('
CONFIG_JOYSTICK_PSXPAD_SPI_FF' defined), put together in one place.*
psxpad_spi_suspend()stub removed again.
Could you please test the version of the patch I sent to you? It had more changes than the 2 you mentioned above.
Thanks.
Signature · 1 line
Dmitry
Mr.Torokhov
Hi.
Quoted 2 lines
Could you please test the version of the patch I sent to you? It had more changes than the 2 you mentioned above.
Sorry, what did you mail to me with the patch?
I searched old mails, but I couldn't find it.
Please tell me time when you mailed the patch?
Thanks.
---
Tomohiro <[email protected]>
Dmitry Torokhov
maintainerQuoted 5 lines · Tomohiro Yoshidomi
Mr.Torokhov
Hi.
Quoted 7 lines
Quoted 2 lines
Could you please test the version of the patch I sent to you? It had more changes than the 2 you mentioned above.
Sorry, what did you mail to me with the patch?
I searched old mails, but I couldn't find it.Please tell me time when you mailed the patch?
It was 2 days ago, in reply to the v7 of your patch. Look for message ID <20170507174426.GA21606@dtor-ws>
Thanks.
Signature · 1 line
Dmitry
Mr.Torokhov
Hi.
Quoted 2 lines
It was 2 days ago, in reply to the v7 of your patch. Look for message ID <20170507174426.GA21606@dtor-ws>
I checked the mail and confirmed that your patch was completely right! It is no problem, on builds and works.
I just accepted your patch...
Please include the patch in your pull request.
Because I am not good at English, we have taken a detour. I apologize for my poor question.
And I'm grateful for your generosity.
I pray for you to make a good request.
Thanks.
Best regard.
---
Tomohiro
2017-05-10 15:02 GMT+09:00 Dmitry Torokhov <[email protected]>:
Quoted 21 lines · Tomohiro Yoshidomi
Quoted 5 lines
Mr.Torokhov
Hi.
Quoted 7 lines
Quoted 2 lines
Could you please test the version of the patch I sent to you? It had more changes than the 2 you mentioned above.
Sorry, what did you mail to me with the patch?
I searched old mails, but I couldn't find it.Please tell me time when you mailed the patch?
It was 2 days ago, in reply to the v7 of your patch. Look for message ID <20170507174426.GA21606@dtor-ws>
Thanks.
--
Dmitry