From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756007AbcLNOAu (ORCPT ); Wed, 14 Dec 2016 09:00:50 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:44279 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753463AbcLNOAs (ORCPT ); Wed, 14 Dec 2016 09:00:48 -0500 X-AuditID: cbfee61b-f796f6d000004092-23-5851508b42dc From: Andi Shyti To: Mauro Carvalho Chehab , Sean Young , Rob Herring , Mark Rutland , Richard Purdie , Jacek Anaszewski , Heiner Kallweit Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Shyti , Andi Shyti Subject: [PATCH v4 0/6] Add support for IR transmitters Date: Wed, 14 Dec 2016 23:00:24 +0900 Message-id: <20161214140030.28537-1-andi.shyti@samsung.com> X-Mailer: git-send-email 2.10.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpjkeLIzCtJLcpLzFFi42I5/e+xoG53QGCEwbNZFhbbjzxjtVj84zmT xfwj51gtFr2fwWrRe/U5o8XlXXPYLLa+Wcdo0bNhK6vF0usXmSxWP6uwaN17hN1i966nrBYL n35nceD1WDNvDaPH9SWfmD12zrrL7rFpVSebx5I31h5b+oG8PfN/sHr0bVnF6PF5k1wAZ5Sb TUZqYkpqkUJqXnJ+SmZeuq1SaIibroWSQl5ibqqtUoSub0iQkkJZYk4pkGdkgAYcnAPcg5X0 7RLcMo51rmQrOK1X8ef0NeYGxkUKXYycHBICJhJfFi9lhbDFJC7cW8/WxcjFISQwi1HiydoH 7BDOR0aJho2nmUGq2AQ0JZpu/wCrEhGYziTx9csBFpAEs8BeRom9H31AbGEBc4klXXMYQWwW AVWJyT1vmEBsXgFric/vljJBrJOXWHj+CNMERu4FjAyrGCVSC5ILipPSc43yUsv1ihNzi0vz 0vWS83M3MYLj4Jn0DsbDu9wPMQpwMCrx8CYA40OINbGsuDL3EKMEB7OSCO8UX6AQb0piZVVq UX58UWlOavEhRlOgAyYyS4km5wNjNK8k3tDE3MTc2MDC3NLSxEhJnLdx9rNwIYH0xJLU7NTU gtQimD4mDk6pBkbPU1kXLCM3W9d5PXvTlKIvseNN8JQdvnu4dUXOFzN7tiTf6ph6TbmgdPmu hPtz8i8/ODy3q3I3d+UnG8Fr38707T5QIPNCODnQP6vaQ/JrmTfreQ7/hR8PWfYFvzpw3KD/ v1+jq1Cv4c4dNonfTX+oJ3l7dkzvf1fv9/T/r/qarbWT1h7SfK/EUpyRaKjFXFScCAA0G3BK mQIAAA== X-MTR: 20000000000000000@CPGS Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, The main goal is to add support in the rc framework for IR transmitters, which currently is only supported by lirc but that is not the preferred way. The last patch adds support for an IR transmitter driven by the MOSI line of an SPI controller, it's the case of the Samsung TM2(e) board which support is currently ongoing. The last patch adds support for an IR transmitter driven by the MOSI line of an SPI controller, it's the case of the Samsung TM2(e) board which support is currently ongoing. Thanks, Andi Changelog from version 1: ------------------------- The RFC is now PATCH. The main difference is that this version doesn't try to add the any bit streaming protocol and doesn't modify any LIRC interface specification. patch 1: updates all the drivers using rc_allocate_device patch 2: fixed errors and warning reported from the kbuild test robot patch 5: this patch has been dropped and replaced with a new one which avoids waiting for transmitters. patch 6: added new properties to the dts specification patch 7: the driver uses the pulse/space input and converts it to a bit stream. Changelog from version 2: ------------------------- The original patch number 5 has been abandoned because it was not bringing much benenfit. patch 1: rebased on the new kernel. patch 3: removed the sysfs attribute protocol for transmitters patch 5: the binding has been moved to the leds section instead of the media. Fixed all the comments from Rob patch 6: fixed all the comments from Sean added also Sean's review. Changelog from version 3: ------------------------- Added the patches Sean's review. patch 1: commit ddbf7d5a has introduced the devm_* managed version of rc_allocate_device and rc_register_device, this patch has been rebased on top of it and adds the driver type as a parameter of the devm_rc_allocate_device. patch 3: fixes a warning from the kbuild test robot patch 5: after a discussion with Rob, despite mine, Jacek's and Mauro's objections [*] the binding has been placed under leds/irled/spi-ir-led.txt patch 6: uses the new devm_* allocation and registration rc functions [*] https://www.spinics.net/lists/linux-leds/msg07062.html https://www.spinics.net/lists/linux-leds/msg07164.html https://www.spinics.net/lists/linux-leds/msg07167.html Andi Shyti (6): [media] rc-main: assign driver type during allocation [media] rc-main: split setup and unregister functions [media] rc-core: add support for IR raw transmitters [media] rc-ir-raw: do not generate any receiving thread for raw transmitters Documentation: bindings: add documentation for ir-spi device driver [media] rc: add support for IR LEDs driven through SPI .../devicetree/bindings/leds/irled/spi-ir-led.txt | 29 +++ drivers/hid/hid-picolcd_cir.c | 3 +- drivers/media/cec/cec-core.c | 3 +- drivers/media/common/siano/smsir.c | 3 +- drivers/media/i2c/ir-kbd-i2c.c | 2 +- drivers/media/pci/bt8xx/bttv-input.c | 2 +- drivers/media/pci/cx23885/cx23885-input.c | 11 +- drivers/media/pci/cx88/cx88-input.c | 3 +- drivers/media/pci/dm1105/dm1105.c | 3 +- drivers/media/pci/mantis/mantis_input.c | 2 +- drivers/media/pci/saa7134/saa7134-input.c | 2 +- drivers/media/pci/smipcie/smipcie-ir.c | 3 +- drivers/media/pci/ttpci/budget-ci.c | 2 +- drivers/media/rc/Kconfig | 9 + drivers/media/rc/Makefile | 1 + drivers/media/rc/ati_remote.c | 3 +- drivers/media/rc/ene_ir.c | 3 +- drivers/media/rc/fintek-cir.c | 3 +- drivers/media/rc/gpio-ir-recv.c | 3 +- drivers/media/rc/igorplugusb.c | 3 +- drivers/media/rc/iguanair.c | 3 +- drivers/media/rc/img-ir/img-ir-hw.c | 2 +- drivers/media/rc/img-ir/img-ir-raw.c | 3 +- drivers/media/rc/imon.c | 3 +- drivers/media/rc/ir-hix5hd2.c | 3 +- drivers/media/rc/ir-spi.c | 199 +++++++++++++++++++++ drivers/media/rc/ite-cir.c | 3 +- drivers/media/rc/mceusb.c | 3 +- drivers/media/rc/meson-ir.c | 3 +- drivers/media/rc/nuvoton-cir.c | 3 +- drivers/media/rc/rc-ir-raw.c | 17 +- drivers/media/rc/rc-loopback.c | 3 +- drivers/media/rc/rc-main.c | 186 +++++++++++-------- drivers/media/rc/redrat3.c | 3 +- drivers/media/rc/serial_ir.c | 3 +- drivers/media/rc/st_rc.c | 3 +- drivers/media/rc/streamzap.c | 3 +- drivers/media/rc/sunxi-cir.c | 3 +- drivers/media/rc/ttusbir.c | 3 +- drivers/media/rc/winbond-cir.c | 3 +- drivers/media/usb/au0828/au0828-input.c | 3 +- drivers/media/usb/cx231xx/cx231xx-input.c | 2 +- drivers/media/usb/dvb-usb-v2/dvb_usb_core.c | 3 +- drivers/media/usb/dvb-usb/dvb-usb-remote.c | 3 +- drivers/media/usb/em28xx/em28xx-input.c | 2 +- drivers/media/usb/tm6000/tm6000-input.c | 3 +- include/media/rc-core.h | 15 +- 47 files changed, 408 insertions(+), 168 deletions(-) create mode 100644 Documentation/devicetree/bindings/leds/irled/spi-ir-led.txt create mode 100644 drivers/media/rc/ir-spi.c -- 2.10.2