From patchwork Fri Feb 10 02:22:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 9565959 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 5302B60572 for ; Fri, 10 Feb 2017 02:54:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33B6628540 for ; Fri, 10 Feb 2017 02:54:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2655928545; Fri, 10 Feb 2017 02:54:02 +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 13CB928540 for ; Fri, 10 Feb 2017 02:54:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751106AbdBJCyA (ORCPT ); Thu, 9 Feb 2017 21:54:00 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:50851 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750989AbdBJCx7 (ORCPT ); Thu, 9 Feb 2017 21:53:59 -0500 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OL402K8NZY5OS50@mailout1.samsung.com>; Fri, 10 Feb 2017 11:22:53 +0900 (KST) Received: from epsmges1p1.samsung.com (unknown [182.195.40.66]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20170210022253epcas1p2ebbd1eeb4e1f06d6f22eaebbf0d11ac5~hy78WD6dP1814618146epcas1p2e; Fri, 10 Feb 2017 02:22:53 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id 89.25.06731.DF32D985; Fri, 10 Feb 2017 11:22:53 +0900 (KST) Received: from epcpsbgm1new.samsung.com (u26.gpu120.samsung.co.kr [203.254.230.26]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20170210022252epcas1p2cad2a32fb74a5ecc17ed73387579c6ab~hy77u3Zeu1624316243epcas1p27; Fri, 10 Feb 2017 02:22:52 +0000 (GMT) X-AuditID: b6c32a35-f79166d000001a4b-35-589d23fd865e Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id B7.93.06487.CF32D985; Fri, 10 Feb 2017 11:22:52 +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 <0OL4006E7ZY2R1B0@mmp1.samsung.com>; Fri, 10 Feb 2017 11:22:52 +0900 (KST) From: Andi Shyti To: Krzysztof Kozlowski , Javier Martinez Canillas Cc: linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Shyti , Andi Shyti Subject: [PATCH v2] arm64: dts: Enable ir-spi in the tm2 and tm2e boards Date: Fri, 10 Feb 2017 11:22:38 +0900 Message-id: <20170210022238.12401-1-andi.shyti@samsung.com> X-Mailer: git-send-email 2.11.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHKsWRmVeSWpSXmKPExsWy7bCmru5f5bkRBiePKlpsP/KM1WLxj+dM Fm/ermGyOH9+A7vF5V1z2CxmnN/H5MDmcX3JJ2aPTas62Ty29N9l9+jbsorR4/MmuQDWqFSb jNTElNQihdS85PyUzLx0WyXv4HjneFMzA0NdQ0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K3 S3DLODLjGXvBRv6Kqw3zmRsYN/J0MXJySAiYSHya3MoOYYtJXLi3nq2LkYtDSGApo8S9A7vY QBJCAh8ZJWZ+KAWx2QQ0JZpu/wCLiwjEScy71QPWwCzQyShx4u40VpCEsICHxO1PT8Gmsgio Sjx+MxesgVfAWqL94T82iG3yErvaLrJOYORewMiwilEitSC5oDgpPdcwL7Vcrzgxt7g0L10v OT93EyM4NJ9J7WA8uMv9EKMAB6MSD++EqjkRQqyJZcWVuYcYJTiYlUR4c6XmRgjxpiRWVqUW 5ccXleakFh9iNAU6YCKzlGhyPjBu8kriDU3MTcyNDSzMLS1NjJTEeRtnPwsXEkhPLEnNTk0t SC2C6WPi4JRqYDTPq3pg6Xb56tGu30fnTbi6a0rctRkcT/puXWPUUQ+9f3GDhY5/QO9S+6AS KZOECKmfQR+Xl9gELP81R/iy153i0NgJxxuWWd3w3B2h8MyzfkPrx/51c50CO/OXh0dzVtyN yPOaqWs5z/h/9cEKjpbgjm97zrIKNrM8j7qUdrFj/Tr/Gw1m0kosxRmJhlrMRcWJAMaK+Utj AgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170210022252epcas1p2cad2a32fb74a5ecc17ed73387579c6ab X-Msg-Generator: CA X-Sender-IP: 203.254.230.26 X-Local-Sender: =?UTF-8?B?7JWI65SUG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLzthLAp?= =?UTF-8?B?G+yCvOyEseyghOyekBvssYXsnoQ=?= X-Global-Sender: =?UTF-8?B?QW5kaSBTaHl0aRtUaXplbiBQbGF0Zm9ybSBMYWIuG1NhbXN1?= =?UTF-8?B?bmcgRWxlY3Ryb25pY3MbU2VuaW9yIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170210022252epcas1p2cad2a32fb74a5ecc17ed73387579c6ab X-RootMTR: 20170210022252epcas1p2cad2a32fb74a5ecc17ed73387579c6ab References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the device tree node for the ir-spi driver which enable the ir led for remote controlling. This patch sets first the GPR3[3] gpio line as a regulator-fixed for enabling an external regulator which powers the IR LED. Removes also the default assignment of GPG3[7] related to the MOSI line of the SPI3 bus. Signed-off-by: Andi Shyti Reviewed-by: Javier Martinez Canillas --- Changelog v1 -> v2 ================== v1: https://marc.info/?l=linux-kernel&m=148645523229894&w=2 - used 'GPIO_ACTIVE_HIGH' instead of '0' - added back the gpg3-5 gpio initialization related to the SPI3 CS line that was erroneously removed .../boot/dts/exynos/exynos5433-tm2-common.dtsi | 26 +++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi index 098ad557fee3..4df6b57a0a68 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi @@ -106,6 +106,13 @@ }; }; + irda_regulator: irda-regulator { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpr3 3 GPIO_ACTIVE_HIGH>; + regulator-name = "irda_regulator"; + }; + sound { compatible = "samsung,tm2-audio"; audio-codec = <&wm5110>; @@ -1074,7 +1081,6 @@ PIN(INPUT, gpg3-0, DOWN, FAST_SR1); PIN(INPUT, gpg3-1, DOWN, FAST_SR1); PIN(INPUT, gpg3-5, DOWN, FAST_SR1); - PIN(INPUT, gpg3-7, DOWN, FAST_SR1); }; }; @@ -1152,6 +1158,24 @@ }; }; +&spi_3 { + status = "okay"; + no-cs-readback; + + irled@0 { + compatible = "ir-spi-led"; + reg = <0x0>; + spi-max-frequency = <5000000>; + power-supply = <&irda_regulator>; + duty-cycle = <60>; + led-active-low; + + controller-data { + samsung,spi-feedback-delay = <0>; + }; + }; +}; + &timer { clock-frequency = <24000000>; };