From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759548AbcLPGNo (ORCPT ); Fri, 16 Dec 2016 01:13:44 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:53758 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759041AbcLPGMv (ORCPT ); Fri, 16 Dec 2016 01:12:51 -0500 X-AuditID: cbfee61b-f796f6d000004092-68-585385d167f2 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 v5 5/6] Documentation: bindings: add documentation for ir-spi device driver Date: Fri, 16 Dec 2016 15:12:17 +0900 Message-id: <20161216061218.5906-6-andi.shyti@samsung.com> X-Mailer: git-send-email 2.10.2 In-reply-to: <20161216061218.5906-1-andi.shyti@samsung.com> References: <20161216061218.5906-1-andi.shyti@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDIsWRmVeSWpSXmKPExsVy+t9jAd2LrcERBm9OKFhsP/KM1WLxj+dM FvOPnGO1WPR+BqtF79XnjBaXd81hs9j6Zh2jRc+GrawWS69fZLJY/azConXvEXaL3bueslos fPqdxYHXY828NYwe15d8YvbYOesuu8emVZ1sHkveWHts6Qfy9sz/werRt2UVo8fnTXIBnFFu NhmpiSmpRQqpecn5KZl56bZKoSFuuhZKCnmJuam2ShG6viFBSgpliTmlQJ6RARpwcA5wD1bS t0twy1h7lqOglbfi7jXeBsYnXF2MnBwSAiYSq9b/Z4SwxSQu3FvP1sXIxSEksJRR4svbf6wQ zkdGiZlLG5lBqtgENCWabv8AqxIRmM4k8fXLARaQBLPAXkaJvR99QGxhgViJjj1dYHEWAVWJ SSvvsIHYvAJWErsuvWGDWCcvsfD8ESYQm1PAWuLfxcWsILYQUM3ESbMZJzDyLmBkWMUokVqQ XFCclJ5rlJdarlecmFtcmpeul5yfu4kRHDPPpHcwHt7lfohRgINRiYf3x7agCCHWxLLiytxD jBIczEoivOubgiOEeFMSK6tSi/Lji0pzUosPMZoCHTaRWUo0OR8Yz3kl8YYm5ibmxgYW5paW JkZK4ryNs5+FCwmkJ5akZqemFqQWwfQxcXBKNTC2sRcf2OtT0rbpc2z7P1vpJ5nMaz3WV7H9 tRPX5WcyLfRMvlnwi8+Df3PuftMrcjl69090WtZEOP8+seynHkPDKTt3GR0LvfyLhvPv+2e3 T/etqSuM39rPUbtdVeBMVf6+O3xi/3L/XP/bkDnx0rODn+J/fZXlYDtvOlfFVda1/N5US36h N0osxRmJhlrMRcWJACmbOjuvAgAA X-MTR: 20000000000000000@CPGS Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- .../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 0000000..896b699 --- /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>; + }; -- 2.10.2