From patchwork Thu Feb 23 08:49:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 9587949 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 EC1D260210 for ; Thu, 23 Feb 2017 08:50:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE50B286A3 for ; Thu, 23 Feb 2017 08:50:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D29D6286D0; Thu, 23 Feb 2017 08:50:37 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 71BBD286A3 for ; Thu, 23 Feb 2017 08:50:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Ynp5BiJbZH0AHXSbCwVfN17HiwtHW1E7gfm2lFkkZFY=; b=eSUb8rjGKmzubt jRbwa0Lz3At9D9Z2BHtWu81uyrcnYHnViVtTKMlNVD3DQLreEgKzoZmq3BnFekKR9ROxEb+kcFD4i vYOU1QXNm13GknzQmuWzsOhTHh9SL44TnHuBqveqUFZxLtim2EGrWsdYyiJoJqyhoiE09TKBxP5Ih Z3pCV2QtLVzp2V91XH7fz3RRjxhlQ5KVBeaGhFAVGZ1ASNB85FPAvs4iJ3crTRQ55Np6ywpeaKja2 ilMRQdy9xUYyn7X+mH4fVK+iSru9AsJSdLXwnBMmmAgOaUhuJ9Ww6x+uhdsfueeWFsBWdGBxZwM2l 9m/McXkagqkVEMO0eLMQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cgp6g-0005eb-TW; Thu, 23 Feb 2017 08:50:34 +0000 Received: from smtpout.microchip.com ([198.175.253.82] helo=email.microchip.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cgp6c-0005bt-GV for linux-arm-kernel@lists.infradead.org; Thu, 23 Feb 2017 08:50:32 +0000 Received: from m18063-ThinkPad-T460p.microchip.com (10.10.76.4) by chn-sv-exch05.mchp-main.com (10.10.76.106) with Microsoft SMTP Server id 14.3.181.6; Thu, 23 Feb 2017 01:50:09 -0700 From: Claudiu Beznea To: , , , , , , , , , Subject: [PATCH v2] ARM: dts: at91: sama5d2_xplained: add pwm controller Date: Thu, 23 Feb 2017 10:49:17 +0200 Message-ID: <1487839757-14040-1-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170223_005030_581781_49713E1B X-CRM114-Status: UNSURE ( 7.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Claudiu Beznea Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add pwm controller bindings for sam5d2_xplained and enable it. Changes since v1: - Correct the typo in patch subject. Signed-off-by: Claudiu Beznea --- arch/arm/boot/dts/at91-sama5d2_xplained_common.dtsi | 4 ++++ arch/arm/boot/dts/sama5d2.dtsi | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained_common.dtsi b/arch/arm/boot/dts/at91-sama5d2_xplained_common.dtsi index 9fc270f..493ea29 100644 --- a/arch/arm/boot/dts/at91-sama5d2_xplained_common.dtsi +++ b/arch/arm/boot/dts/at91-sama5d2_xplained_common.dtsi @@ -318,6 +318,10 @@ }; }; + pwm0: pwm@f802c000 { + status = "okay"; + }; + flx0: flexcom@f8034000 { atmel,flexcom-mode = ; status = "disabled"; /* conflict with ISC_D2 & ISC_D3 data pins */ diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index cd459e8..e88785e 100644 --- a/arch/arm/boot/dts/sama5d2.dtsi +++ b/arch/arm/boot/dts/sama5d2.dtsi @@ -1098,6 +1098,14 @@ status = "disabled"; }; + pwm0: pwm@f802c000 { + compatible = "atmel,sama5d2-pwm"; + reg = <0xf802c000 0x4000>; + interrupts = <38 IRQ_TYPE_LEVEL_HIGH 7>; + #pwm-cells = <3>; + clocks = <&pwm_clk>; + }; + sfr: sfr@f8030000 { compatible = "atmel,sama5d2-sfr", "syscon"; reg = <0xf8030000 0x98>;