From patchwork Wed Nov 2 10:40:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 690359 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3t84Qg0Zmnz9vDl for ; Wed, 2 Nov 2016 21:41:31 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755629AbcKBKk7 (ORCPT ); Wed, 2 Nov 2016 06:40:59 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:49863 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754014AbcKBKk5 (ORCPT ); Wed, 2 Nov 2016 06:40:57 -0400 Received: from epcpsbgm2new.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OG002068GBPNE00@mailout4.samsung.com>; Wed, 02 Nov 2016 19:40:38 +0900 (KST) X-AuditID: cbfee61b-f793d6d000005a2a-92-5819c2a67ab6 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id CF.55.23082.6A2C9185; Wed, 2 Nov 2016 19:40:38 +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 <0OG0001SHGBL7DA0@mmp1.samsung.com>; Wed, 02 Nov 2016 19:40:37 +0900 (KST) From: Andi Shyti To: Mauro Carvalho Chehab , Sean Young , Rob Herring , Mark Rutland , Richard Purdie , Jacek Anaszewski 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 v3 5/6] Documentation: bindings: add documentation for ir-spi device driver Date: Wed, 02 Nov 2016 19:40:09 +0900 Message-id: <20161102104010.26959-6-andi.shyti@samsung.com> X-Mailer: git-send-email 2.10.1 In-reply-to: <20161102104010.26959-1-andi.shyti@samsung.com> References: <20161102104010.26959-1-andi.shyti@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMIsWRmVeSWpSXmKPExsVy+t9jAd1lhyQjDK4c5rfYfuQZq8XiH8+Z LOYfOcdq0Xv1OaPF5V1z2Cy2vlnHaNGzYSurxdLrF5ksVj+rsGjde4TdYveup6wWC59+Z3Hg 8Vgzbw2jx/Uln5g9Nq3qZPNY8sbaY0v/XXaPPfN/sHr0bVnF6PF5k1wAR5SbTUZqYkpqkUJq XnJ+SmZeuq1SaIibroWSQl5ibqqtUoSub0iQkkJZYk4pkGdkgAYcnAPcg5X07RLcMrpOn2cs OMJT8Xr/d5YGxkVcXYycHBICJhKnn75lg7DFJC7cWw9kc3EICSxllJgwZzYrhPORUWLi3h9g VWwCmhJNt3+AVYkIvGWUODT9FSNIgllgL6PE3o8+XYwcHMICsRLb9iiAhFkEVCX65+1nBbF5 Bawllm1dBbVNXuLC1VMsIDangI3E38bH7CC2EFDNgev72Scw8i5gZFjFKJFakFxQnJSea5SX Wq5XnJhbXJqXrpecn7uJERwhz6R3MB7e5X6IUYCDUYmHt+CyRIQQa2JZcWXuIUYJDmYlEd5v +yQjhHhTEiurUovy44tKc1KLDzGaAh02kVlKNDkfGL15JfGGJuYm5sYGFuaWliZGSuK8jbOf hQsJpCeWpGanphakFsH0MXFwSjUwWnF98v9geV1zsYSph1GU+a346wXCsX+l86bOjlfsj39h uFrusuL3T/8uciZe6RCcWdC/qHNyvvfH4nD9p7a/J+tnGD+XWPeletufJ1NfHr8fFTAxatv9 X64+YUe37lbJfLp9pfhZLbtmq0W6+/r7My5Lf8h+q7oz6d7BJ+cefIlYt3Evq07gQSWW4oxE Qy3mouJEALvlLk2mAgAA X-MTR: 20000000000000000@CPGS Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 --- .../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>; + };