From patchwork Thu Apr 2 08:34:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 6145401 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6749C9F350 for ; Thu, 2 Apr 2015 08:39:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 811AE20306 for ; Thu, 2 Apr 2015 08:39:33 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A3F9C20165 for ; Thu, 2 Apr 2015 08:39:32 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YdacF-0000SB-O4; Thu, 02 Apr 2015 08:36:43 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ydaal-0006nh-Dt for linux-arm-kernel@lists.infradead.org; Thu, 02 Apr 2015 08:35:13 +0000 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NM600MRU7TY09C0@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 02 Apr 2015 17:34:46 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.115]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 9C.BD.17016.62FFC155; Thu, 2 Apr 2015 17:34:46 +0900 (KST) X-AuditID: cbfee68d-f79296d000004278-77-551cff26b71d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id E1.15.09430.62FFC155; Thu, 2 Apr 2015 17:34:46 +0900 (KST) Received: from chan.10.32.193.11 ([10.252.81.195]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NM6006AT7TUQZT0@mmp1.samsung.com>; Thu, 02 Apr 2015 17:34:45 +0900 (KST) From: Chanwoo Choi To: kgene@kernel.org Subject: [PATCH 4/6] arm64: dts: exynos: Add PWM dt node and pinctrl for Exynos5433 SoC Date: Thu, 02 Apr 2015 17:34:35 +0900 Message-id: <1427963677-32661-5-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.5.5 In-reply-to: <1427963677-32661-1-git-send-email-cw00.choi@samsung.com> References: <1427963677-32661-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBIsWRmVeSWpSXmKPExsWyRsSkWFftv0yowYbXShaP1yxmsvg76Ri7 xelP29gt3i/rYbS4vF/b4vqX56wW84+cY7WYdH8Ci8WOhiOsFi/uXWSx6H/8mtli0+NrrBaX d81hs5hxfh9Q/51/bBZLr19ksjh1/TObxcuPJ1gchDzWzFvD6PH71yRGj02rOtk8Ni+p97hy oonVo2/LKkaPz5vkAtijuGxSUnMyy1KL9O0SuDLOt21iL7gpWLH3zH6mBsa1fF2MnBwSAiYS q34sZoKwxSQu3FvP1sXIxSEksJRRYsmHj+wwRV+uTwArEhJYxCjxaJEKRNEXRoned3/ZQBJs AloS+1/cALI5OEQERCRmX+ACqWEW2MQs8X77HBaQGmGBSImGf7PBalgEVCVOHwgHCfMKuEq0 d0+DOkJBYtnymawgJZwCbhILtoVArHWVePPrKzvISAmBr+wSTROfsoIkWAQEJL5NPsQCUi8h ICux6QAzxBhJiYMrbrBMYBRewMiwilE0tSC5oDgpvchQrzgxt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uJ8yrZt4UICaQn lqRmp6YWpBbB9DFxcEo1MMZ4v58QdPjfydeldzYcDrb/lPn3pEN9+sUUh1kTGR5NN/pinsnp P+/G6wRL+cgPhkucfn/eVJTdsOR9z9U5lopiyz5PU5E4ERf7cvrxz7rNy+ZEHP84V/78nlVM 7UJdk7YkTVr86O18llcmU395zS+S9grbLaMl95VnlvNj2dgtZ87cNT3WP01OiaU4I9FQi7mo OBEATdzDxvUCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150402_013511_686322_632BCE25 X-CRM114-Status: UNSURE ( 7.18 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.0 (-----) Cc: mark.rutland@arm.com, jaewon02.kim@samsung.com, linux-samsung-soc@vger.kernel.org, jy0922.shim@samsung.com, arnd@arndb.de, devicetree@vger.kernel.org, marc.zyngier@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, a.kesavan@samsung.com, inki.dae@samsung.com, cw00.choi@samsung.com, linux-arm-kernel@lists.infradead.org, olof@lixom.net, chanho61.park@samsung.com, beomho.seo@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jaewon Kim This patch adds PWM(Pulsle Width Modulation) device tree node to support for PWM Timer on Exynos5433 SoC. Cc: Kukjin Kim Signed-off-by: Jaewon Kim Signed-off-by: Chanwoo Choi Acked-by: Inki Dae --- arch/arm64/boot/dts/exynos/exynos5433-pinctrl.dtsi | 28 ++++++++++++++++++++++ arch/arm64/boot/dts/exynos/exynos5433.dtsi | 12 ++++++++++ 2 files changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-pinctrl.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-pinctrl.dtsi index c56bbf8..49be038 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-pinctrl.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433-pinctrl.dtsi @@ -581,6 +581,34 @@ samsung,pin-drv = <0>; }; + pwm0_out: pwm0-out { + samsung,pins = "gpd2-4"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + }; + + pwm1_out: pwm1-out { + samsung,pins = "gpd2-5"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + }; + + pwm2_out: pwm2-out { + samsung,pins = "gpd2-6"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + }; + + pwm3_out: pwm3-out { + samsung,pins = "gpd2-7"; + samsung,pin-function = <2>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + }; + spi1_bus: spi1-bus { samsung,pins = "gpd6-2", "gpd6-4", "gpd6-5"; samsung,pin-function = <2>; diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi b/arch/arm64/boot/dts/exynos/exynos5433.dtsi index 9cca236..baeec299 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433.dtsi @@ -1052,6 +1052,18 @@ phy-names = "usb2-phy", "usb3-phy"; }; }; + + pwm: pwm@14dd0000 { + compatible = "samsung,exynos4210-pwm"; + reg = <0x14dd0000 0x100>; + interrupts = <0 416 0>, <0 417 0>, + <0 418 0>, <0 419 0>, <0 420 0>; + samsung,pwm-outputs = <0>, <1>, <2>, <3>; + clocks = <&cmu_peric CLK_PCLK_PWM>; + clock-names = "timers"; + #pwm-cells = <3>; + status = "disabled"; + }; }; timer {