From patchwork Fri Nov 20 01:28:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 7663621 Return-Path: X-Original-To: patchwork-linux-arm@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 095ECBF90C for ; Fri, 20 Nov 2015 01:38:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 41D53204A2 for ; Fri, 20 Nov 2015 01:38:21 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 733B4204A0 for ; Fri, 20 Nov 2015 01:38:20 +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 1Zzacz-0006VL-5D; Fri, 20 Nov 2015 01:36:41 +0000 Received: from mleia.com ([178.79.152.223] helo=mail.mleia.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZzaW9-0006D2-U4 for linux-arm-kernel@lists.infradead.org; Fri, 20 Nov 2015 01:29:42 +0000 Received: from mail.mleia.com (localhost [127.0.0.1]) by mail.mleia.com (Postfix) with ESMTP id 131F0116718; Fri, 20 Nov 2015 01:30:12 +0000 (GMT) From: Vladimir Zapolskiy To: Rob Herring , Thomas Gleixner , Jason Cooper , Marc Zyngier , Arnd Bergmann Subject: [PATCH 06/10] arm: dts: lpc32xx: add description of IC wakeup controllers Date: Fri, 20 Nov 2015 03:28:41 +0200 Message-Id: <1447982925-30138-7-git-send-email-vz@mleia.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447982925-30138-1-git-send-email-vz@mleia.com> References: <1447982925-30138-1-git-send-email-vz@mleia.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-49551924 X-CRM114-CacheID: sfid-20151120_013012_100680_EAFDC6CA X-CRM114-Status: GOOD ( 10.87 ) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151120_013012_100680_EAFDC6CA X-CRM114-Status: UNSURE ( 8.32 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.5 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Roland Stigge , devicetree@vger.kernel.org, Russell King , linux-arm-kernel@lists.infradead.org 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.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 The change adds System Control Block simple bus device tree node and populates it with two first subdevices, wakeup controllers connected to LPC32xx interrupt controllers MIC, SIC1 and SIC2. The change also assigns a name to MIC controller and set its wakeup sources. Signed-off-by: Vladimir Zapolskiy --- arch/arm/boot/dts/lpc32xx.dtsi | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/lpc32xx.dtsi b/arch/arm/boot/dts/lpc32xx.dtsi index fbf1984b..b2735dd 100644 --- a/arch/arm/boot/dts/lpc32xx.dtsi +++ b/arch/arm/boot/dts/lpc32xx.dtsi @@ -295,6 +295,18 @@ clocks = <&xtal_32k>, <&xtal>; clock-names = "xtal_32k", "xtal"; }; + + wakeup_int: wakeup-controller@20 { + compatible = "nxp,lpc3220-wakeup"; + reg = <0x20 0x10>; + #wakeup-cells = <2>; + }; + + wakeup_pin: wakeup-controller@30 { + compatible = "nxp,lpc3220-wakeup"; + reg = <0x30 0x10>; + #wakeup-cells = <2>; + }; }; /* @@ -305,9 +317,13 @@ */ mic: interrupt-controller@40008000 { compatible = "nxp,lpc3220-mic"; - interrupt-controller; reg = <0x40008000 0xC000>; + interrupt-controller; + interrupt-controller-name = "mic"; #interrupt-cells = <2>; + + wakeup-sources = <&wakeup_int 7 29>, + <&wakeup_int 25 27>; }; uart1: serial@40014000 {