Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755948AbcKCIdG (ORCPT ); Thu, 3 Nov 2016 04:33:06 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:13567 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754031AbcKCIdB (ORCPT ); Thu, 3 Nov 2016 04:33:01 -0400 X-AuditID: cbfec7f4-f791c6d000006eac-6d-581af6386269 Subject: Re: [PATCH v3 5/6] Documentation: bindings: add documentation for ir-spi device driver To: Andi Shyti , Mauro Carvalho Chehab , Sean Young , Rob Herring , Mark Rutland , Richard Purdie Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Shyti From: Jacek Anaszewski Message-id: <70f4426b-e2e6-1fb7-187a-65ed4bce0668@samsung.com> Date: Thu, 03 Nov 2016 09:32:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-version: 1.0 In-reply-to: <20161102104010.26959-6-andi.shyti@samsung.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA01SbUhTYRjl3d3drrPZ67R6XKmwKMzKFMwuKaLgjwsWGRSN/uTQ6xx+sqk5 SRDU8rNCI0XNbyWcWa75/YHKUrLUxEQTlBmoUUrqQqeE1nYV/HfO85zzHs7DSxGSVlJKqeKT WHW8IlYmEPHbh3fGL9NbUrm3bsWO7jAuk3SdZYVHVxnHSXqqu0JAt622ILrgXRtJN8xM8mjd ciqd3WcU0j3dSyRds7TND7JnmiubETNTv0kw+qZcAVO/6s8Yns0Lmd4qC8k8NTQhxqx3C6Pu iwIi2VhVCqu+Ehguip4ddUnccEjd35gWZKC/9nnIjgLsC8btAiGHT8KXhbeCPCSiJLgBwcT8 Fs+6kGAzAkPbjUND7edykhM1IpgZW+BxZBn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uLWqo+MEDWCEj8m3wOKc3BwCthIPDgUCBJmFrCVWPB+HQuELS+x ec1b5gmMArOQdMxCUjYLSdkCRuZVjCKppcW56bnFhnrFibnFpXnpesn5uZsYgRG67djPzTsY L20MPsQowMGoxMMr8E0yQog1say4MvcQowQHs5II784PUhFCvCmJlVWpRfnxRaU5qcWHGE2B fpjILCWanA9MHnkl8YYmhuaWhkbGFhbmRkZK4rwlH66ECwmkJ5akZqemFqQWwfQxcXBKNTAu uJ9z9U/W1Mk6VjLveq8u6fzPeSpPjd0o5O9X7013zv6yvu85IaHEXcXzvhGH97nOPR+Yhb/w 8DdUPP/aXvdQ2Wtu18M7u/2bTlpcXHRC+ruS7k72I+pe5qbXIz262qXfHMmsea0kECnw7Yqd 1r27gSlFjbU1j3yX76zP/8EX/s95za0VPyqUWIozEg21mIuKEwFW/IfY5gIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20161103083255eucas1p20c14ee3e17a010e28835cd4ea7480e22 X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?UTF-8?B?SmFjZWsgQW5hc3pld3NraRtTUlBPTC1TeXN0ZW0gRlcgIChN?= =?UTF-8?B?Qikb7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?SmFjZWsgQW5hc3pld3NraRtTUlBPTC1TeXN0ZW0gRlcgIChN?= =?UTF-8?B?QikbU2Ftc3VuZyBFbGVjdHJvbmljcxtTZW5pb3IgU29mdHdhcmUgRW5naW5l?= =?UTF-8?B?ZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjc1MjY=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20161102104149epcas5p4da68197e232df7ad922f2f9cb0714a43 X-RootMTR: 20161102104149epcas5p4da68197e232df7ad922f2f9cb0714a43 References: <20161102104010.26959-1-andi.shyti@samsung.com> <20161102104010.26959-6-andi.shyti@samsung.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1848 Lines: 55 Hi Andi, Only DT bindings of LED class drivers should be placed in Documentation/devicetree/bindings/leds. Please move it to the media bindings. Thanks, Jacek Anaszewski On 11/02/2016 11:40 AM, Andi Shyti wrote: > Document the ir-spi driver's binding which is a IR led driven > through the SPI line. > > Signed-off-by: Andi Shyti > --- > .../devicetree/bindings/leds/spi-ir-led.txt | 29 ++++++++++++++++++++++ > 1 file changed, 29 insertions(+) > create mode 100644 Documentation/devicetree/bindings/leds/spi-ir-led.txt > > diff --git a/Documentation/devicetree/bindings/leds/spi-ir-led.txt b/Documentation/devicetree/bindings/leds/spi-ir-led.txt > new file mode 100644 > index 0000000..896b699 > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/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>; > + }; >