From patchwork Tue Feb 7 08:13:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 9559367 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 0F66960216 for ; Tue, 7 Feb 2017 08:13:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 039C823F88 for ; Tue, 7 Feb 2017 08:13:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC75A2819A; Tue, 7 Feb 2017 08:13:56 +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 22BA723F88 for ; Tue, 7 Feb 2017 08:13:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753263AbdBGINn (ORCPT ); Tue, 7 Feb 2017 03:13:43 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:60853 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753123AbdBGINm (ORCPT ); Tue, 7 Feb 2017 03:13:42 -0500 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OKZ01B29W6R9510@mailout2.samsung.com>; Tue, 07 Feb 2017 17:13:39 +0900 (KST) Received: from epsmges5p1.samsung.com (unknown [182.195.40.65]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20170207081339epcas1p15c5b05a68d48d619765894e7083ae6c2~g8yVxJg-92261922619epcas1p1Z; Tue, 7 Feb 2017 08:13:39 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p1.samsung.com (EPCPMTA) with SMTP id F1.12.04990.3B189985; Tue, 7 Feb 2017 17:13:39 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20170207081338epcas5p23530ff8663c58f8868a0f9dfa2e19f7a~g8yVi2yk31897218972epcas5p2P; Tue, 7 Feb 2017 08:13:38 +0000 (GMT) X-AuditID: b6c32a2c-f79dd6d00000137e-0a-589981b34074 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 74.F3.06428.2B189985; Tue, 7 Feb 2017 17:13:38 +0900 (KST) Received: from gangnam.samsung ([10.113.62.47]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OKZ0030YW6NQG40@mmp2.samsung.com>; Tue, 07 Feb 2017 17:13:38 +0900 (KST) From: Andi Shyti To: Rob Herring , Krzysztof Kozlowski Cc: Javier Martinez Canillas , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Shyti , Andi Shyti Subject: [PATCH] arm64: dts: Enable ir-spi in the tm2 and tm2e boards Date: Tue, 07 Feb 2017 17:13:25 +0900 Message-id: <20170207081325.9769-1-andi.shyti@samsung.com> X-Mailer: git-send-email 2.11.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAKsWRmVeSWpSXmKPExsWy7bCmuu7mxpkRBo9OsVtsP/KM1WLxj+dM FvOPnGO1ePN2DZPF+fMb2C02Pb7GanF51xw2ixnn9zFZtO49wu7A6XF9ySdmj02rOtk8Ni+p 99jSf5fdo2/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5vkAtii3GwyUhNTUosUUvOS81My89JtlUJD3HQtlBTyEnNTbZUidH1D gpQUyhJzSoE8IwM04OAc4B6spG+X4JYxpf0Ea8ES3oqe3RfYGhgvc3UxcnBICJhIbN/B0sXI CWSKSVy4t56ti5GLQ0hgFqPEtksfmEESQgIfGSVW76kHsdkENCWabv9gA7FFBLwl/rX+A2tg Fmhikri1Zh8jSEJYwFXiYMt7sGYWAVWJ7h3zmUBsXgEriUUL5zNDbJOX2NV2kXUCI/cCRoZV jBKpBckFxUnpuUZ5qeV6xYm5xaV56XrJ+bmbGMHh+0x6B+PhXe6HGAU4GJV4eAM4Z0YIsSaW FVfmHmKU4GBWEuE9VgsU4k1JrKxKLcqPLyrNSS0+xGgKdMBEZinR5HxgbOWVxBuamJuYGxtY mFtamhgpifM2zn4WLiSQnliSmp2aWpBaBNPHxMEp1cDIrHnYr+1D9GSJs7yqZo9eqbiG7005 njDpufZC/gZdwbpXfe/UrzFta3hyTHfK62tHuI4z7SxWdo9S6fJwfx452+CL5WV9i8fshgUb Fz1d0Lhs+RadS9esZPhc/y1+VDBD5/76XZWqGgdZ2iN+MG35q8Q473KXUkT4U3WfULv9Ypun N9+4xzRJiaU4I9FQi7moOBEAzxXMgnUCAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170207081338epcas5p23530ff8663c58f8868a0f9dfa2e19f7a X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 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: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170207081338epcas5p23530ff8663c58f8868a0f9dfa2e19f7a X-RootMTR: 20170207081338epcas5p23530ff8663c58f8868a0f9dfa2e19f7a 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 the GPG3[5] and GPG3[7] related to the SPI3 line. Signed-off-by: Andi Shyti --- .../boot/dts/exynos/exynos5433-tm2-common.dtsi | 27 ++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi index 098ad557fee3..c61df2318d8b 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 0>; + regulator-name = "irda_regulator"; + }; + sound { compatible = "samsung,tm2-audio"; audio-codec = <&wm5110>; @@ -1073,8 +1080,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 +1157,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>; };