From patchwork Sun Dec 18 11:11:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 9479273 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 511A360830 for ; Sun, 18 Dec 2016 11:14:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F2D0284FE for ; Sun, 18 Dec 2016 11:14:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 429DA28502; Sun, 18 Dec 2016 11:14:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CBABE284FE for ; Sun, 18 Dec 2016 11:14:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759829AbcLRLNi (ORCPT ); Sun, 18 Dec 2016 06:13:38 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:58301 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760724AbcLRLL4 (ORCPT ); Sun, 18 Dec 2016 06:11:56 -0500 Received: from epcpsbgm2new.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OID0204JOFICV50@mailout1.samsung.com>; Sun, 18 Dec 2016 20:11:46 +0900 (KST) X-AuditID: cbfee61b-f796f6d000004092-fb-58566ef2cf8c Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 10.79.16530.2FE66585; Sun, 18 Dec 2016 20:11:46 +0900 (KST) Received: from gangnam.samsung ([10.113.62.47]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OID00KNEOFKB360@mmp1.samsung.com>; Sun, 18 Dec 2016 20:11:46 +0900 (KST) 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 v6 5/6] Documentation: bindings: add documentation for ir-spi device driver Date: Sun, 18 Dec 2016 20:11:37 +0900 Message-id: <20161218111138.12831-6-andi.shyti@samsung.com> X-Mailer: git-send-email 2.11.0 In-reply-to: <20161218111138.12831-1-andi.shyti@samsung.com> References: <20161218111138.12831-1-andi.shyti@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDIsWRmVeSWpSXmKPExsVy+t9jAd1PeWERBm8em1psP/KM1WLxj+dM FvOPnGO1WPR+BqtF79XnjBaXd81hs9j6Zh2jRc+GrawWS69fZLJY/azConXvEXaL3bueslos fPqdxYHXY828NYwe15d8YvbYOesuu8emVZ1sHkveWHts6Qfy9sz/werRt2UVo8fnTXIBnFFu NhmpiSmpRQqpecn5KZl56bZKoSFuuhZKCnmJuam2ShG6viFBSgpliTmlQJ6RARpwcA5wD1bS t0twy7i4hK2gn7diRs9+tgbGd1xdjJwcEgImEjs2zWWFsMUkLtxbz9bFyMUhJLCUUaL/6wsW kISQwEdGiaV7fUBsNgFNiabbP8CKRASmM0l8/XIArIhZYC+jxN6PYEXCArESk7/MYQaxWQRU JW6t/MYOYvMKWEt83PiEGWKbvMSutotgmzkFbCQuTboHtcxaYkbzWdYJjLwLGBlWMUqkFiQX FCel5xrlpZbrFSfmFpfmpesl5+duYgTHzDPpHYyHd7kfYhTgYFTi4WVYExohxJpYVlyZe4hR goNZSYR3YlZYhBBvSmJlVWpRfnxRaU5q8SFGU6DDJjJLiSbnA+M5ryTe0MTcxNzYwMLc0tLE SEmct3H2s3AhgfTEktTs1NSC1CKYPiYOTqkGxsOH+e3uJ3wu3+ft72mfHu1vupnps9u+TstD c1ZFmB3Z/T1G8gnXttDLlcvspqgv2CngOTf0qb5/vE796uiZHe2/Kiq/9/PuPnb+o+AvcS/V t5Fvru/8PXHXlTWnVJf5eXrXv9xSzhShevt27ec3M+auc6irufklhuk608V5bYs7oy9tX3le pl6JpTgj0VCLuag4EQAezyUQrwIAAA== X-MTR: 20000000000000000@CPGS Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Document the ir-spi driver's binding which is a IR led driven through the SPI line. Signed-off-by: Andi Shyti Reviewed-by: Sean Young Acked-by: Rob Herring --- .../devicetree/bindings/leds/irled/spi-ir-led.txt | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/irled/spi-ir-led.txt diff --git a/Documentation/devicetree/bindings/leds/irled/spi-ir-led.txt b/Documentation/devicetree/bindings/leds/irled/spi-ir-led.txt new file mode 100644 index 000000000000..896b6997cf30 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/irled/spi-ir-led.txt @@ -0,0 +1,29 @@ +Device tree bindings for IR LED connected through SPI bus which is used as +remote controller. + +The IR LED switch is connected to the MOSI line of the SPI device and the data +are delivered thourgh that. + +Required properties: + - compatible: should be "ir-spi-led". + +Optional properties: + - duty-cycle: 8 bit balue that represents the percentage of one period + in which the signal is active. It can be 50, 60, 70, 75, 80 or 90. + - led-active-low: boolean value that specifies whether the output is + negated with a NOT gate. + - power-supply: specifies the power source. It can either be a regulator + or a gpio which enables a regulator, i.e. a regulator-fixed as + described in + Documentation/devicetree/bindings/regulator/fixed-regulator.txt + +Example: + + irled@0 { + compatible = "ir-spi-led"; + reg = <0x0>; + spi-max-frequency = <5000000>; + power-supply = <&vdd_led>; + led-active-low; + duty-cycle = /bits/ 8 <60>; + };