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: 6145351 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 79855BF4A6 for ; Thu, 2 Apr 2015 08:36:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ABA2320165 for ; Thu, 2 Apr 2015 08:36:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B8A3720328 for ; Thu, 2 Apr 2015 08:36:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752966AbbDBIgt (ORCPT ); Thu, 2 Apr 2015 04:36:49 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:52490 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752436AbbDBIet (ORCPT ); Thu, 2 Apr 2015 04:34:49 -0400 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>; 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 Cc: mark.rutland@arm.com, marc.zyngier@arm.com, arnd@arndb.de, olof@lixom.net, catalin.marinas@arm.com, will.deacon@arm.com, inki.dae@samsung.com, chanho61.park@samsung.com, cw00.choi@samsung.com, jaewon02.kim@samsung.com, beomho.seo@samsung.com, jy0922.shim@samsung.com, a.kesavan@samsung.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.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+ACqWEW2MQs8X77HBaQGmGBSImGf7PBalgEVCVOHwgH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Xnpesn5uZsYwfH7THoH46oGi0OMAhyMSjy8GXtkQoVYE8uKK3MPMUpwMCuJ8ObfAwrx piRWVqUW5ccXleakFh9iNAW6aSKzlGhyPjC15JXEGxqbmBlZGpkbWhgZmyuJ8yrZt4UICaQn lqRmp6YWpBbB9DFxcEo1MMZ4v58QdPjfydeldzYcDrb/lPn3pEN9+sUUh1kTGR5NN/pinsnp P+/G6wRL+cgPhkucfn/eVJTdsOR9z9U5lopiyz5PU5E4ERf7cvrxz7rNy+ZEHP84V/78nlVM 7UJdk7YkTVr86O18llcmU395zS+S9grbLaMl95VnlvNj2dgtZ87cNT3WP01OiaU4I9FQi7mo OBEATdzDxvUCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 {