From patchwork Thu Sep 1 17:16:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 665016 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 3sQFlF02fRz9sBg for ; Fri, 2 Sep 2016 07:29:45 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751372AbcIAV3P (ORCPT ); Thu, 1 Sep 2016 17:29:15 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:46549 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756588AbcIAV1W (ORCPT ); Thu, 1 Sep 2016 17:27:22 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OCU033E05BQMQ20@mailout1.samsung.com>; Fri, 02 Sep 2016 02:16:38 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [172.20.52.113]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 13.02.31386.67268C75; Fri, 2 Sep 2016 02:16:38 +0900 (KST) X-AuditID: cbfee68d-f79286d000007a9a-66-57c86276d76a Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 10.05.07740.67268C75; Thu, 1 Sep 2016 10:16:38 -0700 (MST) Received: from samsunx.samsung ([10.113.63.54]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OCU00L0B5BMT280@mmp1.samsung.com>; Fri, 02 Sep 2016 02:16:37 +0900 (KST) From: Andi Shyti To: Mauro Carvalho Chehab , Sean Young , Rob Herring , Mark Rutland Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Shyti , Andi Shyti Subject: [PATCH v2 6/7] Documentation: bindings: add documentation for ir-spi device driver Date: Fri, 02 Sep 2016 02:16:28 +0900 Message-id: <20160901171629.15422-7-andi.shyti@samsung.com> X-Mailer: git-send-email 2.9.3 In-reply-to: <20160901171629.15422-1-andi.shyti@samsung.com> References: <20160901171629.15422-1-andi.shyti@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPLMWRmVeSWpSXmKPExsWyRsSkULcs6US4wZd2cYvtR56xWiz+8ZzJ Yv6Rc6wWl3fNYbPo2bCV1WLp9YtMFqufVVi07j3CbrHw6XcWB06PNfPWMHpcX/KJ2WPTqk42 jyVvrD229N9l9+jbsorR4/MmuQD2KC6blNSczLLUIn27BK6ME4cfsxas4K7YfWgqUwPjc44u Rk4OCQETiWPPVrBC2GISF+6tZ+ti5OIQEljBKNFybxs7TFHT64tQiaWMEscfLGeBcD4ySqy9 /pANpIpNQFOi6fYPsCoRgVmMEq+n/mAGSTALLGSU2PBZGcQWFoiVuPHmPNhYFgFViQs/VoI1 8wpYS5zrOcYEsU5O4tK2L2C9nAI2EpNPXwa7Twio5sD6yWALJAS2sUvcW/CEEWKQgMS3yYeA TuIASshKbDrADDFHUuLgihssExiFFzAyrGIUTS1ILihOSi8y1CtOzC0uzUvXS87P3cQIjIfT /5717mC8fcD6EKMAB6MSD++LhBPhQqyJZcWVuYcYTYE2TGSWEk3OB0ZdXkm8obGZkYWpiamx kbmlmZI4r6LUz2AhgfTEktTs1NSC1KL4otKc1OJDjEwcnFINjA5X7S5+cFCffSTwTuLHjYav OZRS1+Qrxfw4c1XitX/zghLmQ6dN884Ee/s9/C+rsT2fKf7O75ZDUs28Inf6JnstvbH9u2iQ 06fuz1dvPdWy4W/47Ju0lr3t4vTdv3r3qZu8Eds22yOxu3rbDqEt21vsc/Pyv2mpPC/4KiWv /ejXzIOuZpNXsiixFGckGmoxFxUnAgCZaZOhggIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDIsWRmVeSWpSXmKPExsVy+t9jAd2ypBPhBmv7hSy2H3nGarH4x3Mm i/lHzrFaXN41h82iZ8NWVoul1y8yWax+VmHRuvcIu8XCp99ZHDg91sxbw+hxfcknZo9NqzrZ PJa8sfbY0n+X3aNvyypGj8+b5ALYoxoYbTJSE1NSixRS85LzUzLz0m2VvIPjneNNzQwMdQ0t LcyVFPISc1NtlVx8AnTdMnOALlNSKEvMKQUKBSQWFyvp22GaEBripmsB0xih6xsSBNdjZIAG EtYwZpw4/Ji1YAV3xe5DU5kaGJ9zdDFyckgImEg0vb7IBmGLSVy4tx7I5uIQEljKKHH8wXIW COcjo8Ta6w/BqtgENCWabv8AqxIRmMUo8XrqD2aQBLPAQkaJDZ+VQWxhgViJG2/Os4PYLAKq Ehd+rARr5hWwljjXc4wJYp2cxKVtX8B6OQVsJCafvswKYgsB1RxYP5ltAiPvAkaGVYwSqQXJ BcVJ6blGeanlesWJucWleel6yfm5mxjBMfdMegfj4V3uhxgFOBiVeHgbAk6EC7EmlhVX5h5i lOBgVhLhZYsHCvGmJFZWpRblxxeV5qQWH2I0BTpsIrOUaHI+MB3klcQbGpuYGVkamRtaGBmb K4nzPv6/LkxIID2xJDU7NbUgtQimj4mDU6qBUUrStL3g9fWXN55I/JquaSR2Ok5H4pJI+eb3 VgYaDroNh8LKJ+4W0uyMDDT4q+3bG2X/4e6yTxxhYoLTWyXubf1zeVKT4NfNB3Ts1y18ZFie bHN8lcjL5pr3JZnVLP4ny2eyXlTUOsKRmJIyl9M2JCeb52WuxOW/E+5NOnP+vNQqwxl5Bi/t lFiKMxINtZiLihMBSAJWFM8CAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected 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 --- Documentation/devicetree/bindings/media/spi-ir.txt | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/spi-ir.txt diff --git a/Documentation/devicetree/bindings/media/spi-ir.txt b/Documentation/devicetree/bindings/media/spi-ir.txt new file mode 100644 index 0000000..85cb21b --- /dev/null +++ b/Documentation/devicetree/bindings/media/spi-ir.txt @@ -0,0 +1,26 @@ +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". + +Optional properties: + - irled,switch: specifies the gpio switch which enables the irled/ + - negated: boolean value that specifies whether the output is negated + with a NOT gate. + - duty-cycle: 8 bit value that stores the percentage of the duty cycle. + it can be 50, 60, 70, 75, 80 or 90. + +Example: + + irled@0 { + compatible = "ir-spi"; + reg = <0x0>; + spi-max-frequency = <5000000>; + irled,switch = <&gpr3 3 0>; + negated; + duty-cycle = /bits/ 8 <60>; + };